Gathering detailed insights and metrics for rmc-calendar-bxb
Gathering detailed insights and metrics for rmc-calendar-bxb
Gathering detailed insights and metrics for rmc-calendar-bxb
Gathering detailed insights and metrics for rmc-calendar-bxb
npm install rmc-calendar-bxb
Typescript
Module System
Node Version
NPM Version
72.1
Supply Chain
98.7
Quality
73.4
Maintenance
100
Vulnerability
99.6
License
TypeScript (87.57%)
CSS (11.93%)
JavaScript (0.5%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
38 Stars
58 Commits
27 Forks
5 Watchers
14 Branches
28 Contributors
Updated on Jun 13, 2025
Latest Version
1.1.1
Package Id
rmc-calendar-bxb@1.1.1
Unpacked Size
226.06 kB
Size
37.63 kB
File Count
88
NPM Version
5.6.0
Node Version
9.11.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
React Mobile Calendar Component (web)
npm i
npm start
http://localhost:8000/examples/
online example: http://react-component.github.io/m-calendar/
./node_modules/rc-tools run react-native-init
npm run watch-tsc
react-native start
react-native run-ios
1import React, { Component } from 'react'; 2 3import { Calendar } from 'rmc-calendar'; 4import 'rmc-calendar/assets/index.css'; 5 6class App extends Component { 7 constructor(props) { 8 super(props); 9 this.state = { 10 visible: false, 11 }; 12 } 13 14 setVisiable = () => { 15 this.setState({ 16 visible: !this.state.visible, 17 }); 18 } 19 20 render() { 21 return ( 22 <div className="App"> 23 <Calendar 24 visible={this.state.visible} 25 onCancel={this.setVisiable} 26 onConfirm={this.setVisiable} 27 /> 28 </div> 29 ); 30 } 31} 32 33export default App;
1interface PropsType { 2 /** enter direction,default: vertical */ 3 enterDirection?: 'horizontal' | 'vertical'; 4 /** locale */ 5 locale?: GlobalModels.Locale; 6 onCancel?: () => void; 7 onConfirm?: (startDateTime?: Date, endDateTime?: Date) => void; 8 /** choose time,default: false */ 9 pickTime?: boolean; 10 /** (web only) prefix class,default: rmc-calendar */ 11 prefixCls?: string; 12 /** shortcut render, need showShortcut: true */ 13 renderShortcut?: (select: (startDate?: Date, endDate?: Date) => void) => React.ReactNode; 14 /** show header, default: true */ 15 showHeader?: boolean; 16 /** show shortcut, default: false */ 17 showShortcut?: boolean; 18 /** header title, default: {locale.title} */ 19 title?: string; 20 /** select type, default: range,one: one-day, range: range */ 21 type?: 'one' | 'range'; 22 /** visible, default: false */ 23 visible?: boolean; 24 25 // DatePicker Component 26 /** default date for show, default: today */ 27 defaultDate?: Date; 28 /** extra info of date */ 29 getDateExtra?: (date: Date) => DateModels.ExtraData; 30 /** infinite scroll, default: true */ 31 infinite?: boolean; 32 /** infinite scroll optimization, default: false */ 33 infiniteOpt?: boolean; 34 /** inital generate months, default: 6 */ 35 initalMonths?: number; 36 /** max date */ 37 maxDate?: Date; 38 /** min date */ 39 minDate?: Date; 40 /** select range has disable date */ 41 onSelectHasDisableDate?: (date: Date[]) => void; 42 43 // TimePicker Component 44 /** inital time of TimePicker */ 45 defaultTimeValue?: Date; 46}
1export default interface PropsType { 2 /** default date for show, default: today */ 3 defaultDate?: Date; 4 /** select value of start date */ 5 startDate?: Date; 6 /** select value of end date */ 7 endDate?: Date; 8 /** extra info of date */ 9 getDateExtra?: (date: Date) => Models.ExtraData; 10 /** infinite scroll, default: true */ 11 infinite?: boolean; 12 /** infinite scroll optimization, default: false */ 13 infiniteOpt?: boolean; 14 /** inital generate months, default: 6 */ 15 initalMonths?: number; 16 /** locale */ 17 locale?: GlobalModels.Locale; 18 /** max date */ 19 maxDate?: Date; 20 /** min date */ 21 minDate?: Date; 22 /** callback when click the cell of date */ 23 onCellClick?: (date: Date) => void; 24 /** select range has disable date */ 25 onSelectHasDisableDate?: (date: Date[]) => void; 26 /** (web only) prefix class */ 27 prefixCls?: string; 28 /** select type, default: range,one: one-day, range: range */ 29 type?: 'one' | 'range'; 30}
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
rmc-calendar is released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 4/27 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More