0.0.6 • Published 8 months ago

@licuido-ui/ui_date-range-picker v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

DateRangePicker

The Date Range Picker let the user select a range of dates.

Author

Link

StoryBook link to DateRangePicker

PlayGround

Try it have a fun codeBox

Installation

npm i  @licuido-ui/ui_date-range-picker

Import component

import { DateRangePicker } from '@licuido-ui/ui_date-range-picker';

Usage

<DateRangePicker dateFormat={'DD-MM-YYYY'} />

Image

alt text

Sample Code

<DateRangePicker
  inputContainerStyle={{}}
  inputBorderColor={'#E9E9E9'}
  inputBorderHoverColor={'#B2ADEB'}
  inputActiveColor={'#665CD7'}
  inputFontsize={14}
  inputValueColor={'#3B3B3B'}
  startLabel={'Check-in'}
  endLabel={'Check-out'}
  inputLabelSize={14}
  inputLabelColor={'#656363'}
  inputStyleRoot={{}}
  selectedRangeBgColor={'#B2ADEB'}
  selectedDateColor={'#000'}
  selectedHoverBgColor={'#EFEEFB'}
  selectedHoverTextColor={'#665CD7'}
  cancelButtonLabel={'cancel'}
  submitButtonLabel={'Submit'}
  buttonFontSize={14}
  buttonLabelColor={'#665CD7'}
  bottomButtonStyle={{}}
  addMoreButtons={[]}
  dateFormat={'DD MMM YY'}
  startViews={['year', 'month', 'day']}
  endViews={['year', 'day']}
  openTo={'day'}
  maxDateEnd={undefined}
  minDateEnd={undefined}
  minDateStart={undefined}
  maxDateStart={undefined}
  calenderPopoverStyle={{}}
  endCalendarStyle={{}}
  startCalendarStyle={{}}
  startCalendarMaxHeight={400}
  startCalendarMinHeight={undefined}
  endCalendarMaxHeight={undefined}
  endCalendarMinHeight={undefined}
  startCalendarHeight={250}
  endCalendarHeight={250}
  rightInputCalendarIcon={''}
  handleEndDateChangeFun={() => false}
  handleStartDateChangeFun={() => false}
  onMonthChangeStartFun={() => false}
  onMonthChangeEndFun={() => false}
  onYearChangeStartFun={() => false}
  onYearChangeEndFun={() => false}
  handleSubmitCalendarFun={() => false}
/>

Props

NameDescriptionDefaultControl
startVariant'filled' or 'outlined' or 'outlined'outlined''outlined'
endVariant'filled' or 'outlined' or 'outlined'outlined''outlined'
rangeIdstringstringstring
inputContainerStyleSxProps<{}>{ }inputContainerStyle : {}
inputBorderColorstring"#E9E9E9"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
inputBorderHoverColorstring"#B2ADEB"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
inputActiveColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
inputFontsizenumber14
inputValueColorstring"#3B3B3B"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
startLabelstring"Check-in"Check-in
endLabelstring"Check-out"Check-out
inputLabelSizenumber14
inputLabelColorstring"#656363"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
dateFormat"YYY MM DD"string"DD MMM YY"DD MMM YY
inputStyleRootSxProps<{}>{ }inputStyleRoot : {}
startViews["year", "month", "day"]["year", "month", "day"]["year", "month"day"]
endViews["year","day"]'year', 'day'["year","day"]
selectedDateColorstring"#000"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
selectedRangeBgColorstring"#B2ADEB"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
selectedHoverBgColorstring"#EFEEFB"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
selectedHoverTextColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
cancelButtonLabelstring"cancel"cancel
submitButtonLabelstring"Submit"Submit
bottomButtonStyleSxProps<{}>{ }bottomButtonStyle : {}
buttonFontSizenumber14
buttonLabelColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1))
addMoreButtons{label:name,handleFunction:()=>{}[][]
startCalendarMaxHeightnumber-Set number
startCalendarMinHeightnumber-Set number
endCalendarMaxHeightnumber-Set number
endCalendarMinHeightnumber-Set number
startCalendarHeightnumber-Set number
endCalendarHeightnumber-Set number
maxDateEndYYYY-MM-DDDayjs-Set object
minDateEndYYYY-MM-DDDayjs-Set object
minDateStartYYYY-MM-DDDayjs-Set object
maxDateStartYYYY-MM-DDDayjs-Set object
calenderPopoverStyleSxProps<{}>{ }calenderPopoverStyle : {}
endCalendarStyleSxProps<{}>{ }endCalendarStyle : {}
startCalendarStyleSxProps<{}>{ }startCalendarStyle : {}
leftInputCalendarIconReactNode)""
rightInputCalendarIconReactNode""""
handleEndDateChangeFun()=>{}() => false-
handleStartDateChangeFun()=>{}() => false-
onMonthChangeStartFun()=>{}() => false-
onMonthChangeEndFun()=>{}() => false-
onYearChangeStartFun()=>{}() => false-
onYearChangeEndFun()=>{}() => false-
handleSubmitCalendarFun()=>{}() => false-
classNamestring-Set string
sxSxProps<Theme>{}Set object
openToday or month or yeardaystring