diff --git a/.changeset/hot-news-arrive.md b/.changeset/hot-news-arrive.md index 573db352a1..7382d2b224 100644 --- a/.changeset/hot-news-arrive.md +++ b/.changeset/hot-news-arrive.md @@ -7,7 +7,6 @@ "@heroui/dom-animation": patch "@heroui/breadcrumbs": patch "@heroui/date-picker": patch -"@heroui/framer-utils": patch "@heroui/date-input": patch "@heroui/pagination": patch "@heroui/accordion": patch diff --git a/.changeset/stupid-pants-perform.md b/.changeset/stupid-pants-perform.md index 274eabf78d..a7c80aa243 100644 --- a/.changeset/stupid-pants-perform.md +++ b/.changeset/stupid-pants-perform.md @@ -15,7 +15,6 @@ "@heroui/breadcrumbs": patch "@heroui/date-picker": patch "@heroui/use-callback-ref": patch -"@heroui/framer-utils": patch "@heroui/shared-icons": patch "@heroui/date-input": patch "@heroui/pagination": patch diff --git a/packages/utilities/framer-utils/CHANGELOG.md b/packages/utilities/framer-utils/CHANGELOG.md deleted file mode 100644 index ae149830f8..0000000000 --- a/packages/utilities/framer-utils/CHANGELOG.md +++ /dev/null @@ -1,425 +0,0 @@ -# @heroui/framer-utils - -## 2.1.7 - -### Patch Changes - -- [#4594](https://github.com/heroui-inc/heroui/pull/4594) [`7ebe0e6`](https://github.com/heroui-inc/heroui/commit/7ebe0e664feb777fe0cad311312d0e02b899319e) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Org name changed - -- Updated dependencies [[`7ebe0e6`](https://github.com/heroui-inc/heroui/commit/7ebe0e664feb777fe0cad311312d0e02b899319e)]: - - @heroui/shared-utils@2.1.3 - - @heroui/use-measure@2.1.2 - - @heroui/system@2.4.7 - -## 2.1.6 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.4.6 - -## 2.1.5 - -### Patch Changes - -- Updated dependencies [[`77206bc`](https://github.com/heroui-inc/heroui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/heroui-inc/heroui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]: - - @heroui/shared-utils@2.1.2 - - @heroui/system@2.4.5 - -## 2.1.4 - -### Patch Changes - -- Updated dependencies [[`1031e98`](https://github.com/heroui-inc/heroui/commit/1031e985b71e69b8a7189ea049b9616257f820b3), [`455556e`](https://github.com/heroui-inc/heroui/commit/455556e14278dd933b4acd1a136ea29879b49545)]: - - @heroui/system@2.4.4 - -## 2.1.3 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.4.3 - -## 2.1.2 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.4.2 - -## 2.1.1 - -### Patch Changes - -- [`d6eee4a`](https://github.com/heroui-inc/heroui/commit/d6eee4a8767556152f47f06dcf04940951abc5af) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - v2.6.2 - -- Updated dependencies [[`d6eee4a`](https://github.com/heroui-inc/heroui/commit/d6eee4a8767556152f47f06dcf04940951abc5af)]: - - @heroui/system@2.4.1 - - @heroui/use-measure@2.1.1 - - @heroui/shared-utils@2.1.1 - -## 2.1.0 - -### Minor Changes - -- [`5786897`](https://github.com/heroui-inc/heroui/commit/5786897b9950d95c12351dacd2fb41bb1e298201) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - This release includes several improvements and bug fixes: - - - Updated react-aria version across all components - - Improved Drawer styles and transitions - - Fixed missing peer dependencies for framer-motion - - Fixed menu item classNames functionality - - Added isClearable prop to Textarea component - - Fixed label placement issues in Input and Select components - - Improved table keyboard navigation with new isKeyboardNavigationDisabled prop - - Fixed UI sliding issues with helper wrapper in Input and Select - - Updated use-image hook to avoid Next.js hydration issues - - Replaced RTL-specific styles with logical properties - - Fixed textarea label squish issue - - Bumped tailwind-merge version - - Applied tw nested group fixes - - Fixed fullWidth variant in input and select components - - Moved circular-progress tv to progress - - Changed ListboxItem key to optional - - Fixed autocomplete clear button behavior - - Updated Select label placement logic - - Added missing framer-motion peer dependencies - - Removed layoutNode prop from Table due to react-aria update - - Virtualization added to Autocomplete - -### Patch Changes - -- Updated dependencies [[`26e478d`](https://github.com/heroui-inc/heroui/commit/26e478dd937dedcaf41110171d971a8a3cf2ff52), [`6c0213d`](https://github.com/heroui-inc/heroui/commit/6c0213dfc805aa3c793763c0b25f53b2b80c24dc), [`5786897`](https://github.com/heroui-inc/heroui/commit/5786897b9950d95c12351dacd2fb41bb1e298201)]: - - @heroui/system@2.4.0 - - @heroui/use-measure@2.1.0 - - @heroui/shared-utils@2.1.0 - -## 2.0.26-beta.11 - -### Patch Changes - -- Updated dependencies [[`c8f2ec887`](https://github.com/heroui-inc/heroui/commit/c8f2ec88752289913968331032b9e7f772c12ec4)]: - - @heroui/system@2.3.0-beta.11 - -## 2.0.26-beta.10 - -### Patch Changes - -- [`9869f2b91`](https://github.com/heroui-inc/heroui/commit/9869f2b91d0829f9c7f0500ba05745707820bf27) Thanks [@wingkwong](https://github.com/wingkwong)! - bump version - -- Updated dependencies [[`9869f2b91`](https://github.com/heroui-inc/heroui/commit/9869f2b91d0829f9c7f0500ba05745707820bf27)]: - - @heroui/system@2.3.0-beta.10 - - @heroui/use-measure@2.0.3-beta.5 - - @heroui/shared-utils@2.0.9-beta.8 - -## 2.0.26-beta.9 - -### Patch Changes - -- Updated dependencies [[`eafdb7d47`](https://github.com/heroui-inc/heroui/commit/eafdb7d475a7fcaa7671af77e86fcdf62f14ae00)]: - - @heroui/system@2.3.0-beta.9 - -## 2.0.26-beta.8 - -### Patch Changes - -- Updated dependencies [[`4607fe2ff`](https://github.com/heroui-inc/heroui/commit/4607fe2ff448a536496c2b59ccdfcb217379b6ed)]: - - @heroui/system@2.3.0-beta.8 - -## 2.0.26-beta.7 - -### Patch Changes - -- [#4092](https://github.com/heroui-inc/heroui/pull/4092) [`528668db8`](https://github.com/heroui-inc/heroui/commit/528668db85b98b46473cb1e214780b7468cdadba) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Test new runner - -- Updated dependencies [[`528668db8`](https://github.com/heroui-inc/heroui/commit/528668db85b98b46473cb1e214780b7468cdadba)]: - - @heroui/system@2.3.0-beta.7 - - @heroui/use-measure@2.0.3-beta.4 - - @heroui/shared-utils@2.0.9-beta.7 - -## 2.0.26-beta.6 - -### Patch Changes - -- [#4086](https://github.com/heroui-inc/heroui/pull/4086) [`f69fe47b5`](https://github.com/heroui-inc/heroui/commit/f69fe47b5b8f6f3a77a7a8c20d8715263fa32acb) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Pnpm clean - -- Updated dependencies [[`f69fe47b5`](https://github.com/heroui-inc/heroui/commit/f69fe47b5b8f6f3a77a7a8c20d8715263fa32acb)]: - - @heroui/system@2.3.0-beta.6 - - @heroui/use-measure@2.0.3-beta.3 - - @heroui/shared-utils@2.0.9-beta.6 - -## 2.0.26-beta.5 - -### Patch Changes - -- [#4083](https://github.com/heroui-inc/heroui/pull/4083) [`35058262c`](https://github.com/heroui-inc/heroui/commit/35058262c61628fb42907f529c4417886aa12bb2) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix build - -- Updated dependencies [[`35058262c`](https://github.com/heroui-inc/heroui/commit/35058262c61628fb42907f529c4417886aa12bb2)]: - - @heroui/system@2.3.0-beta.5 - - @heroui/use-measure@2.0.3-beta.2 - - @heroui/shared-utils@2.0.9-beta.5 - -## 2.0.26-beta.4 - -### Patch Changes - -- Updated dependencies [[`5339b2571`](https://github.com/heroui-inc/heroui/commit/5339b2571e6d73ca6efe2acd34d88669419db9f7)]: - - @heroui/shared-utils@2.0.9-beta.4 - - @heroui/system@2.3.0-beta.4 - -## 2.0.26-beta.3 - -### Patch Changes - -- [#4010](https://github.com/heroui-inc/heroui/pull/4010) [`ef432eb53`](https://github.com/heroui-inc/heroui/commit/ef432eb539714fded6cab86a2185956fb103e0df) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - framer-motion alpha version added - -- Updated dependencies [[`ef432eb53`](https://github.com/heroui-inc/heroui/commit/ef432eb539714fded6cab86a2185956fb103e0df)]: - - @heroui/system@2.3.0-beta.3 - - @heroui/use-measure@2.0.3-beta.1 - - @heroui/shared-utils@2.0.9-beta.3 - -## 2.0.26-beta.2 - -### Patch Changes - -- [#4008](https://github.com/heroui-inc/heroui/pull/4008) [`7c1c0dd8f`](https://github.com/heroui-inc/heroui/commit/7c1c0dd8fef3ea72996c1095b919574c4b7f9b89) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - React 19 added to peerDeps - -- Updated dependencies [[`7c1c0dd8f`](https://github.com/heroui-inc/heroui/commit/7c1c0dd8fef3ea72996c1095b919574c4b7f9b89)]: - - @heroui/system@2.3.0-beta.2 - - @heroui/use-measure@2.0.3-beta.0 - - @heroui/shared-utils@2.0.9-beta.2 - -## 2.0.26-beta.1 - -### Patch Changes - -- [#3990](https://github.com/heroui-inc/heroui/pull/3990) [`cb5bc4c74`](https://github.com/heroui-inc/heroui/commit/cb5bc4c74f00caaee80dca89c1f02038db315b85) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Beta 1 - -- Updated dependencies [[`cb5bc4c74`](https://github.com/heroui-inc/heroui/commit/cb5bc4c74f00caaee80dca89c1f02038db315b85)]: - - @heroui/system@2.3.0-beta.1 - - @heroui/shared-utils@2.0.9-beta.1 - -## 2.0.26-beta.0 - -### Patch Changes - -- [#3523](https://github.com/heroui-inc/heroui/pull/3523) [`3f0d81b56`](https://github.com/heroui-inc/heroui/commit/3f0d81b560e7ef3eb315bd98407249c0eb4ed5eb) Thanks [@wingkwong](https://github.com/wingkwong)! - update `framer-motion` versions - -- Updated dependencies [[`67ea2f65e`](https://github.com/heroui-inc/heroui/commit/67ea2f65e17f913bdffae4690586a6ae202c8f7d), [`3f0d81b56`](https://github.com/heroui-inc/heroui/commit/3f0d81b560e7ef3eb315bd98407249c0eb4ed5eb), [`3f0d81b56`](https://github.com/heroui-inc/heroui/commit/3f0d81b560e7ef3eb315bd98407249c0eb4ed5eb), [`3f0d81b56`](https://github.com/heroui-inc/heroui/commit/3f0d81b560e7ef3eb315bd98407249c0eb4ed5eb)]: - - @heroui/system@2.3.0-beta.0 - - @heroui/shared-utils@2.0.9-beta.0 - -## 2.0.25 - -### Patch Changes - -- Updated dependencies [[`4ac7674d1`](https://github.com/heroui-inc/heroui/commit/4ac7674d1ec8ed60925412fe1bd1f01ee9f1555a), [`f36df4362`](https://github.com/heroui-inc/heroui/commit/f36df4362f572e8e233d4357f43600265cd5b8d5)]: - - @heroui/system@2.2.6 - - @heroui/shared-utils@2.0.8 - -## 2.0.24 - -### Patch Changes - -- [#3512](https://github.com/heroui-inc/heroui/pull/3512) [`2d2d300a1`](https://github.com/heroui-inc/heroui/commit/2d2d300a12dbe20ca7ebd125daf3dce74efcbf34) Thanks [@wingkwong](https://github.com/wingkwong)! - fix conflicting versions in npm - -- Updated dependencies [[`2d2d300a1`](https://github.com/heroui-inc/heroui/commit/2d2d300a12dbe20ca7ebd125daf3dce74efcbf34)]: - - @heroui/system@2.2.5 - - @heroui/use-measure@2.0.2 - - @heroui/shared-utils@2.0.7 - -## 2.0.23 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.2.4 - -## 2.0.22 - -### Patch Changes - -- Updated dependencies [[`f5d94f96e`](https://github.com/heroui-inc/heroui/commit/f5d94f96e4cffed1d4aeef971c89f8d283effd49)]: - - @heroui/system@2.2.3 - - @heroui/shared-utils@2.0.6 - -## 2.0.21 - -### Patch Changes - -- Updated dependencies [[`47c2472fb`](https://github.com/heroui-inc/heroui/commit/47c2472fb22bfe1c0c357b5ba12e5606eba0d65b)]: - - @heroui/system@2.2.2 - -## 2.0.20 - -### Patch Changes - -- Updated dependencies [[`685995a12`](https://github.com/heroui-inc/heroui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`685995a12`](https://github.com/heroui-inc/heroui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]: - - @heroui/system@2.2.1 - -## 2.0.19 - -### Patch Changes - -- [#2929](https://github.com/heroui-inc/heroui/pull/2929) [`422770cc6`](https://github.com/heroui-inc/heroui/commit/422770cc6bcdd1d4c51257654ab718f3c19d6cb2) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Add support for disabling the animations globally. - -- Updated dependencies [[`e3afa4789`](https://github.com/heroui-inc/heroui/commit/e3afa4789a1ac0fa929b2acaca5bd9c520567ab8), [`422770cc6`](https://github.com/heroui-inc/heroui/commit/422770cc6bcdd1d4c51257654ab718f3c19d6cb2), [`540aa2124`](https://github.com/heroui-inc/heroui/commit/540aa2124b45b65a40e73f5aea2b90405fe1fe9a)]: - - @heroui/system@2.2.0 - -## 2.0.18 - -### Patch Changes - -- [#2789](https://github.com/heroui-inc/heroui/pull/2789) [`eccc2f2f3`](https://github.com/heroui-inc/heroui/commit/eccc2f2f3d856eefb2cc7c07b94e1c4cefd4d7d0) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #2749 Introduced named exports for several UI-related packages to enhance modularity and usability in Next.js projects. - -- Updated dependencies [[`eccc2f2f3`](https://github.com/heroui-inc/heroui/commit/eccc2f2f3d856eefb2cc7c07b94e1c4cefd4d7d0)]: - - @heroui/system@2.1.2 - -## 2.0.17 - -### Patch Changes - -- Updated dependencies [[`74eda3128`](https://github.com/heroui-inc/heroui/commit/74eda312883b2e17df26f71442aba9fb3cd240be)]: - - @heroui/system@2.1.1 - -## 2.0.16 - -### Patch Changes - -- [#2618](https://github.com/heroui-inc/heroui/pull/2618) [`dc0bcf13a`](https://github.com/heroui-inc/heroui/commit/dc0bcf13a5e9aa0450938bcca47cd4c696066f14) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - v2.3.0 - -- [#2618](https://github.com/heroui-inc/heroui/pull/2618) [`dc0bcf13a`](https://github.com/heroui-inc/heroui/commit/dc0bcf13a5e9aa0450938bcca47cd4c696066f14) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - - Calendar component added - - objectToDeps function applied all across components - - `useMeasure` hook added - - `useIntersectionObserver` hook added - - `framer-transitions` renamed to `framer-utils` - - `ResizablePanel` component added to `framer-utils` - - `test-utils` updated -- Updated dependencies [[`dc0bcf13a`](https://github.com/heroui-inc/heroui/commit/dc0bcf13a5e9aa0450938bcca47cd4c696066f14), [`dc0bcf13a`](https://github.com/heroui-inc/heroui/commit/dc0bcf13a5e9aa0450938bcca47cd4c696066f14)]: - - @heroui/system@2.1.0 - - @heroui/use-measure@2.0.1 - - @heroui/shared-utils@2.0.5 - -## 2.0.15 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.15 - -## 2.0.14 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.14 - -## 2.0.13 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.13 - -## 2.0.12 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.12 - -## 2.0.11 - -### Patch Changes - -- [`25e86fb41`](https://github.com/heroui-inc/heroui/commit/25e86fb41770d3cdae6dfdb79306b78fa02d8187) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - New version v2.2.0 - -- Updated dependencies [[`25e86fb41`](https://github.com/heroui-inc/heroui/commit/25e86fb41770d3cdae6dfdb79306b78fa02d8187)]: - - @heroui/system@2.0.11 - - @heroui/shared-utils@2.0.4 - -## 2.0.10 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.10 - -## 2.0.9 - -### Patch Changes - -- [#1600](https://github.com/heroui-inc/heroui/pull/1600) [`b1b30b797`](https://github.com/heroui-inc/heroui/commit/b1b30b7976f1d6652808fbf12ffde044f0861572) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix npm deploy - -- Updated dependencies [[`b1b30b797`](https://github.com/heroui-inc/heroui/commit/b1b30b7976f1d6652808fbf12ffde044f0861572)]: - - @heroui/system@2.0.9 - - @heroui/shared-utils@2.0.3 - -## 2.0.8 - -### Patch Changes - -- Updated dependencies [[`1612532ee`](https://github.com/heroui-inc/heroui/commit/1612532eeeabbc49165546b1a2e7aebf89e7a1c2)]: - - @heroui/system@2.0.8 - -## 2.0.7 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.7 - -## 2.0.6 - -### Patch Changes - -- Updated dependencies [[`641bf0885`](https://github.com/heroui-inc/heroui/commit/641bf0885b6af2d7f36f27d83716a441975a5ca5)]: - - @heroui/system@2.0.6 - -## 2.0.5 - -### Patch Changes - -- [#1359](https://github.com/heroui-inc/heroui/pull/1359) [`a30cec48`](https://github.com/heroui-inc/heroui/commit/a30cec4810988fb1962f3a61e0fc0362de08b171) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - \n - - - react-aria packages upgraded to the latest version - - image storybooks fixed - - other bug fixes.. - -- Updated dependencies [[`a30cec48`](https://github.com/heroui-inc/heroui/commit/a30cec4810988fb1962f3a61e0fc0362de08b171)]: - - @heroui/system@2.0.5 - -## 2.0.4 - -### Patch Changes - -- Updated dependencies [[`710395f3`](https://github.com/heroui-inc/heroui/commit/710395f3a2ca44238332237a49e948c933abe63d)]: - - @heroui/system@2.0.4 - -## 2.0.3 - -### Patch Changes - -- [`e3e13a09`](https://github.com/heroui-inc/heroui/commit/e3e13a095f2347ff279c85e6a5d3798f36c6533f) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - New package created to exports system RSC-compatible functions - Component exports changed to named exports -- Updated dependencies [[`eefda8d6`](https://github.com/heroui-inc/heroui/commit/eefda8d6e2088526e0dbb2026d807b53d2a97782), [`e3e13a09`](https://github.com/heroui-inc/heroui/commit/e3e13a095f2347ff279c85e6a5d3798f36c6533f)]: - - @heroui/system@2.0.3 - - @heroui/shared-utils@2.0.2 - -## 2.0.2 - -### Patch Changes - -- Updated dependencies []: - - @heroui/system@2.0.2 - -## 2.0.1 - -### Patch Changes - -- [`e940ec06`](https://github.com/heroui-inc/heroui/commit/e940ec06ac5e46340d5956fb7c455a6ab3de3140) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Introducing NextUI v2.0 - -- [`e940ec06`](https://github.com/heroui-inc/heroui/commit/e940ec06ac5e46340d5956fb7c455a6ab3de3140) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Introducing v2 - Readmes updated - -- Updated dependencies [[`e940ec06`](https://github.com/heroui-inc/heroui/commit/e940ec06ac5e46340d5956fb7c455a6ab3de3140), [`e940ec06`](https://github.com/heroui-inc/heroui/commit/e940ec06ac5e46340d5956fb7c455a6ab3de3140)]: - - @heroui/shared-utils@2.0.1 - - @heroui/system@2.0.1 diff --git a/packages/utilities/framer-utils/README.md b/packages/utilities/framer-utils/README.md deleted file mode 100644 index c31c8d356e..0000000000 --- a/packages/utilities/framer-utils/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# @heroui/framer-utils - -A Quick description of the component - -> This is an internal utility, not intended for public usage. - -## Installation - -```sh -yarn add @heroui/framer-utils -# or -npm i @heroui/framer-utils -``` - -## Contribution - -Yes please! See the -[contributing guidelines](https://github.com/heroui-inc/heroui/blob/master/CONTRIBUTING.md) -for details. - -## License - -This project is licensed under the terms of the -[MIT license](https://github.com/heroui-inc/heroui/blob/master/LICENSE). diff --git a/packages/utilities/framer-utils/package.json b/packages/utilities/framer-utils/package.json deleted file mode 100644 index df2b237f76..0000000000 --- a/packages/utilities/framer-utils/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "@heroui/framer-utils", - "version": "2.1.7", - "description": "A set of framer motion transitions for react", - "keywords": [ - "framer-utils" - ], - "author": "Junior Garcia ", - "homepage": "https://heroui.com", - "license": "MIT", - "main": "src/index.ts", - "sideEffects": false, - "files": [ - "dist" - ], - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/heroui-inc/heroui.git", - "directory": "packages/utilities/framer-utils" - }, - "bugs": { - "url": "https://github.com/heroui-inc/heroui/issues" - }, - "scripts": { - "build": "tsup src --dts", - "build:fast": "tsup src", - "dev": "pnpm build:fast --watch", - "clean": "rimraf dist .turbo", - "typecheck": "tsc --noEmit", - "prepack": "clean-package", - "postpack": "clean-package restore" - }, - "peerDependencies": { - "react": ">=18 || >=19.0.0-rc.0", - "react-dom": ">=18 || >=19.0.0-rc.0" - }, - "dependencies": { - "@heroui/system": "workspace:*", - "@heroui/use-measure": "workspace:*", - "@heroui/shared-utils": "workspace:*", - "@heroui/motion": "workspace:*" - }, - "devDependencies": { - "react": "18.3.0", - "react-dom": "18.3.0", - "clean-package": "2.2.0" - }, - "clean-package": "../../../clean-package.config.json" -} \ No newline at end of file diff --git a/packages/utilities/framer-utils/src/index.ts b/packages/utilities/framer-utils/src/index.ts deleted file mode 100644 index 9c43029e77..0000000000 --- a/packages/utilities/framer-utils/src/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type { - TransitionConfig, - TransitionEndConfig, - TransitionProperties, - Variants, -} from "./transition-utils"; - -export {TRANSITION_EASINGS, TRANSITION_DEFAULTS, TRANSITION_VARIANTS} from "./transition-utils"; - -export type {ResizablePanelProps} from "./resizable-panel"; -export {ResizablePanel} from "./resizable-panel"; diff --git a/packages/utilities/framer-utils/src/resizable-panel.tsx b/packages/utilities/framer-utils/src/resizable-panel.tsx deleted file mode 100644 index 34bb7a312d..0000000000 --- a/packages/utilities/framer-utils/src/resizable-panel.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import type {Ref} from "react"; - -import {forwardRef} from "react"; -import {domAnimation, LazyMotion, m} from "@heroui/motion"; -import {useMeasure} from "@heroui/use-measure"; -import {HTMLHeroUIProps} from "@heroui/system"; - -/** - * Props for the ResizablePanel component. - */ -export interface ResizablePanelProps extends HTMLHeroUIProps<"div"> {} - -const ResizablePanel = forwardRef( - (originalProps: ResizablePanelProps, ref: Ref) => { - const {children, ...props} = originalProps; - - let [measureRef, bounds] = useMeasure(); - - return ( - - 0 ? bounds.width : "auto", - height: bounds.height && bounds.height > 0 ? bounds.height : "auto", - }} - > -
- {children} -
-
-
- ); - }, -); - -ResizablePanel.displayName = "HeroUI - ResizablePanel"; - -export {ResizablePanel}; diff --git a/packages/utilities/framer-utils/src/transition-utils.ts b/packages/utilities/framer-utils/src/transition-utils.ts deleted file mode 100644 index 51675aeb5f..0000000000 --- a/packages/utilities/framer-utils/src/transition-utils.ts +++ /dev/null @@ -1,179 +0,0 @@ -import type {Target, TargetAndTransition, Transition} from "@heroui/motion"; - -type WithMotionState

= Partial>; - -export type TransitionConfig = WithMotionState; - -export type TransitionEndConfig = WithMotionState; - -export type TransitionProperties = { - /** - * Custom `transition` definition for `enter` and `exit` - */ - transition?: TransitionConfig; - /** - * Custom `transitionEnd` definition for `enter` and `exit` - */ - transitionEnd?: TransitionEndConfig; -}; - -type TargetResolver

= (props: P & TransitionProperties) => TargetAndTransition; - -type Variant

= TargetAndTransition | TargetResolver

; - -export type Variants

= Record< - string, - { - enter: Variant

; - exit: Variant

; - initial?: Variant

; - } ->; - -export const TRANSITION_EASINGS = { - ease: [0.36, 0.66, 0.4, 1], - easeIn: [0.4, 0, 1, 1], - easeOut: [0, 0, 0.2, 1], - easeInOut: [0.4, 0, 0.2, 1], - spring: [0.155, 1.105, 0.295, 1.12], - springOut: [0.57, -0.15, 0.62, 0.07], - softSpring: [0.16, 1.11, 0.3, 1.02], -} as const; - -export const TRANSITION_DEFAULTS = { - enter: { - duration: 0.2, - ease: TRANSITION_EASINGS.easeOut, - }, - exit: { - duration: 0.1, - ease: TRANSITION_EASINGS.easeIn, - }, -} as const; - -export const TRANSITION_VARIANTS: Variants = { - scaleSpring: { - enter: { - transform: "scale(1)", - opacity: 1, - transition: { - type: "spring", - bounce: 0, - duration: 0.2, - }, - }, - exit: { - transform: "scale(0.85)", - opacity: 0, - transition: { - type: "easeOut", - duration: 0.15, - }, - }, - }, - scaleSpringOpacity: { - initial: { - opacity: 0, - transform: "scale(0.8)", - }, - enter: { - opacity: 1, - transform: "scale(1)", - transition: { - type: "spring", - bounce: 0, - duration: 0.3, - }, - }, - exit: { - opacity: 0, - transform: "scale(0.96)", - transition: { - type: "easeOut", - bounce: 0, - duration: 0.15, - }, - }, - }, - scale: { - enter: {scale: 1}, - exit: {scale: 0.95}, - }, - scaleFadeIn: { - enter: { - transform: "scale(1)", - opacity: 1, - transition: { - duration: 0.25, - ease: TRANSITION_EASINGS.easeIn, - }, - }, - exit: { - transform: "scale(0.95)", - opacity: 0, - transition: { - duration: 0.2, - ease: TRANSITION_EASINGS.easeOut, - }, - }, - }, - scaleInOut: { - enter: { - transform: "scale(1)", - opacity: 1, - transition: { - duration: 0.4, - ease: TRANSITION_EASINGS.ease, - }, - }, - exit: { - transform: "scale(1.03)", - opacity: 0, - transition: { - duration: 0.3, - ease: TRANSITION_EASINGS.ease, - }, - }, - }, - fade: { - enter: { - opacity: 1, - transition: { - duration: 0.4, - ease: TRANSITION_EASINGS.ease, - }, - }, - exit: { - opacity: 0, - transition: { - duration: 0.3, - ease: TRANSITION_EASINGS.ease, - }, - }, - }, - collapse: { - enter: { - opacity: 1, - height: "auto", - transition: { - height: { - type: "spring", - bounce: 0, - duration: 0.3, - }, - opacity: { - easings: "ease", - duration: 0.4, - }, - }, - }, - exit: { - opacity: 0, - height: 0, - transition: { - easings: "ease", - duration: 0.3, - }, - }, - }, -}; diff --git a/packages/utilities/framer-utils/tsconfig.json b/packages/utilities/framer-utils/tsconfig.json deleted file mode 100644 index 46e3b466c2..0000000000 --- a/packages/utilities/framer-utils/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["src", "index.ts"] -} diff --git a/packages/utilities/framer-utils/tsup.config.ts b/packages/utilities/framer-utils/tsup.config.ts deleted file mode 100644 index 3e2bcff6cc..0000000000 --- a/packages/utilities/framer-utils/tsup.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {defineConfig} from "tsup"; - -export default defineConfig({ - clean: true, - target: "es2019", - format: ["cjs", "esm"], - banner: {js: '"use client";'}, -});