73 Commits

Author SHA1 Message Date
Wes Souza
107fe1564f refactor(select): improve keyboard and events, split native to SelectNative
BREAKING CHANGE: Select props changed significantly, native is now the SelectNative component
2022-09-10 17:19:46 +02:00
Wes Souza
7efe96cd94 build: update build to preserve modules and use @rollup/plugin-typescript
This changes the main output to also preserve modules, allowing tree shaking when users build their projects.

This also replaces rollup-plugin-dts with the more traditional @rollup/plugin-typescript, which exports type declarations for individual files fixing issues with themes imports.
2022-08-07 13:34:19 +02:00
Wes Souza
64aee8b45a chore: restore React 16 support
This restores importing React and the ESLint rule react/react-in-jsx-scope to preserve React 16 compatibility.

This also moves some types around so themes can be exported as a standalone with its own TypeScript config.
2022-08-05 16:13:27 +02:00
Wes Souza
2eac4e8aa5 feat(storybook): Reimplement "Themes" add on with React95 style
This also upgrades many dependencies, removes storybook-addon-styled-component-theme and configures babel in preparation for Storybook v7.
2022-08-04 21:50:37 +02:00
Wes Souza
71a964e83f ci: add lint and type checking
This also fixes some remaining lint issues.
2022-08-04 17:02:23 +02:00
Wes Souza
0f3c9ff1b7 chore(lint): add eslint-plugin-react-hooks
This also disables no-undef for TypeScript files and removes no-nested-ternary.
2022-07-26 18:09:01 +02:00
Wes Souza
fc7c8a93d9 chore(deps): upgrade @types/react and @types/react-dom to 18 2022-07-25 15:43:33 +02:00
Wes Souza
cc6ca3e2a9 chore: install and configure TypeScript
This commit:
- Adds .editorconfig file
- Installs TypeScript and necessary dependencies
- Configures TypeScript tsconfig.json
- Configures Rollup to use esbuild and export .d.ts
- Converts entry files to TypeScript
- Configures Storybook to generate docs based on types
- Configures TypeScript on ESLint
- Configures Jest and ts-jest for TypeScript
- Fixes no-use-before-define problems on stories
- Ignores @typescript-eslint/no-unused-vars on mapFromWindowsTheme
- Fixes test failure on CSS check
2022-07-24 19:57:31 +02:00
arturbien
1fd382f92e ci: enable Codesandbox CI 2022-07-21 18:14:10 +02:00
arturbien
d7a74f360a ci: setup github actions
ci: separate ci and release workflows
2022-07-21 17:43:33 +02:00
Wes Souza
1fda05ae6b chore: remove docz dependency 2022-07-20 17:45:06 +02:00
Wes Souza
07b2c4df24 chore: fix ESLint issues after version upgrade
- class-methods-use-this required DatePicker update convertDateToState to be static
- no-console was disabled on tests and stories
- jsx-a11y/label-has-associated-control removed duplicate rule
- prettier/prettier auto-fixed many components due to Prettier upgrade
- react/function-component-definition auto-fixed many components
- react/jsx-fragments auto-fixed Select.spec with <>
- react/jsx-no-useless-fragment auto-fixed Select to remove useless Fragment
- react/jsx-props-no-spreading was turned off
- react/no-unused-prop-types was ignored on Tree and useForkRef
- react/static-property-placement was set up to our use case
2022-07-19 22:45:23 +02:00
Wes Souza
2359aad3be chore: update tests for newer test libraries versions
- jest-environment-jsdom must be installed and configured separately
- Timers changed so setTimeout can only be observed on the legacy fake timers
- waitForDomChange doesn't exist anymore
- toBeEmpty is deprecated, should be replaced with toBeEmptyDOMElement
2022-07-19 22:45:23 +02:00
Wes Souza
059925ac63 chore: upgrade all dependencies to their latest versions, with exceptions
- react, react-dom were set to 17.0.2 because docz doesn't support react 18
- @testing-library/react was set to 12.1.5 because 13 requires react 18
2022-07-19 22:45:23 +02:00
Wes Souza
5d8a1717a1 chore: remove "-s public" from storybook CLI given it doesn't exist 2022-07-18 09:54:55 +02:00
Wes Souza
9019162c3a chore: upgrade Storybook to 6.5.9
This also updates package-lock to lockfileVersion 2, automatically done when running npm install.
2022-07-18 09:54:55 +02:00
arturbien
01383c2534 fix(package.json): support react > 16.8 2022-07-09 18:13:18 +02:00
arturbien
44d9d75343 fix: add funding info 2022-02-12 11:26:52 +01:00
arturbien
33738d09d3 feat(package.json): add support for React 17
fix #261
2022-02-12 10:47:47 +01:00
Max Quinn
02c7185a2e chore(dependency update for styled-components): updating styled-components to v5
fix #183
2020-09-03 20:22:30 +02:00
Artur Bień
7e02311a1e docs(readme): prepare README for v3 release 2020-07-19 00:42:04 +02:00
Artur Bień
84a73f65a3 style(package.json): run storybook on 'npm start' 2020-07-18 22:31:15 +02:00
Artur Bień
79eca2d341 feat(esm,themes,fonts): include esm build and fonts in the package
includes ESM build and fonts in the package. Themes are now now moved from main bundle to
'react95/dist/themes'

BREAKING CHANGE: themes moved from the main bundle to 'react95/dist/themes'
2020-05-31 18:30:34 +02:00
Artur Bień
496a7ae9dd ci(config.yml): fix ci/cd scripts to match new folder structures 2020-05-18 18:56:31 +02:00
Luiz Baldi
316fc61f37 Merge beta branch with new documentation from develop 2020-05-17 16:49:44 -03:00
Luiz Baldi
2fd78a4c62 Remove react95 as dev dependency for documentation and fix all imports 2020-04-30 00:37:30 +02:00
Luiz Baldi
a1b7662fae Improve docs structure
* Move each mdx file to respective component folder (colocation ftw)
* Fix some style prop-types in order to fix docz build
* Move docz to the root folder instead of having a separated project folder
2020-04-30 00:37:30 +02:00
Luiz Baldi
85594d3a7a Rename old website and storybook 2020-04-30 00:37:30 +02:00
Artur Bień
a2fa95d853 docs(storybook): add theme addon 2020-04-26 10:49:30 +02:00
Artur Bień
bbe807b017 build(babel): update preset-env 2020-04-25 20:47:35 +02:00
Artur Bień
92bd22e334 docs(storybook): migrate to CSF format, add addon-docs 2020-04-12 00:53:49 +02:00
Artur Bień
a6f93c071d ci(storybook): deploy storybook when new lib version is released
#110
2020-03-15 22:22:30 +01:00
Artur Bień
6f08aed6a1 build(package.json): sync package.json and package-lock.json
package.json and package-lock.json must be in sync to enable 'npm ci' install. This enables faster
install on CI environments
2020-03-14 21:24:56 +01:00
Artur Bień
a2dcaf2be1 feat: implement CI
BREAKING CHANGE:  breaking change to release beta ona as v3

BREAKING CHANGE: v3
2020-03-14 15:37:16 +01:00
Artur Bień
e8d38f4fd5 chore(tooling): add semantic-release and commitizen
Add semantic-release and commitizen to automate releases of this repo. This also enforces the
conventional changelog convention for commit messages
2020-03-14 15:19:08 +01:00
Artur Bien
366b08fe32 updated Storybook, removed themes addon 2020-01-29 20:43:24 +01:00
Artur Bien
732a9eb21b changed prod script output path 2019-12-07 15:55:46 +01:00
Luiz Baldi
8ea2b4a46b Improve eslint configuration with prettier 2019-10-28 22:18:37 -03:00
Luiz Baldi
50ee909963 fix prettier dependencies 2019-10-02 22:57:36 -03:00
Luiz Baldi
1518e4b196 sync fork and merge with original master 2019-10-02 22:49:18 -03:00
Luiz Baldi
372f3d975d chore: upgrade dependencies 2019-10-02 22:22:13 -03:00
Baldi
d39fd818e7 Add and configure prettier with pre-commit hook 2019-08-06 21:48:19 -03:00
Baldi
36553f7c76 Remove classnames dependency and fix List component 2019-08-04 16:38:03 -03:00
Baldi
b7ef97308b Configure pre-commit hook with husky and lint-staged 2019-07-29 22:53:00 -03:00
Rakesh Nallam
4919b5c714 chore():including eslint configuration 2019-07-24 00:17:32 -07:00
Baldi
5260860857 Add babel plugin to handle async tests 2019-07-10 21:38:11 -03:00
Baldi
2f81a44f14 Add and config jest-styled-components 2019-07-09 10:12:07 -03:00
Baldi
69e498dec6 Setup initial test structure 2019-07-08 21:56:17 -03:00
Artur Bien
a8f9aff80a released v2.0.0 2019-05-26 16:01:25 +02:00
maracuja-juice
9a07f441aa update storybook to v5 2019-04-22 12:59:03 +02:00