GithubHelp home page GithubHelp logo

flippingbitss / react-daterange-picker Goto Github PK

View Code? Open in Web Editor NEW
109.0 2.0 212.0 1.73 MB

A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/

License: MIT License

TypeScript 100.00%
react date-range-picker picker material-ui typescript npm-package date-fns react-component react-hooks hooks

react-daterange-picker's People

Contributors

flippingbitss avatar jligeza avatar rolfkoenders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-daterange-picker's Issues

Customize style

Hello there! I have a question about customization. Everything else is pretty good right now but I prefer to make some changes about how it looks. I tried to make changes in typescript files into /src or into build version but without success...

Internationalization

Hello. Is it possible to translate the names of days of weeks and months into other languages?

not able update selected date range

if we want to update value of initial date range after api call it is not accepting the value
for example for the first time if i send {startDate: '2024-03-13', endDate: '2024-04-13'} and later if update my value to {startDate: '2024-03-13', endDate: '2024-05-13'} it is still showing selected range is this({startDate: '2024-03-13', endDate: '2024-04-13'})

you have to take new prop like selected daterange to update
or please add useEffect in to update daterange in your code with dependency array initialDateRange

useEffect(()=>{
setdaterange({...initialDateRange})
},[initialDateRange])

Building using Rollup failed

Hi,

first congrats for the job. It is a really nice react component. Although, I couldn't build my project using rollup.

Results bellow:
(!) thishas been rewritten toundefined https://rollupjs.org/guide/en/#error-this-is-undefined node_modules\@matharumanpreet00\react-daterange-picker\build\index.js 1: "use strict"; 2: var __assign = (this && this.__assign) || function () { ^ 3: __assign = Object.assign || function(t) { 4: for (var s, i = 1, n = arguments.length; i < n; i++) { ...and 5 other occurrences [!] Error: 'DateRangePicker' is not exported by node_modules\@matharumanpreet00\react-daterange-picker\build\index.js https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module- src\Dashboards\Compras\index.jsx (2:9) 1: import React, { Component } from 'react'; 2: import { DateRangePicker, DateRange } from "@matharumanpreet00/react-daterange-picker"; ^ 3: 4: import ContratacoesPorPeriodo from 'ContratacoesPorPeriodo'; Error: 'DateRangePicker' is not exported by node_modules\@matharumanpreet00\react-daterange-picker\build\index.js

package.json:
"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "rollup -c src/rollup.config.js --compact" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@babel/core": "^7.5.5", "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "rollup": "^1.17.0", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-node-resolve": "^5.2.0" }, "dependencies": { "@material-ui/core": "^4.3.0", "@matharumanpreet00/react-daterange-picker": "^1.0.5" }

Month/Year dropdown doesn't work within a React-Bootstrap Dropdown

I am using a Dropdown button from React Bootstrap to display the daterange picker, however, the fields month and year (Select type) don't dropdown when clicked. I'm guessing it is a conflict between the component dropdown and select fields? Any work around this?

Update:
The dropdowns are being displayed pratically outside the screen :/

Disable dates in the future

Hi,
amazing components, simple, straightforward and complete.
may I ask you if there is any way to disable dates in the future?
I'm not sure it's clear to me how to use endDate and startDate props.

Build fails using Parcel

node_modules/@matharumanpreet00/react-daterange-picker/node_modules/@material-ui/core/styles/createGenerateClassName.d.ts(1,10): 
error TS2614: Module '"../../../../../../../../../myProjectPath/node_modules/jss/src"' has no exported member 'GenerateClassName'. 
Did you mean to use 'import GenerateClassName from "../../../../../../../../../myProjectPath/node_modules/jss/src"' instead?

Probably related: #1

It seems that the import paths used are not correct.

Production issue

It's working great in the dev mode but in production, not sure why it's so weird. FYI, i'm using material-ui
Screenshot 2021-04-10 at 4 27 58 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.