A drawer component for React.
feat: documentation (#454)
Emil Kowalski5af1055d0edb
diff --git a/package.json b/package.jsonindex 6053ddc..5b3f8ef 100644--- a/package.json+++ b/package.json@@ -24,7 +24,6 @@"build": "pnpm type-check && bunchee && pnpm copy-assets","copy-assets": "cp -r ./src/style.css ./style.css","dev": "bunchee --watch",- "dev:website": "turbo run dev --filter=website...","dev:test": "turbo run dev --filter=test...","format": "prettier --write .","test": "playwright test"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3403bec..6236cb5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -92,49 +92,6 @@ importers:specifier: 5.2.2version: 5.2.2- website:- dependencies:- '@vercel/analytics':- specifier: ^1.0.1- version: 1.1.3- clsx:- specifier: ^2.0.0- version: 2.1.0- next:- specifier: 13.5.1- version: 13.5.1([email protected])([email protected])- react:- specifier: 18.2.0- version: 18.2.0- react-dom:- specifier: 18.2.0- version: 18.2.0([email protected])- react-merge-refs:- specifier: ^2.0.2- version: 2.1.1- tailwindcss:- specifier: 3.3.3- version: 3.3.3- vaul:- specifier: workspace:*- version: link:..- devDependencies:- autoprefixer:- specifier: 10.4.14- version: 10.4.14([email protected])- eslint:- specifier: 8.45.0- version: 8.45.0- eslint-config-next:- specifier: 13.4.10- version: 13.4.10([email protected])([email protected])- postcss:- specifier: 8.4.26- version: 8.4.26- typescript:- specifier: 5.2.2- version: 5.2.2-packages:/@aashutoshrathi/[email protected]:@@ -184,16 +141,6 @@ packages:regenerator-runtime: 0.14.1dev: true- /@eslint-community/[email protected]([email protected]):- resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || >=8.0.0- dependencies:- eslint: 8.45.0- eslint-visitor-keys: 3.4.3- dev: true-/@eslint-community/[email protected]([email protected]):resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -243,11 +190,6 @@ packages:- supports-colordev: true- /@eslint/[email protected]:- resolution: {integrity: sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-/@eslint/[email protected]:resolution: {integrity: sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -337,12 +279,6 @@ packages:resolution: {integrity: sha512-CIMWiOTyflFn/GFx33iYXkgLSQsMQZV4jB91qaj/TfxGaGOXxn8C1j72TaUSPIyN7ziS/AYG46kGmnvuk1oOpg==}dev: false- /@next/[email protected]:- resolution: {integrity: sha512-YJqyq6vk39JQfvaNtN83t/p5Jy45+bazRL+V4QI8FPd3FBqFYMEsULiwRLgSJMgFqkk4t4JbeZurz+gILEAFpA==}- dependencies:- glob: 7.1.7- dev: true-/@next/[email protected]:resolution: {integrity: sha512-LBlI3iQvlzRE7Y6AfIyHKuM4T6REGmFgweN2tBqEUVEfgxERBLOutV2xckXEp3Y3VbfJBBXKZNfDzs20gHimSg==}dependencies:@@ -1122,26 +1058,6 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==}- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/scope-manager': 5.62.0- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/typescript-estree': 5.62.0([email protected])- debug: 4.3.4- eslint: 8.45.0- typescript: 5.2.2- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==}engines: {node: ^16.0.0 || >=18.0.0}@@ -1163,14 +1079,6 @@ packages:- supports-colordev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==}engines: {node: ^16.0.0 || >=18.0.0}@@ -1179,37 +1087,11 @@ packages:'@typescript-eslint/visitor-keys': 6.21.0dev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==}engines: {node: ^16.0.0 || >=18.0.0}dev: true- /@typescript-eslint/[email protected]([email protected]):- resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0- debug: 4.3.4- globby: 11.1.0- is-glob: 4.0.3- semver: 7.6.0- tsutils: 3.21.0([email protected])- typescript: 5.2.2- transitivePeerDependencies:- - supports-color- dev: true-/@typescript-eslint/[email protected]([email protected]):resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==}engines: {node: ^16.0.0 || >=18.0.0}@@ -1232,14 +1114,6 @@ packages:- supports-colordev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.62.0- eslint-visitor-keys: 3.4.3- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==}engines: {node: ^16.0.0 || >=18.0.0}@@ -1248,12 +1122,6 @@ packages:eslint-visitor-keys: 3.4.3dev: true- /@vercel/[email protected]:- resolution: {integrity: sha512-Z0l0y8TnUnnxr+on7oIMB9qQOoSJIniYMzUng6+NU8VVDkZ+kt2QGD5hzODwsuiRJAsjW528iUEtbWCEGkSCCg==}- dependencies:- server-only: 0.0.1- dev: false-resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}peerDependencies:@@ -1475,22 +1343,6 @@ packages:has-symbols: 1.0.3dev: true- resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==}- engines: {node: ^10 || ^12 || >=14}- hasBin: true- peerDependencies:- postcss: ^8.1.0- dependencies:- browserslist: 4.22.3- caniuse-lite: 1.0.30001584- fraction.js: 4.3.7- normalize-range: 0.1.2- picocolors: 1.0.0- postcss: 8.4.26- postcss-value-parser: 4.2.0- dev: true-resolution: {integrity: sha512-KCuPB8ZCIqFdA4HwKXsvz7j6gvSDNhDP7WnUjBleRkKjPdvCmHFuQ77ocavI8FT6NdvlBnE2UFr2H4Mycn8Vew==}engines: {node: ^10 || ^12 || >=14}@@ -1956,31 +1808,6 @@ packages:engines: {node: '>=10'}dev: true- resolution: {integrity: sha512-+JjcM6lQmFR5Mw0ORm9o1CR29+z/uajgSfYAPEGIBxOhTHBgCMs7ysuwi72o7LkMmA8E3N7/h09pSGZxs0s85g==}- peerDependencies:- eslint: ^7.23.0 || ^8.0.0- typescript: '>=3.3.1'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@next/eslint-plugin-next': 13.4.10- '@rushstack/eslint-patch': 1.7.2- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- eslint: 8.45.0- eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])- eslint-plugin-jsx-a11y: 6.8.0([email protected])- eslint-plugin-react: 7.33.2([email protected])- eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705([email protected])- typescript: 5.2.2- transitivePeerDependencies:- - eslint-import-resolver-webpack- - supports-color- dev: true-resolution: {integrity: sha512-+8xIIWtD+iFwHfXgmXRGn05BuNIu/RAGcz6kI4wsJTPrE/1WtWKv2o0l+GbQ6wRaC+cbBV8+QnFAOf18aJiWrg==}peerDependencies:@@ -2016,29 +1843,6 @@ packages:- supports-colordev: true- /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):- resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==}- engines: {node: ^14.18.0 || >=16.0.0}- peerDependencies:- eslint: '*'- eslint-plugin-import: '*'- dependencies:- debug: 4.3.4- enhanced-resolve: 5.15.0- eslint: 8.45.0- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])- fast-glob: 3.3.2- get-tsconfig: 4.7.2- is-core-module: 2.13.1- is-glob: 4.0.3- transitivePeerDependencies:- - '@typescript-eslint/parser'- - eslint-import-resolver-node- - eslint-import-resolver-webpack- - supports-color- dev: true-/[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==}engines: {node: ^14.18.0 || >=16.0.0}@@ -2062,36 +1866,6 @@ packages:- supports-colordev: true- /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):- resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}- engines: {node: '>=4'}- peerDependencies:- '@typescript-eslint/parser': '*'- eslint: '*'- eslint-import-resolver-node: '*'- eslint-import-resolver-typescript: '*'- eslint-import-resolver-webpack: '*'- peerDependenciesMeta:- '@typescript-eslint/parser':- optional: true- eslint:- optional: true- eslint-import-resolver-node:- optional: true- eslint-import-resolver-typescript:- optional: true- eslint-import-resolver-webpack:- optional: true- dependencies:- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- debug: 3.2.7- eslint: 8.45.0- eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- transitivePeerDependencies:- - supports-color- dev: true-/[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}engines: {node: '>=4'}@@ -2122,41 +1896,6 @@ packages:- supports-colordev: true- resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}- engines: {node: '>=4'}- peerDependencies:- '@typescript-eslint/parser': '*'- eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8- peerDependenciesMeta:- '@typescript-eslint/parser':- optional: true- dependencies:- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- array-includes: 3.1.7- array.prototype.findlastindex: 1.2.3- array.prototype.flat: 1.3.2- array.prototype.flatmap: 1.3.2- debug: 3.2.7- doctrine: 2.1.0- eslint: 8.45.0- eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- hasown: 2.0.0- is-core-module: 2.13.1- is-glob: 4.0.3- minimatch: 3.1.2- object.fromentries: 2.0.7- object.groupby: 1.0.2- object.values: 1.1.7- semver: 6.3.1- tsconfig-paths: 3.15.0- transitivePeerDependencies:- - eslint-import-resolver-typescript- - eslint-import-resolver-webpack- - supports-color- dev: true-resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}engines: {node: '>=4'}@@ -2192,31 +1931,6 @@ packages:- supports-colordev: true- resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==}- engines: {node: '>=4.0'}- peerDependencies:- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8- dependencies:- '@babel/runtime': 7.23.9- aria-query: 5.3.0- array-includes: 3.1.7- array.prototype.flatmap: 1.3.2- ast-types-flow: 0.0.8- axe-core: 4.7.0- axobject-query: 3.2.1- damerau-levenshtein: 1.0.8- emoji-regex: 9.2.2- es-iterator-helpers: 1.0.15- eslint: 8.45.0- hasown: 2.0.0- jsx-ast-utils: 3.3.5- language-tags: 1.0.9- minimatch: 3.1.2- object.entries: 1.1.7- object.fromentries: 2.0.7- dev: true-resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==}engines: {node: '>=4.0'}@@ -2251,40 +1965,6 @@ packages:eslint: 8.48.0dev: true- resolution: {integrity: sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==}- engines: {node: '>=10'}- peerDependencies:- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0- dependencies:- eslint: 8.45.0- dev: true-- resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==}- engines: {node: '>=4'}- peerDependencies:- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8- dependencies:- array-includes: 3.1.7- array.prototype.flatmap: 1.3.2- array.prototype.tosorted: 1.1.3- doctrine: 2.1.0- es-iterator-helpers: 1.0.15- eslint: 8.45.0- estraverse: 5.3.0- jsx-ast-utils: 3.3.5- minimatch: 3.1.2- object.entries: 1.1.7- object.fromentries: 2.0.7- object.hasown: 1.1.3- object.values: 1.1.7- prop-types: 15.8.1- resolve: 2.0.0-next.5- semver: 6.3.1- string.prototype.matchall: 4.0.10- dev: true-resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==}engines: {node: '>=4'}@@ -2397,52 +2077,6 @@ packages:- supports-colordev: true- resolution: {integrity: sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- hasBin: true- dependencies:- '@eslint-community/eslint-utils': 4.4.0([email protected])- '@eslint-community/regexpp': 4.10.0- '@eslint/eslintrc': 2.1.4- '@eslint/js': 8.44.0- '@humanwhocodes/config-array': 0.11.14- '@humanwhocodes/module-importer': 1.0.1- '@nodelib/fs.walk': 1.2.8- ajv: 6.12.6- chalk: 4.1.2- cross-spawn: 7.0.3- debug: 4.3.4- doctrine: 3.0.0- escape-string-regexp: 4.0.0- eslint-scope: 7.2.2- eslint-visitor-keys: 3.4.3- espree: 9.6.1- esquery: 1.5.0- esutils: 2.0.3- fast-deep-equal: 3.1.3- file-entry-cache: 6.0.1- find-up: 5.0.0- glob-parent: 6.0.2- globals: 13.24.0- graphemer: 1.4.0- ignore: 5.3.1- imurmurhash: 0.1.4- is-glob: 4.0.3- is-path-inside: 3.0.3- js-yaml: 4.1.0- json-stable-stringify-without-jsonify: 1.0.1- levn: 0.4.1- lodash.merge: 4.6.2- minimatch: 3.1.2- natural-compare: 1.4.0- optionator: 0.9.3- strip-ansi: 6.0.1- text-table: 0.2.0- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -3592,15 +3226,6 @@ packages:source-map-js: 1.0.2dev: false- resolution: {integrity: sha512-jrXHFF8iTloAenySjM/ob3gSj7pCu0Ji49hnjqzsgSRa50hkWCKD0HQ+gMNJkW38jBI68MpAAg7ZWwHwX8NMMw==}- engines: {node: ^10 || ^12 || >=14}- dependencies:- nanoid: 3.3.7- picocolors: 1.0.0- source-map-js: 1.0.2- dev: true-resolution: {integrity: sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==}engines: {node: ^10 || ^12 || >=14}@@ -3659,10 +3284,6 @@ packages:resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}dev: true- resolution: {integrity: sha512-jLQXJ/URln51zskhgppGJ2ub7b2WFKGq3cl3NYKtlHoTG+dN2q7EzWrn3hN3EgPsTMvpR9tpq5ijdp7YwFZkag==}- dev: false-resolution: {integrity: sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==}engines: {node: '>=10'}@@ -3913,10 +3534,6 @@ packages:lru-cache: 6.0.0dev: true- resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}- dev: false-resolution: {integrity: sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==}engines: {node: '>= 0.4'}@@ -4212,23 +3829,9 @@ packages:strip-bom: 3.0.0dev: true- resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}- dev: true-resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}- resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}- engines: {node: '>= 6'}- peerDependencies:- typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'- dependencies:- tslib: 1.14.1- typescript: 5.2.2- dev: true-resolution: {integrity: sha512-QmDIX0Yh1wYQl0bUS0gGWwNxpJwrzZU2GIAYt3aOKoirWA2ecnyb3R6ludcS1znfNV2MfunP+l8E3ncxUHwtjA==}cpu: [x64]diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 6c51ac1..97271d5 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,4 +1,3 @@packages:- - 'website'- '.'- 'test'diff --git a/website/.eslintrc.json b/website/.eslintrc.jsondeleted file mode 100644index bffb357..0000000--- a/website/.eslintrc.json+++ /dev/null@@ -1,3 +0,0 @@-{- "extends": "next/core-web-vitals"-}diff --git a/website/.gitignore b/website/.gitignoredeleted file mode 100644index 8f322f0..0000000--- a/website/.gitignore+++ /dev/null@@ -1,35 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.js--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*--# local env files-.env*.local--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.tsdiff --git a/website/README.md b/website/README.mddeleted file mode 100644index f4da3c4..0000000--- a/website/README.md+++ /dev/null@@ -1,34 +0,0 @@-This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).--## Getting Started--First, run the development server:--```bash-npm run dev-# or-yarn dev-# or-pnpm dev-```--Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.--You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.--This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.--## Learn More--To learn more about Next.js, take a look at the following resources:--- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.-- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.--You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!--## Deploy on Vercel--The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.--Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.diff --git a/website/next.config.js b/website/next.config.jsdeleted file mode 100644index 588b93d..0000000--- a/website/next.config.js+++ /dev/null@@ -1,13 +0,0 @@-/** @type {import('next').NextConfig} */-const nextConfig = {- async rewrites() {- return [- {- source: '/:path*',- destination: 'https://vaul-docs.vercel.app/:path*',- },- ];- },-};--module.exports = nextConfig;diff --git a/website/package.json b/website/package.jsondeleted file mode 100644index 8f12564..0000000--- a/website/package.json+++ /dev/null@@ -1,28 +0,0 @@-{- "name": "website",- "version": "0.1.0",- "private": true,- "scripts": {- "dev": "next dev",- "build": "next build",- "start": "next start",- "lint": "next lint"- },- "devDependencies": {- "eslint": "8.45.0",- "eslint-config-next": "13.4.10",- "autoprefixer": "10.4.14",- "postcss": "8.4.26",- "typescript": "5.2.2"- },- "dependencies": {- "@vercel/analytics": "^1.0.1",- "clsx": "^2.0.0",- "next": "13.5.1",- "react": "18.2.0",- "react-dom": "18.2.0",- "react-merge-refs": "^2.0.2",- "tailwindcss": "3.3.3",- "vaul": "workspace:*"- }-}diff --git a/website/postcss.config.js b/website/postcss.config.jsdeleted file mode 100644index 12a703d..0000000--- a/website/postcss.config.js+++ /dev/null@@ -1,6 +0,0 @@-module.exports = {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-};diff --git a/website/public/next.svg b/website/public/next.svgdeleted file mode 100644index 5174b28..0000000--- a/website/public/next.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>\ No newline at end of filediff --git a/website/public/site.webmanifest b/website/public/site.webmanifestdeleted file mode 100644index aa190ef..0000000--- a/website/public/site.webmanifest+++ /dev/null@@ -1,3 +0,0 @@-{- "display": "standalone"-}diff --git a/website/public/vercel.svg b/website/public/vercel.svgdeleted file mode 100644index d2f8422..0000000--- a/website/public/vercel.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>\ No newline at end of filediff --git a/website/src/app/components/hero.tsx b/website/src/app/components/hero.tsxdeleted file mode 100644index 4e23111..0000000--- a/website/src/app/components/hero.tsx+++ /dev/null@@ -1,171 +0,0 @@-'use client';--import { Drawer } from 'vaul';-import React from 'react';--export function Hero() {- return (- <div className="relative">- <div- aria-hidden- className="absolute top-0 w-[1000px] z-10 h-[400px] left-1/2 -translate-x-1/2 -translate-y-1/2 opacity-[0.15] pointer-events-none"- style={{ backgroundImage: 'radial-gradient(#A4A4A3, transparent 50%)' }}- />- <svg- className="absolute pointer-events-none inset-0 h-full w-full stroke-gray-200 opacity-50 [mask-image:radial-gradient(100%_100%_at_top_center,white,transparent)]"- aria-hidden- >- <defs>- <pattern- id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527"- width={200}- height={200}- x="50%"- y={-1}- patternUnits="userSpaceOnUse"- >- <path d="M100 200V.5M.5 .5H200" fill="none" />- </pattern>- </defs>- <svg x="50%" y={-1} className="overflow-visible fill-gray-50">- <path- d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z"- strokeWidth={0}- />- </svg>- <rect width="100%" height="100%" strokeWidth={0} fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)" />- </svg>- <div className="max-w-2xl mx-auto text-center pt-64">- <div className="flex flex-col relative">- <h1 className="text-7xl font-semibold mb-4 relative">Vaul</h1>- <p className="text-gray-600 text-xl">Drawer component for React.</p>- </div>- <div className="flex gap-4 justify-center mt-6">- <Drawer.Root shouldScaleBackground>- <Drawer.Trigger asChild>- <button- type="button"- className="rounded-full bg-white px-4 py-2.5 text-sm font-medium text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"- >- Open Drawer- </button>- </Drawer.Trigger>- <Drawer.Portal>- <Drawer.Overlay className="fixed inset-0 bg-black/40" />- <Drawer.Content className="bg-gray-100 flex flex-col rounded-t-[10px] h-full mt-24 max-h-[96%] fixed bottom-0 left-0 right-0 outline-none">- <div className="p-4 bg-white rounded-t-[10px] flex-1">- <div className="mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-8" />- <div className="max-w-md mx-auto">- <Drawer.Title className="font-medium mb-4">Drawer for React.</Drawer.Title>- <p className="text-gray-600 mb-2">- This component can be used as a Dialog replacement on mobile and tablet devices. You can read- about why and how it was built{' '}- <a- target="_blank"- className="underline"- href="https://emilkowal.ski/ui/building-a-drawer-component"- >- here- </a>- .- </p>- <p className="text-gray-600 mb-2">- It comes unstyled, has gesture-driven animations, and is made by{' '}- <a href="https://emilkowal.ski/" className="underline" target="_blank">- Emil Kowalski- </a>- .- </p>- <p className="text-gray-600 mb-8">- It uses{' '}- <a- href="https://www.radix-ui.com/docs/primitives/components/dialog"- className="underline"- target="_blank"- >- Radix's Dialog primitive- </a>{' '}- under the hood and is inspired by{' '}- <a- href="https://twitter.com/devongovett/status/1674470185783402496"- className="underline"- target="_blank"- >- this tweet.- </a>- </p>- </div>- </div>- <div className="p-4 bg-gray-100 border-t border-gray-200 mt-auto">- <div className="flex gap-6 justify-end max-w-md mx-auto">- <a- className="text-xs text-gray-600 flex items-center gap-0.25"- href="https://github.com/emilkowalski/vaul"- target="_blank"- >- GitHub- <svg- fill="none"- height="16"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- viewBox="0 0 24 24"- width="16"- aria-hidden="true"- className="w-3 h-3 ml-1"- >- <path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>- <path d="M15 3h6v6"></path>- <path d="M10 14L21 3"></path>- </svg>- </a>- <a- className="text-xs text-gray-600 flex items-center gap-0.25"- href="https://twitter.com/emilkowalski_"- target="_blank"- >- <svg- fill="none"- height="16"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- viewBox="0 0 24 24"- width="16"- aria-hidden="true"- className="w-3 h-3 ml-1"- >- <path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>- <path d="M15 3h6v6"></path>- <path d="M10 14L21 3"></path>- </svg>- </a>- </div>- </div>- </Drawer.Content>- </Drawer.Portal>- </Drawer.Root>- <a- href="https://github.com/emilkowalski/vaul"- className="font-medium text-sm px-4 py-2.5 hover:bg-gray-100 rounded-full"- target="_blank"- >- GitHub <span aria-hidden="true">→</span>- </a>- </div>- </div>- <div className="flex justify-center">- <a- href="/getting-started"- className="text-gray-600 text-center mt-4 underline hover:text-gray-900 transition-colors text-sm"- >- Documentation- </a>- </div>- </div>- );-}diff --git a/website/src/app/favicon.ico b/website/src/app/favicon.icodeleted file mode 100644index 55dbe34..0000000Binary files a/website/src/app/favicon.ico and /dev/null differdiff --git a/website/src/app/globals.css b/website/src/app/globals.cssdeleted file mode 100644index a14d6f9..0000000--- a/website/src/app/globals.css+++ /dev/null@@ -1,40 +0,0 @@-@tailwind base;-@tailwind components;-@tailwind utilities;--:root {- --vaul-overlay-background: 255, 255, 255;- --vaul-overlay-background-start: rgba(0, 0, 0, 0);- --vaul-overlay-background-end: rgba(0, 0, 0, 0.4);-}--html,-body {- overflow: hidden;-}--body,-main {- min-height: 100vh;- /* mobile viewport bug fix */- min-height: -webkit-fill-available;- overflow-x: hidden;-}--html {- background: black;-}--main {- min-height: 100vh;- background: white;-}--html {- height: -webkit-fill-available;-}--a {- text-decoration-thickness: 1px;- text-underline-offset: 2px;-}diff --git a/website/src/app/layout.tsx b/website/src/app/layout.tsxdeleted file mode 100644index d56dc98..0000000--- a/website/src/app/layout.tsx+++ /dev/null@@ -1,19 +0,0 @@-import './globals.css';-import { Analytics } from '@vercel/analytics/react';-import type { Metadata } from 'next';--export const metadata: Metadata = {- title: 'Create Next App',- description: 'Generated by create next app',-};--export default function RootLayout({ children }: { children: React.ReactNode }) {- return (- <html lang="en">- <body className="antialiased text-gray-900 bg-gray-50">- <main data-vaul-drawer-wrapper="">{children}</main>- <Analytics />- </body>- </html>- );-}diff --git a/website/src/app/manifest.ts b/website/src/app/manifest.tsdeleted file mode 100644index d7c9f97..0000000--- a/website/src/app/manifest.ts+++ /dev/null@@ -1,20 +0,0 @@-import { MetadataRoute } from 'next';--export default function manifest(): MetadataRoute.Manifest {- return {- name: 'Vaul',- short_name: 'Vaul',- description: 'Vaul',- start_url: '/',- display: 'standalone',- background_color: '#fff',- theme_color: '#fff',- icons: [- {- src: '/favicon.ico',- sizes: 'any',- type: 'image/x-icon',- },- ],- };-}diff --git a/website/src/app/opengraph-image.jpg b/website/src/app/opengraph-image.jpgdeleted file mode 100644index 6d673d2..0000000Binary files a/website/src/app/opengraph-image.jpg and /dev/null differdiff --git a/website/src/app/page.tsx b/website/src/app/page.tsxdeleted file mode 100644index 0c1c3c1..0000000--- a/website/src/app/page.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { Hero } from './components/hero';-import { Metadata } from 'next';--export const metadata: Metadata = {- title: 'Vaul',- description: 'Drawer component for React.',- openGraph: {- title: 'Vaul',- description: 'Drawer component for React.',- url: 'https://vaul.emilkowal.ski',- siteName: 'Emil Kowalski',- locale: 'en-US',- type: 'website',- },- twitter: {- title: 'Emil Kowalski',- card: 'summary_large_image',- },- themeColor: '#000000',-};--export default function Home() {- return (- <div className="antialiased">- <Hero />- </div>- );-}diff --git a/website/tailwind.config.js b/website/tailwind.config.jsdeleted file mode 100644index c1ac57c..0000000--- a/website/tailwind.config.js+++ /dev/null@@ -1,22 +0,0 @@-const colors = require('tailwindcss/colors');-const defaultTheme = require('tailwindcss/defaultTheme');--/** @type {import('tailwindcss').Config} */-module.exports = {- content: [- './src/pages/**/*.{js,ts,jsx,tsx,mdx}',- './src/components/**/*.{js,ts,jsx,tsx,mdx}',- './src/app/**/*.{js,ts,jsx,tsx,mdx}',- './mdx-components.tsx',- ],- future: {- hoverOnlyWhenSupported: true,- },- theme: {- extend: {- colors: {- gray: { ...colors.zinc },- },- },- },-};diff --git a/website/tsconfig.json b/website/tsconfig.jsondeleted file mode 100644index ac20133..0000000--- a/website/tsconfig.json+++ /dev/null@@ -1,41 +0,0 @@-{- "compilerOptions": {- "target": "es5",- "lib": [- "dom",- "dom.iterable",- "esnext"- ],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "forceConsistentCasingInFileNames": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "node",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "preserve",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": [- "./src/*"- ]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts"- ],- "exclude": [- "node_modules"- ]-}