react-native-paper-dates 0.7.0 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -5
- package/lib/commonjs/Date/CalendarEdit.js +3 -3
- package/lib/commonjs/Date/CalendarEdit.js.map +1 -1
- package/lib/commonjs/Date/CalendarHeader.js +2 -8
- package/lib/commonjs/Date/CalendarHeader.js.map +1 -1
- package/lib/commonjs/Date/DatePickerInput.js +8 -9
- 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 +4 -6
- package/lib/commonjs/Date/DatePickerModalContentHeader.js.map +1 -1
- package/lib/commonjs/Date/DatePickerModalHeader.js +4 -4
- package/lib/commonjs/Date/DatePickerModalHeader.js.map +1 -1
- package/lib/commonjs/Date/DateRangeInput.js +1 -4
- package/lib/commonjs/Date/DateRangeInput.js.map +1 -1
- package/lib/commonjs/Date/Day.js +1 -4
- package/lib/commonjs/Date/Day.js.map +1 -1
- package/lib/commonjs/Date/Month.js +2 -8
- package/lib/commonjs/Date/Month.js.map +1 -1
- package/lib/commonjs/Date/YearPicker.js +1 -4
- package/lib/commonjs/Date/YearPicker.js.map +1 -1
- package/lib/commonjs/Date/inputUtils.js +1 -1
- package/lib/commonjs/Date/inputUtils.js.map +1 -1
- package/lib/commonjs/Time/TimeInput.js +1 -4
- package/lib/commonjs/Time/TimeInput.js.map +1 -1
- package/lib/commonjs/Time/TimePickerModal.js +7 -7
- package/lib/commonjs/Time/TimePickerModal.js.map +1 -1
- package/lib/commonjs/index.js +19 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/translations/de.js +25 -0
- package/lib/commonjs/translations/de.js.map +1 -0
- package/lib/commonjs/translations/en.js +3 -3
- package/lib/commonjs/translations/en.js.map +1 -1
- package/lib/commonjs/translations/enGB.js +3 -3
- package/lib/commonjs/translations/enGB.js.map +1 -1
- package/lib/commonjs/translations/nl.js +3 -3
- package/lib/commonjs/translations/nl.js.map +1 -1
- package/lib/commonjs/translations/pl.js +3 -3
- package/lib/commonjs/translations/pl.js.map +1 -1
- package/lib/commonjs/translations/pt.js +25 -0
- package/lib/commonjs/translations/pt.js.map +1 -0
- package/lib/commonjs/translations/utils.js.map +1 -1
- package/lib/module/Date/CalendarEdit.js +3 -3
- package/lib/module/Date/CalendarEdit.js.map +1 -1
- package/lib/module/Date/CalendarHeader.js +2 -8
- package/lib/module/Date/CalendarHeader.js.map +1 -1
- package/lib/module/Date/DatePickerInput.js +8 -9
- 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 +4 -6
- package/lib/module/Date/DatePickerModalContentHeader.js.map +1 -1
- package/lib/module/Date/DatePickerModalHeader.js +4 -4
- package/lib/module/Date/DatePickerModalHeader.js.map +1 -1
- package/lib/module/Date/DateRangeInput.js +1 -4
- package/lib/module/Date/DateRangeInput.js.map +1 -1
- package/lib/module/Date/Day.js +1 -4
- package/lib/module/Date/Day.js.map +1 -1
- package/lib/module/Date/Month.js +2 -8
- package/lib/module/Date/Month.js.map +1 -1
- package/lib/module/Date/YearPicker.js +1 -4
- package/lib/module/Date/YearPicker.js.map +1 -1
- package/lib/module/Date/inputUtils.js +1 -1
- package/lib/module/Date/inputUtils.js.map +1 -1
- package/lib/module/Time/TimeInput.js +1 -4
- package/lib/module/Time/TimeInput.js.map +1 -1
- package/lib/module/Time/TimePickerModal.js +7 -7
- 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/de.js +18 -0
- package/lib/module/translations/de.js.map +1 -0
- package/lib/module/translations/en.js +3 -3
- package/lib/module/translations/en.js.map +1 -1
- package/lib/module/translations/enGB.js +3 -3
- package/lib/module/translations/enGB.js.map +1 -1
- package/lib/module/translations/nl.js +3 -3
- package/lib/module/translations/nl.js.map +1 -1
- package/lib/module/translations/pl.js +3 -3
- package/lib/module/translations/pl.js.map +1 -1
- package/lib/module/translations/pt.js +18 -0
- package/lib/module/translations/pt.js.map +1 -0
- package/lib/module/translations/utils.js.map +1 -1
- package/lib/typescript/Date/DatePickerInput.d.ts +8 -8
- 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/TimePickerModal.d.ts +2 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/translations/de.d.ts +3 -0
- package/lib/typescript/translations/pt.d.ts +3 -0
- package/lib/typescript/translations/utils.d.ts +4 -4
- package/package.json +3 -1
- package/src/Date/CalendarEdit.tsx +3 -3
- package/src/Date/CalendarHeader.tsx +0 -6
- package/src/Date/DatePickerInput.tsx +13 -8
- package/src/Date/DatePickerModalContent.tsx +2 -0
- package/src/Date/DatePickerModalContentHeader.tsx +5 -6
- package/src/Date/DatePickerModalHeader.tsx +2 -3
- package/src/Date/DateRangeInput.tsx +1 -7
- package/src/Date/Day.tsx +0 -3
- package/src/Date/Month.tsx +0 -6
- package/src/Date/YearPicker.tsx +0 -3
- package/src/Date/inputUtils.ts +13 -9
- package/src/Time/TimeInput.tsx +0 -3
- package/src/Time/TimePickerModal.tsx +7 -5
- package/src/index.tsx +2 -0
- package/src/translations/de.ts +20 -0
- package/src/translations/en.ts +5 -4
- package/src/translations/enGB.ts +5 -4
- package/src/translations/nl.ts +5 -4
- package/src/translations/pl.ts +4 -4
- package/src/translations/pt.ts +21 -0
- package/src/translations/utils.ts +5 -5
- package/src/.DS_Store +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["nl.ts"],"names":["nl","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","mustBeLowerThan","mustBeBetween","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;AAC3BC,EAAAA,IAAI,EAAE,SADqB;AAE3BC,EAAAA,YAAY,EAAE,iBAFa;AAG3BC,EAAAA,cAAc,EAAE,kBAHW;AAI3BC,EAAAA,WAAW,EAAE,mBAJc;AAK3BC,EAAAA,wBAAwB,EAAGC,WAAD,IACvB,qBAAoBA,WAAY,OANR;AAO3BC,EAAAA,gBAAgB,
|
|
1
|
+
{"version":3,"sources":["nl.ts"],"names":["nl","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","date","mustBeLowerThan","mustBeBetween","startDate","endDate","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;AAC3BC,EAAAA,IAAI,EAAE,SADqB;AAE3BC,EAAAA,YAAY,EAAE,iBAFa;AAG3BC,EAAAA,cAAc,EAAE,kBAHW;AAI3BC,EAAAA,WAAW,EAAE,mBAJc;AAK3BC,EAAAA,wBAAwB,EAAGC,WAAD,IACvB,qBAAoBA,WAAY,OANR;AAO3BC,EAAAA,gBAAgB,EAAGC,IAAD,IAAW,kBAAiBA,IAAK,EAPxB;AAQ3BC,EAAAA,eAAe,EAAGD,IAAD,IAAW,mBAAkBA,IAAK,EARxB;AAS3BE,EAAAA,aAAa,EAAE,CAACC,SAAD,EAAYC,OAAZ,KACZ,eAAcD,SAAU,MAAKC,OAAQ,EAVb;AAW3BC,EAAAA,cAAc,EAAE,mBAXW;AAY3BC,EAAAA,QAAQ,EAAE,QAZiB;AAa3BC,EAAAA,IAAI,EAAE,UAbqB;AAc3BC,EAAAA,UAAU,EAAE,WAde;AAe3BC,EAAAA,oBAAoB,EAAE,yBAfK;AAgB3BC,EAAAA,KAAK,EAAE;AAhBoB,CAA7B;AAkBA,eAAelB,EAAf","sourcesContent":["import type { TranslationsType } from './utils'\n\nconst nl: TranslationsType = {\n save: 'Opslaan',\n selectSingle: 'Selecteer datum',\n selectMultiple: 'Selecteer datums',\n selectRange: 'Selecteer periode',\n notAccordingToDateFormat: (inputFormat) =>\n `Datumformaat moet ${inputFormat} zijn`,\n mustBeHigherThan: (date) => `Moet later dan ${date}`,\n mustBeLowerThan: (date) => `Moet eerder dan ${date}`,\n mustBeBetween: (startDate, endDate) =>\n `Moet tussen ${startDate} - ${endDate}`,\n dateIsDisabled: 'Deze dag mag niet',\n previous: 'Vorige',\n next: 'Volgende',\n typeInDate: 'Typ datum',\n pickDateFromCalendar: 'Kies datum van kalender',\n close: 'Sluit',\n}\nexport default nl\n"]}
|
|
@@ -4,9 +4,9 @@ const pl = {
|
|
|
4
4
|
selectMultiple: 'Wybierz daty',
|
|
5
5
|
selectRange: 'Wybierz zakres',
|
|
6
6
|
notAccordingToDateFormat: inputFormat => `Data musi mieć format ${inputFormat}`,
|
|
7
|
-
mustBeHigherThan:
|
|
8
|
-
mustBeLowerThan:
|
|
9
|
-
mustBeBetween:
|
|
7
|
+
mustBeHigherThan: date => `Nie wcześniej niżn ${date}`,
|
|
8
|
+
mustBeLowerThan: date => `Nie później niż ${date}`,
|
|
9
|
+
mustBeBetween: (startDate, endDate) => `Pomiędzy ${startDate} - ${endDate}`,
|
|
10
10
|
dateIsDisabled: 'Niedozwolona data',
|
|
11
11
|
previous: 'Poprzedni',
|
|
12
12
|
next: 'Dalej',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["pl.ts"],"names":["pl","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","mustBeLowerThan","mustBeBetween","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;AAC3BC,EAAAA,IAAI,EAAE,QADqB;AAE3BC,EAAAA,YAAY,EAAE,cAFa;AAG3BC,EAAAA,cAAc,EAAE,cAHW;AAI3BC,EAAAA,WAAW,EAAE,gBAJc;AAK3BC,EAAAA,wBAAwB,EAAGC,WAAD,IACvB,yBAAwBA,WAAY,EANZ;AAO3BC,EAAAA,gBAAgB,
|
|
1
|
+
{"version":3,"sources":["pl.ts"],"names":["pl","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","date","mustBeLowerThan","mustBeBetween","startDate","endDate","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;AAC3BC,EAAAA,IAAI,EAAE,QADqB;AAE3BC,EAAAA,YAAY,EAAE,cAFa;AAG3BC,EAAAA,cAAc,EAAE,cAHW;AAI3BC,EAAAA,WAAW,EAAE,gBAJc;AAK3BC,EAAAA,wBAAwB,EAAGC,WAAD,IACvB,yBAAwBA,WAAY,EANZ;AAO3BC,EAAAA,gBAAgB,EAAGC,IAAD,IAAW,sBAAqBA,IAAK,EAP5B;AAQ3BC,EAAAA,eAAe,EAAGD,IAAD,IAAW,mBAAkBA,IAAK,EARxB;AAS3BE,EAAAA,aAAa,EAAE,CAACC,SAAD,EAAYC,OAAZ,KAAyB,YAAWD,SAAU,MAAKC,OAAQ,EAT/C;AAU3BC,EAAAA,cAAc,EAAE,mBAVW;AAY3BC,EAAAA,QAAQ,EAAE,WAZiB;AAa3BC,EAAAA,IAAI,EAAE,OAbqB;AAc3BC,EAAAA,UAAU,EAAE,YAde;AAe3BC,EAAAA,oBAAoB,EAAE,2BAfK;AAgB3BC,EAAAA,KAAK,EAAE;AAhBoB,CAA7B;AAkBA,eAAelB,EAAf","sourcesContent":["import type { TranslationsType } from './utils'\n\nconst pl: TranslationsType = {\n save: 'Zapisz',\n selectSingle: 'Wybierz datę',\n selectMultiple: 'Wybierz daty',\n selectRange: 'Wybierz zakres',\n notAccordingToDateFormat: (inputFormat) =>\n `Data musi mieć format ${inputFormat}`,\n mustBeHigherThan: (date) => `Nie wcześniej niżn ${date}`,\n mustBeLowerThan: (date) => `Nie później niż ${date}`,\n mustBeBetween: (startDate, endDate) => `Pomiędzy ${startDate} - ${endDate}`,\n dateIsDisabled: 'Niedozwolona data',\n\n previous: 'Poprzedni',\n next: 'Dalej',\n typeInDate: 'Wpisz datę',\n pickDateFromCalendar: 'Wybierz datę z kalendarza',\n close: 'Zamknij',\n}\nexport default pl\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const pt = {
|
|
2
|
+
save: 'Salvar',
|
|
3
|
+
selectSingle: 'Selecione a data',
|
|
4
|
+
selectMultiple: 'Selecione as datas',
|
|
5
|
+
selectRange: 'Selecione o período',
|
|
6
|
+
notAccordingToDateFormat: inputFormat => `O formato da data deve ser ${inputFormat}`,
|
|
7
|
+
mustBeHigherThan: date => `Deve ser depois de ${date}`,
|
|
8
|
+
mustBeLowerThan: date => `Deve ser antes de ${date}`,
|
|
9
|
+
mustBeBetween: (startDate, endDate) => `Deve estar entre ${startDate} - ${endDate}`,
|
|
10
|
+
dateIsDisabled: 'Data não é permitida',
|
|
11
|
+
previous: 'Anterior',
|
|
12
|
+
next: 'Próximo',
|
|
13
|
+
typeInDate: 'Digite a data',
|
|
14
|
+
pickDateFromCalendar: 'Escolha a data do calendário',
|
|
15
|
+
close: 'Fechar'
|
|
16
|
+
};
|
|
17
|
+
export default pt;
|
|
18
|
+
//# sourceMappingURL=pt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["pt.ts"],"names":["pt","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","date","mustBeLowerThan","mustBeBetween","startDate","endDate","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;AAC3BC,EAAAA,IAAI,EAAE,QADqB;AAE3BC,EAAAA,YAAY,EAAE,kBAFa;AAG3BC,EAAAA,cAAc,EAAE,oBAHW;AAI3BC,EAAAA,WAAW,EAAE,qBAJc;AAK3BC,EAAAA,wBAAwB,EAAGC,WAAD,IACvB,8BAA6BA,WAAY,EANjB;AAO3BC,EAAAA,gBAAgB,EAAGC,IAAD,IAAW,sBAAqBA,IAAK,EAP5B;AAQ3BC,EAAAA,eAAe,EAAGD,IAAD,IAAW,qBAAoBA,IAAK,EAR1B;AAS3BE,EAAAA,aAAa,EAAE,CAACC,SAAD,EAAYC,OAAZ,KACZ,oBAAmBD,SAAU,MAAKC,OAAQ,EAVlB;AAW3BC,EAAAA,cAAc,EAAE,sBAXW;AAY3BC,EAAAA,QAAQ,EAAE,UAZiB;AAa3BC,EAAAA,IAAI,EAAE,SAbqB;AAc3BC,EAAAA,UAAU,EAAE,eAde;AAe3BC,EAAAA,oBAAoB,EAAE,8BAfK;AAgB3BC,EAAAA,KAAK,EAAE;AAhBoB,CAA7B;AAkBA,eAAelB,EAAf","sourcesContent":["import type { TranslationsType } from './utils'\n\nconst pt: TranslationsType = {\n save: 'Salvar',\n selectSingle: 'Selecione a data',\n selectMultiple: 'Selecione as datas',\n selectRange: 'Selecione o período',\n notAccordingToDateFormat: (inputFormat: string) =>\n `O formato da data deve ser ${inputFormat}`,\n mustBeHigherThan: (date) => `Deve ser depois de ${date}`,\n mustBeLowerThan: (date) => `Deve ser antes de ${date}`,\n mustBeBetween: (startDate, endDate) =>\n `Deve estar entre ${startDate} - ${endDate}`,\n dateIsDisabled: 'Data não é permitida',\n previous: 'Anterior',\n next: 'Próximo',\n typeInDate: 'Digite a data',\n pickDateFromCalendar: 'Escolha a data do calendário',\n close: 'Fechar',\n}\nexport default pt\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["utils.ts"],"names":["translationsPerLocale","getTranslation","locale","key","fallback","l","translationForLocale","console","warn","translation","registerTranslation","translations"],"mappings":"AAiBA,IAAIA,qBAAuD,GAAG,EAA9D;AAEA,OAAO,SAASC,cAAT,CACLC,MADK,EAELC,GAFK,EAGLC,QAHK,EAIL;AACA,QAAMC,CAAC,GAAGH,MAAM,IAAI,IAApB;AACA,QAAMI,oBAAoB,GAAGN,qBAAqB,CAACK,CAAD,CAAlD;;AACA,MAAI,CAACC,oBAAL,EAA2B;AACzBC,IAAAA,OAAO,CAACC,IAAR,CACG,8BAA6BN,MAAO,4BAA2BC,GAAI,EADtE;AAGA,WAAOC,QAAQ,IAAID,GAAnB;AACD;;AACD,QAAMM,WAAW,GAAGT,qBAAqB,CAACK,CAAD,CAArB,CAAyBF,GAAzB,CAApB;;AACA,MAAI,CAACG,oBAAL,EAA2B;AACzBC,IAAAA,OAAO,CAACC,IAAR,CACG,8BAA6BN,MAAO,uBAAsBC,GAAI,aADjE;AAGD;;AACD,SAAOM,WAAW,IAAIL,QAAf,IAA2BD,GAAlC;AACD;AAED,OAAO,SAASO,mBAAT,CACLR,MADK,EAELS,YAFK,EAGL;AACAX,EAAAA,qBAAqB,CAACE,MAAD,CAArB,GAAgCS,YAAhC;AACD","sourcesContent":["export type TranslationsType = {\n selectSingle: string\n selectMultiple: string\n selectRange: string\n save: string\n notAccordingToDateFormat: (inputFormat: string) => string\n mustBeHigherThan: string\n mustBeLowerThan: string\n mustBeBetween: string\n dateIsDisabled: string\n previous: string\n next: string\n typeInDate: string\n pickDateFromCalendar: string\n close: string\n}\n\nlet translationsPerLocale: Record<string, TranslationsType> = {}\n\nexport function getTranslation(\n locale: string | undefined,\n key:
|
|
1
|
+
{"version":3,"sources":["utils.ts"],"names":["translationsPerLocale","getTranslation","locale","key","fallback","l","translationForLocale","console","warn","translation","registerTranslation","translations"],"mappings":"AAiBA,IAAIA,qBAAuD,GAAG,EAA9D;AAEA,OAAO,SAASC,cAAT,CACLC,MADK,EAELC,GAFK,EAGLC,QAHK,EAIL;AACA,QAAMC,CAAC,GAAGH,MAAM,IAAI,IAApB;AACA,QAAMI,oBAAoB,GAAGN,qBAAqB,CAACK,CAAD,CAAlD;;AACA,MAAI,CAACC,oBAAL,EAA2B;AACzBC,IAAAA,OAAO,CAACC,IAAR,CACG,8BAA6BN,MAAO,4BAA2BC,GAAI,EADtE;AAGA,WAAOC,QAAQ,IAAID,GAAnB;AACD;;AACD,QAAMM,WAAW,GAAGT,qBAAqB,CAACK,CAAD,CAArB,CAAyBF,GAAzB,CAApB;;AACA,MAAI,CAACG,oBAAL,EAA2B;AACzBC,IAAAA,OAAO,CAACC,IAAR,CACG,8BAA6BN,MAAO,uBAAsBC,GAAI,aADjE;AAGD;;AACD,SAAOM,WAAW,IAAIL,QAAf,IAA2BD,GAAlC;AACD;AAED,OAAO,SAASO,mBAAT,CACLR,MADK,EAELS,YAFK,EAGL;AACAX,EAAAA,qBAAqB,CAACE,MAAD,CAArB,GAAgCS,YAAhC;AACD","sourcesContent":["export type TranslationsType = {\n selectSingle: string\n selectMultiple: string\n selectRange: string\n save: string\n notAccordingToDateFormat: (inputFormat: string) => string\n mustBeHigherThan: (date: string) => string\n mustBeLowerThan: (date: string) => string\n mustBeBetween: (startDate: string, endDate: string) => string\n dateIsDisabled: string\n previous: string\n next: string\n typeInDate: string\n pickDateFromCalendar: string\n close: string\n}\n\nlet translationsPerLocale: Record<string, TranslationsType> = {}\n\nexport function getTranslation<K extends keyof TranslationsType>(\n locale: string | undefined,\n key: K,\n fallback?: any\n) {\n const l = locale || 'en'\n const translationForLocale = translationsPerLocale[l]\n if (!translationForLocale) {\n console.warn(\n `[react-native-paper-dates] ${locale} is not registered, key: ${key}`\n )\n return fallback || key\n }\n const translation = translationsPerLocale[l][key]\n if (!translationForLocale) {\n console.warn(\n `[react-native-paper-dates] ${locale} is registered, but ${key} is missing`\n )\n }\n return translation || fallback || key\n}\n\nexport function registerTranslation(\n locale: string,\n translations: TranslationsType\n) {\n translationsPerLocale[locale] = translations\n}\n"]}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ValidRangeType } from './Calendar';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<
|
|
4
|
-
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
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" | "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"> & {
|
|
6
|
-
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}), "onChange" | "value"> & {
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
10
4
|
inputMode: "end" | "start";
|
|
11
5
|
locale: string;
|
|
12
6
|
onChange: (date: Date | undefined) => void;
|
|
@@ -14,5 +8,11 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<(Pick<import("
|
|
|
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" | "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" | "
|
|
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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "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" | "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" | "
|
|
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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "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" | "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" | "
|
|
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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "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" | "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" | "
|
|
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" | "children" | "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" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense" | "mask" | "theme"> & React.RefAttributes<unknown>>;
|
|
11
11
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
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;
|
|
@@ -10,4 +10,6 @@ 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
12
|
export { default as pl } from './translations/pl';
|
|
13
|
+
export { default as pt } from './translations/pt';
|
|
13
14
|
export { default as enGB } from './translations/enGB';
|
|
15
|
+
export { default as de } from './translations/de';
|
|
@@ -4,9 +4,9 @@ export declare type TranslationsType = {
|
|
|
4
4
|
selectRange: string;
|
|
5
5
|
save: string;
|
|
6
6
|
notAccordingToDateFormat: (inputFormat: string) => string;
|
|
7
|
-
mustBeHigherThan: string;
|
|
8
|
-
mustBeLowerThan: string;
|
|
9
|
-
mustBeBetween: string;
|
|
7
|
+
mustBeHigherThan: (date: string) => string;
|
|
8
|
+
mustBeLowerThan: (date: string) => string;
|
|
9
|
+
mustBeBetween: (startDate: string, endDate: string) => string;
|
|
10
10
|
dateIsDisabled: string;
|
|
11
11
|
previous: string;
|
|
12
12
|
next: string;
|
|
@@ -14,5 +14,5 @@ export declare type TranslationsType = {
|
|
|
14
14
|
pickDateFromCalendar: string;
|
|
15
15
|
close: string;
|
|
16
16
|
};
|
|
17
|
-
export declare function getTranslation(locale: string | undefined, key:
|
|
17
|
+
export declare function getTranslation<K extends keyof TranslationsType>(locale: string | undefined, key: K, fallback?: any): any;
|
|
18
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.3",
|
|
4
4
|
"description": "Performant Date Picker for React Native Paper",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -54,10 +54,12 @@
|
|
|
54
54
|
"@types/jest": "^26.0.24",
|
|
55
55
|
"@types/react": "^16.14.20",
|
|
56
56
|
"@types/react-native": "^0.66.1",
|
|
57
|
+
"babel-loader": "^8.2.3",
|
|
57
58
|
"commitlint": "^11.0.0",
|
|
58
59
|
"eslint": "^7.32.0",
|
|
59
60
|
"eslint-config-prettier": "^8.3.0",
|
|
60
61
|
"eslint-plugin-prettier": "^4.0.0",
|
|
62
|
+
"expo-cli": "^5.0.3",
|
|
61
63
|
"husky": "^4.2.5",
|
|
62
64
|
"jest": "^26.0.1",
|
|
63
65
|
"pod-install": "^0.1.28",
|
|
@@ -88,7 +88,7 @@ function CalendarEdit({
|
|
|
88
88
|
validRange={validRange}
|
|
89
89
|
locale={locale}
|
|
90
90
|
withModal={false}
|
|
91
|
-
|
|
91
|
+
autoComplete={'off'}
|
|
92
92
|
/>
|
|
93
93
|
) : null}
|
|
94
94
|
{mode === 'range' ? (
|
|
@@ -104,7 +104,7 @@ function CalendarEdit({
|
|
|
104
104
|
validRange={validRange}
|
|
105
105
|
locale={locale}
|
|
106
106
|
withModal={false}
|
|
107
|
-
|
|
107
|
+
autoComplete={'off'}
|
|
108
108
|
/>
|
|
109
109
|
<View style={styles.separator} />
|
|
110
110
|
<DatePickerInput
|
|
@@ -117,7 +117,7 @@ function CalendarEdit({
|
|
|
117
117
|
validRange={validRange}
|
|
118
118
|
locale={locale}
|
|
119
119
|
withModal={false}
|
|
120
|
-
|
|
120
|
+
autoComplete="off"
|
|
121
121
|
/>
|
|
122
122
|
</>
|
|
123
123
|
) : null}
|
|
@@ -51,9 +51,6 @@ function CalendarHeader({
|
|
|
51
51
|
icon="chevron-left"
|
|
52
52
|
accessibilityLabel={getTranslation(locale, 'previous')}
|
|
53
53
|
onPress={onPrev}
|
|
54
|
-
// RN types bug
|
|
55
|
-
hasTVPreferredFocus={undefined}
|
|
56
|
-
tvParallaxProperties={undefined}
|
|
57
54
|
/>
|
|
58
55
|
</View>
|
|
59
56
|
|
|
@@ -67,9 +64,6 @@ function CalendarHeader({
|
|
|
67
64
|
icon="chevron-right"
|
|
68
65
|
accessibilityLabel={getTranslation(locale, 'next')}
|
|
69
66
|
onPress={onNext}
|
|
70
|
-
// RN types bug
|
|
71
|
-
hasTVPreferredFocus={undefined}
|
|
72
|
-
tvParallaxProperties={undefined}
|
|
73
67
|
/>
|
|
74
68
|
</View>
|
|
75
69
|
</View>
|
|
@@ -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()
|
|
@@ -59,7 +62,12 @@ function DatePickerInput(
|
|
|
59
62
|
<TextInputWithMask
|
|
60
63
|
{...rest}
|
|
61
64
|
ref={ref}
|
|
62
|
-
label={getLabel({
|
|
65
|
+
label={getLabel({
|
|
66
|
+
// TODO: support label components?
|
|
67
|
+
label: label as any,
|
|
68
|
+
inputFormat,
|
|
69
|
+
withDateFormatInLabel,
|
|
70
|
+
})}
|
|
63
71
|
value={formattedValue}
|
|
64
72
|
keyboardType={'number-pad'}
|
|
65
73
|
placeholder={inputFormat}
|
|
@@ -75,9 +83,6 @@ function DatePickerInput(
|
|
|
75
83
|
style={styles.calendarButton}
|
|
76
84
|
icon="calendar"
|
|
77
85
|
onPress={() => setVisible(true)}
|
|
78
|
-
// RN types bug
|
|
79
|
-
hasTVPreferredFocus={undefined}
|
|
80
|
-
tvParallaxProperties={undefined}
|
|
81
86
|
/>
|
|
82
87
|
) : null}
|
|
83
88
|
</View>
|
|
@@ -94,6 +99,7 @@ function DatePickerInput(
|
|
|
94
99
|
onConfirm={onInnerConfirm}
|
|
95
100
|
locale={locale}
|
|
96
101
|
dateMode={inputMode}
|
|
102
|
+
validRange={validRange}
|
|
97
103
|
/>
|
|
98
104
|
) : null}
|
|
99
105
|
</>
|
|
@@ -122,11 +128,10 @@ const styles = StyleSheet.create({
|
|
|
122
128
|
position: 'relative',
|
|
123
129
|
alignItems: 'center',
|
|
124
130
|
flexGrow: 1,
|
|
125
|
-
alignSelf: 'flex-start',
|
|
126
131
|
},
|
|
127
132
|
input: {
|
|
128
133
|
flexGrow: 1,
|
|
129
134
|
},
|
|
130
|
-
calendarButton: { position: 'absolute', right: 0 },
|
|
135
|
+
calendarButton: { position: 'absolute', right: 0, zIndex: 10 },
|
|
131
136
|
})
|
|
132
137
|
export default React.forwardRef(DatePickerInput)
|
|
@@ -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} />
|
|
@@ -86,9 +88,6 @@ export default function DatePickerModalContentHeader(
|
|
|
86
88
|
}
|
|
87
89
|
color={color}
|
|
88
90
|
onPress={onToggle}
|
|
89
|
-
// RN types bug
|
|
90
|
-
hasTVPreferredFocus={undefined}
|
|
91
|
-
tvParallaxProperties={undefined}
|
|
92
91
|
/>
|
|
93
92
|
) : null}
|
|
94
93
|
</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
|
|
@@ -35,14 +36,12 @@ export default function DatePickerModalHeader(
|
|
|
35
36
|
onPress={props.onDismiss}
|
|
36
37
|
color={color}
|
|
37
38
|
testID="react-native-paper-dates-close"
|
|
38
|
-
// RN types bug
|
|
39
|
-
hasTVPreferredFocus={undefined}
|
|
40
|
-
tvParallaxProperties={undefined}
|
|
41
39
|
/>
|
|
42
40
|
<Appbar.Content title={''} />
|
|
43
41
|
<Button
|
|
44
42
|
color={color}
|
|
45
43
|
onPress={props.onSave}
|
|
44
|
+
uppercase={props.uppercase ?? true}
|
|
46
45
|
testID="react-native-paper-dates-save"
|
|
47
46
|
>
|
|
48
47
|
{saveLabel}
|
|
@@ -50,13 +50,7 @@ export default function DateRangeInput({ locale }: { locale: string }) {
|
|
|
50
50
|
<Text>Tot</Text>
|
|
51
51
|
</View>
|
|
52
52
|
<View>
|
|
53
|
-
<IconButton
|
|
54
|
-
icon="calendar"
|
|
55
|
-
onPress={() => setVisible(true)}
|
|
56
|
-
// RN types bug
|
|
57
|
-
hasTVPreferredFocus={undefined}
|
|
58
|
-
tvParallaxProperties={undefined}
|
|
59
|
-
/>
|
|
53
|
+
<IconButton icon="calendar" onPress={() => setVisible(true)} />
|
|
60
54
|
<Text style={{ opacity: 0 }} accessible={false}>
|
|
61
55
|
tot
|
|
62
56
|
</Text>
|
package/src/Date/Day.tsx
CHANGED
package/src/Date/Month.tsx
CHANGED
|
@@ -268,9 +268,6 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
|
|
|
268
268
|
borderRadius: roundness,
|
|
269
269
|
},
|
|
270
270
|
]}
|
|
271
|
-
// RN types bug
|
|
272
|
-
hasTVPreferredFocus={undefined}
|
|
273
|
-
tvParallaxProperties={undefined}
|
|
274
271
|
>
|
|
275
272
|
<View
|
|
276
273
|
style={[
|
|
@@ -290,9 +287,6 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
|
|
|
290
287
|
<IconButton
|
|
291
288
|
onPress={isHorizontal ? () => onPressYear(year) : undefined}
|
|
292
289
|
icon={selectingYear ? 'chevron-up' : 'chevron-down'}
|
|
293
|
-
// RN types bug
|
|
294
|
-
hasTVPreferredFocus={undefined}
|
|
295
|
-
tvParallaxProperties={undefined}
|
|
296
290
|
/>
|
|
297
291
|
</View>
|
|
298
292
|
</View>
|
package/src/Date/YearPicker.tsx
CHANGED
package/src/Date/inputUtils.ts
CHANGED
|
@@ -55,22 +55,26 @@ export default function useDateInput({
|
|
|
55
55
|
let errors =
|
|
56
56
|
validStart && validEnd
|
|
57
57
|
? [
|
|
58
|
-
`${getTranslation(
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
`${getTranslation(
|
|
59
|
+
locale,
|
|
60
|
+
'mustBeBetween',
|
|
61
|
+
() => 'mustBeBetween'
|
|
62
|
+
)(formatter.format(validStart), formatter.format(validEnd))}`,
|
|
61
63
|
]
|
|
62
64
|
: [
|
|
63
65
|
validStart
|
|
64
|
-
?
|
|
66
|
+
? getTranslation(
|
|
65
67
|
locale,
|
|
66
|
-
'mustBeHigherThan'
|
|
67
|
-
|
|
68
|
+
'mustBeHigherThan',
|
|
69
|
+
() => 'mustBeHigherThan'
|
|
70
|
+
)(formatter.format(validStart))
|
|
68
71
|
: '',
|
|
69
72
|
validEnd
|
|
70
|
-
?
|
|
73
|
+
? getTranslation(
|
|
71
74
|
locale,
|
|
72
|
-
'mustBeLowerThan'
|
|
73
|
-
|
|
75
|
+
'mustBeLowerThan',
|
|
76
|
+
() => 'mustBeLowerThan'
|
|
77
|
+
)(formatter.format(validEnd))
|
|
74
78
|
: '',
|
|
75
79
|
]
|
|
76
80
|
setError(errors.filter((n) => n).join(' '))
|
package/src/Time/TimeInput.tsx
CHANGED
|
@@ -96,9 +96,6 @@ function TimeInput(
|
|
|
96
96
|
rippleColor={Color(theme.colors.primary).fade(0.7).hex()}
|
|
97
97
|
onPress={() => onPress(clockType)}
|
|
98
98
|
borderless={true}
|
|
99
|
-
// RN types bug
|
|
100
|
-
hasTVPreferredFocus={undefined}
|
|
101
|
-
tvParallaxProperties={undefined}
|
|
102
99
|
>
|
|
103
100
|
<View />
|
|
104
101
|
</TouchableRipple>
|