@rc-component/picker 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/es/PickerInput/RangePicker.js +4 -2
  2. package/es/PickerInput/SinglePicker.js +4 -2
  3. package/es/PickerInput/context.d.ts +3 -1
  4. package/es/PickerInput/hooks/useRangeValue.js +2 -1
  5. package/es/PickerPanel/PanelBody.js +7 -3
  6. package/es/PickerPanel/context.d.ts +3 -1
  7. package/es/PickerPanel/index.d.ts +5 -0
  8. package/es/PickerPanel/index.js +18 -5
  9. package/es/interface.d.ts +1 -1
  10. package/es/locale/am_ET.js +0 -2
  11. package/es/locale/ar_EG.js +0 -2
  12. package/es/locale/az_AZ.js +0 -2
  13. package/es/locale/bg_BG.js +0 -2
  14. package/es/locale/bn_BD.js +0 -2
  15. package/es/locale/by_BY.js +0 -2
  16. package/es/locale/ca_ES.js +0 -2
  17. package/es/locale/cs_CZ.js +0 -2
  18. package/es/locale/da_DK.js +0 -2
  19. package/es/locale/de_DE.js +0 -2
  20. package/es/locale/el_GR.js +0 -2
  21. package/es/locale/en_GB.js +0 -2
  22. package/es/locale/en_US.js +0 -2
  23. package/es/locale/es_ES.js +0 -2
  24. package/es/locale/es_MX.js +0 -2
  25. package/es/locale/et_EE.js +0 -2
  26. package/es/locale/eu_ES.js +0 -2
  27. package/es/locale/fa_IR.js +0 -2
  28. package/es/locale/fi_FI.js +0 -2
  29. package/es/locale/fr_BE.js +0 -2
  30. package/es/locale/fr_CA.js +0 -2
  31. package/es/locale/fr_FR.js +0 -2
  32. package/es/locale/ga_IE.js +0 -2
  33. package/es/locale/gl_ES.js +0 -2
  34. package/es/locale/he_IL.js +0 -2
  35. package/es/locale/hi_IN.js +0 -2
  36. package/es/locale/hr_HR.js +0 -2
  37. package/es/locale/hu_HU.js +0 -4
  38. package/es/locale/id_ID.js +0 -2
  39. package/es/locale/is_IS.js +0 -2
  40. package/es/locale/it_IT.js +3 -3
  41. package/es/locale/ja_JP.js +0 -2
  42. package/es/locale/ka_GE.js +0 -2
  43. package/es/locale/kk_KZ.js +0 -2
  44. package/es/locale/km_KH.js +0 -2
  45. package/es/locale/kmr_IQ.js +0 -2
  46. package/es/locale/kn_IN.js +0 -2
  47. package/es/locale/ko_KR.js +0 -2
  48. package/es/locale/lt_LT.js +0 -2
  49. package/es/locale/lv_LV.js +0 -2
  50. package/es/locale/mk_MK.js +0 -2
  51. package/es/locale/ml_IN.js +0 -2
  52. package/es/locale/mn_MN.js +0 -2
  53. package/es/locale/ms_MY.js +0 -2
  54. package/es/locale/my_MM.js +0 -2
  55. package/es/locale/nb_NO.js +0 -2
  56. package/es/locale/ne_NP.js +0 -2
  57. package/es/locale/nl_BE.js +0 -2
  58. package/es/locale/nl_NL.js +0 -2
  59. package/es/locale/pl_PL.js +0 -2
  60. package/es/locale/pt_BR.js +0 -2
  61. package/es/locale/pt_PT.js +0 -2
  62. package/es/locale/ro_RO.js +0 -2
  63. package/es/locale/ru_RU.js +0 -2
  64. package/es/locale/si_LK.js +0 -2
  65. package/es/locale/sk_SK.js +0 -2
  66. package/es/locale/sl_SI.js +0 -2
  67. package/es/locale/sr_Cyrl_RS.js +0 -2
  68. package/es/locale/sr_RS.js +0 -2
  69. package/es/locale/sv_SE.js +0 -2
  70. package/es/locale/ta_IN.js +0 -2
  71. package/es/locale/th_TH.js +0 -2
  72. package/es/locale/tk_TK.js +0 -2
  73. package/es/locale/tr_TR.js +0 -2
  74. package/es/locale/ug_CN.js +0 -2
  75. package/es/locale/uk_UA.js +0 -2
  76. package/es/locale/ur_PK.js +0 -2
  77. package/es/locale/uz_UZ.js +0 -2
  78. package/es/locale/vi_VN.js +0 -2
  79. package/es/locale/zh_TW.js +0 -2
  80. package/lib/PickerInput/RangePicker.js +4 -2
  81. package/lib/PickerInput/SinglePicker.js +4 -2
  82. package/lib/PickerInput/context.d.ts +3 -1
  83. package/lib/PickerInput/hooks/useRangeValue.js +2 -1
  84. package/lib/PickerPanel/PanelBody.js +7 -3
  85. package/lib/PickerPanel/context.d.ts +3 -1
  86. package/lib/PickerPanel/index.d.ts +5 -0
  87. package/lib/PickerPanel/index.js +18 -5
  88. package/lib/interface.d.ts +1 -1
  89. package/lib/locale/am_ET.js +0 -2
  90. package/lib/locale/ar_EG.js +0 -2
  91. package/lib/locale/az_AZ.js +0 -2
  92. package/lib/locale/bg_BG.js +0 -2
  93. package/lib/locale/bn_BD.js +0 -2
  94. package/lib/locale/by_BY.js +0 -2
  95. package/lib/locale/ca_ES.js +0 -2
  96. package/lib/locale/cs_CZ.js +0 -2
  97. package/lib/locale/da_DK.js +0 -2
  98. package/lib/locale/de_DE.js +0 -2
  99. package/lib/locale/el_GR.js +0 -2
  100. package/lib/locale/en_GB.js +0 -2
  101. package/lib/locale/en_US.js +0 -2
  102. package/lib/locale/es_ES.js +0 -2
  103. package/lib/locale/es_MX.js +0 -2
  104. package/lib/locale/et_EE.js +0 -2
  105. package/lib/locale/eu_ES.js +0 -2
  106. package/lib/locale/fa_IR.js +0 -2
  107. package/lib/locale/fi_FI.js +0 -2
  108. package/lib/locale/fr_BE.js +0 -2
  109. package/lib/locale/fr_CA.js +0 -2
  110. package/lib/locale/fr_FR.js +0 -2
  111. package/lib/locale/ga_IE.js +0 -2
  112. package/lib/locale/gl_ES.js +0 -2
  113. package/lib/locale/he_IL.js +0 -2
  114. package/lib/locale/hi_IN.js +0 -2
  115. package/lib/locale/hr_HR.js +0 -2
  116. package/lib/locale/hu_HU.js +0 -4
  117. package/lib/locale/id_ID.js +0 -2
  118. package/lib/locale/is_IS.js +0 -2
  119. package/lib/locale/it_IT.js +3 -3
  120. package/lib/locale/ja_JP.js +0 -2
  121. package/lib/locale/ka_GE.js +0 -2
  122. package/lib/locale/kk_KZ.js +0 -2
  123. package/lib/locale/km_KH.js +0 -2
  124. package/lib/locale/kmr_IQ.js +0 -2
  125. package/lib/locale/kn_IN.js +0 -2
  126. package/lib/locale/ko_KR.js +0 -2
  127. package/lib/locale/lt_LT.js +0 -2
  128. package/lib/locale/lv_LV.js +0 -2
  129. package/lib/locale/mk_MK.js +0 -2
  130. package/lib/locale/ml_IN.js +0 -2
  131. package/lib/locale/mn_MN.js +0 -2
  132. package/lib/locale/ms_MY.js +0 -2
  133. package/lib/locale/my_MM.js +0 -2
  134. package/lib/locale/nb_NO.js +0 -2
  135. package/lib/locale/ne_NP.js +0 -2
  136. package/lib/locale/nl_BE.js +0 -2
  137. package/lib/locale/nl_NL.js +0 -2
  138. package/lib/locale/pl_PL.js +0 -2
  139. package/lib/locale/pt_BR.js +0 -2
  140. package/lib/locale/pt_PT.js +0 -2
  141. package/lib/locale/ro_RO.js +0 -2
  142. package/lib/locale/ru_RU.js +0 -2
  143. package/lib/locale/si_LK.js +0 -2
  144. package/lib/locale/sk_SK.js +0 -2
  145. package/lib/locale/sl_SI.js +0 -2
  146. package/lib/locale/sr_Cyrl_RS.js +0 -2
  147. package/lib/locale/sr_RS.js +0 -2
  148. package/lib/locale/sv_SE.js +0 -2
  149. package/lib/locale/ta_IN.js +0 -2
  150. package/lib/locale/th_TH.js +0 -2
  151. package/lib/locale/tk_TK.js +0 -2
  152. package/lib/locale/tr_TR.js +0 -2
  153. package/lib/locale/ug_CN.js +0 -2
  154. package/lib/locale/uk_UA.js +0 -2
  155. package/lib/locale/ur_PK.js +0 -2
  156. package/lib/locale/uz_UZ.js +0 -2
  157. package/lib/locale/vi_VN.js +0 -2
  158. package/lib/locale/zh_TW.js +0 -2
  159. package/package.json +1 -1
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'മാസം തിരഞ്ഞെടുക്കുക',
22
22
  yearSelect: 'വർഷം തിരഞ്ഞെടുക്കുക',
23
23
  decadeSelect: 'ദശാബ്ദം തിരഞ്ഞെടുക്കുക',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'കഴിഞ്ഞ മാസം (PageUp)',
27
25
  nextMonth: 'അടുത്ത മാസം (PageDown)',
28
26
  previousYear: 'കഴിഞ്ഞ വർഷം (Control + left)',
@@ -21,9 +21,7 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Сар сонгох',
22
22
  yearSelect: 'Жил сонгох',
23
23
  decadeSelect: 'Арван сонгох',
24
- dateFormat: 'YYYY/MM/DD',
25
24
  dayFormat: 'DD',
26
- dateTimeFormat: 'YYYY/MM/DD HH:mm:ss',
27
25
  previousMonth: 'Өмнөх сар (PageUp)',
28
26
  nextMonth: 'Дараа сар (PageDown)',
29
27
  previousYear: 'Өмнөх жил (Control + left)',
@@ -23,8 +23,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
23
23
  monthSelect: 'Pilih bulan',
24
24
  yearSelect: 'Pilih tahun',
25
25
  decadeSelect: 'Pilih dekad',
26
- dateFormat: 'M/D/YYYY',
27
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
28
26
  previousYear: 'Tahun lepas (Ctrl+left)',
29
27
  nextYear: 'Tahun depan (Ctrl+right)',
30
28
  previousDecade: 'Dekad lepas',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'လကိုရွေး',
22
22
  yearSelect: 'နှစ်ကိုရွေး',
23
23
  decadeSelect: 'ဆယ်စုနှစ်ကိုရွေး',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'ယခင်လ (PageUp)',
27
25
  nextMonth: 'နောက်လ (PageDown)',
28
26
  previousYear: 'ယခင်နှစ် (Control + left)',
@@ -21,9 +21,7 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Velg måned',
22
22
  yearSelect: 'Velg år',
23
23
  decadeSelect: 'Velg tiår',
24
- dateFormat: 'DD.MM.YYYY',
25
24
  dayFormat: 'DD',
26
- dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
27
25
  previousMonth: 'Forrige måned (PageUp)',
28
26
  nextMonth: 'Neste måned (PageDown)',
29
27
  previousYear: 'Forrige år (Control + venstre)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'एक महिना छान्नुहोस्',
22
22
  yearSelect: 'एक वर्ष छान्नुहोस्',
23
23
  decadeSelect: 'एक दशक छान्नुहोस्',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'अघिल्लो महिना (पृष्ठ माथि)',
27
25
  nextMonth: 'अर्को महिना (पृष्ठ तल)',
28
26
  previousYear: 'गत वर्ष (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Kies een maand',
21
21
  yearSelect: 'Kies een jaar',
22
22
  decadeSelect: 'Kies een decennium',
23
- dateFormat: 'D-M-YYYY',
24
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
25
23
  previousMonth: 'Vorige maand (PageUp)',
26
24
  nextMonth: 'Volgende maand (PageDown)',
27
25
  previousYear: 'Vorig jaar (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Kies een maand',
21
21
  yearSelect: 'Kies een jaar',
22
22
  decadeSelect: 'Kies een decennium',
23
- dateFormat: 'D-M-YYYY',
24
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
25
23
  previousMonth: 'Vorige maand (PageUp)',
26
24
  nextMonth: 'Volgende maand (PageDown)',
27
25
  previousYear: 'Vorig jaar (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Wybierz miesiąc',
21
21
  yearSelect: 'Wybierz rok',
22
22
  decadeSelect: 'Wybierz dekadę',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Poprzedni miesiąc (PageUp)',
26
24
  nextMonth: 'Następny miesiąc (PageDown)',
27
25
  previousYear: 'Ostatni rok (Ctrl + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Escolher mês',
21
21
  yearSelect: 'Escolher ano',
22
22
  decadeSelect: 'Escolher década',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  monthBeforeYear: false,
26
24
  previousMonth: 'Mês anterior (PageUp)',
27
25
  nextMonth: 'Próximo mês (PageDown)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Selecionar mês',
21
21
  yearSelect: 'Selecionar ano',
22
22
  decadeSelect: 'Selecionar década',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Mês anterior (PageUp)',
26
24
  nextMonth: 'Mês seguinte (PageDown)',
27
25
  previousYear: 'Ano anterior (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Alege o lună',
22
22
  yearSelect: 'Alege un an',
23
23
  decadeSelect: 'Alege un deceniu',
24
- dateFormat: 'D/M/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'Luna anterioară (PageUp)',
27
25
  nextMonth: 'Luna următoare (PageDown)',
28
26
  previousYear: 'Anul anterior (Control + stânga)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Выбрать месяц',
21
21
  yearSelect: 'Выбрать год',
22
22
  decadeSelect: 'Выбрать десятилетие',
23
- dateFormat: 'D-M-YYYY',
24
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
25
23
  previousMonth: 'Предыдущий месяц (PageUp)',
26
24
  nextMonth: 'Следующий месяц (PageDown)',
27
25
  previousYear: 'Предыдущий год (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'මාසයක් තෝරන්න',
22
22
  yearSelect: 'අවුරුද්දක් තෝරන්න',
23
23
  decadeSelect: 'දශකයක් තෝරන්න',
24
- dateFormat: 'YYYY/M/D',
25
- dateTimeFormat: 'YYYY/M/D HH:mm:ss',
26
24
  monthBeforeYear: false,
27
25
  previousMonth: 'කලින් මාසය (පිටුව ඉහළට)',
28
26
  nextMonth: 'ඊළඟ මාසය (පිටුව පහළට)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Vybrať mesiac',
21
21
  yearSelect: 'Vybrať rok',
22
22
  decadeSelect: 'Vybrať dekádu',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Predchádzajúci mesiac (PageUp)',
26
24
  nextMonth: 'Nasledujúci mesiac (PageDown)',
27
25
  previousYear: 'Predchádzajúci rok (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Izberite mesec',
21
21
  yearSelect: 'Izberite leto',
22
22
  decadeSelect: 'Izberite desetletje',
23
- dateFormat: 'DD.MM.YYYY',
24
- dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
25
23
  previousMonth: 'Prejšnji mesec (PageUp)',
26
24
  nextMonth: 'Naslednji mesec (PageDown)',
27
25
  previousYear: 'Prejšnje leto (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Изабери месец',
21
21
  yearSelect: 'Изабери годину',
22
22
  decadeSelect: 'Изабери деценију',
23
- dateFormat: 'DD.MM.YYYY',
24
- dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
25
23
  previousMonth: 'Претходни месец (PageUp)',
26
24
  nextMonth: 'Следећи месец (PageDown)',
27
25
  previousYear: 'Претходна година (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Izaberi mesec',
21
21
  yearSelect: 'Izaberi godinu',
22
22
  decadeSelect: 'Izaberi deceniju',
23
- dateFormat: 'DD.MM.YYYY',
24
- dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
25
23
  previousMonth: 'Prethodni mesec (PageUp)',
26
24
  nextMonth: 'Sledeći mesec (PageDown)',
27
25
  previousYear: 'Prethodna godina (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Välj månad',
21
21
  yearSelect: 'Välj år',
22
22
  decadeSelect: 'Välj årtionde',
23
- dateFormat: 'YYYY-MM-DD',
24
- dateTimeFormat: 'YYYY-MM-DD H:mm:ss',
25
23
  previousMonth: 'Förra månaden (PageUp)',
26
24
  nextMonth: 'Nästa månad (PageDown)',
27
25
  previousYear: 'Föreg år (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'மாதத்தைத் தேர்வுசெய்க',
22
22
  yearSelect: 'வருடத்தைத் தேர்வுசெய்க',
23
23
  decadeSelect: 'தசாப்தத்தைத் தேர்வுசெய்க',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'முந்தைய மாதம் (PageUp)',
27
25
  nextMonth: 'அடுத்த மாதம் (PageDown)',
28
26
  previousYear: 'முந்தைய வருடம் (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'เลือกเดือน',
21
21
  yearSelect: 'เลือกปี',
22
22
  decadeSelect: 'เลือกทศวรรษ',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'เดือนก่อนหน้า (PageUp)',
26
24
  nextMonth: 'เดือนถัดไป (PageDown)',
27
25
  previousYear: 'ปีก่อนหน้า (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Aý saýla',
21
21
  yearSelect: 'Ýyl saýla',
22
22
  decadeSelect: 'On ýyllygy saýla',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Öňki aý (PageUp)',
26
24
  nextMonth: 'Soňky aý (PageDown)',
27
25
  previousYear: 'Öňki ýyl (Control + çep)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Ay Seç',
21
21
  yearSelect: 'Yıl Seç',
22
22
  decadeSelect: 'On Yıl Seç',
23
- dateFormat: 'DD/MM/YYYY',
24
- dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
25
23
  previousMonth: 'Önceki Ay (PageUp)',
26
24
  nextMonth: 'Sonraki Ay (PageDown)',
27
25
  previousYear: 'Önceki Yıl (Control + Sol)',
@@ -24,8 +24,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
24
24
  decadeSelect: 'يىللارنى تاللاش',
25
25
  yearFormat: 'YYYY-يىلى',
26
26
  dayFormat: 'D-كۈنى',
27
- dateFormat: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
28
- dateTimeFormat: 'YYYY-يىلىM—ئاينىڭD-كۈنى، HH:mm:ss',
29
27
  previousYear: 'ئالدىنقى يىلى (Controlبىلەن يۆنىلىش كونۇپكىسى)',
30
28
  nextYear: 'كېلەركى يىلى (Controlبىلەن يۆنىلىش كونۇپكىسى)',
31
29
  previousDecade: 'ئالدىنقى يىللار',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Обрати місяць',
21
21
  yearSelect: 'Обрати рік',
22
22
  decadeSelect: 'Обрати десятиріччя',
23
- dateFormat: 'D-M-YYYY',
24
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
25
23
  previousMonth: 'Попередній місяць (PageUp)',
26
24
  nextMonth: 'Наступний місяць (PageDown)',
27
25
  previousYear: 'Попередній рік (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'ایک مہینہ کا انتخاب کریں',
22
22
  yearSelect: 'ایک سال کا انتخاب کریں',
23
23
  decadeSelect: 'ایک دہائی کا انتخاب کریں',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'پچھلے مہینے (PageUp)',
27
25
  nextMonth: 'اگلے مہینے (PageDown)',
28
26
  previousYear: 'گزشتہ سال (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Oyni tanlang',
22
22
  yearSelect: 'Yilni tanlang',
23
23
  decadeSelect: "O'n yilni tanlang",
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'Oldingi oy (PageUp)',
27
25
  nextMonth: 'Keyingi oy (PageDown)',
28
26
  previousYear: "O'tgan yili (Control + left)",
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Chọn tháng',
22
22
  yearSelect: 'Chọn năm',
23
23
  decadeSelect: 'Chọn thập kỷ',
24
- dateFormat: 'D/M/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'Tháng trước (PageUp)',
27
25
  nextMonth: 'Tháng sau (PageDown)',
28
26
  previousYear: 'Năm trước (Control + left)',
@@ -24,8 +24,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
24
24
  yearSelect: '選擇年份',
25
25
  decadeSelect: '選擇年代',
26
26
  yearFormat: 'YYYY年',
27
- dateFormat: 'YYYY年M月D日',
28
- dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒',
29
27
  previousYear: '上一年 (Control鍵加左方向鍵)',
30
28
  nextYear: '下一年 (Control鍵加右方向鍵)',
31
29
  previousDecade: '上一年代',
@@ -533,9 +533,11 @@ function RangePicker(props, ref) {
533
533
  locale: locale,
534
534
  generateConfig: generateConfig,
535
535
  button: components.button,
536
- input: components.input
536
+ input: components.input,
537
+ styles: styles,
538
+ classNames: classNames
537
539
  };
538
- }, [prefixCls, locale, generateConfig, components.button, components.input]);
540
+ }, [prefixCls, locale, generateConfig, components.button, components.input, classNames, styles]);
539
541
 
540
542
  // ======================== Effect ========================
541
543
  // >>> Mode
@@ -454,9 +454,11 @@ function Picker(props, ref) {
454
454
  locale: locale,
455
455
  generateConfig: generateConfig,
456
456
  button: components.button,
457
- input: components.input
457
+ input: components.input,
458
+ styles: styles,
459
+ classNames: classNames
458
460
  };
459
- }, [prefixCls, locale, generateConfig, components.button, components.input]);
461
+ }, [prefixCls, locale, generateConfig, components.button, components.input, styles, classNames]);
460
462
 
461
463
  // ======================== Effect ========================
462
464
  // >>> Mode
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GenerateConfig } from '../generate';
3
- import type { Components, Locale } from '../interface';
3
+ import type { Components, Locale, SemanticStructure } from '../interface';
4
4
  export interface PickerContextProps<DateType = any> {
5
5
  prefixCls: string;
6
6
  locale: Locale;
@@ -8,6 +8,8 @@ export interface PickerContextProps<DateType = any> {
8
8
  /** Customize button component */
9
9
  button?: Components['button'];
10
10
  input?: Components['input'];
11
+ styles?: Partial<Record<SemanticStructure, React.CSSProperties>>;
12
+ classNames?: Partial<Record<SemanticStructure, string>>;
11
13
  }
12
14
  declare const PickerContext: React.Context<PickerContextProps<any>>;
13
15
  export default PickerContext;
@@ -111,9 +111,10 @@ rangeValue,
111
111
  * So when `rangeValue` is `true`, order will be ignored.
112
112
  */
113
113
  order, defaultValue, value, onCalendarChange, onOk) {
114
+ var isNullValue = value === null;
114
115
  // This is the root value which will sync with controlled or uncontrolled value
115
116
  var _useMergedState = (0, _util.useMergedState)(defaultValue, {
116
- value: value
117
+ value: isNullValue ? undefined : value
117
118
  }),
118
119
  _useMergedState2 = _slicedToArray(_useMergedState, 2),
119
120
  innerValue = _useMergedState2[0],
@@ -55,7 +55,9 @@ function PanelBody(props) {
55
55
 
56
56
  // ============================= Context ==============================
57
57
  var _React$useContext = React.useContext(_context.PickerHackContext),
58
- onCellDblClick = _React$useContext.onCellDblClick;
58
+ onCellDblClick = _React$useContext.onCellDblClick,
59
+ pickerClassNames = _React$useContext.classNames,
60
+ styles = _React$useContext.styles;
59
61
 
60
62
  // ============================== Value ===============================
61
63
  var matchValues = function matchValues(date) {
@@ -155,8 +157,10 @@ function PanelBody(props) {
155
157
 
156
158
  // ============================== Render ==============================
157
159
  return /*#__PURE__*/React.createElement("div", {
158
- className: "".concat(prefixCls, "-body")
160
+ className: (0, _classnames.default)("".concat(prefixCls, "-body"), pickerClassNames === null || pickerClassNames === void 0 ? void 0 : pickerClassNames.popupBody),
161
+ style: styles === null || styles === void 0 ? void 0 : styles.popupBody
159
162
  }, /*#__PURE__*/React.createElement("table", {
160
- className: "".concat(prefixCls, "-content")
163
+ className: (0, _classnames.default)("".concat(prefixCls, "-content"), pickerClassNames === null || pickerClassNames === void 0 ? void 0 : pickerClassNames.popupContent),
164
+ style: styles === null || styles === void 0 ? void 0 : styles.popupContent
161
165
  }, headerCells && /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, headerCells)), /*#__PURE__*/React.createElement("tbody", null, rows)));
162
166
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PanelMode, SharedPanelProps } from '../interface';
2
+ import type { PanelMode, SemanticStructure, SharedPanelProps } from '../interface';
3
3
  export interface PanelContextProps<DateType extends object = any> extends Pick<SharedPanelProps<DateType>, 'prefixCls' | 'cellRender' | 'generateConfig' | 'locale' | 'onSelect' | 'hoverValue' | 'hoverRangeValue' | 'onHover' | 'values' | 'pickerValue' | 'disabledDate' | 'minDate' | 'maxDate' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> {
4
4
  /** Tell current panel type */
5
5
  panelType: PanelMode;
@@ -17,6 +17,8 @@ export interface PickerHackContextProps {
17
17
  hideNext?: boolean;
18
18
  hideHeader?: boolean;
19
19
  onCellDblClick?: () => void;
20
+ styles?: Partial<Record<SemanticStructure, React.CSSProperties>>;
21
+ classNames?: Partial<Record<SemanticStructure, string>>;
20
22
  }
21
23
  /**
22
24
  * Internal usage for RangePicker to not to show the operation arrow
@@ -43,12 +43,15 @@ export interface SinglePickerPanelProps<DateType extends object = any> extends B
43
43
  value?: DateType | null;
44
44
  onChange?: (date: DateType) => void;
45
45
  }
46
+ type PanelSemanticName = 'popupBody' | 'popupContent';
46
47
  export type PickerPanelProps<DateType extends object = any> = BasePickerPanelProps<DateType> & {
47
48
  /** multiple selection. Not support time or datetime picker */
48
49
  multiple?: boolean;
49
50
  defaultValue?: DateType | DateType[] | null;
50
51
  value?: DateType | DateType[] | null;
51
52
  onChange?: (date: DateType | DateType[]) => void;
53
+ styles?: Partial<Record<PanelSemanticName, React.CSSProperties>>;
54
+ classNames?: Partial<Record<PanelSemanticName, string>>;
52
55
  };
53
56
  declare const _default: <DateType extends object = any>(props: BasePickerPanelProps<DateType> & {
54
57
  /** multiple selection. Not support time or datetime picker */
@@ -56,5 +59,7 @@ declare const _default: <DateType extends object = any>(props: BasePickerPanelPr
56
59
  defaultValue?: DateType | DateType[];
57
60
  value?: DateType | DateType[];
58
61
  onChange?: (date: DateType | DateType[]) => void;
62
+ styles?: Partial<Record<PanelSemanticName, React.CSSProperties>>;
63
+ classNames?: Partial<Record<PanelSemanticName, string>>;
59
64
  } & React.RefAttributes<PickerPanelRef>) => React.ReactElement;
60
65
  export default _default;
@@ -54,8 +54,9 @@ var DefaultComponents = {
54
54
  time: _TimePanel.default
55
55
  };
56
56
  function PickerPanel(props, ref) {
57
- var _React$useContext;
58
- var locale = props.locale,
57
+ var panelClassNames = props.classNames,
58
+ panelStyles = props.styles,
59
+ locale = props.locale,
59
60
  generateConfig = props.generateConfig,
60
61
  direction = props.direction,
61
62
  prefixCls = props.prefixCls,
@@ -82,7 +83,15 @@ function PickerPanel(props, ref) {
82
83
  _props$components = props.components,
83
84
  components = _props$components === void 0 ? {} : _props$components,
84
85
  hideHeader = props.hideHeader;
85
- var mergedPrefixCls = ((_React$useContext = React.useContext(_context.default)) === null || _React$useContext === void 0 ? void 0 : _React$useContext.prefixCls) || prefixCls || 'rc-picker';
86
+
87
+ // ======================== Context ========================
88
+ var _ref = React.useContext(_context.default) || {},
89
+ contextPrefixCls = _ref.prefixCls,
90
+ pickerClassNames = _ref.classNames,
91
+ pickerStyles = _ref.styles;
92
+
93
+ // ======================== prefixCls ========================
94
+ var mergedPrefixCls = contextPrefixCls || prefixCls || 'rc-picker';
86
95
 
87
96
  // ========================== Refs ==========================
88
97
  var rootRef = React.useRef();
@@ -255,12 +264,16 @@ function PickerPanel(props, ref) {
255
264
  var PanelComponent = components[internalMode] || DefaultComponents[internalMode] || _DatePanel.default;
256
265
 
257
266
  // ======================== Context =========================
267
+ var mergedStyles = pickerStyles !== null && pickerStyles !== void 0 ? pickerStyles : panelStyles;
268
+ var mergedClassNames = pickerClassNames !== null && pickerClassNames !== void 0 ? pickerClassNames : panelClassNames;
258
269
  var parentHackContext = React.useContext(_context2.PickerHackContext);
259
270
  var pickerPanelContext = React.useMemo(function () {
260
271
  return _objectSpread(_objectSpread({}, parentHackContext), {}, {
261
- hideHeader: hideHeader
272
+ hideHeader: hideHeader,
273
+ classNames: mergedClassNames,
274
+ styles: mergedStyles
262
275
  });
263
- }, [parentHackContext, hideHeader]);
276
+ }, [parentHackContext, hideHeader, mergedClassNames, mergedStyles]);
264
277
 
265
278
  // ======================== Warnings ========================
266
279
  if (process.env.NODE_ENV !== 'production') {
@@ -201,7 +201,7 @@ export type Components<DateType extends object = any> = Partial<Record<InternalM
201
201
  button?: React.ComponentType<any> | string;
202
202
  input?: React.ComponentType<any> | string;
203
203
  }>;
204
- export type SemanticStructure = 'popup';
204
+ export type SemanticStructure = 'popup' | 'popupBody' | 'popupContent';
205
205
  export type CustomFormat<DateType> = (value: DateType) => string;
206
206
  export type FormatType<DateType = any> = string | CustomFormat<DateType>;
207
207
  export type SharedHTMLAttrs = Omit<React.InputHTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'onChange' | 'placeholder' | 'id' | 'onInvalid' | 'disabled' | 'onFocus' | 'onBlur' | 'onSelect' | 'min' | 'max' | 'onKeyDown' | 'size' | 'prefix'>;
@@ -21,9 +21,7 @@ var locale = {
21
21
  yearSelect: 'አመት ምረጥ',
22
22
  decadeSelect: 'አስርት አመታት ምረጥ',
23
23
  yearFormat: 'YYYY',
24
- dateFormat: 'D/M/YYYY',
25
24
  dayFormat: 'D',
26
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
27
25
  monthBeforeYear: true,
28
26
  previousMonth: 'ያለፈው ወር (PageUp)',
29
27
  nextMonth: 'ቀጣይ ወር (PageDown)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'اختيار الشهر',
27
27
  yearSelect: 'اختيار السنة',
28
28
  decadeSelect: 'اختيار العقد',
29
- dateFormat: 'M/D/YYYY',
30
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
31
29
  previousMonth: 'الشهر السابق (PageUp)',
32
30
  nextMonth: 'الشهر التالى(PageDown)',
33
31
  previousYear: 'العام السابق (Control + left)',
@@ -27,8 +27,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
27
27
  monthSelect: 'Ay seç',
28
28
  yearSelect: 'il seç',
29
29
  decadeSelect: 'Onillik seçin',
30
- dateFormat: 'D.M.YYYY',
31
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
32
30
  previousMonth: 'Əvvəlki ay (PageUp)',
33
31
  nextMonth: 'Növbəti ay (PageDown)',
34
32
  previousYear: 'Sonuncu il (Control + left)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Избор на месец',
27
27
  yearSelect: 'Избор на година',
28
28
  decadeSelect: 'Десетилетие',
29
- dateFormat: 'D M YYYY',
30
- dateTimeFormat: 'D M YYYY HH:mm:ss',
31
29
  previousMonth: 'Предишен месец (PageUp)',
32
30
  nextMonth: 'Следващ месец (PageDown)',
33
31
  previousYear: 'Последна година (Control + left)',
@@ -27,8 +27,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
27
27
  monthSelect: 'মাস পছন্দ করুন',
28
28
  yearSelect: 'বছর পছন্দ করুন',
29
29
  decadeSelect: 'একটি দশক পছন্দ করুন',
30
- dateFormat: 'M/D/YYYY',
31
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
32
30
  previousMonth: 'গত মাস (PageUp)',
33
31
  nextMonth: 'আগামী মাস (PageDown)',
34
32
  previousYear: 'গত বছর (Control + left)',
@@ -27,8 +27,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
27
27
  monthSelect: 'Выбраць месяц',
28
28
  yearSelect: 'Выбраць год',
29
29
  decadeSelect: 'Выбраць дзесяцігоддзе',
30
- dateFormat: 'D-M-YYYY',
31
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
32
30
  previousMonth: 'Папярэдні месяц (PageUp)',
33
31
  nextMonth: 'Наступны месяц (PageDown)',
34
32
  previousYear: 'Папярэдні год (Control + left)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Escollir un mes',
27
27
  yearSelect: 'Escollir un any',
28
28
  decadeSelect: 'Escollir una dècada',
29
- dateFormat: 'D/M/YYYY',
30
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
31
29
  previousMonth: 'Mes anterior (PageUp)',
32
30
  nextMonth: 'Mes següent (PageDown)',
33
31
  previousYear: 'Any anterior (Control + left)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Vyberte měsíc',
27
27
  yearSelect: 'Vyberte rok',
28
28
  decadeSelect: 'Vyberte dekádu',
29
- dateFormat: 'D.M.YYYY',
30
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
31
29
  previousMonth: 'Předchozí měsíc (PageUp)',
32
30
  nextMonth: 'Následující (PageDown)',
33
31
  previousYear: 'Předchozí rok (Control + left)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Vælg måned',
27
27
  yearSelect: 'Vælg år',
28
28
  decadeSelect: 'Vælg årti',
29
- dateFormat: 'D/M/YYYY',
30
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
31
29
  previousMonth: 'Forrige måned (Page Up)',
32
30
  nextMonth: 'Næste måned (Page Down)',
33
31
  previousYear: 'Forrige år (Ctrl-venstre pil)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Wähle einen Monat',
27
27
  yearSelect: 'Wähle ein Jahr',
28
28
  decadeSelect: 'Wähle ein Jahrzehnt',
29
- dateFormat: 'D.M.YYYY',
30
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
31
29
  previousMonth: 'Vorheriger Monat (PageUp)',
32
30
  nextMonth: 'Nächster Monat (PageDown)',
33
31
  previousYear: 'Vorheriges Jahr (Ctrl + left)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Επιλογή μήνα',
27
27
  yearSelect: 'Επιλογή έτους',
28
28
  decadeSelect: 'Επιλογή δεκαετίας',
29
- dateFormat: 'D/M/YYYY',
30
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
31
29
  previousMonth: 'Προηγούμενος μήνας (PageUp)',
32
30
  nextMonth: 'Επόμενος μήνας (PageDown)',
33
31
  previousYear: 'Προηγούμενο έτος (Control + αριστερά)',
@@ -26,8 +26,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
26
26
  monthSelect: 'Choose a month',
27
27
  yearSelect: 'Choose a year',
28
28
  decadeSelect: 'Choose a decade',
29
- dateFormat: 'D/M/YYYY',
30
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
31
29
  previousMonth: 'Previous month (PageUp)',
32
30
  nextMonth: 'Next month (PageDown)',
33
31
  previousYear: 'Last year (Control + left)',
@@ -27,8 +27,6 @@ var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
27
27
  monthSelect: 'Choose a month',
28
28
  yearSelect: 'Choose a year',
29
29
  decadeSelect: 'Choose a decade',
30
- dateFormat: 'M/D/YYYY',
31
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
32
30
  previousMonth: 'Previous month (PageUp)',
33
31
  nextMonth: 'Next month (PageDown)',
34
32
  previousYear: 'Last year (Control + left)',