Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
595fc69
WIP: new datepicker
eswarclynn May 9, 2025
391f212
fix: condition
eswarclynn May 14, 2025
d90b845
revert: delete unused context
eswarclynn May 15, 2025
c16fc64
fix: input styling
eswarclynn May 15, 2025
e8724e1
fix: type issues and condition select
eswarclynn May 15, 2025
01153c4
fix: render inputs
eswarclynn May 15, 2025
2d27068
fix: showPresets
eswarclynn May 16, 2025
dd5b13f
fix: in range css, month selector
eswarclynn May 16, 2025
519c8ba
fix: default props, condition width
eswarclynn May 18, 2025
ff2fa3d
fix: input spacing for single month
eswarclynn May 19, 2025
879ca57
fix: input cal icon, single date selection
eswarclynn May 19, 2025
a8646ca
fix: variants alignments
eswarclynn May 19, 2025
bb3a9d0
fix: css
eswarclynn May 19, 2025
12d7ae6
fix: onChange with condition
eswarclynn May 19, 2025
fd9a2d4
fix: placeholders
eswarclynn May 19, 2025
f751826
fix: type issues
eswarclynn May 19, 2025
cd713bb
2.4.1
eswarclynn May 20, 2025
a8f61c7
fix: use rem for width
eswarclynn May 20, 2025
d19c35d
fix: use right key for preset selection, bg color
eswarclynn May 20, 2025
b35b8b2
fix: remove log
eswarclynn May 20, 2025
d10b052
fix: condition in range value, onChange on preset change cb
eswarclynn May 20, 2025
9961dc2
fix: use margin
eswarclynn May 20, 2025
d7413f9
feat: available conditions
eswarclynn May 20, 2025
abc2131
fix: publish alpha version
eswarclynn May 20, 2025
f1a7aee
2.4.1-alpha.1
eswarclynn May 20, 2025
b1696ad
revert: npmrc comment
eswarclynn May 21, 2025
aa36ada
fix: padding for month/year selector
eswarclynn May 26, 2025
0c4c570
fix: hover background for month chevrons
eswarclynn May 26, 2025
b55dbdb
fix: day cell layout, styling
eswarclynn May 26, 2025
a0f625c
fix: border radius
eswarclynn May 26, 2025
c772c81
fix: don't show passive dates, month picker css
eswarclynn May 26, 2025
6759578
fix: input date
eswarclynn May 26, 2025
042358b
fix: expose label, placeholder props
eswarclynn May 26, 2025
37d8e17
2.4.1-alpha.2
eswarclynn May 26, 2025
767cf8f
feat: editable date inputs
eswarclynn May 27, 2025
b2df627
revert: back to class component
eswarclynn May 27, 2025
7f56102
fix: prop name goddamn bug i hate working without type checking
eswarclynn May 27, 2025
970e842
fix: remove single styling, month/picker chevron margin
eswarclynn May 28, 2025
b2b723c
2.4.1-alpha.3
eswarclynn May 28, 2025
51dad25
fix: remove utility classes
eswarclynn May 30, 2025
fae9b79
fix: add after to label, placeholder props
eswarclynn May 30, 2025
bcd9813
2.4.1-alpha.4
eswarclynn May 30, 2025
5e83f9b
2.4.1-alpha.5 - fix styles object
eswarclynn May 30, 2025
b65733b
fix: navigation header
eswarclynn Jun 5, 2025
83fb94a
fix: presets, styling
eswarclynn Jun 5, 2025
21d7e72
dix: add quarter preset
eswarclynn Jun 5, 2025
49852d6
fix: preset styling
eswarclynn Jun 5, 2025
d7e6631
fix: expose min/max date as common props
eswarclynn Jun 5, 2025
bc558ce
feat: error validation
eswarclynn Jun 5, 2025
9d2b406
fix: styling, cb error
eswarclynn Jun 5, 2025
5cca7f9
fix: max date, labels, placeholders
eswarclynn Jun 5, 2025
2c7bb9d
2.4.1-alpha.6
eswarclynn Jun 5, 2025
216b845
fix: remove error on input update
eswarclynn Jun 6, 2025
915c5c7
2.4.1-alpha.7
eswarclynn Jun 6, 2025
33774e2
fix: call onChange cb on condition change
eswarclynn Aug 11, 2025
1aa2933
2.4.1-alpha.8
eswarclynn Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 24 additions & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier'],
plugins: ['react', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
jsxBracketSameLine: true,
printWidth: 100,
parser: 'babylon'
}
],
plugins: [
"react",
"prettier",
],
rules: {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"printWidth": 100,
"parser": "babylon",
}],
"no-debugger": 0,
"no-console": 0,
},
parser: "babel-eslint",
env: {
"es6": true,
"node": true,
"browser": true,
"jest": true,
},
};
'no-debugger': 0,
'no-console': 0
},
parser: 'babel-eslint',
env: {
es6: true,
node: true,
browser: true,
jest: true
}
};
11 changes: 10 additions & 1 deletion .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
- run: yarn build:css
- run: yarn build:js
- run: yarn styleguidist build
- run: yarn publish
- name: Get version from package.json
id: get_version
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Publish to npm
run: |
if [[ "${{ steps.get_version.outputs.VERSION }}" == *"alpha"* ]]; then
yarn publish --tag alpha
else
yarn publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
node_modules/
.DS_Store
*.log
Expand Down
17 changes: 7 additions & 10 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"printWidth": 110,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"fluid": false
}
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"printWidth": 100,
"parser": "babylon"
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "silq-react-date-range",
"version": "2.4.0",
"version": "2.4.1-alpha.8",
"description": "A React component for choosing dates and date ranges.",
"main": "dist/index.js",
"scripts": {
"start": "yarn build:css & styleguidist server",
"start": "yarn watch:css & yarn watch:js & styleguidist server",
"build": "yarn build:css & yarn build:js & ls & styleguidist build",
"watch:css": "postcss 'src/styles.scss' -w -d dist --ext css & postcss 'src/theme/*.scss' -w -d 'dist/theme' --ext css",
"build:css": "postcss 'src/styles.scss' -d dist --ext css & postcss 'src/theme/*.scss' -d 'dist/theme' --ext css",
"build:js": "babel ./src --out-dir ./dist --ignore test.js",
"watch:js": "babel ./src --out-dir ./dist --ignore test.js --watch",
"lint": "eslint 'src/**/*.js'",
"test": "jest",
"preversion": "yarn clear & yarn build"
Expand Down
Loading
Loading