weekday-date-range-picker
v0.1.0
Published

Readme
Week Date Range Picker

A React date range picker that splits weekdays and weekends, supports quick ranges, and provides theming.
Install
npm install weekday-date-range-pickerUsage
import React, { useState } from 'react';
import {
WeekdayDateRangePicker,
colorSchemas
} from 'weekday-date-range-picker';
export default function Example() {
const [theme, setTheme] = useState(colorSchemas.Material);
return (
<WeekdayDateRangePicker
title="Custom Date Range Picker"
selectedTheme={theme}
onChange={([weekdays, weekends]) => {
console.log('Weekdays:', weekdays);
console.log('Weekends:', weekends);
}}
/>
);
}Styles
Styles are included via the component import. If your bundler requires explicit CSS imports:
import 'weekday-date-range-picker/styles.css';Local Development
npm startBuild Library
npm run build:libExample App (Vite)
cd example
npm install
npm run devPublish (Creation → Shipping)
- Update
nameandversioninpackage.json. - Create an npm account and run
npm login. - Build the library:
npm run build:lib. - Publish:
- Unscoped:
npm publish - Scoped (public):
npm publish --access public
- Unscoped:
- Verify on npm and install from a consumer app.
