@rc-component/picker 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/README.md +154 -0
- package/assets/index.css +407 -0
- package/assets/index.less +570 -0
- package/es/PickerInput/Popup/Footer.d.ts +19 -0
- package/es/PickerInput/Popup/Footer.js +78 -0
- package/es/PickerInput/Popup/PopupPanel.d.ts +10 -0
- package/es/PickerInput/Popup/PopupPanel.js +84 -0
- package/es/PickerInput/Popup/PresetPanel.d.ts +9 -0
- package/es/PickerInput/Popup/PresetPanel.js +31 -0
- package/es/PickerInput/Popup/index.d.ts +20 -0
- package/es/PickerInput/Popup/index.js +198 -0
- package/es/PickerInput/RangePicker.d.ts +54 -0
- package/es/PickerInput/RangePicker.js +641 -0
- package/es/PickerInput/Selector/Icon.d.ts +10 -0
- package/es/PickerInput/Selector/Icon.js +32 -0
- package/es/PickerInput/Selector/Input.d.ts +28 -0
- package/es/PickerInput/Selector/Input.js +377 -0
- package/es/PickerInput/Selector/MaskFormat.d.ts +22 -0
- package/es/PickerInput/Selector/MaskFormat.js +107 -0
- package/es/PickerInput/Selector/RangeSelector.d.ts +26 -0
- package/es/PickerInput/Selector/RangeSelector.js +218 -0
- package/es/PickerInput/Selector/SingleSelector/MultipleDates.d.ts +12 -0
- package/es/PickerInput/Selector/SingleSelector/MultipleDates.js +66 -0
- package/es/PickerInput/Selector/SingleSelector/index.d.ts +18 -0
- package/es/PickerInput/Selector/SingleSelector/index.js +187 -0
- package/es/PickerInput/Selector/hooks/useClearIcon.d.ts +8 -0
- package/es/PickerInput/Selector/hooks/useClearIcon.js +19 -0
- package/es/PickerInput/Selector/hooks/useInputProps.d.ts +16 -0
- package/es/PickerInput/Selector/hooks/useInputProps.js +178 -0
- package/es/PickerInput/Selector/hooks/useRootProps.d.ts +2 -0
- package/es/PickerInput/Selector/hooks/useRootProps.js +8 -0
- package/es/PickerInput/Selector/util.d.ts +1 -0
- package/es/PickerInput/Selector/util.js +12 -0
- package/es/PickerInput/SinglePicker.d.ts +51 -0
- package/es/PickerInput/SinglePicker.js +545 -0
- package/es/PickerInput/context.d.ts +13 -0
- package/es/PickerInput/context.js +3 -0
- package/es/PickerInput/hooks/useCellRender.d.ts +2 -0
- package/es/PickerInput/hooks/useCellRender.js +41 -0
- package/es/PickerInput/hooks/useDelayState.d.ts +5 -0
- package/es/PickerInput/hooks/useDelayState.js +48 -0
- package/es/PickerInput/hooks/useDisabledBoundary.d.ts +7 -0
- package/es/PickerInput/hooks/useDisabledBoundary.js +20 -0
- package/es/PickerInput/hooks/useFieldFormat.d.ts +2 -0
- package/es/PickerInput/hooks/useFieldFormat.js +18 -0
- package/es/PickerInput/hooks/useFieldsInvalidate.d.ts +5 -0
- package/es/PickerInput/hooks/useFieldsInvalidate.js +55 -0
- package/es/PickerInput/hooks/useFilledProps.d.ts +37 -0
- package/es/PickerInput/hooks/useFilledProps.js +155 -0
- package/es/PickerInput/hooks/useInputReadOnly.d.ts +2 -0
- package/es/PickerInput/hooks/useInputReadOnly.js +6 -0
- package/es/PickerInput/hooks/useInvalidate.d.ts +9 -0
- package/es/PickerInput/hooks/useInvalidate.js +61 -0
- package/es/PickerInput/hooks/useLockEffect.d.ts +5 -0
- package/es/PickerInput/hooks/useLockEffect.js +25 -0
- package/es/PickerInput/hooks/useOpen.d.ts +6 -0
- package/es/PickerInput/hooks/useOpen.js +33 -0
- package/es/PickerInput/hooks/usePickerRef.d.ts +7 -0
- package/es/PickerInput/hooks/usePickerRef.js +19 -0
- package/es/PickerInput/hooks/usePresets.d.ts +2 -0
- package/es/PickerInput/hooks/usePresets.js +28 -0
- package/es/PickerInput/hooks/useRangeActive.d.ts +19 -0
- package/es/PickerInput/hooks/useRangeActive.js +74 -0
- package/es/PickerInput/hooks/useRangeDisabledDate.d.ts +8 -0
- package/es/PickerInput/hooks/useRangeDisabledDate.js +53 -0
- package/es/PickerInput/hooks/useRangePickerValue.d.ts +5 -0
- package/es/PickerInput/hooks/useRangePickerValue.js +192 -0
- package/es/PickerInput/hooks/useRangeValue.d.ts +28 -0
- package/es/PickerInput/hooks/useRangeValue.js +297 -0
- package/es/PickerInput/hooks/useShowNow.d.ts +2 -0
- package/es/PickerInput/hooks/useShowNow.js +14 -0
- package/es/PickerPanel/DatePanel/index.d.ts +10 -0
- package/es/PickerPanel/DatePanel/index.js +190 -0
- package/es/PickerPanel/DateTimePanel/index.d.ts +3 -0
- package/es/PickerPanel/DateTimePanel/index.js +55 -0
- package/es/PickerPanel/DecadePanel/index.d.ts +3 -0
- package/es/PickerPanel/DecadePanel/index.js +113 -0
- package/es/PickerPanel/MonthPanel/index.d.ts +3 -0
- package/es/PickerPanel/MonthPanel/index.js +106 -0
- package/es/PickerPanel/PanelBody.d.ts +17 -0
- package/es/PickerPanel/PanelBody.js +153 -0
- package/es/PickerPanel/PanelHeader.d.ts +11 -0
- package/es/PickerPanel/PanelHeader.js +133 -0
- package/es/PickerPanel/QuarterPanel/index.d.ts +3 -0
- package/es/PickerPanel/QuarterPanel/index.js +92 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/TimeColumn.d.ts +17 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +149 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/index.d.ts +4 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/index.js +283 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/useScrollTo.d.ts +2 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/useScrollTo.js +72 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/util.d.ts +3 -0
- package/es/PickerPanel/TimePanel/TimePanelBody/util.js +43 -0
- package/es/PickerPanel/TimePanel/index.d.ts +4 -0
- package/es/PickerPanel/TimePanel/index.js +38 -0
- package/es/PickerPanel/WeekPanel/index.d.ts +3 -0
- package/es/PickerPanel/WeekPanel/index.js +55 -0
- package/es/PickerPanel/YearPanel/index.d.ts +3 -0
- package/es/PickerPanel/YearPanel/index.js +116 -0
- package/es/PickerPanel/context.d.ts +24 -0
- package/es/PickerPanel/context.js +67 -0
- package/es/PickerPanel/index.d.ts +60 -0
- package/es/PickerPanel/index.js +315 -0
- package/es/PickerTrigger/index.d.ts +19 -0
- package/es/PickerTrigger/index.js +86 -0
- package/es/PickerTrigger/util.d.ts +2 -0
- package/es/PickerTrigger/util.js +4 -0
- package/es/generate/dateFns.d.ts +3 -0
- package/es/generate/dateFns.js +163 -0
- package/es/generate/dayjs.d.ts +4 -0
- package/es/generate/dayjs.js +233 -0
- package/es/generate/index.d.ts +37 -0
- package/es/generate/index.js +1 -0
- package/es/generate/luxon.d.ts +4 -0
- package/es/generate/luxon.js +197 -0
- package/es/generate/moment.d.ts +4 -0
- package/es/generate/moment.js +152 -0
- package/es/hooks/useLocale.d.ts +6 -0
- package/es/hooks/useLocale.js +82 -0
- package/es/hooks/useSyncState.d.ts +6 -0
- package/es/hooks/useSyncState.js +27 -0
- package/es/hooks/useTimeConfig.d.ts +18 -0
- package/es/hooks/useTimeConfig.js +166 -0
- package/es/hooks/useTimeInfo.d.ts +12 -0
- package/es/hooks/useTimeInfo.js +164 -0
- package/es/hooks/useToggleDates.d.ts +8 -0
- package/es/hooks/useToggleDates.js +26 -0
- package/es/index.d.ts +35 -0
- package/es/index.js +34 -0
- package/es/interface.d.ts +365 -0
- package/es/interface.js +1 -0
- package/es/locale/am_ET.d.ts +3 -0
- package/es/locale/am_ET.js +31 -0
- package/es/locale/ar_EG.d.ts +3 -0
- package/es/locale/ar_EG.js +34 -0
- package/es/locale/az_AZ.d.ts +3 -0
- package/es/locale/az_AZ.js +35 -0
- package/es/locale/bg_BG.d.ts +3 -0
- package/es/locale/bg_BG.js +34 -0
- package/es/locale/bn_BD.d.ts +3 -0
- package/es/locale/bn_BD.js +35 -0
- package/es/locale/by_BY.d.ts +3 -0
- package/es/locale/by_BY.js +35 -0
- package/es/locale/ca_ES.d.ts +3 -0
- package/es/locale/ca_ES.js +34 -0
- package/es/locale/common.d.ts +2 -0
- package/es/locale/common.js +6 -0
- package/es/locale/cs_CZ.d.ts +3 -0
- package/es/locale/cs_CZ.js +34 -0
- package/es/locale/da_DK.d.ts +3 -0
- package/es/locale/da_DK.js +34 -0
- package/es/locale/de_DE.d.ts +3 -0
- package/es/locale/de_DE.js +34 -0
- package/es/locale/el_GR.d.ts +3 -0
- package/es/locale/el_GR.js +34 -0
- package/es/locale/en_GB.d.ts +3 -0
- package/es/locale/en_GB.js +34 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +35 -0
- package/es/locale/es_ES.d.ts +3 -0
- package/es/locale/es_ES.js +34 -0
- package/es/locale/es_MX.d.ts +3 -0
- package/es/locale/es_MX.js +35 -0
- package/es/locale/et_EE.d.ts +3 -0
- package/es/locale/et_EE.js +34 -0
- package/es/locale/eu_ES.d.ts +3 -0
- package/es/locale/eu_ES.js +36 -0
- package/es/locale/fa_IR.d.ts +3 -0
- package/es/locale/fa_IR.js +34 -0
- package/es/locale/fi_FI.d.ts +3 -0
- package/es/locale/fi_FI.js +34 -0
- package/es/locale/fr_BE.d.ts +3 -0
- package/es/locale/fr_BE.js +34 -0
- package/es/locale/fr_CA.d.ts +3 -0
- package/es/locale/fr_CA.js +35 -0
- package/es/locale/fr_FR.d.ts +3 -0
- package/es/locale/fr_FR.js +35 -0
- package/es/locale/ga_IE.d.ts +3 -0
- package/es/locale/ga_IE.js +35 -0
- package/es/locale/gl_ES.d.ts +3 -0
- package/es/locale/gl_ES.js +34 -0
- package/es/locale/he_IL.d.ts +3 -0
- package/es/locale/he_IL.js +35 -0
- package/es/locale/hi_IN.d.ts +3 -0
- package/es/locale/hi_IN.js +35 -0
- package/es/locale/hr_HR.d.ts +3 -0
- package/es/locale/hr_HR.js +35 -0
- package/es/locale/hu_HU.d.ts +3 -0
- package/es/locale/hu_HU.js +58 -0
- package/es/locale/id_ID.d.ts +3 -0
- package/es/locale/id_ID.js +35 -0
- package/es/locale/is_IS.d.ts +3 -0
- package/es/locale/is_IS.js +34 -0
- package/es/locale/it_IT.d.ts +3 -0
- package/es/locale/it_IT.js +34 -0
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ja_JP.js +37 -0
- package/es/locale/ka_GE.d.ts +3 -0
- package/es/locale/ka_GE.js +35 -0
- package/es/locale/kk_KZ.d.ts +3 -0
- package/es/locale/kk_KZ.js +34 -0
- package/es/locale/km_KH.d.ts +3 -0
- package/es/locale/km_KH.js +36 -0
- package/es/locale/kmr_IQ.d.ts +3 -0
- package/es/locale/kmr_IQ.js +34 -0
- package/es/locale/kn_IN.d.ts +3 -0
- package/es/locale/kn_IN.js +35 -0
- package/es/locale/ko_KR.d.ts +3 -0
- package/es/locale/ko_KR.js +36 -0
- package/es/locale/lt_LT.d.ts +3 -0
- package/es/locale/lt_LT.js +36 -0
- package/es/locale/lv_LV.d.ts +3 -0
- package/es/locale/lv_LV.js +34 -0
- package/es/locale/mk_MK.d.ts +3 -0
- package/es/locale/mk_MK.js +34 -0
- package/es/locale/ml_IN.d.ts +3 -0
- package/es/locale/ml_IN.js +35 -0
- package/es/locale/mn_MN.d.ts +3 -0
- package/es/locale/mn_MN.js +36 -0
- package/es/locale/ms_MY.d.ts +3 -0
- package/es/locale/ms_MY.js +36 -0
- package/es/locale/my_MM.d.ts +3 -0
- package/es/locale/my_MM.js +35 -0
- package/es/locale/nb_NO.d.ts +3 -0
- package/es/locale/nb_NO.js +36 -0
- package/es/locale/ne_NP.d.ts +3 -0
- package/es/locale/ne_NP.js +35 -0
- package/es/locale/nl_BE.d.ts +3 -0
- package/es/locale/nl_BE.js +34 -0
- package/es/locale/nl_NL.d.ts +3 -0
- package/es/locale/nl_NL.js +34 -0
- package/es/locale/pl_PL.d.ts +3 -0
- package/es/locale/pl_PL.js +34 -0
- package/es/locale/pt_BR.d.ts +3 -0
- package/es/locale/pt_BR.js +37 -0
- package/es/locale/pt_PT.d.ts +3 -0
- package/es/locale/pt_PT.js +36 -0
- package/es/locale/ro_RO.d.ts +3 -0
- package/es/locale/ro_RO.js +35 -0
- package/es/locale/ru_RU.d.ts +3 -0
- package/es/locale/ru_RU.js +34 -0
- package/es/locale/si_LK.d.ts +3 -0
- package/es/locale/si_LK.js +36 -0
- package/es/locale/sk_SK.d.ts +3 -0
- package/es/locale/sk_SK.js +34 -0
- package/es/locale/sl_SI.d.ts +3 -0
- package/es/locale/sl_SI.js +34 -0
- package/es/locale/sr_Cyrl_RS.d.ts +3 -0
- package/es/locale/sr_Cyrl_RS.js +34 -0
- package/es/locale/sr_RS.d.ts +3 -0
- package/es/locale/sr_RS.js +34 -0
- package/es/locale/sv_SE.d.ts +3 -0
- package/es/locale/sv_SE.js +34 -0
- package/es/locale/ta_IN.d.ts +3 -0
- package/es/locale/ta_IN.js +35 -0
- package/es/locale/th_TH.d.ts +3 -0
- package/es/locale/th_TH.js +34 -0
- package/es/locale/tk_TK.d.ts +3 -0
- package/es/locale/tk_TK.js +34 -0
- package/es/locale/tr_TR.d.ts +3 -0
- package/es/locale/tr_TR.js +36 -0
- package/es/locale/ug_CN.d.ts +3 -0
- package/es/locale/ug_CN.js +37 -0
- package/es/locale/uk_UA.d.ts +3 -0
- package/es/locale/uk_UA.js +34 -0
- package/es/locale/ur_PK.d.ts +3 -0
- package/es/locale/ur_PK.js +35 -0
- package/es/locale/uz_UZ.d.ts +3 -0
- package/es/locale/uz_UZ.js +35 -0
- package/es/locale/vi_VN.d.ts +3 -0
- package/es/locale/vi_VN.js +35 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +36 -0
- package/es/locale/zh_TW.d.ts +3 -0
- package/es/locale/zh_TW.js +38 -0
- package/es/utils/dateUtil.d.ts +29 -0
- package/es/utils/dateUtil.js +140 -0
- package/es/utils/getClearIcon.d.ts +5 -0
- package/es/utils/getClearIcon.js +8 -0
- package/es/utils/miscUtil.d.ts +14 -0
- package/es/utils/miscUtil.js +70 -0
- package/es/utils/uiUtil.d.ts +1 -0
- package/es/utils/uiUtil.js +7 -0
- package/es/utils/warnUtil.d.ts +5 -0
- package/es/utils/warnUtil.js +10 -0
- package/lib/PickerInput/Popup/Footer.d.ts +19 -0
- package/lib/PickerInput/Popup/Footer.js +88 -0
- package/lib/PickerInput/Popup/PopupPanel.d.ts +10 -0
- package/lib/PickerInput/Popup/PopupPanel.js +93 -0
- package/lib/PickerInput/Popup/PresetPanel.d.ts +9 -0
- package/lib/PickerInput/Popup/PresetPanel.js +40 -0
- package/lib/PickerInput/Popup/index.d.ts +20 -0
- package/lib/PickerInput/Popup/index.js +207 -0
- package/lib/PickerInput/RangePicker.d.ts +54 -0
- package/lib/PickerInput/RangePicker.js +650 -0
- package/lib/PickerInput/Selector/Icon.d.ts +10 -0
- package/lib/PickerInput/Selector/Icon.js +43 -0
- package/lib/PickerInput/Selector/Input.d.ts +28 -0
- package/lib/PickerInput/Selector/Input.js +385 -0
- package/lib/PickerInput/Selector/MaskFormat.d.ts +22 -0
- package/lib/PickerInput/Selector/MaskFormat.js +112 -0
- package/lib/PickerInput/Selector/RangeSelector.d.ts +26 -0
- package/lib/PickerInput/Selector/RangeSelector.js +227 -0
- package/lib/PickerInput/Selector/SingleSelector/MultipleDates.d.ts +12 -0
- package/lib/PickerInput/Selector/SingleSelector/MultipleDates.js +76 -0
- package/lib/PickerInput/Selector/SingleSelector/index.d.ts +18 -0
- package/lib/PickerInput/Selector/SingleSelector/index.js +196 -0
- package/lib/PickerInput/Selector/hooks/useClearIcon.d.ts +8 -0
- package/lib/PickerInput/Selector/hooks/useClearIcon.js +27 -0
- package/lib/PickerInput/Selector/hooks/useInputProps.d.ts +16 -0
- package/lib/PickerInput/Selector/hooks/useInputProps.js +187 -0
- package/lib/PickerInput/Selector/hooks/useRootProps.d.ts +2 -0
- package/lib/PickerInput/Selector/hooks/useRootProps.js +17 -0
- package/lib/PickerInput/Selector/util.d.ts +1 -0
- package/lib/PickerInput/Selector/util.js +18 -0
- package/lib/PickerInput/SinglePicker.d.ts +51 -0
- package/lib/PickerInput/SinglePicker.js +553 -0
- package/lib/PickerInput/context.d.ts +13 -0
- package/lib/PickerInput/context.js +12 -0
- package/lib/PickerInput/hooks/useCellRender.d.ts +2 -0
- package/lib/PickerInput/hooks/useCellRender.js +49 -0
- package/lib/PickerInput/hooks/useDelayState.d.ts +5 -0
- package/lib/PickerInput/hooks/useDelayState.js +54 -0
- package/lib/PickerInput/hooks/useDisabledBoundary.d.ts +7 -0
- package/lib/PickerInput/hooks/useDisabledBoundary.js +26 -0
- package/lib/PickerInput/hooks/useFieldFormat.d.ts +2 -0
- package/lib/PickerInput/hooks/useFieldFormat.js +26 -0
- package/lib/PickerInput/hooks/useFieldsInvalidate.d.ts +5 -0
- package/lib/PickerInput/hooks/useFieldsInvalidate.js +64 -0
- package/lib/PickerInput/hooks/useFilledProps.d.ts +37 -0
- package/lib/PickerInput/hooks/useFilledProps.js +164 -0
- package/lib/PickerInput/hooks/useInputReadOnly.d.ts +2 -0
- package/lib/PickerInput/hooks/useInputReadOnly.js +12 -0
- package/lib/PickerInput/hooks/useInvalidate.d.ts +9 -0
- package/lib/PickerInput/hooks/useInvalidate.js +67 -0
- package/lib/PickerInput/hooks/useLockEffect.d.ts +5 -0
- package/lib/PickerInput/hooks/useLockEffect.js +34 -0
- package/lib/PickerInput/hooks/useOpen.d.ts +6 -0
- package/lib/PickerInput/hooks/useOpen.js +39 -0
- package/lib/PickerInput/hooks/usePickerRef.d.ts +7 -0
- package/lib/PickerInput/hooks/usePickerRef.js +28 -0
- package/lib/PickerInput/hooks/usePresets.d.ts +2 -0
- package/lib/PickerInput/hooks/usePresets.js +38 -0
- package/lib/PickerInput/hooks/useRangeActive.d.ts +19 -0
- package/lib/PickerInput/hooks/useRangeActive.js +84 -0
- package/lib/PickerInput/hooks/useRangeDisabledDate.d.ts +8 -0
- package/lib/PickerInput/hooks/useRangeDisabledDate.js +58 -0
- package/lib/PickerInput/hooks/useRangePickerValue.d.ts +5 -0
- package/lib/PickerInput/hooks/useRangePickerValue.js +203 -0
- package/lib/PickerInput/hooks/useRangeValue.d.ts +28 -0
- package/lib/PickerInput/hooks/useRangeValue.js +308 -0
- package/lib/PickerInput/hooks/useShowNow.d.ts +2 -0
- package/lib/PickerInput/hooks/useShowNow.js +20 -0
- package/lib/PickerPanel/DatePanel/index.d.ts +10 -0
- package/lib/PickerPanel/DatePanel/index.js +199 -0
- package/lib/PickerPanel/DateTimePanel/index.d.ts +3 -0
- package/lib/PickerPanel/DateTimePanel/index.js +65 -0
- package/lib/PickerPanel/DecadePanel/index.d.ts +3 -0
- package/lib/PickerPanel/DecadePanel/index.js +122 -0
- package/lib/PickerPanel/MonthPanel/index.d.ts +3 -0
- package/lib/PickerPanel/MonthPanel/index.js +115 -0
- package/lib/PickerPanel/PanelBody.d.ts +17 -0
- package/lib/PickerPanel/PanelBody.js +162 -0
- package/lib/PickerPanel/PanelHeader.d.ts +11 -0
- package/lib/PickerPanel/PanelHeader.js +143 -0
- package/lib/PickerPanel/QuarterPanel/index.d.ts +3 -0
- package/lib/PickerPanel/QuarterPanel/index.js +101 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/TimeColumn.d.ts +17 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +158 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/index.d.ts +4 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/index.js +293 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/useScrollTo.d.ts +2 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/useScrollTo.js +82 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/util.d.ts +3 -0
- package/lib/PickerPanel/TimePanel/TimePanelBody/util.js +49 -0
- package/lib/PickerPanel/TimePanel/index.d.ts +4 -0
- package/lib/PickerPanel/TimePanel/index.js +48 -0
- package/lib/PickerPanel/WeekPanel/index.d.ts +3 -0
- package/lib/PickerPanel/WeekPanel/index.js +64 -0
- package/lib/PickerPanel/YearPanel/index.d.ts +3 -0
- package/lib/PickerPanel/YearPanel/index.js +125 -0
- package/lib/PickerPanel/context.d.ts +24 -0
- package/lib/PickerPanel/context.js +78 -0
- package/lib/PickerPanel/index.d.ts +60 -0
- package/lib/PickerPanel/index.js +324 -0
- package/lib/PickerTrigger/index.d.ts +19 -0
- package/lib/PickerTrigger/index.js +95 -0
- package/lib/PickerTrigger/util.d.ts +2 -0
- package/lib/PickerTrigger/util.js +10 -0
- package/lib/generate/dateFns.d.ts +3 -0
- package/lib/generate/dateFns.js +172 -0
- package/lib/generate/dayjs.d.ts +4 -0
- package/lib/generate/dayjs.js +240 -0
- package/lib/generate/index.d.ts +37 -0
- package/lib/generate/index.js +5 -0
- package/lib/generate/luxon.d.ts +4 -0
- package/lib/generate/luxon.js +203 -0
- package/lib/generate/moment.d.ts +4 -0
- package/lib/generate/moment.js +159 -0
- package/lib/hooks/useLocale.d.ts +6 -0
- package/lib/hooks/useLocale.js +90 -0
- package/lib/hooks/useSyncState.d.ts +6 -0
- package/lib/hooks/useSyncState.js +35 -0
- package/lib/hooks/useTimeConfig.d.ts +18 -0
- package/lib/hooks/useTimeConfig.js +173 -0
- package/lib/hooks/useTimeInfo.d.ts +12 -0
- package/lib/hooks/useTimeInfo.js +172 -0
- package/lib/hooks/useToggleDates.d.ts +8 -0
- package/lib/hooks/useToggleDates.js +32 -0
- package/lib/index.d.ts +35 -0
- package/lib/index.js +57 -0
- package/lib/interface.d.ts +365 -0
- package/lib/interface.js +5 -0
- package/lib/locale/am_ET.d.ts +3 -0
- package/lib/locale/am_ET.js +37 -0
- package/lib/locale/ar_EG.d.ts +3 -0
- package/lib/locale/ar_EG.js +40 -0
- package/lib/locale/az_AZ.d.ts +3 -0
- package/lib/locale/az_AZ.js +41 -0
- package/lib/locale/bg_BG.d.ts +3 -0
- package/lib/locale/bg_BG.js +40 -0
- package/lib/locale/bn_BD.d.ts +3 -0
- package/lib/locale/bn_BD.js +41 -0
- package/lib/locale/by_BY.d.ts +3 -0
- package/lib/locale/by_BY.js +41 -0
- package/lib/locale/ca_ES.d.ts +3 -0
- package/lib/locale/ca_ES.js +40 -0
- package/lib/locale/common.d.ts +2 -0
- package/lib/locale/common.js +12 -0
- package/lib/locale/cs_CZ.d.ts +3 -0
- package/lib/locale/cs_CZ.js +40 -0
- package/lib/locale/da_DK.d.ts +3 -0
- package/lib/locale/da_DK.js +40 -0
- package/lib/locale/de_DE.d.ts +3 -0
- package/lib/locale/de_DE.js +40 -0
- package/lib/locale/el_GR.d.ts +3 -0
- package/lib/locale/el_GR.js +40 -0
- package/lib/locale/en_GB.d.ts +3 -0
- package/lib/locale/en_GB.js +40 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +41 -0
- package/lib/locale/es_ES.d.ts +3 -0
- package/lib/locale/es_ES.js +40 -0
- package/lib/locale/es_MX.d.ts +3 -0
- package/lib/locale/es_MX.js +41 -0
- package/lib/locale/et_EE.d.ts +3 -0
- package/lib/locale/et_EE.js +40 -0
- package/lib/locale/eu_ES.d.ts +3 -0
- package/lib/locale/eu_ES.js +42 -0
- package/lib/locale/fa_IR.d.ts +3 -0
- package/lib/locale/fa_IR.js +40 -0
- package/lib/locale/fi_FI.d.ts +3 -0
- package/lib/locale/fi_FI.js +40 -0
- package/lib/locale/fr_BE.d.ts +3 -0
- package/lib/locale/fr_BE.js +40 -0
- package/lib/locale/fr_CA.d.ts +3 -0
- package/lib/locale/fr_CA.js +41 -0
- package/lib/locale/fr_FR.d.ts +3 -0
- package/lib/locale/fr_FR.js +41 -0
- package/lib/locale/ga_IE.d.ts +3 -0
- package/lib/locale/ga_IE.js +41 -0
- package/lib/locale/gl_ES.d.ts +3 -0
- package/lib/locale/gl_ES.js +40 -0
- package/lib/locale/he_IL.d.ts +3 -0
- package/lib/locale/he_IL.js +41 -0
- package/lib/locale/hi_IN.d.ts +3 -0
- package/lib/locale/hi_IN.js +41 -0
- package/lib/locale/hr_HR.d.ts +3 -0
- package/lib/locale/hr_HR.js +41 -0
- package/lib/locale/hu_HU.d.ts +3 -0
- package/lib/locale/hu_HU.js +64 -0
- package/lib/locale/id_ID.d.ts +3 -0
- package/lib/locale/id_ID.js +41 -0
- package/lib/locale/is_IS.d.ts +3 -0
- package/lib/locale/is_IS.js +40 -0
- package/lib/locale/it_IT.d.ts +3 -0
- package/lib/locale/it_IT.js +40 -0
- package/lib/locale/ja_JP.d.ts +3 -0
- package/lib/locale/ja_JP.js +43 -0
- package/lib/locale/ka_GE.d.ts +3 -0
- package/lib/locale/ka_GE.js +41 -0
- package/lib/locale/kk_KZ.d.ts +3 -0
- package/lib/locale/kk_KZ.js +40 -0
- package/lib/locale/km_KH.d.ts +3 -0
- package/lib/locale/km_KH.js +42 -0
- package/lib/locale/kmr_IQ.d.ts +3 -0
- package/lib/locale/kmr_IQ.js +40 -0
- package/lib/locale/kn_IN.d.ts +3 -0
- package/lib/locale/kn_IN.js +41 -0
- package/lib/locale/ko_KR.d.ts +3 -0
- package/lib/locale/ko_KR.js +42 -0
- package/lib/locale/lt_LT.d.ts +3 -0
- package/lib/locale/lt_LT.js +42 -0
- package/lib/locale/lv_LV.d.ts +3 -0
- package/lib/locale/lv_LV.js +40 -0
- package/lib/locale/mk_MK.d.ts +3 -0
- package/lib/locale/mk_MK.js +40 -0
- package/lib/locale/ml_IN.d.ts +3 -0
- package/lib/locale/ml_IN.js +41 -0
- package/lib/locale/mn_MN.d.ts +3 -0
- package/lib/locale/mn_MN.js +42 -0
- package/lib/locale/ms_MY.d.ts +3 -0
- package/lib/locale/ms_MY.js +42 -0
- package/lib/locale/my_MM.d.ts +3 -0
- package/lib/locale/my_MM.js +41 -0
- package/lib/locale/nb_NO.d.ts +3 -0
- package/lib/locale/nb_NO.js +42 -0
- package/lib/locale/ne_NP.d.ts +3 -0
- package/lib/locale/ne_NP.js +41 -0
- package/lib/locale/nl_BE.d.ts +3 -0
- package/lib/locale/nl_BE.js +40 -0
- package/lib/locale/nl_NL.d.ts +3 -0
- package/lib/locale/nl_NL.js +40 -0
- package/lib/locale/pl_PL.d.ts +3 -0
- package/lib/locale/pl_PL.js +40 -0
- package/lib/locale/pt_BR.d.ts +3 -0
- package/lib/locale/pt_BR.js +43 -0
- package/lib/locale/pt_PT.d.ts +3 -0
- package/lib/locale/pt_PT.js +42 -0
- package/lib/locale/ro_RO.d.ts +3 -0
- package/lib/locale/ro_RO.js +41 -0
- package/lib/locale/ru_RU.d.ts +3 -0
- package/lib/locale/ru_RU.js +40 -0
- package/lib/locale/si_LK.d.ts +3 -0
- package/lib/locale/si_LK.js +42 -0
- package/lib/locale/sk_SK.d.ts +3 -0
- package/lib/locale/sk_SK.js +40 -0
- package/lib/locale/sl_SI.d.ts +3 -0
- package/lib/locale/sl_SI.js +40 -0
- package/lib/locale/sr_Cyrl_RS.d.ts +3 -0
- package/lib/locale/sr_Cyrl_RS.js +40 -0
- package/lib/locale/sr_RS.d.ts +3 -0
- package/lib/locale/sr_RS.js +40 -0
- package/lib/locale/sv_SE.d.ts +3 -0
- package/lib/locale/sv_SE.js +40 -0
- package/lib/locale/ta_IN.d.ts +3 -0
- package/lib/locale/ta_IN.js +41 -0
- package/lib/locale/th_TH.d.ts +3 -0
- package/lib/locale/th_TH.js +40 -0
- package/lib/locale/tk_TK.d.ts +3 -0
- package/lib/locale/tk_TK.js +40 -0
- package/lib/locale/tr_TR.d.ts +3 -0
- package/lib/locale/tr_TR.js +42 -0
- package/lib/locale/ug_CN.d.ts +3 -0
- package/lib/locale/ug_CN.js +43 -0
- package/lib/locale/uk_UA.d.ts +3 -0
- package/lib/locale/uk_UA.js +40 -0
- package/lib/locale/ur_PK.d.ts +3 -0
- package/lib/locale/ur_PK.js +41 -0
- package/lib/locale/uz_UZ.d.ts +3 -0
- package/lib/locale/uz_UZ.js +41 -0
- package/lib/locale/vi_VN.d.ts +3 -0
- package/lib/locale/vi_VN.js +41 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +42 -0
- package/lib/locale/zh_TW.d.ts +3 -0
- package/lib/locale/zh_TW.js +44 -0
- package/lib/utils/dateUtil.d.ts +29 -0
- package/lib/utils/dateUtil.js +161 -0
- package/lib/utils/getClearIcon.d.ts +5 -0
- package/lib/utils/getClearIcon.js +15 -0
- package/lib/utils/miscUtil.d.ts +14 -0
- package/lib/utils/miscUtil.js +81 -0
- package/lib/utils/uiUtil.d.ts +1 -0
- package/lib/utils/uiUtil.js +13 -0
- package/lib/utils/warnUtil.d.ts +5 -0
- package/lib/utils/warnUtil.js +17 -0
- package/package.json +107 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-present afc163
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# rc-picker
|
|
2
|
+
|
|
3
|
+
[![NPM version][npm-image]][npm-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
|
|
4
|
+
|
|
5
|
+
[npm-image]: http://img.shields.io/npm/v/rc-picker.svg?style=flat-square
|
|
6
|
+
[npm-url]: http://npmjs.org/package/rc-picker
|
|
7
|
+
[github-actions-image]: https://github.com/react-component/picker/workflows/CI/badge.svg
|
|
8
|
+
[github-actions-url]: https://github.com/react-component/picker/actions
|
|
9
|
+
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/picker/master.svg?style=flat-square
|
|
10
|
+
[codecov-url]: https://codecov.io/gh/react-component/picker/branch/master
|
|
11
|
+
[david-url]: https://david-dm.org/react-component/picker
|
|
12
|
+
[david-image]: https://david-dm.org/react-component/picker/status.svg?style=flat-square
|
|
13
|
+
[david-dev-url]: https://david-dm.org/react-component/picker?type=dev
|
|
14
|
+
[david-dev-image]: https://david-dm.org/react-component/picker/dev-status.svg?style=flat-square
|
|
15
|
+
[download-image]: https://img.shields.io/npm/dm/rc-picker.svg?style=flat-square
|
|
16
|
+
[download-url]: https://npmjs.org/package/rc-picker
|
|
17
|
+
[bundlephobia-url]: https://bundlephobia.com/result?p=rc-picker
|
|
18
|
+
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-picker
|
|
19
|
+
|
|
20
|
+
## Live Demo
|
|
21
|
+
|
|
22
|
+
https://react-component.github.io/picker/
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
[](https://npmjs.org/package/rc-picker)
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import Picker from 'rc-picker';
|
|
32
|
+
import 'rc-picker/assets/index.css';
|
|
33
|
+
import { render } from 'react-dom';
|
|
34
|
+
|
|
35
|
+
render(<Picker />, mountNode);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## API
|
|
39
|
+
|
|
40
|
+
### Picker
|
|
41
|
+
|
|
42
|
+
| Property | Type | Default | Description |
|
|
43
|
+
| --- | --- | --- | --- |
|
|
44
|
+
| prefixCls | String | rc-picker | prefixCls of this component |
|
|
45
|
+
| className | String | '' | additional css class of root dom node |
|
|
46
|
+
| style | React.CSSProperties | | additional style of root dom node |
|
|
47
|
+
| dropdownClassName | String | '' | additional className applied to dropdown |
|
|
48
|
+
| popupAlign | Object:alignConfig of [dom-align](https://github.com/yiminghe/dom-align) | | value will be merged into placement's popupAlign config |
|
|
49
|
+
| popupStyle | React.CSSProperties | | customize popup style |
|
|
50
|
+
| transitionName | String | '' | css class for animation |
|
|
51
|
+
| locale | Object | import from 'rc-picker/lib/locale/en_US' | rc-picker locale |
|
|
52
|
+
| inputReadOnly | boolean | false | set input to read only |
|
|
53
|
+
| allowClear | boolean \| { clearIcon?: ReactNode } | false | whether show clear button or customize clear button |
|
|
54
|
+
| autoFocus | boolean | false | whether auto focus |
|
|
55
|
+
| showTime | boolean \| Object | [showTime options](#showTime-options) | to provide an additional time selection |
|
|
56
|
+
| picker | time \| date \| week \| month \| year | | control which kind of panel should be shown |
|
|
57
|
+
| format | String \| String[] | depends on whether you set timePicker and your locale | use to format/parse date(without time) value to/from input. When an array is provided, all values are used for parsing and first value for display |
|
|
58
|
+
| use12Hours | boolean | false | 12 hours display mode |
|
|
59
|
+
| value | moment | | current value like input's value |
|
|
60
|
+
| defaultValue | moment | | defaultValue like input's defaultValue |
|
|
61
|
+
| open | boolean | false | current open state of picker. controlled prop |
|
|
62
|
+
| suffixIcon | ReactNode | | The custom suffix icon |
|
|
63
|
+
| prevIcon | ReactNode | | The custom prev icon |
|
|
64
|
+
| nextIcon | ReactNode | | The custom next icon |
|
|
65
|
+
| superPrevIcon | ReactNode | | The custom super prev icon |
|
|
66
|
+
| superNextIcon | ReactNode | | The custom super next icon |
|
|
67
|
+
| disabled | boolean | false | whether the picker is disabled |
|
|
68
|
+
| placeholder | String | | picker input's placeholder |
|
|
69
|
+
| getPopupContainer | function(trigger) | | to set the container of the floating layer, while the default is to create a div element in body |
|
|
70
|
+
| onChange | Function(date: moment, dateString: string) | | a callback function, can be executed when the selected time is changing |
|
|
71
|
+
| onOpenChange | Function(open:boolean) | | called when open/close picker |
|
|
72
|
+
| onFocus | (event:React.FocusEvent\<HTMLInputElement>) => void | | called like input's on focus |
|
|
73
|
+
| onBlur | (event:React.FocusEvent\<HTMLInputElement>) => void | | called like input's on blur |
|
|
74
|
+
| onKeyDown | (event:React.KeyboardEvent\<HTMLInputElement>, preventDefault: () => void) => void | | input on keydown event |
|
|
75
|
+
| direction | String: ltr or rtl | | Layout direction of picker component, it supports RTL direction too. |
|
|
76
|
+
|
|
77
|
+
### PickerPanel
|
|
78
|
+
|
|
79
|
+
| Property | Type | Default | Description |
|
|
80
|
+
| --- | --- | --- | --- |
|
|
81
|
+
| prefixCls | String | rc-picker | prefixCls of this component |
|
|
82
|
+
| className | String | '' | additional css class of root dom |
|
|
83
|
+
| style | React.CSSProperties | | additional style of root dom node |
|
|
84
|
+
| locale | Object | import from 'rc-picker/lib/locale/en_US' | rc-picker locale |
|
|
85
|
+
| value | moment | | current value like input's value |
|
|
86
|
+
| defaultValue | moment | | defaultValue like input's defaultValue |
|
|
87
|
+
| defaultPickerValue | moment | | Set default display picker view date |
|
|
88
|
+
| mode | time \| datetime \| date \| week \| month \| year \| decade | | control which kind of panel |
|
|
89
|
+
| picker | time \| date \| week \| month \| year | | control which kind of panel |
|
|
90
|
+
| tabIndex | Number | 0 | view [tabIndex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) |
|
|
91
|
+
| showTime | boolean \| Object | [showTime options](#showTime-options) | to provide an additional time selection |
|
|
92
|
+
| showToday | boolean | false | whether to show today button |
|
|
93
|
+
| disabledDate | Function(date:moment) => boolean | | whether to disable select of current date |
|
|
94
|
+
| dateRender | Function(currentDate:moment, today:moment) => React.Node | | custom rendering function for date cells |
|
|
95
|
+
| monthCellRender | Function(currentDate:moment, locale:Locale) => React.Node | | Custom month cell render method |
|
|
96
|
+
| renderExtraFooter | (mode) => React.Node | | extra footer |
|
|
97
|
+
| onSelect | Function(date: moment) | | a callback function, can be executed when the selected time |
|
|
98
|
+
| onPanelChange | Function(value: moment, mode) | | callback when picker panel mode is changed |
|
|
99
|
+
| onMouseDown | (event:React.MouseEvent\<HTMLInputElement>) => void | | callback when executed onMouseDown event |
|
|
100
|
+
| direction | String: ltr or rtl | | Layout direction of picker component, it supports RTL direction too. |
|
|
101
|
+
|
|
102
|
+
### RangePicker
|
|
103
|
+
|
|
104
|
+
| Property | Type | Default | Description |
|
|
105
|
+
| --- | --- | --- | --- |
|
|
106
|
+
| prefixCls | String | rc-picker | prefixCls of this component |
|
|
107
|
+
| className | String | '' | additional css class of root dom |
|
|
108
|
+
| style | React.CSSProperties | | additional style of root dom node |
|
|
109
|
+
| locale | Object | import from 'rc-picker/lib/locale/en_US' | rc-picker locale |
|
|
110
|
+
| value | moment | | current value like input's value |
|
|
111
|
+
| defaultValue | moment | | defaultValue like input's defaultValue |
|
|
112
|
+
| defaultPickerValue | moment | | Set default display picker view date |
|
|
113
|
+
| separator | String | '~' | set separator between inputs |
|
|
114
|
+
| picker | time \| date \| week \| month \| year | | control which kind of panel |
|
|
115
|
+
| placeholder | [String, String] | | placeholder of date input |
|
|
116
|
+
| showTime | boolean \| Object | [showTime options](#showTime-options) | to provide an additional time selection |
|
|
117
|
+
| showTime.defaultValue | [moment, moment] | | to set default time of selected date |
|
|
118
|
+
| use12Hours | boolean | false | 12 hours display mode |
|
|
119
|
+
| disabledTime | Function(date: moment, type:'start'\|'end'):Object | | | to specify the time that cannot be selected |
|
|
120
|
+
| ranges | { String \| [range: string]: moment[] } \| { [range: string]: () => moment[] } | | preseted ranges for quick selection |
|
|
121
|
+
| format | String \| String[] | depends on whether you set timePicker and your locale | use to format/parse date(without time) value to/from input. When an array is provided, all values are used for parsing and first value for display |
|
|
122
|
+
| allowEmpty | [boolean, boolean] | | allow range picker clearing text |
|
|
123
|
+
| selectable | [boolean, boolean] | | whether to selected picker |
|
|
124
|
+
| disabled | boolean | false | whether the range picker is disabled |
|
|
125
|
+
| onChange | Function(value:[moment], formatString: [string, string]) | | a callback function, can be executed when the selected time is changing |
|
|
126
|
+
| onCalendarChange | Function(value:[moment], formatString: [string, string], info: { range:'start'\|'end' }) | | a callback function, can be executed when the start time or the end time of the range is changing |
|
|
127
|
+
| direction | String: ltr or rtl | | Layout direction of picker component, it supports RTL direction too. |
|
|
128
|
+
| order | boolean | true | (TimeRangePicker only) `false` to disable auto order |
|
|
129
|
+
|
|
130
|
+
### showTime-options
|
|
131
|
+
|
|
132
|
+
| Property | Type | Default | Description |
|
|
133
|
+
| ------------------- | ------- | ------- | ---------------------------------- |
|
|
134
|
+
| format | String | | moment format |
|
|
135
|
+
| showHour | boolean | true | whether show hour |
|
|
136
|
+
| showMinute | boolean | true | whether show minute |
|
|
137
|
+
| showSecond | boolean | true | whether show second |
|
|
138
|
+
| use12Hours | boolean | false | 12 hours display mode |
|
|
139
|
+
| hourStep | Number | 1 | interval between hours in picker |
|
|
140
|
+
| minuteStep | Number | 1 | interval between minutes in picker |
|
|
141
|
+
| secondStep | Number | 1 | interval between seconds in picker |
|
|
142
|
+
| hideDisabledOptions | boolean | false | whether hide disabled options |
|
|
143
|
+
| defaultValue | moment | null | default initial value |
|
|
144
|
+
|
|
145
|
+
## Development
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
npm install
|
|
149
|
+
npm start
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
rc-picker is released under the MIT license.
|
package/assets/index.css
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
.rc-picker {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
.rc-picker-rtl {
|
|
6
|
+
direction: rtl;
|
|
7
|
+
}
|
|
8
|
+
.rc-picker-focused {
|
|
9
|
+
border: 1px solid blue;
|
|
10
|
+
}
|
|
11
|
+
.rc-picker-invalid {
|
|
12
|
+
box-shadow: 0 0 2px red;
|
|
13
|
+
}
|
|
14
|
+
.rc-picker-panels {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
}
|
|
18
|
+
.rc-picker-panel {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
background: #fff0ff;
|
|
22
|
+
border: 1px solid #666;
|
|
23
|
+
}
|
|
24
|
+
.rc-picker-panel-focused {
|
|
25
|
+
border-color: blue;
|
|
26
|
+
}
|
|
27
|
+
.rc-picker-panel-rtl {
|
|
28
|
+
direction: rtl;
|
|
29
|
+
}
|
|
30
|
+
.rc-picker-decade-panel,
|
|
31
|
+
.rc-picker-year-panel,
|
|
32
|
+
.rc-picker-month-panel,
|
|
33
|
+
.rc-picker-week-panel,
|
|
34
|
+
.rc-picker-date-panel,
|
|
35
|
+
.rc-picker-time-panel {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
}
|
|
39
|
+
.rc-picker-decade-panel table,
|
|
40
|
+
.rc-picker-year-panel table,
|
|
41
|
+
.rc-picker-month-panel table,
|
|
42
|
+
.rc-picker-week-panel table,
|
|
43
|
+
.rc-picker-date-panel table,
|
|
44
|
+
.rc-picker-time-panel table {
|
|
45
|
+
text-align: center;
|
|
46
|
+
border-collapse: collapse;
|
|
47
|
+
}
|
|
48
|
+
.rc-picker-header {
|
|
49
|
+
display: flex;
|
|
50
|
+
}
|
|
51
|
+
.rc-picker-header > * {
|
|
52
|
+
flex: none;
|
|
53
|
+
}
|
|
54
|
+
.rc-picker-header-view {
|
|
55
|
+
flex: auto;
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
.rc-picker-header-view > button {
|
|
59
|
+
padding: 0;
|
|
60
|
+
border: 0;
|
|
61
|
+
}
|
|
62
|
+
.rc-picker-cell {
|
|
63
|
+
color: #aaa;
|
|
64
|
+
}
|
|
65
|
+
.rc-picker-cell-disabled {
|
|
66
|
+
opacity: 0.2;
|
|
67
|
+
}
|
|
68
|
+
.rc-picker-cell-inner {
|
|
69
|
+
display: inline-block;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 20px;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
line-height: 20px;
|
|
77
|
+
background: transparent;
|
|
78
|
+
border: 0;
|
|
79
|
+
border: none;
|
|
80
|
+
outline: none;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition: background 0.3s, border 0.3s;
|
|
83
|
+
}
|
|
84
|
+
.rc-picker-cell-inner:hover {
|
|
85
|
+
background: rgba(0, 0, 255, 0.3);
|
|
86
|
+
}
|
|
87
|
+
.rc-picker-cell-in-view {
|
|
88
|
+
color: #333;
|
|
89
|
+
}
|
|
90
|
+
.rc-picker-cell-in-range > .rc-picker-cell-inner {
|
|
91
|
+
background: rgba(0, 0, 255, 0.05);
|
|
92
|
+
}
|
|
93
|
+
.rc-picker-cell-hover > .rc-picker-cell-inner {
|
|
94
|
+
background: orange;
|
|
95
|
+
}
|
|
96
|
+
.rc-picker-cell-range-hover-start,
|
|
97
|
+
.rc-picker-cell-range-hover-end,
|
|
98
|
+
.rc-picker-cell-range-hover {
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
.rc-picker-cell-range-hover-start::after,
|
|
102
|
+
.rc-picker-cell-range-hover-end::after,
|
|
103
|
+
.rc-picker-cell-range-hover::after {
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 3px;
|
|
106
|
+
right: 0;
|
|
107
|
+
bottom: 0;
|
|
108
|
+
left: 0;
|
|
109
|
+
border: 1px solid green;
|
|
110
|
+
border-right: 0;
|
|
111
|
+
border-left: 0;
|
|
112
|
+
content: '';
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
}
|
|
115
|
+
.rc-picker-cell-range-hover-start::after {
|
|
116
|
+
border-left: 1px solid green !important;
|
|
117
|
+
}
|
|
118
|
+
.rc-picker-cell-range-hover-end::after {
|
|
119
|
+
border-right: 1px solid green !important;
|
|
120
|
+
}
|
|
121
|
+
.rc-picker-cell-today > .rc-picker-cell-inner {
|
|
122
|
+
border: 1px solid blue;
|
|
123
|
+
}
|
|
124
|
+
.rc-picker-cell-range-start > .rc-picker-cell-inner,
|
|
125
|
+
.rc-picker-cell-range-end > .rc-picker-cell-inner,
|
|
126
|
+
.rc-picker-cell-selected > .rc-picker-cell-inner {
|
|
127
|
+
background: rgba(0, 0, 255, 0.2);
|
|
128
|
+
}
|
|
129
|
+
.rc-picker-presets {
|
|
130
|
+
background: #ccccff;
|
|
131
|
+
}
|
|
132
|
+
.rc-picker-presets ul {
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
list-style: none;
|
|
136
|
+
}
|
|
137
|
+
.rc-picker-footer,
|
|
138
|
+
.rc-picker-picker-footer {
|
|
139
|
+
background: green;
|
|
140
|
+
}
|
|
141
|
+
.rc-picker-ranges {
|
|
142
|
+
margin: 0;
|
|
143
|
+
padding: 0;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
list-style: none;
|
|
146
|
+
}
|
|
147
|
+
.rc-picker-ranges > li {
|
|
148
|
+
display: inline-block;
|
|
149
|
+
}
|
|
150
|
+
.rc-picker-ok {
|
|
151
|
+
float: right;
|
|
152
|
+
}
|
|
153
|
+
.rc-picker-year-panel .rc-picker-cell-inner,
|
|
154
|
+
.rc-picker-month-panel .rc-picker-cell-inner {
|
|
155
|
+
width: 80px;
|
|
156
|
+
}
|
|
157
|
+
.rc-picker-week-panel-row:hover .rc-picker-cell {
|
|
158
|
+
background: red;
|
|
159
|
+
}
|
|
160
|
+
.rc-picker-week-panel-row-selected .rc-picker-cell {
|
|
161
|
+
background: rgba(0, 0, 255, 0.3);
|
|
162
|
+
}
|
|
163
|
+
.rc-picker-week-panel-row-range-hover .rc-picker-cell {
|
|
164
|
+
background: rgba(0, 255, 0, 0.1);
|
|
165
|
+
}
|
|
166
|
+
.rc-picker-week-panel-row-range-start .rc-picker-cell,
|
|
167
|
+
.rc-picker-week-panel-row-range-end .rc-picker-cell {
|
|
168
|
+
background: rgba(0, 255, 0, 0.3);
|
|
169
|
+
}
|
|
170
|
+
.rc-picker-week-panel .rc-picker-cell,
|
|
171
|
+
.rc-picker-week-panel .rc-picker-cell-inner {
|
|
172
|
+
width: 20px;
|
|
173
|
+
}
|
|
174
|
+
.rc-picker-week-panel .rc-picker-cell-week {
|
|
175
|
+
color: #999;
|
|
176
|
+
font-weight: bold;
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
}
|
|
179
|
+
.rc-picker-week-panel .rc-picker-cell:hover > .rc-picker-cell-inner,
|
|
180
|
+
.rc-picker-week-panel .rc-picker-cell-selected > .rc-picker-cell-inner {
|
|
181
|
+
background: transparent;
|
|
182
|
+
}
|
|
183
|
+
.rc-picker-date-panel .rc-picker-cell-inner {
|
|
184
|
+
width: 20px;
|
|
185
|
+
}
|
|
186
|
+
.rc-picker-time-panel {
|
|
187
|
+
width: auto;
|
|
188
|
+
}
|
|
189
|
+
.rc-picker-time-panel .rc-picker-content {
|
|
190
|
+
position: relative;
|
|
191
|
+
display: flex;
|
|
192
|
+
max-height: 200px;
|
|
193
|
+
direction: ltr;
|
|
194
|
+
}
|
|
195
|
+
.rc-picker-time-panel-column-title {
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
line-height: 20px;
|
|
198
|
+
}
|
|
199
|
+
.rc-picker-time-panel-column {
|
|
200
|
+
flex: auto;
|
|
201
|
+
width: 50px;
|
|
202
|
+
margin: 0;
|
|
203
|
+
padding: 0 0 180px;
|
|
204
|
+
overflow-x: hidden;
|
|
205
|
+
overflow-y: hidden;
|
|
206
|
+
font-size: 12px;
|
|
207
|
+
text-align: left;
|
|
208
|
+
list-style: none;
|
|
209
|
+
transition: background 0.3s;
|
|
210
|
+
}
|
|
211
|
+
.rc-picker-time-panel-column-active {
|
|
212
|
+
background: rgba(0, 0, 255, 0.1);
|
|
213
|
+
}
|
|
214
|
+
.rc-picker-time-panel-column:hover {
|
|
215
|
+
overflow-y: auto;
|
|
216
|
+
}
|
|
217
|
+
.rc-picker-time-panel-column > li {
|
|
218
|
+
width: 50px;
|
|
219
|
+
margin: 0;
|
|
220
|
+
padding: 0;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
}
|
|
223
|
+
.rc-picker-time-panel-column > li.rc-picker-time-panel-cell-disabled {
|
|
224
|
+
opacity: 0.5;
|
|
225
|
+
}
|
|
226
|
+
.rc-picker-time-panel-column > li.rc-picker-time-panel-cell-selected {
|
|
227
|
+
background: rgba(0, 0, 255, 0.5);
|
|
228
|
+
}
|
|
229
|
+
.rc-picker-time-panel-column > li .rc-picker-time-panel-cell-inner {
|
|
230
|
+
display: block;
|
|
231
|
+
width: 100%;
|
|
232
|
+
height: 20px;
|
|
233
|
+
margin: 0;
|
|
234
|
+
color: #333;
|
|
235
|
+
line-height: 20px;
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
.rc-picker-panel-rtl .rc-picker-time-panel-column > li .rc-picker-time-panel-cell-inner {
|
|
239
|
+
padding: 0 12px 0 0;
|
|
240
|
+
text-align: right;
|
|
241
|
+
}
|
|
242
|
+
.rc-picker-datetime-panel {
|
|
243
|
+
display: flex;
|
|
244
|
+
}
|
|
245
|
+
.rc-picker-datetime-panel .rc-picker-time-panel {
|
|
246
|
+
border-left: 1px solid #999;
|
|
247
|
+
}
|
|
248
|
+
.rc-picker-datetime-panel .rc-picker-date-panel,
|
|
249
|
+
.rc-picker-datetime-panel .rc-picker-time-panel {
|
|
250
|
+
transition: opacity 0.3s;
|
|
251
|
+
}
|
|
252
|
+
.rc-picker-datetime-panel-active .rc-picker-date-panel,
|
|
253
|
+
.rc-picker-datetime-panel-active .rc-picker-time-panel {
|
|
254
|
+
opacity: 0.3;
|
|
255
|
+
}
|
|
256
|
+
.rc-picker-datetime-panel-active .rc-picker-date-panel-active,
|
|
257
|
+
.rc-picker-datetime-panel-active .rc-picker-time-panel-active {
|
|
258
|
+
opacity: 1;
|
|
259
|
+
}
|
|
260
|
+
.rc-picker-input {
|
|
261
|
+
position: relative;
|
|
262
|
+
display: inline-flex;
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
.rc-picker-rtl .rc-picker-input {
|
|
266
|
+
text-align: right;
|
|
267
|
+
}
|
|
268
|
+
.rc-picker-input-active > input {
|
|
269
|
+
background: rgba(0, 0, 255, 0.05);
|
|
270
|
+
}
|
|
271
|
+
.rc-picker-input > input {
|
|
272
|
+
width: 100%;
|
|
273
|
+
}
|
|
274
|
+
.rc-picker-input > input::-moz-placeholder {
|
|
275
|
+
opacity: 1;
|
|
276
|
+
}
|
|
277
|
+
.rc-picker-input > input::placeholder {
|
|
278
|
+
color: #bfbfbf;
|
|
279
|
+
}
|
|
280
|
+
.rc-picker-input > input:placeholder-shown {
|
|
281
|
+
text-overflow: ellipsis;
|
|
282
|
+
}
|
|
283
|
+
.rc-picker-input-placeholder > input {
|
|
284
|
+
color: #bfbfbf;
|
|
285
|
+
}
|
|
286
|
+
.rc-picker-clear {
|
|
287
|
+
position: absolute;
|
|
288
|
+
top: 0;
|
|
289
|
+
inset-inline-end: 4px;
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
}
|
|
292
|
+
.rc-picker-clear-btn::after {
|
|
293
|
+
content: '×';
|
|
294
|
+
}
|
|
295
|
+
.rc-picker-dropdown {
|
|
296
|
+
position: absolute;
|
|
297
|
+
box-shadow: 0 0 1px red;
|
|
298
|
+
pointer-events: none;
|
|
299
|
+
}
|
|
300
|
+
.rc-picker-dropdown-range {
|
|
301
|
+
padding: 10px 0;
|
|
302
|
+
}
|
|
303
|
+
.rc-picker-dropdown-hidden {
|
|
304
|
+
display: none;
|
|
305
|
+
}
|
|
306
|
+
.rc-picker-dropdown-rtl {
|
|
307
|
+
direction: rtl;
|
|
308
|
+
}
|
|
309
|
+
.rc-picker-dropdown-placement-topLeft .rc-picker-range-arrow,
|
|
310
|
+
.rc-picker-dropdown-placement-topRight .rc-picker-range-arrow {
|
|
311
|
+
bottom: 6px;
|
|
312
|
+
transform: rotate(135deg);
|
|
313
|
+
}
|
|
314
|
+
.rc-picker-dropdown-placement-bottomLeft .rc-picker-range-arrow,
|
|
315
|
+
.rc-picker-dropdown-placement-bottomRight .rc-picker-range-arrow {
|
|
316
|
+
top: 6px;
|
|
317
|
+
transform: rotate(-45deg);
|
|
318
|
+
}
|
|
319
|
+
.rc-picker-dropdown .rc-picker-range-arrow {
|
|
320
|
+
position: absolute;
|
|
321
|
+
z-index: 1;
|
|
322
|
+
width: 10px;
|
|
323
|
+
height: 10px;
|
|
324
|
+
transition: all 0.3s;
|
|
325
|
+
}
|
|
326
|
+
.rc-picker-dropdown .rc-picker-range-arrow::before,
|
|
327
|
+
.rc-picker-dropdown .rc-picker-range-arrow::after {
|
|
328
|
+
position: absolute;
|
|
329
|
+
top: 50%;
|
|
330
|
+
inset-inline-start: 50%;
|
|
331
|
+
box-sizing: border-box;
|
|
332
|
+
transform: translate(-50%, -50%);
|
|
333
|
+
content: '';
|
|
334
|
+
}
|
|
335
|
+
.rc-picker-dropdown-rtl.rc-picker-dropdown .rc-picker-range-arrow::before,
|
|
336
|
+
.rc-picker-dropdown-rtl.rc-picker-dropdown .rc-picker-range-arrow::after {
|
|
337
|
+
transform: translate(50%, -50%);
|
|
338
|
+
}
|
|
339
|
+
.rc-picker-dropdown .rc-picker-range-arrow::before {
|
|
340
|
+
width: 10px;
|
|
341
|
+
height: 10px;
|
|
342
|
+
border: 5px solid blue;
|
|
343
|
+
border-color: blue blue transparent transparent;
|
|
344
|
+
}
|
|
345
|
+
.rc-picker-dropdown .rc-picker-range-arrow::after {
|
|
346
|
+
width: 8px;
|
|
347
|
+
height: 8px;
|
|
348
|
+
border: 4px solid blue;
|
|
349
|
+
border-color: #fff0ff #fff0ff transparent transparent;
|
|
350
|
+
}
|
|
351
|
+
.rc-picker-range {
|
|
352
|
+
position: relative;
|
|
353
|
+
display: inline-flex;
|
|
354
|
+
}
|
|
355
|
+
.rc-picker-range-wrapper {
|
|
356
|
+
display: flex;
|
|
357
|
+
}
|
|
358
|
+
.rc-picker-range .rc-picker-active-bar {
|
|
359
|
+
bottom: 0;
|
|
360
|
+
height: 3px;
|
|
361
|
+
background: green;
|
|
362
|
+
opacity: 0;
|
|
363
|
+
transition: all 0.3s;
|
|
364
|
+
pointer-events: none;
|
|
365
|
+
}
|
|
366
|
+
.rc-picker-range.rc-picker-focused .rc-picker-active-bar {
|
|
367
|
+
opacity: 1;
|
|
368
|
+
}
|
|
369
|
+
.rc-picker-panel-container {
|
|
370
|
+
display: inline-block;
|
|
371
|
+
vertical-align: top;
|
|
372
|
+
transition: margin 0.3s;
|
|
373
|
+
pointer-events: all;
|
|
374
|
+
}
|
|
375
|
+
.rc-picker-panel-layout {
|
|
376
|
+
display: flex;
|
|
377
|
+
flex-wrap: nowrap;
|
|
378
|
+
align-items: stretch;
|
|
379
|
+
}
|
|
380
|
+
.rc-picker-selector {
|
|
381
|
+
width: 100%;
|
|
382
|
+
}
|
|
383
|
+
.rc-picker-selection-overflow {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex-wrap: wrap;
|
|
386
|
+
box-sizing: border-box;
|
|
387
|
+
width: 100%;
|
|
388
|
+
border: 1px solid green;
|
|
389
|
+
min-height: 1em;
|
|
390
|
+
}
|
|
391
|
+
.rc-picker-selection-overflow-item {
|
|
392
|
+
flex: none;
|
|
393
|
+
max-width: 100%;
|
|
394
|
+
}
|
|
395
|
+
.rc-picker-selection-item {
|
|
396
|
+
border: 1px solid blue;
|
|
397
|
+
}
|
|
398
|
+
.rc-picker-selection-placeholder {
|
|
399
|
+
pointer-events: none;
|
|
400
|
+
position: absolute;
|
|
401
|
+
left: 0;
|
|
402
|
+
top: 0;
|
|
403
|
+
}
|
|
404
|
+
.rc-picker-multiple-input {
|
|
405
|
+
width: 10px;
|
|
406
|
+
opacity: 0.1;
|
|
407
|
+
}
|