From 8777daf6d3bdef0b7cc035765cd4792365736f43 Mon Sep 17 00:00:00 2001 From: Robb Niznik Date: Fri, 25 Apr 2025 10:18:40 -0400 Subject: [PATCH] chore: remove inline-edit package and move out Box from core --- .changeset/some-loops-care.md | 5 + packages/core/package.json | 2 - packages/core/src/index.ts | 4 - packages/inline-edit/CHANGELOG.md | 977 ------------------ packages/inline-edit/README.md | 14 - .../inline-edit/__tests__/InlineEdit.spec.tsx | 240 ----- packages/inline-edit/package.json | 57 - packages/inline-edit/src/InlineEdit.tsx | 195 ---- packages/inline-edit/src/index.ts | 2 - .../inline-edit/src/styles/InlineEdit.css.ts | 50 - .../stories/InlineEdit.stories.tsx | 188 ---- packages/inline-edit/tsconfig.build.json | 7 - pnpm-lock.yaml | 61 -- tsconfig.json | 1 - vite.config.mts | 1 - 15 files changed, 5 insertions(+), 1799 deletions(-) create mode 100644 .changeset/some-loops-care.md delete mode 100644 packages/inline-edit/CHANGELOG.md delete mode 100644 packages/inline-edit/README.md delete mode 100644 packages/inline-edit/__tests__/InlineEdit.spec.tsx delete mode 100644 packages/inline-edit/package.json delete mode 100644 packages/inline-edit/src/InlineEdit.tsx delete mode 100644 packages/inline-edit/src/index.ts delete mode 100644 packages/inline-edit/src/styles/InlineEdit.css.ts delete mode 100644 packages/inline-edit/stories/InlineEdit.stories.tsx delete mode 100644 packages/inline-edit/tsconfig.build.json diff --git a/.changeset/some-loops-care.md b/.changeset/some-loops-care.md new file mode 100644 index 000000000..b7e9f9d96 --- /dev/null +++ b/.changeset/some-loops-care.md @@ -0,0 +1,5 @@ +--- +"@launchpad-ui/core": minor +--- + +Remove inline-edit package and move out Box from core diff --git a/packages/core/package.json b/packages/core/package.json index 70555ec11..436261008 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -33,14 +33,12 @@ "test": "exit 0" }, "dependencies": { - "@launchpad-ui/box": "workspace:~", "@launchpad-ui/button": "workspace:~", "@launchpad-ui/drawer": "workspace:~", "@launchpad-ui/dropdown": "workspace:~", "@launchpad-ui/filter": "workspace:~", "@launchpad-ui/focus-trap": "workspace:~", "@launchpad-ui/form": "workspace:~", - "@launchpad-ui/inline-edit": "workspace:~", "@launchpad-ui/menu": "workspace:~", "@launchpad-ui/modal": "workspace:~", "@launchpad-ui/navigation": "workspace:~", diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 701f92f86..bc601975b 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,5 +1,4 @@ // plop start type exports -export type { BoxProps } from '@launchpad-ui/box'; export type { ButtonProps, UploadButtonProps, @@ -65,11 +64,9 @@ export type { TableRowProps, } from '@launchpad-ui/table'; export type { TooltipProps } from '@launchpad-ui/tooltip'; -export type { InlineEditProps } from '@launchpad-ui/inline-edit'; // plop end type exports // plop start module exports -export { Box } from '@launchpad-ui/box'; export { Button, ButtonGroup, UploadButton, IconButton } from '@launchpad-ui/button'; export { Drawer, DrawerHeader } from '@launchpad-ui/drawer'; export { Dropdown, DropdownButton } from '@launchpad-ui/dropdown'; @@ -122,5 +119,4 @@ export { TableRow, } from '@launchpad-ui/table'; export { Tooltip, TooltipBase } from '@launchpad-ui/tooltip'; -export { InlineEdit } from '@launchpad-ui/inline-edit'; // plop end module exports diff --git a/packages/inline-edit/CHANGELOG.md b/packages/inline-edit/CHANGELOG.md deleted file mode 100644 index e249926bd..000000000 --- a/packages/inline-edit/CHANGELOG.md +++ /dev/null @@ -1,977 +0,0 @@ -# @launchpad-ui/inline-edit - -## 0.3.57 - -### Patch Changes - -- Updated dependencies [[`a0d8c4d`](https://github.com/launchdarkly/launchpad-ui/commit/a0d8c4da4aa4b77ea4c33031cdf4cffa8bed86d3)]: - - @launchpad-ui/icons@0.21.9 - - @launchpad-ui/button@0.12.50 - - @launchpad-ui/form@0.11.57 - -## 0.3.56 - -### Patch Changes - -- Updated dependencies [[`9d74f7d`](https://github.com/launchdarkly/launchpad-ui/commit/9d74f7da3d07302dc0fa65e5a92b098bd8d94d37)]: - - @launchpad-ui/icons@0.21.8 - - @launchpad-ui/button@0.12.49 - - @launchpad-ui/form@0.11.56 - -## 0.3.55 - -### Patch Changes - -- [#1626](https://github.com/launchdarkly/launchpad-ui/pull/1626) [`01ccf8f`](https://github.com/launchdarkly/launchpad-ui/commit/01ccf8f6b77cb733e063baab6846cffd82452f7d) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`01ccf8f`](https://github.com/launchdarkly/launchpad-ui/commit/01ccf8f6b77cb733e063baab6846cffd82452f7d)]: - - @launchpad-ui/button@0.12.48 - - @launchpad-ui/form@0.11.55 - -## 0.3.54 - -### Patch Changes - -- Updated dependencies [[`f0394fb`](https://github.com/launchdarkly/launchpad-ui/commit/f0394fb0c08d1bdbc29f4fa492d7bb84dfe87849)]: - - @launchpad-ui/icons@0.21.7 - - @launchpad-ui/button@0.12.47 - - @launchpad-ui/form@0.11.54 - -## 0.3.53 - -### Patch Changes - -- Updated dependencies [[`7d38add`](https://github.com/launchdarkly/launchpad-ui/commit/7d38add1a9815d83ab50725f1eb8004c466bff23)]: - - @launchpad-ui/icons@0.21.6 - - @launchpad-ui/button@0.12.46 - - @launchpad-ui/form@0.11.53 - -## 0.3.52 - -### Patch Changes - -- Updated dependencies [[`59d0de5`](https://github.com/launchdarkly/launchpad-ui/commit/59d0de591db74b32141ba319deaff97cfb322fa5)]: - - @launchpad-ui/icons@0.21.5 - - @launchpad-ui/button@0.12.45 - - @launchpad-ui/form@0.11.52 - -## 0.3.51 - -### Patch Changes - -- [#1571](https://github.com/launchdarkly/launchpad-ui/pull/1571) [`716f6f5`](https://github.com/launchdarkly/launchpad-ui/commit/716f6f5ecc1f2b243c2b961c4ef2bf57f87cce84) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`716f6f5`](https://github.com/launchdarkly/launchpad-ui/commit/716f6f5ecc1f2b243c2b961c4ef2bf57f87cce84)]: - - @launchpad-ui/form@0.11.51 - -## 0.3.50 - -### Patch Changes - -- Updated dependencies [[`2714397`](https://github.com/launchdarkly/launchpad-ui/commit/27143973e8e689424779273c393b70967d849f99)]: - - @launchpad-ui/icons@0.21.4 - - @launchpad-ui/button@0.12.44 - - @launchpad-ui/form@0.11.50 - -## 0.3.49 - -### Patch Changes - -- Updated dependencies [[`f2a84ba`](https://github.com/launchdarkly/launchpad-ui/commit/f2a84bac6e7f97f54f1b0a61e4983a17c304d4d2)]: - - @launchpad-ui/tokens@0.12.3 - - @launchpad-ui/button@0.12.43 - - @launchpad-ui/form@0.11.49 - - @launchpad-ui/icons@0.21.3 - - @launchpad-ui/vars@0.3.3 - -## 0.3.48 - -### Patch Changes - -- Updated dependencies [[`eb7e2a8`](https://github.com/launchdarkly/launchpad-ui/commit/eb7e2a817e97263f9c1ff830bdf4c1b8cbb304c6)]: - - @launchpad-ui/tokens@0.12.2 - - @launchpad-ui/icons@0.21.2 - - @launchpad-ui/button@0.12.42 - - @launchpad-ui/form@0.11.48 - - @launchpad-ui/vars@0.3.2 - -## 0.3.47 - -### Patch Changes - -- Updated dependencies [[`3e8616a`](https://github.com/launchdarkly/launchpad-ui/commit/3e8616a4a7d844698357ab2c9fbb928c3d666340)]: - - @launchpad-ui/icons@0.21.1 - - @launchpad-ui/button@0.12.41 - - @launchpad-ui/form@0.11.47 - -## 0.3.46 - -### Patch Changes - -- [#1521](https://github.com/launchdarkly/launchpad-ui/pull/1521) [`0e7d403`](https://github.com/launchdarkly/launchpad-ui/commit/0e7d4038e7686684001e59df0e83ae2f8191f9ba) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`fe07097`](https://github.com/launchdarkly/launchpad-ui/commit/fe0709739722a6dd6bd27a02963b05039732d756), [`c543426`](https://github.com/launchdarkly/launchpad-ui/commit/c5434262ed7471d3c16bfd10c2f97429209bed44), [`0e7d403`](https://github.com/launchdarkly/launchpad-ui/commit/0e7d4038e7686684001e59df0e83ae2f8191f9ba)]: - - @launchpad-ui/icons@0.21.0 - - @launchpad-ui/form@0.11.46 - - @launchpad-ui/button@0.12.40 - -## 0.3.45 - -### Patch Changes - -- [#1492](https://github.com/launchdarkly/launchpad-ui/pull/1492) [`21d0a50`](https://github.com/launchdarkly/launchpad-ui/commit/21d0a50717d7374949de0aed08e7574d31d60aa2) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`21d0a50`](https://github.com/launchdarkly/launchpad-ui/commit/21d0a50717d7374949de0aed08e7574d31d60aa2)]: - - @launchpad-ui/form@0.11.45 - -## 0.3.44 - -### Patch Changes - -- Updated dependencies [[`18a3a22`](https://github.com/launchdarkly/launchpad-ui/commit/18a3a22cd15781ea9a23859422e41a72021c32c9)]: - - @launchpad-ui/icons@0.20.3 - - @launchpad-ui/button@0.12.39 - - @launchpad-ui/form@0.11.44 - -## 0.3.43 - -### Patch Changes - -- Updated dependencies [[`4638391`](https://github.com/launchdarkly/launchpad-ui/commit/4638391dab663722ad18c7cfdf913ddfbb07b44c), [`34f1227`](https://github.com/launchdarkly/launchpad-ui/commit/34f12273a181b5b7d8823b4f678e5d7f941d9a93)]: - - @launchpad-ui/button@0.12.38 - - @launchpad-ui/tokens@0.12.1 - - @launchpad-ui/form@0.11.43 - - @launchpad-ui/icons@0.20.2 - - @launchpad-ui/vars@0.3.1 - -## 0.3.42 - -### Patch Changes - -- Updated dependencies [[`3ba61af`](https://github.com/launchdarkly/launchpad-ui/commit/3ba61afe28f4d473bdad24cadfaa3bc824f53cb3)]: - - @launchpad-ui/icons@0.20.1 - - @launchpad-ui/button@0.12.37 - - @launchpad-ui/form@0.11.42 - -## 0.3.41 - -### Patch Changes - -- Updated dependencies [[`17eb30b`](https://github.com/launchdarkly/launchpad-ui/commit/17eb30b6757f6ff4ffb4d3a4acee3f95ed554411)]: - - @launchpad-ui/icons@0.20.0 - - @launchpad-ui/button@0.12.36 - - @launchpad-ui/form@0.11.41 - -## 0.3.40 - -### Patch Changes - -- [#1449](https://github.com/launchdarkly/launchpad-ui/pull/1449) [`ee205b6`](https://github.com/launchdarkly/launchpad-ui/commit/ee205b68b4e9877b7cd6a95c6532c888e37224f5) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`ee205b6`](https://github.com/launchdarkly/launchpad-ui/commit/ee205b68b4e9877b7cd6a95c6532c888e37224f5), [`3764368`](https://github.com/launchdarkly/launchpad-ui/commit/37643680983e00db444723ffc7e83394191521e5)]: - - @launchpad-ui/form@0.11.40 - - @launchpad-ui/icons@0.19.6 - - @launchpad-ui/button@0.12.35 - -## 0.3.39 - -### Patch Changes - -- Updated dependencies [[`3c7fdd9`](https://github.com/launchdarkly/launchpad-ui/commit/3c7fdd9176154cf8bafdc37813dbb5ab6b9a4988), [`3c7fdd9`](https://github.com/launchdarkly/launchpad-ui/commit/3c7fdd9176154cf8bafdc37813dbb5ab6b9a4988)]: - - @launchpad-ui/button@0.12.34 - - @launchpad-ui/form@0.11.39 - - @launchpad-ui/tokens@0.12.0 - - @launchpad-ui/vars@0.3.0 - - @launchpad-ui/icons@0.19.5 - -## 0.3.38 - -### Patch Changes - -- Updated dependencies [[`3b7b076`](https://github.com/launchdarkly/launchpad-ui/commit/3b7b0768418c5b6b78891ee393ad05147d6b0445)]: - - @launchpad-ui/button@0.12.33 - - @launchpad-ui/form@0.11.38 - -## 0.3.37 - -### Patch Changes - -- Updated dependencies [[`b407647`](https://github.com/launchdarkly/launchpad-ui/commit/b4076476961677b2ce5141b46cb55910ccc372f1)]: - - @launchpad-ui/icons@0.19.4 - - @launchpad-ui/button@0.12.32 - - @launchpad-ui/form@0.11.37 - -## 0.3.36 - -### Patch Changes - -- Updated dependencies [[`47f4952`](https://github.com/launchdarkly/launchpad-ui/commit/47f4952825645633161075899738b869bb343066)]: - - @launchpad-ui/icons@0.19.3 - - @launchpad-ui/button@0.12.31 - - @launchpad-ui/form@0.11.36 - -## 0.3.35 - -### Patch Changes - -- [#1424](https://github.com/launchdarkly/launchpad-ui/pull/1424) [`7684e7d`](https://github.com/launchdarkly/launchpad-ui/commit/7684e7d0ad40063e8cdda92811f92d63e20401b4) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`7684e7d`](https://github.com/launchdarkly/launchpad-ui/commit/7684e7d0ad40063e8cdda92811f92d63e20401b4)]: - - @launchpad-ui/form@0.11.35 - - @launchpad-ui/vars@0.2.26 - - @launchpad-ui/icons@0.19.2 - - @launchpad-ui/button@0.12.30 - -## 0.3.34 - -### Patch Changes - -- Updated dependencies [[`f537aef`](https://github.com/launchdarkly/launchpad-ui/commit/f537aef5280ee098346c89039fe84fb2ea8542ba)]: - - @launchpad-ui/icons@0.19.1 - - @launchpad-ui/button@0.12.29 - - @launchpad-ui/form@0.11.34 - -## 0.3.33 - -### Patch Changes - -- Updated dependencies [[`6341b25`](https://github.com/launchdarkly/launchpad-ui/commit/6341b256039fabceb3d720b9ec63b29b3a600632), [`05feada`](https://github.com/launchdarkly/launchpad-ui/commit/05feada3d4f4e6c03d124b1f4443e790d7b35274)]: - - @launchpad-ui/icons@0.19.0 - - @launchpad-ui/button@0.12.28 - - @launchpad-ui/form@0.11.33 - -## 0.3.32 - -### Patch Changes - -- Updated dependencies [[`6f6619f`](https://github.com/launchdarkly/launchpad-ui/commit/6f6619f7b99541904512993652ba9b0918272f9b)]: - - @launchpad-ui/tokens@0.11.4 - - @launchpad-ui/button@0.12.27 - - @launchpad-ui/form@0.11.32 - - @launchpad-ui/icons@0.18.14 - - @launchpad-ui/vars@0.2.25 - -## 0.3.31 - -### Patch Changes - -- [#1392](https://github.com/launchdarkly/launchpad-ui/pull/1392) [`3e49dc6`](https://github.com/launchdarkly/launchpad-ui/commit/3e49dc63a89c8eaed56a3d75cef501e685a5852f) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`3e49dc6`](https://github.com/launchdarkly/launchpad-ui/commit/3e49dc63a89c8eaed56a3d75cef501e685a5852f)]: - - @launchpad-ui/tokens@0.11.3 - - @launchpad-ui/form@0.11.31 - - @launchpad-ui/button@0.12.26 - - @launchpad-ui/icons@0.18.13 - - @launchpad-ui/vars@0.2.24 - -## 0.3.30 - -### Patch Changes - -- Updated dependencies [[`cffa2f9`](https://github.com/launchdarkly/launchpad-ui/commit/cffa2f9055bb8f33b1db0ef1db01ac65d2498a73)]: - - @launchpad-ui/icons@0.18.12 - - @launchpad-ui/button@0.12.25 - - @launchpad-ui/form@0.11.30 - -## 0.3.29 - -### Patch Changes - -- Updated dependencies [[`af43516`](https://github.com/launchdarkly/launchpad-ui/commit/af435166439a8b4860fda2dea78e78fc477ed088)]: - - @launchpad-ui/tokens@0.11.2 - - @launchpad-ui/button@0.12.24 - - @launchpad-ui/form@0.11.29 - - @launchpad-ui/icons@0.18.11 - - @launchpad-ui/vars@0.2.23 - -## 0.3.28 - -### Patch Changes - -- Updated dependencies [[`0d981ef`](https://github.com/launchdarkly/launchpad-ui/commit/0d981efb7e1ca252b51194a47ea8d5c652656462)]: - - @launchpad-ui/icons@0.18.10 - - @launchpad-ui/button@0.12.23 - - @launchpad-ui/form@0.11.28 - -## 0.3.27 - -### Patch Changes - -- Updated dependencies [[`3265579`](https://github.com/launchdarkly/launchpad-ui/commit/326557944061dbd1c7f74daf00454b902b91cb2d)]: - - @launchpad-ui/tokens@0.11.1 - - @launchpad-ui/button@0.12.22 - - @launchpad-ui/form@0.11.27 - - @launchpad-ui/icons@0.18.9 - - @launchpad-ui/vars@0.2.22 - -## 0.3.26 - -### Patch Changes - -- [#1368](https://github.com/launchdarkly/launchpad-ui/pull/1368) [`4309328`](https://github.com/launchdarkly/launchpad-ui/commit/43093284b05b9093c503cb0b91819a74a6af9660) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`4309328`](https://github.com/launchdarkly/launchpad-ui/commit/43093284b05b9093c503cb0b91819a74a6af9660)]: - - @launchpad-ui/form@0.11.26 - -## 0.3.25 - -### Patch Changes - -- [#1366](https://github.com/launchdarkly/launchpad-ui/pull/1366) [`2a908c0`](https://github.com/launchdarkly/launchpad-ui/commit/2a908c093b5cc6a34bc4785727d0365f833bff0e) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`2a908c0`](https://github.com/launchdarkly/launchpad-ui/commit/2a908c093b5cc6a34bc4785727d0365f833bff0e)]: - - @launchpad-ui/form@0.11.25 - -## 0.3.24 - -### Patch Changes - -- Updated dependencies [[`1beb404`](https://github.com/launchdarkly/launchpad-ui/commit/1beb4043a3acfcfd0258ca491bd7265eb3c3a3aa)]: - - @launchpad-ui/icons@0.18.8 - - @launchpad-ui/button@0.12.21 - - @launchpad-ui/form@0.11.24 - -## 0.3.23 - -### Patch Changes - -- Updated dependencies [[`8c68adb`](https://github.com/launchdarkly/launchpad-ui/commit/8c68adbfeeda476c7e75f517cb9ca76d15695438)]: - - @launchpad-ui/tokens@0.11.0 - - @launchpad-ui/button@0.12.20 - - @launchpad-ui/form@0.11.23 - - @launchpad-ui/icons@0.18.7 - - @launchpad-ui/vars@0.2.21 - -## 0.3.22 - -### Patch Changes - -- Updated dependencies [[`388d562`](https://github.com/launchdarkly/launchpad-ui/commit/388d5627583100d04713e76e57b765b9668314d1), [`6ab5b77`](https://github.com/launchdarkly/launchpad-ui/commit/6ab5b776c4dff94ad5be9a6fbf474126ae41c31c)]: - - @launchpad-ui/icons@0.18.6 - - @launchpad-ui/tokens@0.10.0 - - @launchpad-ui/button@0.12.19 - - @launchpad-ui/form@0.11.22 - - @launchpad-ui/vars@0.2.20 - -## 0.3.21 - -### Patch Changes - -- Updated dependencies [[`3c7a71e`](https://github.com/launchdarkly/launchpad-ui/commit/3c7a71e4fd7ba473d07e47a11c3f91f474900e50)]: - - @launchpad-ui/icons@0.18.5 - - @launchpad-ui/button@0.12.18 - - @launchpad-ui/form@0.11.21 - -## 0.3.20 - -### Patch Changes - -- Updated dependencies [[`545560f`](https://github.com/launchdarkly/launchpad-ui/commit/545560fff3fdbfdabfa208e5662c21ae41a76322)]: - - @launchpad-ui/tokens@0.9.12 - - @launchpad-ui/button@0.12.17 - - @launchpad-ui/form@0.11.20 - - @launchpad-ui/icons@0.18.4 - - @launchpad-ui/vars@0.2.19 - -## 0.3.19 - -### Patch Changes - -- Updated dependencies [[`b74c95b`](https://github.com/launchdarkly/launchpad-ui/commit/b74c95ba1fab1d8364777954574ff4cc8fcee3f7)]: - - @launchpad-ui/icons@0.18.3 - - @launchpad-ui/button@0.12.16 - - @launchpad-ui/form@0.11.19 - -## 0.3.18 - -### Patch Changes - -- Updated dependencies [[`b255f1d`](https://github.com/launchdarkly/launchpad-ui/commit/b255f1dddf14c437585383cea5114ca93b949966)]: - - @launchpad-ui/icons@0.18.2 - - @launchpad-ui/button@0.12.15 - - @launchpad-ui/form@0.11.18 - -## 0.3.17 - -### Patch Changes - -- [#1314](https://github.com/launchdarkly/launchpad-ui/pull/1314) [`6a7eacd`](https://github.com/launchdarkly/launchpad-ui/commit/6a7eacde2339810283f9eaa0b2f965f425a919fb) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`6a7eacd`](https://github.com/launchdarkly/launchpad-ui/commit/6a7eacde2339810283f9eaa0b2f965f425a919fb)]: - - @launchpad-ui/form@0.11.17 - -## 0.3.16 - -### Patch Changes - -- [#1313](https://github.com/launchdarkly/launchpad-ui/pull/1313) [`bf904e8`](https://github.com/launchdarkly/launchpad-ui/commit/bf904e8ee2c27ee73d813f539cc5dfdf682e92fc) Thanks [@Niznikr](https://github.com/Niznikr)! - Update style-dictionary to v4 - -- Updated dependencies [[`bf904e8`](https://github.com/launchdarkly/launchpad-ui/commit/bf904e8ee2c27ee73d813f539cc5dfdf682e92fc), [`c0d7223`](https://github.com/launchdarkly/launchpad-ui/commit/c0d72237a9c327abab1a186c6c452b33fa196799)]: - - @launchpad-ui/tokens@0.9.11 - - @launchpad-ui/vars@0.2.18 - - @launchpad-ui/icons@0.18.1 - - @launchpad-ui/button@0.12.14 - - @launchpad-ui/form@0.11.16 - -## 0.3.15 - -### Patch Changes - -- Updated dependencies [[`69375b2`](https://github.com/launchdarkly/launchpad-ui/commit/69375b274a96ce25ec7103cd88d03dd6d4fbf111), [`b2e8731`](https://github.com/launchdarkly/launchpad-ui/commit/b2e873183a438e8482d79ca28c37f0db159f41c2)]: - - @launchpad-ui/icons@0.18.0 - - @launchpad-ui/button@0.12.13 - - @launchpad-ui/form@0.11.15 - -## 0.3.14 - -### Patch Changes - -- Updated dependencies [[`774f300`](https://github.com/launchdarkly/launchpad-ui/commit/774f300fecd68e94d576eb9445a529ba9448fa04), [`877de79`](https://github.com/launchdarkly/launchpad-ui/commit/877de794d4347e088feb5be86cb8de0a299491b1)]: - - @launchpad-ui/icons@0.17.5 - - @launchpad-ui/button@0.12.12 - - @launchpad-ui/form@0.11.14 - -## 0.3.13 - -### Patch Changes - -- Updated dependencies [[`554b1ce`](https://github.com/launchdarkly/launchpad-ui/commit/554b1ce907b7ef914bae64eb3e3bde5bac9d3842)]: - - @launchpad-ui/icons@0.17.4 - - @launchpad-ui/button@0.12.11 - - @launchpad-ui/form@0.11.13 - -## 0.3.12 - -### Patch Changes - -- Updated dependencies [[`a923187`](https://github.com/launchdarkly/launchpad-ui/commit/a923187f7a679965f529ffe8598768adc3d78ce1)]: - - @launchpad-ui/icons@0.17.3 - - @launchpad-ui/button@0.12.10 - - @launchpad-ui/form@0.11.12 - -## 0.3.11 - -### Patch Changes - -- [#1276](https://github.com/launchdarkly/launchpad-ui/pull/1276) [`18b34a0`](https://github.com/launchdarkly/launchpad-ui/commit/18b34a05e8d9866d564727c4568c038925021f2a) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`18b34a0`](https://github.com/launchdarkly/launchpad-ui/commit/18b34a05e8d9866d564727c4568c038925021f2a)]: - - @launchpad-ui/form@0.11.11 - -## 0.3.10 - -### Patch Changes - -- Updated dependencies [[`2002ab4`](https://github.com/launchdarkly/launchpad-ui/commit/2002ab411b61085099ded54cd94fbfc1d1b039d4)]: - - @launchpad-ui/tokens@0.9.10 - - @launchpad-ui/button@0.12.9 - - @launchpad-ui/form@0.11.10 - - @launchpad-ui/icons@0.17.2 - - @launchpad-ui/vars@0.2.17 - -## 0.3.9 - -### Patch Changes - -- Updated dependencies [[`3ba2c5f`](https://github.com/launchdarkly/launchpad-ui/commit/3ba2c5f23e3d7ec1c8443f8e6afb4f1dab61d77f)]: - - @launchpad-ui/icons@0.17.1 - - @launchpad-ui/button@0.12.8 - - @launchpad-ui/form@0.11.9 - -## 0.3.8 - -### Patch Changes - -- [#1233](https://github.com/launchdarkly/launchpad-ui/pull/1233) [`d635813`](https://github.com/launchdarkly/launchpad-ui/commit/d63581359d661c6e8e40ce5ad2a6f2d557333db0) Thanks [@Niznikr](https://github.com/Niznikr)! - Tag deprecated components - -- [#1241](https://github.com/launchdarkly/launchpad-ui/pull/1241) [`28f0708`](https://github.com/launchdarkly/launchpad-ui/commit/28f070844e7d4b35d54634fd78faf534b5f897c0) Thanks [@Niznikr](https://github.com/Niznikr)! - Add repository and license fields to package.json - -- Updated dependencies [[`d635813`](https://github.com/launchdarkly/launchpad-ui/commit/d63581359d661c6e8e40ce5ad2a6f2d557333db0), [`28f0708`](https://github.com/launchdarkly/launchpad-ui/commit/28f070844e7d4b35d54634fd78faf534b5f897c0), [`6f00788`](https://github.com/launchdarkly/launchpad-ui/commit/6f00788e9b043aeb3fa6d00de1fa29d5962684ad)]: - - @launchpad-ui/button@0.12.7 - - @launchpad-ui/form@0.11.8 - - @launchpad-ui/tokens@0.9.9 - - @launchpad-ui/icons@0.17.0 - - @launchpad-ui/vars@0.2.16 - -## 0.3.7 - -### Patch Changes - -- Updated dependencies [[`4d77457`](https://github.com/launchdarkly/launchpad-ui/commit/4d7745766ba9f40eafb6800504a915ef99bf815a)]: - - @launchpad-ui/icons@0.16.6 - - @launchpad-ui/button@0.12.6 - - @launchpad-ui/form@0.11.7 - -## 0.3.6 - -### Patch Changes - -- Updated dependencies [[`fdc91bb`](https://github.com/launchdarkly/launchpad-ui/commit/fdc91bb7630b1a84279ee7b6013d694fafb9fd39)]: - - @launchpad-ui/tokens@0.9.8 - - @launchpad-ui/button@0.12.5 - - @launchpad-ui/form@0.11.6 - - @launchpad-ui/icons@0.16.5 - - @launchpad-ui/vars@0.2.15 - -## 0.3.5 - -### Patch Changes - -- [#1183](https://github.com/launchdarkly/launchpad-ui/pull/1183) [`3b792b5`](https://github.com/launchdarkly/launchpad-ui/commit/3b792b5cb706338be57848a3773152aa6c4597dc) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`3b792b5`](https://github.com/launchdarkly/launchpad-ui/commit/3b792b5cb706338be57848a3773152aa6c4597dc), [`369664c`](https://github.com/launchdarkly/launchpad-ui/commit/369664c3c21f93e844f0d3ae9a4ef80ad2d03bfb)]: - - @launchpad-ui/tokens@0.9.7 - - @launchpad-ui/form@0.11.5 - - @launchpad-ui/icons@0.16.4 - - @launchpad-ui/button@0.12.4 - - @launchpad-ui/vars@0.2.14 - -## 0.3.4 - -### Patch Changes - -- Updated dependencies [[`31b5c98`](https://github.com/launchdarkly/launchpad-ui/commit/31b5c98c49768e62f6474c8696b40e9cb52ea25d)]: - - @launchpad-ui/tokens@0.9.6 - - @launchpad-ui/button@0.12.3 - - @launchpad-ui/form@0.11.4 - - @launchpad-ui/icons@0.16.3 - - @launchpad-ui/vars@0.2.13 - -## 0.3.3 - -### Patch Changes - -- [#1172](https://github.com/launchdarkly/launchpad-ui/pull/1172) [`42bc7f4`](https://github.com/launchdarkly/launchpad-ui/commit/42bc7f40eca3fb451d8e6764c0409ca38fdf6ece) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`42bc7f4`](https://github.com/launchdarkly/launchpad-ui/commit/42bc7f40eca3fb451d8e6764c0409ca38fdf6ece)]: - - @launchpad-ui/form@0.11.3 - -## 0.3.2 - -### Patch Changes - -- Updated dependencies [[`2041cd5`](https://github.com/launchdarkly/launchpad-ui/commit/2041cd53385561cc3e02474f5d2c767f79603b58), [`fb6080e`](https://github.com/launchdarkly/launchpad-ui/commit/fb6080e2081d66b3b9fafb4e5bc7f57a74889358)]: - - @launchpad-ui/tokens@0.9.5 - - @launchpad-ui/icons@0.16.2 - - @launchpad-ui/button@0.12.2 - - @launchpad-ui/form@0.11.2 - - @launchpad-ui/vars@0.2.12 - -## 0.3.1 - -### Patch Changes - -- Updated dependencies [[`5fa37ae`](https://github.com/launchdarkly/launchpad-ui/commit/5fa37ae6952eeb1950738f8365d42cb6b665b93e)]: - - @launchpad-ui/button@0.12.1 - - @launchpad-ui/form@0.11.1 - - @launchpad-ui/icons@0.16.1 - -## 0.3.0 - -### Minor Changes - -- [#1154](https://github.com/launchdarkly/launchpad-ui/pull/1154) [`36d8a2d`](https://github.com/launchdarkly/launchpad-ui/commit/36d8a2d52706213197a02387475338733ccc37f5) Thanks [@Niznikr](https://github.com/Niznikr)! - Change class pattern to `[hash]_[local]` - -### Patch Changes - -- Updated dependencies [[`36d8a2d`](https://github.com/launchdarkly/launchpad-ui/commit/36d8a2d52706213197a02387475338733ccc37f5)]: - - @launchpad-ui/button@0.12.0 - - @launchpad-ui/form@0.11.0 - - @launchpad-ui/icons@0.16.0 - -## 0.2.14 - -### Patch Changes - -- Updated dependencies [[`8fed876`](https://github.com/launchdarkly/launchpad-ui/commit/8fed8760bb3242eda79a38a66582d85f8bf506ed), [`a26559f`](https://github.com/launchdarkly/launchpad-ui/commit/a26559f3d858ef651cd9a5672fc4f1baedb88e63)]: - - @launchpad-ui/tokens@0.9.4 - - @launchpad-ui/icons@0.15.1 - - @launchpad-ui/button@0.11.12 - - @launchpad-ui/form@0.10.14 - - @launchpad-ui/vars@0.2.11 - -## 0.2.13 - -### Patch Changes - -- Updated dependencies [[`4636c17`](https://github.com/launchdarkly/launchpad-ui/commit/4636c17a17c28b741687fd81fe9ec869d4be91a5), [`8be21f6`](https://github.com/launchdarkly/launchpad-ui/commit/8be21f6a9a518f980e11d54e59325b32c7876910), [`4c18b26`](https://github.com/launchdarkly/launchpad-ui/commit/4c18b261496392f3331ba0c2d3aafc04d54691c3)]: - - @launchpad-ui/icons@0.15.0 - - @launchpad-ui/form@0.10.13 - - @launchpad-ui/button@0.11.11 - -## 0.2.12 - -### Patch Changes - -- Updated dependencies [[`91cfeaf`](https://github.com/launchdarkly/launchpad-ui/commit/91cfeafde3848c6a5e86536f747e38362ca523c1), [`afa8fdc`](https://github.com/launchdarkly/launchpad-ui/commit/afa8fdc38ed89b885e2446a2065029b9cbd9cb4e)]: - - @launchpad-ui/tokens@0.9.3 - - @launchpad-ui/icons@0.14.10 - - @launchpad-ui/button@0.11.10 - - @launchpad-ui/form@0.10.12 - - @launchpad-ui/vars@0.2.10 - -## 0.2.11 - -### Patch Changes - -- [#1114](https://github.com/launchdarkly/launchpad-ui/pull/1114) [`51987f5`](https://github.com/launchdarkly/launchpad-ui/commit/51987f538462e2a8378aa9e15a7ef99020c941c4) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`51987f5`](https://github.com/launchdarkly/launchpad-ui/commit/51987f538462e2a8378aa9e15a7ef99020c941c4)]: - - @launchpad-ui/form@0.10.11 - -## 0.2.10 - -### Patch Changes - -- Updated dependencies [[`b1b889c`](https://github.com/launchdarkly/launchpad-ui/commit/b1b889c6807dc28f90fc17319f019e678302c285)]: - - @launchpad-ui/icons@0.14.9 - - @launchpad-ui/button@0.11.9 - - @launchpad-ui/form@0.10.10 - -## 0.2.9 - -### Patch Changes - -- Updated dependencies [[`c8357e5`](https://github.com/launchdarkly/launchpad-ui/commit/c8357e52195c31a3e03432cf4079279746b4c660)]: - - @launchpad-ui/icons@0.14.8 - - @launchpad-ui/button@0.11.8 - - @launchpad-ui/form@0.10.9 - -## 0.2.8 - -### Patch Changes - -- Updated dependencies [[`861c925`](https://github.com/launchdarkly/launchpad-ui/commit/861c92546a6689042336a51297ad600b957b6d21)]: - - @launchpad-ui/tokens@0.9.2 - - @launchpad-ui/button@0.11.7 - - @launchpad-ui/form@0.10.8 - - @launchpad-ui/icons@0.14.7 - - @launchpad-ui/vars@0.2.9 - -## 0.2.7 - -### Patch Changes - -- Updated dependencies [[`6ee9e107`](https://github.com/launchdarkly/launchpad-ui/commit/6ee9e1079ca8b87784963000728d3591fb0180b7)]: - - @launchpad-ui/tokens@0.9.1 - - @launchpad-ui/button@0.11.6 - - @launchpad-ui/form@0.10.7 - - @launchpad-ui/icons@0.14.6 - - @launchpad-ui/vars@0.2.8 - -## 0.2.6 - -### Patch Changes - -- [#1084](https://github.com/launchdarkly/launchpad-ui/pull/1084) [`997f65fb`](https://github.com/launchdarkly/launchpad-ui/commit/997f65fbc84233ae0a55141ae88671382ba22f81) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules - -- Updated dependencies [[`997f65fb`](https://github.com/launchdarkly/launchpad-ui/commit/997f65fbc84233ae0a55141ae88671382ba22f81), [`997f65fb`](https://github.com/launchdarkly/launchpad-ui/commit/997f65fbc84233ae0a55141ae88671382ba22f81), [`997f65fb`](https://github.com/launchdarkly/launchpad-ui/commit/997f65fbc84233ae0a55141ae88671382ba22f81), [`997f65fb`](https://github.com/launchdarkly/launchpad-ui/commit/997f65fbc84233ae0a55141ae88671382ba22f81)]: - - @launchpad-ui/button@0.11.5 - - @launchpad-ui/form@0.10.6 - - @launchpad-ui/tokens@0.9.0 - - @launchpad-ui/icons@0.14.5 - - @launchpad-ui/vars@0.2.7 - -## 0.2.5-alpha.0 - -### Patch Changes - -- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules - -- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`941d2d60`](https://github.com/launchdarkly/launchpad-ui/commit/941d2d60c96f095e7043852f02bc6b5f157edb3b), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53), [`260d052f`](https://github.com/launchdarkly/launchpad-ui/commit/260d052f3f47043cca470747e7d861417873fa41)]: - - @launchpad-ui/tokens@0.9.0-alpha.2 - - @launchpad-ui/button@0.11.5-alpha.0 - - @launchpad-ui/form@0.10.5-alpha.0 - - @launchpad-ui/icons@0.14.5-alpha.0 - - @launchpad-ui/vars@0.2.6-alpha.1 - -## 0.2.3-alpha.0 - -### Patch Changes - -- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules - -- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: - - @launchpad-ui/tokens@0.9.0-alpha.1 - - @launchpad-ui/button@0.11.3-alpha.0 - - @launchpad-ui/form@0.10.3-alpha.0 - - @launchpad-ui/icons@0.14.3-alpha.0 - - @launchpad-ui/vars@0.2.6-alpha.0 - -## 0.2.1-alpha.1 - -### Patch Changes - -- Updated dependencies []: - - @launchpad-ui/form@0.10.1-alpha.1 - -## 0.2.1-alpha.0 - -### Patch Changes - -- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules - -- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: - - @launchpad-ui/tokens@0.9.0-alpha.0 - - @launchpad-ui/button@0.11.1-alpha.0 - - @launchpad-ui/form@0.10.1-alpha.0 - - @launchpad-ui/icons@0.14.1-alpha.0 - - @launchpad-ui/vars@0.2.4-alpha.0 - -## 0.2.5 - -### Patch Changes - -- [#1076](https://github.com/launchdarkly/launchpad-ui/pull/1076) [`d7c33a5a`](https://github.com/launchdarkly/launchpad-ui/commit/d7c33a5aa04eee1f350c6a973da56f4770b70d39) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`d7c33a5a`](https://github.com/launchdarkly/launchpad-ui/commit/d7c33a5aa04eee1f350c6a973da56f4770b70d39)]: - - @launchpad-ui/form@0.10.5 - - @launchpad-ui/vars@0.2.6 - -## 0.2.4 - -### Patch Changes - -- Updated dependencies [[`bb8eed2f`](https://github.com/launchdarkly/launchpad-ui/commit/bb8eed2ff3fc04495109a44041e6591e0e8696d6)]: - - @launchpad-ui/icons@0.14.4 - - @launchpad-ui/button@0.11.4 - - @launchpad-ui/form@0.10.4 - -## 0.2.3 - -### Patch Changes - -- [#1052](https://github.com/launchdarkly/launchpad-ui/pull/1052) [`d4d424c9`](https://github.com/launchdarkly/launchpad-ui/commit/d4d424c99a5aafb5937dd9f9ae71693e4cf076f6) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`77903b21`](https://github.com/launchdarkly/launchpad-ui/commit/77903b21a8a714b27ec68e6d972f5897747c5d17), [`d4d424c9`](https://github.com/launchdarkly/launchpad-ui/commit/d4d424c99a5aafb5937dd9f9ae71693e4cf076f6)]: - - @launchpad-ui/icons@0.14.3 - - @launchpad-ui/form@0.10.3 - - @launchpad-ui/button@0.11.3 - -## 0.2.2 - -### Patch Changes - -- Updated dependencies [[`9097483d`](https://github.com/launchdarkly/launchpad-ui/commit/9097483d04b22bbec5163a0b8ccc73594bd9e242), [`f106ce0e`](https://github.com/launchdarkly/launchpad-ui/commit/f106ce0e7514fe79ed2dcb2b79c9ae302ae08214)]: - - @launchpad-ui/tokens@0.8.2 - - @launchpad-ui/icons@0.14.2 - - @launchpad-ui/button@0.11.2 - - @launchpad-ui/form@0.10.2 - - @launchpad-ui/vars@0.2.5 - -## 0.2.1 - -### Patch Changes - -- Updated dependencies [[`a2c657c1`](https://github.com/launchdarkly/launchpad-ui/commit/a2c657c17c4e5f3d034ae77bdbdb855010e46fb1)]: - - @launchpad-ui/tokens@0.8.1 - - @launchpad-ui/icons@0.14.1 - - @launchpad-ui/button@0.11.1 - - @launchpad-ui/form@0.10.1 - - @launchpad-ui/vars@0.2.4 - -## 0.2.0 - -### Minor Changes - -- [#1033](https://github.com/launchdarkly/launchpad-ui/pull/1033) [`aa584e87`](https://github.com/launchdarkly/launchpad-ui/commit/aa584e87cb9961b84bfd906eae25be85e141e47a) Thanks [@Niznikr](https://github.com/Niznikr)! - Use base 16 font size - -### Patch Changes - -- Updated dependencies [[`aa584e87`](https://github.com/launchdarkly/launchpad-ui/commit/aa584e87cb9961b84bfd906eae25be85e141e47a)]: - - @launchpad-ui/button@0.11.0 - - @launchpad-ui/tokens@0.8.0 - - @launchpad-ui/icons@0.14.0 - - @launchpad-ui/form@0.10.0 - - @launchpad-ui/vars@0.2.3 - -## 0.1.17 - -### Patch Changes - -- Updated dependencies [[`87eff51a`](https://github.com/launchdarkly/launchpad-ui/commit/87eff51a00a813c0ebfebadb03b6c6c2ac221b43)]: - - @launchpad-ui/icons@0.13.1 - - @launchpad-ui/button@0.10.10 - - @launchpad-ui/form@0.9.18 - -## 0.1.16 - -### Patch Changes - -- [#1019](https://github.com/launchdarkly/launchpad-ui/pull/1019) [`30f06bd4`](https://github.com/launchdarkly/launchpad-ui/commit/30f06bd4d0401f41180cbdc671bee4d858f7fb29) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`30f06bd4`](https://github.com/launchdarkly/launchpad-ui/commit/30f06bd4d0401f41180cbdc671bee4d858f7fb29), [`afa2b2d7`](https://github.com/launchdarkly/launchpad-ui/commit/afa2b2d7da6c5aa494fb9ab1adf811c1779e198a)]: - - @launchpad-ui/form@0.9.17 - - @launchpad-ui/icons@0.13.0 - - @launchpad-ui/button@0.10.9 - -## 0.1.16-alpha.0 - -### Patch Changes - -- Updated dependencies [[`ba2a5138`](https://github.com/launchdarkly/launchpad-ui/commit/ba2a5138c9ff43b17654812437025ba9671d4923)]: - - @launchpad-ui/icons@0.13.0-alpha.0 - - @launchpad-ui/button@0.10.9-alpha.0 - - @launchpad-ui/form@0.9.17-alpha.0 - -## 0.1.15 - -### Patch Changes - -- Updated dependencies [[`757c82d5`](https://github.com/launchdarkly/launchpad-ui/commit/757c82d5574c519691521c413c10cd5932cebc9c)]: - - @launchpad-ui/tokens@0.7.1 - - @launchpad-ui/button@0.10.8 - - @launchpad-ui/form@0.9.16 - - @launchpad-ui/icons@0.12.6 - - @launchpad-ui/vars@0.2.2 - -## 0.1.14 - -### Patch Changes - -- Updated dependencies [[`b434c311`](https://github.com/launchdarkly/launchpad-ui/commit/b434c311362dfdd155eac52bb23778fb7e6a37b2)]: - - @launchpad-ui/icons@0.12.5 - - @launchpad-ui/button@0.10.7 - - @launchpad-ui/form@0.9.15 - -## 0.1.13 - -### Patch Changes - -- Updated dependencies [[`37821630`](https://github.com/launchdarkly/launchpad-ui/commit/378216306ecf8e796b690985bbda31f6c42b841d), [`a570a53f`](https://github.com/launchdarkly/launchpad-ui/commit/a570a53f0439cec9cbdb0e1778595e547fe38c51)]: - - @launchpad-ui/icons@0.12.4 - - @launchpad-ui/button@0.10.6 - - @launchpad-ui/form@0.9.14 - -## 0.1.12 - -### Patch Changes - -- [#996](https://github.com/launchdarkly/launchpad-ui/pull/996) [`e3395304`](https://github.com/launchdarkly/launchpad-ui/commit/e33953044d43482a6ef564d5cc2cf43117b23022) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`e3395304`](https://github.com/launchdarkly/launchpad-ui/commit/e33953044d43482a6ef564d5cc2cf43117b23022), [`72862e6d`](https://github.com/launchdarkly/launchpad-ui/commit/72862e6d111834b7b459d48e2e0de26e714966ad)]: - - @launchpad-ui/form@0.9.13 - - @launchpad-ui/icons@0.12.3 - - @launchpad-ui/button@0.10.5 - -## 0.1.11 - -### Patch Changes - -- [#993](https://github.com/launchdarkly/launchpad-ui/pull/993) [`a49131f1`](https://github.com/launchdarkly/launchpad-ui/commit/a49131f16d74a9fe642e5e1795b6eb69ef211243) Thanks [@Niznikr](https://github.com/Niznikr)! - [InlineEdit] Allow to render `IconField`: - - - Add `tooltip` and `renderIconLast` props to `IconField` - -- Updated dependencies [[`a49131f1`](https://github.com/launchdarkly/launchpad-ui/commit/a49131f16d74a9fe642e5e1795b6eb69ef211243), [`21ef37b7`](https://github.com/launchdarkly/launchpad-ui/commit/21ef37b7c8a3943c9670337cabfe401372ad0ada)]: - - @launchpad-ui/form@0.9.12 - - @launchpad-ui/icons@0.12.2 - - @launchpad-ui/button@0.10.4 - -## 0.1.10 - -### Patch Changes - -- Updated dependencies [[`21ef85cf`](https://github.com/launchdarkly/launchpad-ui/commit/21ef85cf2d32936d7907712bf35d5f3fba29ef40)]: - - @launchpad-ui/icons@0.12.1 - - @launchpad-ui/button@0.10.3 - - @launchpad-ui/form@0.9.11 - -## 0.1.9 - -### Patch Changes - -- Updated dependencies [[`5d398d07`](https://github.com/launchdarkly/launchpad-ui/commit/5d398d071ee124e430bf127b86cfeb2af3af3989)]: - - @launchpad-ui/icons@0.12.0 - - @launchpad-ui/button@0.10.2 - - @launchpad-ui/form@0.9.10 - -## 0.1.8 - -### Patch Changes - -- Updated dependencies [[`e834a1f1`](https://github.com/launchdarkly/launchpad-ui/commit/e834a1f19a52678b79edb91db9fdd356a71dbb8d)]: - - @launchpad-ui/icons@0.11.0 - - @launchpad-ui/button@0.10.1 - - @launchpad-ui/form@0.9.9 - -## 0.1.7 - -### Patch Changes - -- Updated dependencies [[`6b94906e`](https://github.com/launchdarkly/launchpad-ui/commit/6b94906e69d9f7516388d465689f7ff2e37faf9a), [`45d511ea`](https://github.com/launchdarkly/launchpad-ui/commit/45d511ea87c176e0cb12f2cdac885ef8cec91058)]: - - @launchpad-ui/icons@0.10.0 - - @launchpad-ui/button@0.10.0 - - @launchpad-ui/tokens@0.7.0 - - @launchpad-ui/form@0.9.8 - - @launchpad-ui/vars@0.2.1 - -## 0.1.6 - -### Patch Changes - -- Updated dependencies [[`2be20b76`](https://github.com/launchdarkly/launchpad-ui/commit/2be20b76362713b2f4fe25e0e045271f2358e59e)]: - - @launchpad-ui/icons@0.9.6 - - @launchpad-ui/button@0.9.6 - - @launchpad-ui/form@0.9.7 - -## 0.1.5 - -### Patch Changes - -- Updated dependencies [[`6a034ffe`](https://github.com/launchdarkly/launchpad-ui/commit/6a034ffef935f54dd077b6cdcc5cf14c02629d6b)]: - - @launchpad-ui/icons@0.9.5 - - @launchpad-ui/button@0.9.5 - - @launchpad-ui/form@0.9.6 - -## 0.1.4 - -### Patch Changes - -- [#965](https://github.com/launchdarkly/launchpad-ui/pull/965) [`fec67a1c`](https://github.com/launchdarkly/launchpad-ui/commit/fec67a1c3713ae80295a437076f8d5ea59edcd58) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- [#957](https://github.com/launchdarkly/launchpad-ui/pull/957) [`8595e29c`](https://github.com/launchdarkly/launchpad-ui/commit/8595e29caa3014143cde77800fbbeceb925ee1f2) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies - -- Updated dependencies [[`fec67a1c`](https://github.com/launchdarkly/launchpad-ui/commit/fec67a1c3713ae80295a437076f8d5ea59edcd58), [`8595e29c`](https://github.com/launchdarkly/launchpad-ui/commit/8595e29caa3014143cde77800fbbeceb925ee1f2)]: - - @launchpad-ui/form@0.9.5 - -## 0.1.3 - -### Patch Changes - -- Updated dependencies [[`5aad4986`](https://github.com/launchdarkly/launchpad-ui/commit/5aad4986acc0cf5f593247fbe041cf8938a684a3)]: - - @launchpad-ui/icons@0.9.4 - - @launchpad-ui/button@0.9.4 - - @launchpad-ui/form@0.9.4 - -## 0.1.2 - -### Patch Changes - -- [#947](https://github.com/launchdarkly/launchpad-ui/pull/947) [`29e2b26c`](https://github.com/launchdarkly/launchpad-ui/commit/29e2b26c7f2a5496adb11a72fd79fcadd33717ff) Thanks [@Niznikr](https://github.com/Niznikr)! - Annotate pure functions - -- Updated dependencies [[`29e2b26c`](https://github.com/launchdarkly/launchpad-ui/commit/29e2b26c7f2a5496adb11a72fd79fcadd33717ff)]: - - @launchpad-ui/button@0.9.3 - - @launchpad-ui/form@0.9.3 - - @launchpad-ui/icons@0.9.3 - -## 0.1.1 - -### Patch Changes - -- [#946](https://github.com/launchdarkly/launchpad-ui/pull/946) [`f6ea1287`](https://github.com/launchdarkly/launchpad-ui/commit/f6ea12877132ec0a3a0d466326df77cf7d367cda) Thanks [@Niznikr](https://github.com/Niznikr)! - [InlineEdit] Forward ref and spread additional props - -## 0.1.0 - -### Minor Changes - -- [#938](https://github.com/launchdarkly/launchpad-ui/pull/938) [`db9e620b`](https://github.com/launchdarkly/launchpad-ui/commit/db9e620b578ebee1adfb14054753ffcfe76a313f) Thanks [@Niznikr](https://github.com/Niznikr)! - Add `inline-edit` package to display and allow inline editing of a form elements: - - - Use props `defaultValue` and `onConfirm` to handle state management of the value to edit - - Have children act as the "read" view of the component - - Hide edit icon button and wrap children with a React Aria button when `hideEdit` is true - - Implement focus management to ensure focus is directed correctly when toggling between read and edit mode - - Use `renderInput` prop to allow passing a custom `TextField` or `TextArea` component - - Add handlers for edit, cancel, and confirm actions - - Use prop `isEditing` to allow full control over the read and edit modes - - Add `@vanilla-extract/css` as a peer dependency for prop `layout` variant types - - Use `useFocusWithin` to cancel edit on blur diff --git a/packages/inline-edit/README.md b/packages/inline-edit/README.md deleted file mode 100644 index ba5410abf..000000000 --- a/packages/inline-edit/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# @launchpad-ui/inline-edit - -> An element used to display and allow inline editing of a form element value. - -[![See it on NPM!](https://img.shields.io/npm/v/@launchpad-ui/inline-edit?style=for-the-badge)](https://www.npmjs.com/package/@launchpad-ui/inline-edit) -[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@launchpad-ui/inline-edit?style=for-the-badge)](https://bundlephobia.com/result?p=@launchpad-ui/inline-edit) - -## Installation - -```sh -$ yarn add @launchpad-ui/inline-edit -# or -$ npm install @launchpad-ui/inline-edit -``` diff --git a/packages/inline-edit/__tests__/InlineEdit.spec.tsx b/packages/inline-edit/__tests__/InlineEdit.spec.tsx deleted file mode 100644 index fb100f5b9..000000000 --- a/packages/inline-edit/__tests__/InlineEdit.spec.tsx +++ /dev/null @@ -1,240 +0,0 @@ -import type { InlineEditProps } from '../src'; - -import { TextArea } from '@launchpad-ui/form'; -import { useState } from 'react'; -import { describe, expect, it, vi } from 'vitest'; - -import { render, screen, userEvent, waitFor } from '../../../test/utils'; -import { InlineEdit } from '../src'; - -const InlineEditComponent = ({ ...props }: Omit, 'ref'>) => { - const [editValue, setEditValue] = useState(''); - - return ( - - {editValue} - - ); -}; - -describe('InlineEdit', () => { - it('renders', () => { - render(); - expect(screen.getByTestId('inline-edit')).toBeVisible(); - }); - - it('renders an input in edit mode', async () => { - render(); - - await waitFor(() => { - screen.getByLabelText('edit').click(); - }); - - await waitFor(() => { - expect(screen.getByTestId('text-field')).toBeVisible(); - }); - }); - - it('renders a button wrapper in edit mode when hideEdit is passed', async () => { - render(); - expect(screen.getByRole('button')).toBeVisible(); - }); - - it('renders a custom input', async () => { - render(} />); - - await waitFor(() => { - screen.getByLabelText('edit').click(); - }); - - await waitFor(() => { - expect(screen.getByTestId('text-area')).toBeVisible(); - }); - }); - - it('enters edit mode when button wrapper is clicked', async () => { - render(); - - await waitFor(() => { - screen.getByRole('button').click(); - }); - - await waitFor(() => { - expect(screen.getByTestId('text-field')).toBeVisible(); - }); - }); - - it('returns to read mode when cancel is clicked', async () => { - render(); - - await waitFor(() => { - screen.getByLabelText('edit').click(); - }); - - await waitFor(() => { - screen.getByLabelText('cancel').click(); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - }); - - it('returns to read mode when the escape key is pressed', async () => { - const user = userEvent.setup(); - render(); - - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.keyboard('{Escape}'); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - }); - - it('confirms the value and returns to read mode when the enter key is pressed', async () => { - const user = userEvent.setup(); - render(); - - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.keyboard('test'); - await user.keyboard('{Enter}'); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - - await waitFor(() => { - expect(screen.getByText('test')).toBeVisible(); - }); - }); - - it('confirms the value and returns to read mode when confirm is clicked', async () => { - const user = userEvent.setup(); - render(); - - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.keyboard('test'); - screen.getByLabelText('confirm').click(); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - - await waitFor(() => { - expect(screen.getByText('test')).toBeVisible(); - }); - }); - - it('delegates focus with keyboard nav', async () => { - const user = userEvent.setup(); - render(); - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.tab(); - await user.keyboard('{Enter}'); - }); - - await waitFor(async () => { - expect(screen.getByLabelText('edit')).toHaveFocus(); - }); - }); - - it('calls handlers for edit, cancel, and confirm', async () => { - const editSpy = vi.fn(); - const cancelSpy = vi.fn(); - const confirmSpy = vi.fn(); - - render(); - - await waitFor(async () => { - screen.getByLabelText('edit').click(); - }); - - expect(editSpy).toHaveBeenCalledTimes(1); - - await waitFor(async () => { - screen.getByLabelText('cancel').click(); - }); - - expect(cancelSpy).toHaveBeenCalledTimes(1); - - await waitFor(() => { - screen.getByLabelText('edit').click(); - }); - - await waitFor(() => { - screen.getByLabelText('confirm').click(); - }); - - expect(confirmSpy).toHaveBeenCalledTimes(1); - }); - - it('allows control over the read and edit modes', async () => { - const { rerender } = render(); - - await waitFor(() => { - expect(screen.getByTestId('text-field')).toBeVisible(); - }); - - rerender(); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - }); - - it('cancels when input is blurred', async () => { - const user = userEvent.setup(); - render(); - - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.tab({ shift: true }); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - }); - - it('cancels when cancel button is blurred', async () => { - const user = userEvent.setup(); - render(); - - await user.tab(); - await user.keyboard('{Enter}'); - - await waitFor(async () => { - expect(screen.getByTestId('text-field')).toHaveFocus(); - await user.tab(); - await user.tab(); - await user.tab(); - }); - - await waitFor(() => { - expect(screen.getByLabelText('edit')).toBeVisible(); - }); - }); -}); diff --git a/packages/inline-edit/package.json b/packages/inline-edit/package.json deleted file mode 100644 index 911e7d6b2..000000000 --- a/packages/inline-edit/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@launchpad-ui/inline-edit", - "version": "0.3.57", - "status": "alpha", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/launchdarkly/launchpad-ui" - }, - "description": "An element used to display and allow inline editing of a form element value.", - "license": "Apache-2.0", - "files": ["dist"], - "main": "dist/index.js", - "module": "dist/index.es.js", - "types": "dist/index.d.ts", - "sideEffects": ["**/*.css"], - "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.es.js", - "require": "./dist/index.js" - }, - "./package.json": "./package.json", - "./style.css": "./dist/style.css" - }, - "source": "src/index.ts", - "scripts": { - "build": "vite build -c ../../vite.config.mts && tsc --project tsconfig.build.json", - "clean": "rm -rf dist", - "lint": "exit 0", - "test": "vitest run --coverage" - }, - "dependencies": { - "@react-aria/button": "3.13.0", - "@react-aria/focus": "3.20.2", - "@react-aria/interactions": "3.25.0", - "@react-aria/utils": "3.28.2", - "@launchpad-ui/button": "workspace:~", - "@launchpad-ui/form": "workspace:~", - "@launchpad-ui/icons": "workspace:~", - "@launchpad-ui/tokens": "workspace:~", - "@launchpad-ui/vars": "workspace:~", - "@vanilla-extract/recipes": "^0.5.5", - "classix": "2.2.0" - }, - "peerDependencies": { - "@vanilla-extract/css": "^1.17.1", - "react": "^18.0.0 || ^19.0.0", - "react-dom": "^18.0.0 || ^19.0.0" - }, - "devDependencies": { - "react": "19.1.0", - "react-dom": "19.1.0" - } -} diff --git a/packages/inline-edit/src/InlineEdit.tsx b/packages/inline-edit/src/InlineEdit.tsx deleted file mode 100644 index f6e452cfe..000000000 --- a/packages/inline-edit/src/InlineEdit.tsx +++ /dev/null @@ -1,195 +0,0 @@ -import type { IconFieldProps, TextAreaProps, TextFieldProps } from '@launchpad-ui/form'; -import type { ComponentProps, KeyboardEventHandler, ReactElement } from 'react'; -import type { InlineVariants } from './styles/InlineEdit.css'; - -import { ButtonGroup, IconButton } from '@launchpad-ui/button'; -import { TextArea, TextField } from '@launchpad-ui/form'; -import { Icon } from '@launchpad-ui/icons'; -import { useButton } from '@react-aria/button'; -import { focusSafely } from '@react-aria/focus'; -import { useFocusWithin } from '@react-aria/interactions'; -import { mergeProps, mergeRefs, useUpdateEffect } from '@react-aria/utils'; -import { cx } from 'classix'; -import { Children, cloneElement, forwardRef, useRef, useState } from 'react'; - -import { cancelButton, container, inline, readButton } from './styles/InlineEdit.css'; - -type InlineEditProps = ComponentProps<'div'> & - InlineVariants & - Pick, 'defaultValue'> & { - 'data-test-id'?: string; - onConfirm: (value: string) => void; - hideEdit?: boolean; - renderInput?: ReactElement; - isEditing?: boolean; - onCancel?: () => void; - onEdit?: () => void; - cancelButtonLabel?: string; - editButtonLabel?: string; - confirmButtonLabel?: string; - }; - -/** - * @deprecated use `minimal` variant for fields from `@launchpad-ui/components` instead - * - * https://launchpad.launchdarkly.com/?path=/docs/components-forms-textfield--docs#minimal - */ -const InlineEdit = forwardRef( - ( - { - 'data-test-id': testId = 'inline-edit', - layout = 'horizontal', - children, - defaultValue, - onConfirm, - hideEdit = false, - renderInput = , - 'aria-label': ariaLabel, - isEditing: isEditingProp, - onCancel, - onEdit, - cancelButtonLabel = 'cancel', - editButtonLabel = 'edit', - confirmButtonLabel = 'confirm', - className, - ...rest - }, - ref, - ) => { - const [isEditing, setEditing] = useState(isEditingProp ?? false); - const [isFocusWithin, setFocusWithin] = useState(false); - const inputRef = useRef(null); - const editRef = useRef(null); - const controlled = isEditingProp !== undefined; - - useUpdateEffect(() => { - if (controlled) { - setEditing(isEditingProp); - } - }, [isEditingProp]); - - useUpdateEffect(() => { - if (isFocusWithin) { - isEditing - ? inputRef.current && focusSafely(inputRef.current) - : editRef.current && focusSafely(editRef.current); - } - }, [isEditing]); - - const handleEdit = () => { - !controlled && setEditing(true); - onEdit?.(); - }; - - const handleCancel = () => { - !controlled && setEditing(false); - onCancel?.(); - }; - - const handleConfirm = () => { - onConfirm(inputRef.current?.value || ''); - !controlled && setEditing(false); - }; - - const handleKeyDown: KeyboardEventHandler = (event) => { - if (event.key === 'Enter') { - event.preventDefault(); - handleConfirm(); - } else if (event.key === 'Escape') { - event.preventDefault(); - handleCancel(); - } - }; - - const { focusWithinProps } = useFocusWithin({ - onBlurWithin: () => isEditing && handleCancel(), - onFocusWithinChange: (isFocusWithin) => setFocusWithin(isFocusWithin), - }); - - const { buttonProps } = useButton( - { - 'aria-label': editButtonLabel, - elementType: 'span', - onPress: handleEdit, - }, - editRef, - ); - - const renderReadContent = hideEdit ? ( - - {children} - - ) : ( - <> - {children} - } - aria-label={editButtonLabel} - size="small" - onClick={handleEdit} - /> - - ); - - const inputProps = { - ref: mergeRefs(inputRef, ref), - defaultValue, - onKeyDown: handleKeyDown, - 'aria-label': ariaLabel, - }; - - const inputChildren = renderInput.props.children; - - const input = cloneElement( - renderInput, - mergeProps(renderInput.props, inputChildren ? {} : inputProps), - inputChildren && - Children.map(inputChildren, (child) => - child.type === TextField || child.type === TextArea - ? cloneElement(child, mergeProps(child.props, inputProps)) - : child, - ), - ); - - return isEditing ? ( -
- {input} - - } - aria-label={confirmButtonLabel} - onClick={handleConfirm} - /> - } - aria-label={cancelButtonLabel} - className={cancelButton} - onClick={handleCancel} - /> - -
- ) : ( -
- {renderReadContent} -
- ); - }, -); - -InlineEdit.displayName = 'InlineEdit'; - -export { InlineEdit }; -export type { InlineEditProps }; diff --git a/packages/inline-edit/src/index.ts b/packages/inline-edit/src/index.ts deleted file mode 100644 index 2ffe4e57f..000000000 --- a/packages/inline-edit/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { InlineEditProps } from './InlineEdit'; -export { InlineEdit } from './InlineEdit'; diff --git a/packages/inline-edit/src/styles/InlineEdit.css.ts b/packages/inline-edit/src/styles/InlineEdit.css.ts deleted file mode 100644 index dff8a1367..000000000 --- a/packages/inline-edit/src/styles/InlineEdit.css.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { RecipeVariants } from '@vanilla-extract/recipes'; - -import { vars } from '@launchpad-ui/vars'; -import { style } from '@vanilla-extract/css'; -import { recipe } from '@vanilla-extract/recipes'; - -const container = style({ - display: 'flex', - gap: vars.spacing[300], - alignItems: 'center', -}); - -const inline = recipe({ - variants: { - layout: { - vertical: { flexDirection: 'column', alignItems: 'flex-start' }, - horizontal: { flexDirection: 'row' }, - }, - }, -}); - -const cancelButton = style({ - selectors: { - '[class*="_Button--icon"]&': { - height: '1.875rem', - width: '1.875rem', - }, - }, -}); - -const readButton = style({ - display: 'inline-block', - padding: `${vars.spacing[200]} ${vars.spacing[300]}`, - borderRadius: vars.borderRadius.regular, - ':hover': { - background: vars.color.bg.interactive.tertiary.hover, - cursor: 'pointer', - }, - ':focus-visible': { - borderRadius: vars.borderRadius.medium, - boxShadow: `0 0 0 2px ${vars.color.bg.ui.primary}, 0 0 0 4px ${vars.color.shadow.interactive.focus}`, - outline: 0, - zIndex: 2, - }, -}); - -type InlineVariants = RecipeVariants; - -export { container, cancelButton, inline, readButton }; -export type { InlineVariants }; diff --git a/packages/inline-edit/stories/InlineEdit.stories.tsx b/packages/inline-edit/stories/InlineEdit.stories.tsx deleted file mode 100644 index 4b187bff3..000000000 --- a/packages/inline-edit/stories/InlineEdit.stories.tsx +++ /dev/null @@ -1,188 +0,0 @@ -import type { StoryObj } from '@storybook/react'; - -import { Form, FormField, IconField, TextArea, TextField } from '@launchpad-ui/form'; -import { Icon } from '@launchpad-ui/icons'; -import { useState } from 'react'; -import { userEvent, within } from 'storybook/test'; - -import { InlineEdit } from '../src'; - -export default { - component: InlineEdit, - title: 'Legacy/InlineEdit', - description: 'An element used to display and allow inline editing of a form element value.', - parameters: { - chromatic: { disableSnapshot: true }, - }, -}; - -type Story = StoryObj; - -export const Example: Story = { - render: (args) => { - const [editValue, setEditValue] = useState('edit me'); - - return ( - <> - - {editValue} - - - ); - }, - play: async ({ canvasElement }: { canvasElement: HTMLElement }) => { - const canvas = within(canvasElement); - - const edit = canvas.getAllByRole('button'); - userEvent.click(edit[0]); - }, -}; - -export const EditTitle: Story = { - render: (args) => { - const [editValue, setEditValue] = useState('Unnamed title'); - - return ( -
- -

{editValue}

-
-
- ); - }, -}; - -export const WithTextarea: Story = { - render: (args) => { - const [editValue, setEditValue] = useState('edit description'); - - return ( - } - > - {editValue} - - ); - }, -}; - -export const InForm: Story = { - render: (args) => { - const [editValue, setEditValue] = useState(''); - - return ( -
- - } - > - {editValue || 'Enter a value'} - - -
- ); - }, - parameters: { - a11y: { - options: { - rules: { - // @fixme - 'duplicate-id': { enabled: false }, - }, - }, - }, - }, -}; - -export const Controlled: Story = { - render: () => { - const [editValue, setEditValue] = useState('edit me'); - const [isEditing, setEditing] = useState(true); - - return ( - setEditing(false)} - onEdit={() => setEditing(true)} - onConfirm={(value) => { - setEditValue(value); - setEditing(false); - }} - > - {editValue} - - ); - }, -}; - -export const Validation: Story = { - render: () => { - const [editValue, setEditValue] = useState('edit me'); - const [isEditing, setEditing] = useState(true); - - return ( - setEditing(false)} - onEdit={() => setEditing(true)} - onConfirm={(value) => { - setEditValue(value); - setEditing(false); - }} - renderInput={ - - } - tooltip="Value is required" - ariaLabel="Error" - renderIconLast - > - - - } - > - {editValue} - - ); - }, - parameters: { - a11y: { - options: { - rules: { - // @fixme - 'duplicate-id-active': { enabled: false }, - }, - }, - }, - }, -}; diff --git a/packages/inline-edit/tsconfig.build.json b/packages/inline-edit/tsconfig.build.json deleted file mode 100644 index 45eaefdc5..000000000 --- a/packages/inline-edit/tsconfig.build.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "include": ["src/*.ts", "src/*.tsx"], - "compilerOptions": { - "outDir": "./dist" - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 257273624..bfc250f1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -288,9 +288,6 @@ importers: packages/core: dependencies: - '@launchpad-ui/box': - specifier: workspace:~ - version: link:../box '@launchpad-ui/button': specifier: workspace:~ version: link:../button @@ -309,9 +306,6 @@ importers: '@launchpad-ui/form': specifier: workspace:~ version: link:../form - '@launchpad-ui/inline-edit': - specifier: workspace:~ - version: link:../inline-edit '@launchpad-ui/menu': specifier: workspace:~ version: link:../menu @@ -518,52 +512,6 @@ importers: specifier: 19.1.0 version: 19.1.0(react@19.1.0) - packages/inline-edit: - dependencies: - '@launchpad-ui/button': - specifier: workspace:~ - version: link:../button - '@launchpad-ui/form': - specifier: workspace:~ - version: link:../form - '@launchpad-ui/icons': - specifier: workspace:~ - version: link:../icons - '@launchpad-ui/tokens': - specifier: workspace:~ - version: link:../tokens - '@launchpad-ui/vars': - specifier: workspace:~ - version: link:../vars - '@react-aria/button': - specifier: 3.13.0 - version: 3.13.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/focus': - specifier: 3.20.2 - version: 3.20.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/interactions': - specifier: 3.25.0 - version: 3.25.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/utils': - specifier: 3.28.2 - version: 3.28.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@vanilla-extract/css': - specifier: ^1.17.1 - version: 1.17.1 - '@vanilla-extract/recipes': - specifier: ^0.5.5 - version: 0.5.5(@vanilla-extract/css@1.17.1) - classix: - specifier: 2.2.0 - version: 2.2.0 - devDependencies: - react: - specifier: 19.1.0 - version: 19.1.0 - react-dom: - specifier: 19.1.0 - version: 19.1.0(react@19.1.0) - packages/menu: dependencies: '@launchpad-ui/form': @@ -2607,11 +2555,6 @@ packages: '@vanilla-extract/private@1.0.6': resolution: {integrity: sha512-ytsG/JLweEjw7DBuZ/0JCN4WAQgM9erfSTdS1NQY778hFQSZ6cfCDEZZ0sgVm4k54uNz6ImKB33AYvSR//fjxw==} - '@vanilla-extract/recipes@0.5.5': - resolution: {integrity: sha512-VadU7+IFUwLNLMgks29AHav/K5h7DOEfTU91RItn5vwdPfzduodNg317YbgWCcpm7FSXkuR3B3X8ZOi95UOozA==} - peerDependencies: - '@vanilla-extract/css': ^1.0.0 - '@vanilla-extract/vite-plugin@5.0.1': resolution: {integrity: sha512-65IhqaNEAv/KjO1jJ52hSXiKUJqeFPlyY/hpRT71Y6bFoasHhzOcZKIQ/ze4fQovjjDL4US565rEiIn1I2qhFA==} peerDependencies: @@ -8214,10 +8157,6 @@ snapshots: '@vanilla-extract/private@1.0.6': {} - '@vanilla-extract/recipes@0.5.5(@vanilla-extract/css@1.17.1)': - dependencies: - '@vanilla-extract/css': 1.17.1 - '@vanilla-extract/vite-plugin@5.0.1(@types/node@22.14.1)(jiti@2.4.2)(less@4.3.0)(lightningcss@1.29.3)(sass@1.86.3)(stylus@0.62.0)(tsx@4.19.3)(vite@6.2.6(@types/node@22.14.1)(jiti@2.4.2)(less@4.3.0)(lightningcss@1.29.3)(sass@1.86.3)(stylus@0.62.0)(tsx@4.19.3)(yaml@2.7.1))(yaml@2.7.1)': dependencies: '@vanilla-extract/compiler': 0.1.2(@types/node@22.14.1)(jiti@2.4.2)(less@4.3.0)(lightningcss@1.29.3)(sass@1.86.3)(stylus@0.62.0)(tsx@4.19.3)(yaml@2.7.1) diff --git a/tsconfig.json b/tsconfig.json index 46391367d..a2f684e5b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,6 @@ "@launchpad-ui/focus-trap": ["./packages/focus-trap/src"], "@launchpad-ui/form": ["./packages/form/src"], "@launchpad-ui/icons": ["./packages/icons/src"], - "@launchpad-ui/inline-edit": ["./packages/inline-edit/src"], "@launchpad-ui/menu": ["./packages/menu/src"], "@launchpad-ui/modal": ["./packages/modal/src"], "@launchpad-ui/navigation": ["./packages/navigation/src"], diff --git a/vite.config.mts b/vite.config.mts index 4a805f12a..75dc269c4 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -96,7 +96,6 @@ export default defineConfig({ ...Object.keys(packageJSON.dependencies || {}), ...Object.keys(packageJSON.peerDependencies || {}), 'react/jsx-runtime', - '@vanilla-extract/recipes/createRuntimeFn', 'rainbow-sprinkles/createRuntimeFn', ], },