Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ariakit): ✨ update the core library to v2 #326

Merged
merged 35 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
18399eb
feat(link): ✨ add link component using new ariakit syntax
navin-moorthy Feb 23, 2022
4423490
feat(breadcrumb): ✨ add breadcrumb & tailwind plugins
navin-moorthy Feb 24, 2022
c2514a6
chore(files): 🚚 rename ts to tsx
navin-moorthy Feb 25, 2022
d3a7731
feat(accordion): ✨ add accordion components
navin-moorthy Feb 28, 2022
0f294e9
feat(accordion): ✨ add more features
navin-moorthy Mar 1, 2022
20b1f93
feat(accordion): ✨ finish allowMultiple feature into the single hook
navin-moorthy Mar 4, 2022
14eefd5
chore(accordion): 🐛 docs panel content
navin-moorthy Mar 4, 2022
bbbbb98
Merge branch 'main' into ariakit
navin-moorthy Mar 21, 2022
df922c1
chore(deps): ⬆️ upgrade dev deps
navin-moorthy Mar 21, 2022
1c014df
Merge branch 'main' into ariakit
navin-moorthy Mar 21, 2022
8f7d612
refactor(accordion): ♻️ refactored the repeated logic
navin-moorthy Mar 22, 2022
4988e4a
chore(deps): ⬆️ update actions/cache action to v3 (#332)
renovate[bot] Mar 22, 2022
f81297d
feat(disclosure): ✨ added collapsible content
navin-moorthy Mar 23, 2022
776a92b
Merge branch 'main' into ariakit
navin-moorthy Mar 28, 2022
2e6fbc9
chore(deps): ⬆️ update ariakit
navin-moorthy Mar 28, 2022
d00b88b
feat(components): ✨ added drawer & meter
navin-moorthy Mar 28, 2022
3cd7cff
feat(component): ✨ add progresses
navin-moorthy Mar 28, 2022
bfd3a86
feat(slider): ✨ finish slider component
navin-moorthy Mar 30, 2022
a551611
feat(toast): ✨ add v2 component
navin-moorthy Mar 31, 2022
104eda9
feat(calendar): ✨ finished base & range calendars
navin-moorthy Apr 4, 2022
5f523c3
feat(datepicker): ✨ working on datepicker
navin-moorthy Apr 8, 2022
caf835a
chore(fixes): 🐛 build, test & remove ariakit yalc
navin-moorthy Apr 12, 2022
1fabc99
Merge branch 'main' into ariakit
navin-moorthy Apr 12, 2022
f3c72c8
feat(daterange): ✨ finish daterange & datepicker with styled stories
navin-moorthy Apr 12, 2022
b3b66da
feat(comps): ✨ add pagination & numberfield
navin-moorthy Apr 18, 2022
c92eb06
feat(timefield): ✨ add timefield
navin-moorthy Apr 27, 2022
320b66a
chore(deps): ⬆️ update all dev prod deps
navin-moorthy May 9, 2022
5ec3c2c
refactor(project): ♻️ replace old src
navin-moorthy May 9, 2022
9de8c36
refactor(index): ♻️ update exports
navin-moorthy May 9, 2022
38d2492
Merge branch 'main' into ariakit
navin-moorthy May 9, 2022
a76a585
refactor(useEvent): ♻️ update useEventCallback with useEvent
navin-moorthy May 9, 2022
d30a5c6
chore(ariakit): ⬆️ update deps
navin-moorthy May 9, 2022
7f732c6
refactor(pagination): ♻️ update stories import
navin-moorthy May 9, 2022
1084af9
chore(storybook): ♻️ update storybook imports
navin-moorthy May 9, 2022
a4d7c7b
refactor(rename): ♻️ update file name to pass ci builds
navin-moorthy May 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ __js
templates
docs
CHANGELOG.md
.yalc
3 changes: 3 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; }
git lfs post-checkout "$@"
3 changes: 3 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; }
git lfs post-commit "$@"
3 changes: 3 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; }
git lfs post-merge "$@"
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
git lfs pre-push "$@"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ __js
templates
docs
CHANGELOG.md
.yalc
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const decorators = [
(Story, context) => {
document.body.id = kebabCase(context.kind);
document.body.classList.add("font-sans");
document.body.classList.add("antialiased");

return <Story />;
},
Expand Down
107 changes: 59 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
],
"scripts": {
"postinstall": "concurrently \"husky install\" \"patch-package\"",
"boot": "concurrently \"yarn keys\" \"yarn previews\"",
"keys": "node scripts/builds/keys",
"previews": "node scripts/builds/create-previews.js",
"storybook": "cross-env TAILWIND_MODE=watch start-storybook -p 6006",
"storybook": "yarn previews && cross-env TAILWIND_MODE=watch start-storybook -p 6006",
"test": "jest --config ./jest.config.ts --no-cache",
"lint": "eslint --color --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --color --ext .js,.jsx,.ts,.tsx . --fix",
Expand Down Expand Up @@ -86,41 +84,52 @@
]
},
"dependencies": {
"@chakra-ui/counter": "^1.2.5",
"@chakra-ui/hooks": "^1.8.2",
"@chakra-ui/react-utils": "^1.2.2",
"@chakra-ui/utils": "^1.10.2",
"@radix-ui/popper": "^0.1.0",
"@radix-ui/react-use-rect": "^0.1.1",
"@radix-ui/react-use-size": "^0.1.0",
"@react-aria/i18n": "^3.3.5",
"@react-aria/slider": "^3.0.4",
"@react-aria/spinbutton": "^3.0.2",
"@react-aria/utils": "^3.11.1",
"@react-stately/slider": "^3.0.4",
"@react-types/slider": "^3.0.3",
"@chakra-ui/react-utils": "^1.2.3",
"@chakra-ui/utils": "^1.10.4",
"@internationalized/date": "3.0.0-rc.0",
"@react-aria/button": "^3.4.4",
"@react-aria/calendar": "3.0.0-rc.0",
"@react-aria/datepicker": "3.0.0-rc.0",
"@react-aria/i18n": "^3.3.9",
"@react-aria/numberfield": "^3.1.6",
"@react-aria/slider": "^3.0.8",
"@react-aria/spinbutton": "^3.0.6",
"@react-aria/utils": "^3.12.0",
"@react-stately/calendar": "3.0.0-rc.0",
"@react-stately/datepicker": "3.0.0-rc.0",
"@react-stately/numberfield": "^3.0.7",
"@react-stately/slider": "^3.0.8",
"ariakit": "2.0.0-next.26",
"ariakit-utils": "0.17.0-next.18",
"date-fns": "^2.28.0",
"raf": "^3.4.1",
"react-remove-scroll": "^2.4.4",
"react-remove-scroll": "^2.5.3",
"reakit-system": "^0.15.2",
"reakit-utils": "^0.15.2",
"reakit-warning": "^0.6.2"
},
"devDependencies": {
"@babel/cli": "7.17.6",
"@babel/core": "7.17.9",
"@babel/cli": "7.17.10",
"@babel/core": "7.17.10",
"@babel/plugin-proposal-class-properties": "7.16.7",
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
"@babel/plugin-proposal-private-methods": "7.16.11",
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
"@babel/preset-env": "7.16.11",
"@babel/preset-env": "7.17.10",
"@babel/preset-react": "7.16.7",
"@babel/preset-typescript": "7.16.7",
"@commitlint/cli": "16.2.3",
"@commitlint/config-conventional": "16.2.1",
"@commitlint/cli": "16.2.4",
"@commitlint/config-conventional": "16.2.4",
"@emotion/css": "11.9.0",
"@react-spring/web": "9.4.4",
"@release-it/conventional-changelog": "4.3.0",
"@react-spring/web": "9.4.5",
"@react-types/button": "^3.4.5",
"@react-types/calendar": "3.0.0-rc.0",
"@react-types/datepicker": "3.0.0-rc.0",
"@react-types/dialog": "^3.3.5",
"@react-types/numberfield": "^3.2.0",
"@react-types/shared": "^3.12.0",
"@react-types/slider": "^3.0.6",
"@release-it/conventional-changelog": "5.0.0",
"@storybook/addon-a11y": "6.4.22",
"@storybook/addon-actions": "6.4.22",
"@storybook/addon-essentials": "6.4.22",
Expand All @@ -130,77 +139,79 @@
"@storybook/react": "6.4.22",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.1.1",
"@testing-library/react": "13.2.0",
"@testing-library/react-hooks": "8.0.0",
"@testing-library/user-event": "14.1.1",
"@types/jest": "27.4.1",
"@types/jest": "27.5.0",
"@types/jest-axe": "3.5.3",
"@types/jest-in-case": "1.0.5",
"@types/mockdate": "3.0.0",
"@types/node": "17.0.18",
"@types/node": "17.0.31",
"@types/raf": "3.4.0",
"@types/react": "18.0.5",
"@types/react-dom": "18.0.1",
"@types/react": "18.0.9",
"@types/react-dom": "18.0.3",
"@types/react-transition-group": "4.4.4",
"@types/testing-library__jest-dom": "5.14.3",
"all-contributors-cli": "6.20.0",
"ast-to-markdown": "1.0.0",
"autoprefixer": "10.4.4",
"babel-jest": "27.5.1",
"babel-loader": "8.2.4",
"autoprefixer": "10.4.7",
"babel-jest": "28.1.0",
"babel-loader": "8.2.5",
"babel-plugin-jsx-remove-data-test-id": "3.0.0",
"chalk": "4.1.0",
"codesandbox": "2.2.3",
"concurrently": "7.1.0",
"cross-env": "7.0.3",
"eslint": "8.13.0",
"eslint": "8.15.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"eslint-plugin-storybook": "0.5.10",
"gacp": "2.10.2",
"eslint-plugin-storybook": "0.5.11",
"gacp": "3.0.1",
"glob": "8.0.1",
"glob-fs": "0.1.7",
"husky": "7.0.4",
"jest": "27.5.1",
"husky": "8.0.0",
"jest": "28.1.0",
"jest-axe": "6.0.0",
"jest-environment-jsdom": "^28.1.0",
"jest-in-case": "1.0.2",
"jest-matcher-utils": "27.5.1",
"lint-staged": "12.3.8",
"jest-matcher-utils": "28.1.0",
"lint-staged": "12.4.1",
"lodash": "4.17.21",
"markdown-to-ast": "6.0.3",
"markdown-toc": "1.2.0",
"md-node-inject": "1.0.1",
"md-node-inject": "2.0.0",
"mockdate": "3.0.5",
"node-fetch": "2.6.1",
"outdent": "0.8.0",
"patch-package": "6.4.7",
"pinst": "3.0.0",
"postcss": "8.4.12",
"postcss": "8.4.13",
"postcss-import": "14.1.0",
"postcss-merge-selectors": "^0.0.6",
"postcss-scopify": "0.1.9",
"prettier": "2.6.2",
"raw-loader": "4.0.2",
"react": "18.0.0",
"react-dom": "18.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-hook-form": "7.30.0",
"react-test-renderer": "18.0.0",
"react-test-renderer": "18.1.0",
"react-transition-group": "4.4.2",
"react-virtual": "2.10.4",
"reakit": "1.3.11",
"reakit-test-utils": "0.15.2",
"release-it": "14.14.2",
"release-it": "15.0.0",
"rimraf": "3.0.2",
"sort-package-json": "1.55.0",
"sort-package-json": "1.57.0",
"storybook-addon-preview": "2.2.0",
"storybook-addon-react-docgen": "1.2.42",
"strip-comments": "2.0.1",
"tailwindcss": "3.0.24",
"ts-jest": "27.1.4",
"ts-jest": "28.0.2",
"ts-morph": "14.0.0",
"ts-node": "10.7.0",
"typescript": "4.6.3",
"typescript": "4.6.4",
"webpack": "5.72.0",
"yaml": "2.0.1"
},
Expand Down
13 changes: 13 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,22 @@ function addIdScope() {

module.exports = {
plugins: [
require("postcss-import"),
require("tailwindcss"),
require("postcss-flexbugs-fixes"),
require("autoprefixer")({ flexbox: "no-2009" }),
require("postcss-merge-selectors")({
matchers: {
active: {
selectorFilter: /(:active|\[data-active\])/,
promote: true,
},
focusVisible: {
selectorFilter: /(:focus-visible|\[data-focus-visible\])/,
promote: true,
},
},
}),
rewriteRootRule(),
addIdScope(),
],
Expand Down
1 change: 0 additions & 1 deletion src/__mocks__/styleMock.js

This file was deleted.

36 changes: 0 additions & 36 deletions src/accordion/Accordion.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/accordion/AccordionBaseState.ts

This file was deleted.

Loading