Skip to content

Commit a7c81a6

Browse files
Merge pull request #132 from timelessco/aug-updates
aug-updates
2 parents 0d48947 + 69f2019 commit a7c81a6

File tree

7 files changed

+890
-413
lines changed

7 files changed

+890
-413
lines changed

.release-it.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"hooks": {
3-
"before:init": "npm test",
4-
"before:bump": "npm run build"
3+
"before:init": [
4+
"if [ \"$(git log $(git describe --tags --abbrev=0)..HEAD)\" = \"\" ]; then exit 1; fi;",
5+
"yarn test --updateSnapshot",
6+
"yarn build"
7+
]
58
},
69
"git": {
10+
"requireBranch": "main",
711
"commitMessage": "🚀 Release v${version}",
8-
"commitArgs": ["--no-verify"]
12+
"commitArgs": ["--no-verify", "-S"],
13+
"tagArgs": ["-s"]
914
},
1015
"github": {
1116
"release": true,

babel.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ module.exports = function (api) {
2626
];
2727

2828
const plugins = [
29-
["@babel/plugin-proposal-class-properties"],
29+
["@babel/plugin-proposal-class-properties", { loose: true }],
30+
["@babel/plugin-proposal-logical-assignment-operators", { loose: true }],
31+
["@babel/plugin-proposal-private-property-in-object", { loose: true }],
32+
["@babel/plugin-proposal-private-methods", { loose: true }],
3033
["lodash"],
3134
isBuild
3235
? [

package.json

+32-30
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,24 @@
8181
]
8282
},
8383
"dependencies": {
84-
"@react-aria/live-announcer": "^3.0.0",
85-
"@renderlesskit/react": "^0.3.3",
84+
"@react-aria/live-announcer": "^3.0.1",
85+
"@renderlesskit/react": "^0.4.0",
8686
"lodash": "4.17.21",
8787
"reakit": "^1.3.8"
8888
},
8989
"devDependencies": {
90-
"@babel/cli": "7.14.5",
91-
"@babel/core": "^7.14.6",
90+
"@babel/cli": "7.14.8",
91+
"@babel/core": "^7.15.0",
9292
"@babel/plugin-proposal-class-properties": "7.14.5",
93-
"@babel/preset-env": "7.14.7",
93+
"@babel/plugin-proposal-logical-assignment-operators": "^7.14.5",
94+
"@babel/plugin-proposal-private-methods": "^7.14.5",
95+
"@babel/plugin-proposal-private-property-in-object": "^7.14.5",
96+
"@babel/preset-env": "7.15.0",
9497
"@babel/preset-react": "7.14.5",
95-
"@babel/preset-typescript": "7.14.5",
96-
"@commitlint/cli": "^12.1.4",
97-
"@commitlint/config-conventional": "^12.1.4",
98-
"@release-it/conventional-changelog": "^3.0.1",
98+
"@babel/preset-typescript": "7.15.0",
99+
"@commitlint/cli": "^13.1.0",
100+
"@commitlint/config-conventional": "^13.1.0",
101+
"@release-it/conventional-changelog": "^3.1.1",
99102
"@storybook/addon-a11y": "6.4.0-alpha.16",
100103
"@storybook/addon-actions": "6.4.0-alpha.16",
101104
"@storybook/addon-essentials": "6.4.0-alpha.16",
@@ -105,65 +108,64 @@
105108
"@testing-library/jest-dom": "^5.14.1",
106109
"@testing-library/react": "^12.0.0",
107110
"@testing-library/react-hooks": "^7.0.1",
108-
"@testing-library/user-event": "^13.2.0",
109-
"@types/jest": "^26.0.24",
111+
"@testing-library/user-event": "^13.2.1",
112+
"@types/jest": "^27.0.1",
110113
"@types/jest-axe": "^3.5.2",
111-
"@types/node": "^16.3.3",
112-
"@types/react": "^17.0.14",
114+
"@types/node": "^16.6.1",
115+
"@types/react": "^17.0.17",
113116
"@types/react-dom": "^17.0.9",
114117
"@types/tailwindcss": "^2.2.1",
115-
"@types/testing-library__jest-dom": "^5.14.0",
116-
"@typescript-eslint/eslint-plugin": "^4.28.3",
117-
"@typescript-eslint/parser": "^4.28.3",
118+
"@types/testing-library__jest-dom": "^5.14.1",
119+
"@typescript-eslint/eslint-plugin": "^4.29.1",
120+
"@typescript-eslint/parser": "^4.29.1",
118121
"all-contributors-cli": "^6.20.0",
119122
"autoprefixer": "10.3.1",
120123
"babel-eslint": "^10.1.0",
121124
"babel-jest": "^27.0.6",
122125
"babel-loader": "^8.2.2",
123126
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
124127
"babel-plugin-lodash": "^3.3.4",
125-
"concurrently": "^6.2.0",
128+
"concurrently": "^6.2.1",
126129
"cross-env": "^7.0.3",
127-
"date-fns": "^2.22.1",
128130
"deepmerge": "^4.2.2",
129-
"eslint": "^7.31.0",
131+
"eslint": "^7.32.0",
130132
"eslint-config-prettier": "^8.3.0",
131133
"eslint-config-react-app": "^6.0.0",
132-
"eslint-plugin-flowtype": "^5.8.0",
133-
"eslint-plugin-import": "^2.23.4",
134-
"eslint-plugin-jest": "^24.3.6",
134+
"eslint-plugin-flowtype": "^5.9.0",
135+
"eslint-plugin-import": "^2.24.0",
136+
"eslint-plugin-jest": "^24.4.0",
135137
"eslint-plugin-jsx-a11y": "^6.4.1",
136138
"eslint-plugin-prettier": "^3.4.0",
137139
"eslint-plugin-react": "^7.24.0",
138140
"eslint-plugin-react-hooks": "^4.2.0",
139-
"eslint-plugin-testing-library": "^4.9.1",
141+
"eslint-plugin-testing-library": "^4.10.1",
140142
"focus-visible": "^5.2.0",
141143
"gacp": "^2.10.2",
142144
"husky": "^7.0.1",
143145
"jest": "^27.0.6",
144146
"jest-axe": "^5.0.1",
145-
"lint-staged": "^11.0.1",
147+
"lint-staged": "^11.1.2",
146148
"patch-package": "^6.4.7",
147149
"pinst": "^2.1.6",
148-
"postcss": "^8.3.5",
150+
"postcss": "^8.3.6",
149151
"postcss-cli": "^8.3.1",
150152
"postcss-focus-visible": "^5.0.0",
151153
"prettier": "^2.3.2",
152154
"react": "^17.0.2",
153155
"react-dom": "^17.0.2",
154-
"react-hook-form": "^7.11.1",
156+
"react-hook-form": "^7.12.2",
155157
"react-icons": "^4.2.0",
156158
"reakit-test-utils": "^0.15.1",
157-
"release-it": "^14.10.0",
159+
"release-it": "^14.11.3",
158160
"rimraf": "^3.0.2",
159161
"sort-package-json": "^1.50.0",
160162
"storybook-addon-pseudo-states": "^1.0.0",
161163
"storybook-builder-vite": "^0.0.12",
162-
"tailwindcss": "2.2.4",
163-
"ts-node": "^10.1.0",
164+
"tailwindcss": "2.2.7",
165+
"ts-node": "^10.2.0",
164166
"tsd": "^0.17.0",
165167
"typescript": "^4.3.5",
166-
"vite": "^2.4.2"
168+
"vite": "^2.4.4"
167169
},
168170
"peerDependencies": {
169171
"deepmerge": "4.x",
File renamed without changes.

src/datepicker/DatePicker.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from "react";
2-
import { format } from "date-fns";
3-
import { CalendarStateReturn } from "@renderlesskit/react";
2+
import { CalendarStateReturn, format } from "@renderlesskit/react";
43

54
import {
65
DatePicker,

src/theme/theme.test-d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ expectType<Renderlesskit.Theme>({ components: theme });
88

99
// GetThemeValue test
1010
expectAssignable<Renderlesskit.GetThemeValue<"button", "base">>("");
11-
expectType<Renderlesskit.GetThemeValue<"button", "variant">>({
11+
expectType<Renderlesskit.GetThemeValue<"button", "variant", "default">>({
1212
ghost: "",
1313
solid: "",
1414
subtle: "",
1515
outline: "",
1616
});
17-
expectType<Renderlesskit.GetThemeValue<"button", "size">>({
17+
expectType<Renderlesskit.GetThemeValue<"button", "size", "default">>({
1818
sm: "",
1919
md: "",
2020
lg: "",

0 commit comments

Comments
 (0)