@nateradebaugh/react-datetime
Version:
A lightweight but complete datetime picker React.js component
147 lines (146 loc) • 4.35 kB
JSON
{
"name": "@nateradebaugh/react-datetime",
"version": "4.6.0",
"description": "A lightweight but complete datetime picker React.js component",
"license": "MIT",
"homepage": "https://github.com/NateRadebaugh/react-datetime",
"repository": {
"type": "git",
"url": "https://github.com/NateRadebaugh/react-datetime"
},
"authors": [
"Javier Marquez",
"Nate Radebaugh"
],
"main": "dist/index.js",
"umd:main": "dist/react-datetime.umd.production.min.js",
"module": "dist/react-datetime.esm.js",
"typings": "dist/index.d.ts",
"files": [
"scss",
"dist"
],
"sideEffects": [
"**/*.css",
"**/*.scss"
],
"bundlesize": [
{
"path": "dist/react-datetime.cjs.production.min.js",
"maxSize": "5.0 kB"
},
{
"path": "dist/react-datetime.cjs.development.js",
"maxSize": "10 kB"
},
{
"path": "dist/react-datetime.esm.js",
"maxSize": "6.5 kB"
},
{
"path": "dist/react-datetime.umd.production.min.js",
"maxSize": "5.5 kB"
},
{
"path": "dist/react-datetime.umd.development.js",
"maxSize": "10 kB"
}
],
"keywords": [
"react",
"react-component",
"datepicker",
"timepicker",
"datetimepicker",
"datetime"
],
"scripts": {
"now-build": "storybook build -c .storybook -o public",
"build": "tsdx build --format=umd,esm,cjs&&npm run sass",
"sass": "sass scss/styles.scss dist/css/styles.css",
"bundlesize": "bundlesize",
"dev": "tsdx watch --format=esm",
"start": "npm run dev",
"test": "cross-env CI=1 TZ=Europe/Stockholm vitest",
"test:ci": "cross-env CI=1 TZ=Europe/Stockholm vitest",
"test:coverage": "npm run test --coverage",
"test:all": "echo 'Running tests...' && npm run bundlesize && npm run test:coverage && echo 'All tests passed! 🤘'",
"test:watch": "cross-env TZ=Europe/Stockholm vitest --watch",
"deduplicate": "npx npm run-deduplicate -s fewer npm run.lock",
"lint": "eslint src --ext .js,.ts,.jsx,.tsx --cache",
"lint:fix": "npm run lint --fix",
"format": "prettier --write . --cache",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build -c .storybook -o public",
"chromatic": "chromatic",
"prepack": "npm run build",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint src --ext .js,.ts,.jsx,.tsx"
],
"src/**/*.{json,css,scss}": [
"prettier --write"
],
"src/**/*": [
"bundlesize"
]
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8"
},
"devDependencies": {
"@sheerun/mutationobserver-shim": "^0.3.3",
"@storybook/addon-essentials": "^7.0.0-beta.16",
"@storybook/addon-interactions": "^7.0.0-beta.16",
"@storybook/addon-links": "^7.0.0-beta.16",
"@storybook/blocks": "^7.0.0-beta.16",
"@storybook/react": "^7.0.0-beta.16",
"@storybook/react-vite": "^7.0.0-beta.16",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.0.0-alpha.5",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.4",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"bundlesize": "^0.18.0",
"chromatic": "^6.14.0",
"cross-env": "^7.0.2",
"css-loader": "^6.7.3",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.8",
"eslint-plugin-testing-library": "^5.9.1",
"husky": "^8.0.2",
"jsdom": "^20.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"storybook": "^7.0.0-beta.16",
"style-loader": "^3.3.1",
"tsdx": "^0.14.1",
"typescript": "^4.9.4",
"vite": "^4.0.3",
"vitest": "^0.26.2",
"webpack": "^5.75.0"
},
"dependencies": {
"@reach/popover": "^0.18.0",
"clsx": "^1.2.1",
"date-fns": "^2.29.2",
"use-onclickoutside": "^0.4.1"
}
}