The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Move coming-soon labels out of Button (#26951)
Raphaël Bosif1c49695b3c2
diff --git a/packages/twenty-docs/snippets/ui/generated/input/button.mdx b/packages/twenty-docs/snippets/ui/generated/input/button.mdxindex 49e89585b6c..024c62142bd 100644--- a/packages/twenty-docs/snippets/ui/generated/input/button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/button.mdx@@ -56,14 +56,6 @@Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField>-<ParamField body="soon" type="boolean" default="false">- Displays a coming-soon label and disables activation.-</ParamField>--<ParamField body="soonLabel" type="string">- Text for the coming-soon label.-</ParamField>-<ParamField body="startIcon" type="ReactNode">Decorative content displayed before the label.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdxindex e4fd79d8006..7fea383ff30 100644--- a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx@@ -60,14 +60,6 @@Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField>-<ParamField body="soon" type="boolean">- Displays a coming-soon label and disables activation.-</ParamField>--<ParamField body="soonLabel" type="string">- Text for the coming-soon label.-</ParamField>-<ParamField body="startIcon" type="ReactNode">Decorative content displayed before the label.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdxindex d72f29ed2f5..5d8e8b668f6 100644--- a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx@@ -56,14 +56,6 @@Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField>-<ParamField body="soon" type="boolean">- Displays a coming-soon label and disables activation.-</ParamField>--<ParamField body="soonLabel" type="string">- Text for the coming-soon label.-</ParamField>-<ParamField body="startIcon" type="ReactNode">Decorative content displayed before the label.</ParamField>diff --git a/packages/twenty-docs/ui/components/input/light-button.mdx b/packages/twenty-docs/ui/components/input/light-button.mdxindex fd12b062b43..2f3ca2fd61e 100644--- a/packages/twenty-docs/ui/components/input/light-button.mdx+++ b/packages/twenty-docs/ui/components/input/light-button.mdx@@ -19,7 +19,7 @@ font weight, and no elevation.## State ownership-`LightButton` uses Button's state model and adds no state of its own. Your application supplies `loading`, `disabled`, and `soon`; `emphasis` only changes appearance. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action. There are no controlled and uncontrolled selection modes.+`LightButton` uses Button's state model and adds no state of its own. Your application supplies `loading` and `disabled`; `emphasis` only changes appearance. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action. There are no controlled and uncontrolled selection modes.## Usagediff --git a/packages/twenty-docs/ui/components/input/main-button.mdx b/packages/twenty-docs/ui/components/input/main-button.mdxindex 759c8514786..9ece787f0ca 100644--- a/packages/twenty-docs/ui/components/input/main-button.mdx+++ b/packages/twenty-docs/ui/components/input/main-button.mdx@@ -19,7 +19,7 @@ text, and 12px horizontal padding. Its default color is neutral and size is `md`## State ownership-`MainButton` uses Button's state model and adds no state of its own. Your application supplies `loading`, `disabled`, and `soon`; there are no controlled and uncontrolled selection modes. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action.+`MainButton` uses Button's state model and adds no state of its own. Your application supplies `loading` and `disabled`; there are no controlled and uncontrolled selection modes. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action.## Usage@@ -41,7 +41,7 @@ Keep page layout in your application's styling.## Interaction`MainButton` accepts Button's native attributes, event handlers, refs, icon slots,-`loading`, `disabled`, and `soon` props. Buttons default to `type="button"`;+`loading` and `disabled` props. Buttons default to `type="button"`;set `type="submit"` explicitly for form submission.Use `href` for a link. Supply `render` to choose a custom root, including andiff --git a/packages/twenty-docs/ui/primitives/input/button.mdx b/packages/twenty-docs/ui/primitives/input/button.mdxindex 0e59e0b9d9e..8df6b93013c 100644--- a/packages/twenty-docs/ui/primitives/input/button.mdx+++ b/packages/twenty-docs/ui/primitives/input/button.mdx@@ -18,7 +18,7 @@ Both share Button's native props, refs, state, and rendering behavior.`Button` triggers an action and does not manage a selected value, so it has no controlled or uncontrolled selection mode. Its native `value` prop supplies form data, not selection state.-Your application owns `loading`, `disabled`, and `soon`, which default to `false`. Clicking a button does not change these props or automatically show loading while an asynchronous handler runs. Pass the current application state explicitly.+Your application owns `loading` and `disabled`, which default to `false`. Clicking a button does not change these props or automatically show loading while an asynchronous handler runs. Pass the current application state explicitly.```tsximport { useState } from 'react';@@ -73,7 +73,35 @@ Choose `solid`, `outline`, `soft`, `ghost`, or `link` independently of the `neut`link` uses compact text with no border or filled background. It follows its content height at either size, with a smaller font and narrower padding. Its neutral color uses stronger text on hover. The appearance does not determine semantics: use `onClick` for actions and `href` for navigation.-`disabled`, `loading`, and `soon` prevent activation. Loading keeps the label accessible and preserves the button's width while showing a spinner. Customize the upcoming-feature label with `soonLabel`.+`disabled` and `loading` prevent activation. Loading keeps the label accessible and preserves the button's width while showing a spinner.++## Upcoming features++Your application owns feature availability and its label. Compose a disabled button with `Pill` as children so the label remains part of the button's accessible name. Supply localized text from your application.++```tsx+import { Pill } from 'twenty-ui/primitives/data-display';+import { Button } from 'twenty-ui/primitives/input';+import { Text } from 'twenty-ui/primitives/typography';++export const UpcomingAction = () => (+ <Button disabled>+ <Text+ render={<span />}+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 'var(--t-spacing-1)',+ }}+ >+ Upcoming action+ <Pill label="Coming soon" />+ </Text>+ </Button>+);+```++This composition also works with `MainButton` and `LightButton`. It replaces the removed `soon` and `soonLabel` props.## Animated iconsdiff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-reading-directions.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-reading-directions.front-component.tsxindex ca25e373e6a..b6dae2e03d5 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-reading-directions.front-component.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-reading-directions.front-component.tsx@@ -6,7 +6,7 @@ import {ColorSchemePicker,JsonTree,} from 'twenty-ui/components';-import { Avatar } from 'twenty-ui/primitives/data-display';+import { Avatar, Pill } from 'twenty-ui/primitives/data-display';import { Button, ButtonGroup } from 'twenty-ui/primitives/input';import { ListItem } from 'twenty-ui/primitives/navigation';import { Text } from 'twenty-ui/primitives/typography';@@ -55,8 +55,18 @@ const DirectionalLayoutExample = ({<Button>First action</Button><Button>Last action</Button></ButtonGroup>- <Button soon style={{ width: 240 }}>- Upcoming action+ <Button disabled style={{ width: 240 }}>+ <Text+ render={<span />}+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 'var(--t-spacing-1)',+ }}+ >+ Upcoming action+ <Pill label="Soon" />+ </Text></Button>{(['left', 'right'] as const).map((overlap) => (<divdiff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/readingDirectionsTest.ts b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/readingDirectionsTest.tsindex cad2e3585cb..5846dbafaef 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/readingDirectionsTest.ts+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/readingDirectionsTest.ts@@ -22,6 +22,16 @@ export const readingDirectionsTest: TwentyUiGalleryPlayFunction = async ({first.getBoundingClientRect().left > last.getBoundingClientRect().left,).toBe(direction === 'rtl');expect(getComputedStyle(first).borderStartEndRadius).toBe('0px');+ const upcoming = content.getByRole('button', {+ name: 'Upcoming action Soon',+ });+ expect(upcoming).toBeDisabled();+ const upcomingLabel = content.getByText('Soon');+ expect(+ upcomingLabel.getBoundingClientRect().left <+ upcoming.getBoundingClientRect().left ++ upcoming.getBoundingClientRect().width / 2,+ ).toBe(direction === 'rtl');const title = content.getByText('Account details');const description = content.getByText('Review the information before continuing.',diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.mdindex 7e0e28535c8..70c8ca1ad1d 100644--- a/packages/twenty-ui/CHANGELOG.md+++ b/packages/twenty-ui/CHANGELOG.md@@ -5,6 +5,7 @@### Breaking Changes- Removed `ClickToActionLink`. Use `Button variant="link"` from `twenty-ui/primitives/input`: pass `onClick` for actions or `href` for navigation. The link appearance preserves compact text styling while actions gain native button keyboard behavior and prop forwarding.+- Removed `soon` and `soonLabel` from `Button`, `MainButton`, and `LightButton`. Compose a disabled button with `Pill` from `twenty-ui/primitives/data-display` and supply the upcoming-feature label from the application.- Removed `CircularProgressBar`. Use `Loader` from `twenty-ui/primitives/feedback` for indeterminate loading. The separately versioned Granola app will migrate when its `twenty-ui` dependency is upgraded.- Removed the product URL exports `CAL_LINK`, `GITHUB_LINK`, and `TWENTY_PRICING_LINK`. Applications own their destination URLs.- `Card` is now a compound component. Import `Card` from `twenty-ui/primitives/surfaces`, replace `<Card>` with `<Card.Root>`, and replace the removed `CardHeader`, `CardContent`, and `CardFooter` exports with `Card.Header`, `Card.Content`, and `Card.Footer`. Use `Card.Root` in styled wrappers and prop types. Rendering, styling, props, and independent use of the parts are unchanged. See the [Card migration guide](https://docs.twenty.com/ui/primitives/surfaces/card#migration).diff --git a/packages/twenty-ui/docs/buttonPropDescriptions.ts b/packages/twenty-ui/docs/buttonPropDescriptions.tsindex 47d19fbb260..b9b00cb691c 100644--- a/packages/twenty-ui/docs/buttonPropDescriptions.ts+++ b/packages/twenty-ui/docs/buttonPropDescriptions.ts@@ -13,8 +13,6 @@ export const BUTTON_PROP_DESCRIPTIONS = {startIcon: 'Decorative content displayed before the label.',endIcon: 'Decorative content displayed after the label.',hotkeys: 'Keyboard shortcut hints displayed on non-mobile screens.',- soon: 'Displays a coming-soon label and disables activation.',- soonLabel: 'Text for the coming-soon label.',href: 'Destination URL. Enables native link semantics instead of button semantics.',render:'Caller-supplied root element or renderer. Preserve a native button, or an anchor when `href` is set. Router integration belongs to the caller.',diff --git a/packages/twenty-ui/docs/label-ownership.md b/packages/twenty-ui/docs/label-ownership.mdindex e59ac81959f..b56f7ef8536 100644--- a/packages/twenty-ui/docs/label-ownership.md+++ b/packages/twenty-ui/docs/label-ownership.md@@ -9,7 +9,7 @@ This covers production exports under components, primitives, and icons, includin| ListItem and Menu item parts | Children, description, action slots, native accessible attributes, and `hotkeysJoinLabel` (default `then`). || Dropdown | Children name actions, options, titles, sections, empty states, and loading states. `Back` children default to `Back`. Search accepts native placeholder and accessible attributes. Close requires a caller-supplied accessible label and accepts native `aria-labelledby`. Item parts pass `hotkeysJoinLabel` to ListItem. || Legacy menu compositions | MenuItem exposes `text`, contextual slots, and `hotKeysJoinLabel` (default `then`). Avatar, draggable, suggestion, and picker presets receive their text from callers; they add no English fallback. Keep this additive option until their separate migration removes the exports. |-| Button, MainButton, LightButton | Children, native accessible attributes, and `soonLabel` (default `Soon`). Loading preserves the supplied name and marks the button busy; its spinner is decorative. Button shortcut key combinations contain no word separator. |+| Button, MainButton, LightButton | Children and native accessible attributes. Applications compose upcoming-feature labels with Pill. Loading preserves the supplied name and marks the button busy; its spinner is decorative. Button shortcut key combinations contain no word separator. || IconButton and LightIconButton | Caller-supplied accessible label and optional tooltip. Native `aria-labelledby` remains available and takes precedence. || SearchInput | Caller-owned placeholder and native accessible name; `filterButtonAriaLabel` defaults to `Filter`. Referenced labels take precedence over explicit labels and placeholder fallback. || Toast and Toaster | Children, description and action slots, `iconLabel`, `cancelLabel` (default `Cancel`), and `closeLabel` (default `Close`). Toaster accepts native accessible attributes over its `Notifications` region default. |diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.jsonindex a9e51014349..109eb769478 100644--- a/packages/twenty-ui/generated/components.docs.json+++ b/packages/twenty-ui/generated/components.docs.json@@ -956,20 +956,6 @@"defaultValue": null,"description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},- {- "name": "soon",- "type": "boolean",- "required": false,- "defaultValue": null,- "description": "Displays a coming-soon label and disables activation."- },- {- "name": "soonLabel",- "type": "string",- "required": false,- "defaultValue": null,- "description": "Text for the coming-soon label."- },{"name": "startIcon","type": "ReactNode",@@ -1082,20 +1068,6 @@"defaultValue": "sm","description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},- {- "name": "soon",- "type": "boolean",- "required": false,- "defaultValue": null,- "description": "Displays a coming-soon label and disables activation."- },- {- "name": "soonLabel",- "type": "string",- "required": false,- "defaultValue": null,- "description": "Text for the coming-soon label."- },{"name": "startIcon","type": "ReactNode",@@ -1201,20 +1173,6 @@"defaultValue": "md","description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},- {- "name": "soon",- "type": "boolean",- "required": false,- "defaultValue": "false",- "description": "Displays a coming-soon label and disables activation."- },- {- "name": "soonLabel",- "type": "string",- "required": false,- "defaultValue": null,- "description": "Text for the coming-soon label."- },{"name": "startIcon","type": "ReactNode",diff --git a/packages/twenty-ui/src/components/__stories__/reading-direction/DirectionalLayoutExample.tsx b/packages/twenty-ui/src/components/__stories__/reading-direction/DirectionalLayoutExample.tsxindex 57b0fd20c93..ff77f7f3279 100644--- a/packages/twenty-ui/src/components/__stories__/reading-direction/DirectionalLayoutExample.tsx+++ b/packages/twenty-ui/src/components/__stories__/reading-direction/DirectionalLayoutExample.tsx@@ -7,7 +7,7 @@ import {ColorSchemePicker,JsonTree,} from '@ui/components';-import { Avatar } from '@ui/primitives/data-display';+import { Avatar, Pill } from '@ui/primitives/data-display';import {Button,ButtonGroup,@@ -62,8 +62,18 @@ export const DirectionalLayoutExample = ({<Button>First action</Button><Button>Last action</Button></ButtonGroup>- <Button soon style={{ width: 240 }}>- Upcoming action+ <Button disabled style={{ width: 240 }}>+ <Text+ render={<span />}+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 'var(--t-spacing-1)',+ }}+ >+ Upcoming action+ <Pill label="Soon" />+ </Text></Button><SegmentedControlaria-label="Billing"diff --git a/packages/twenty-ui/src/components/__stories__/reading-direction/TextDirectionProvider.layout.stories.tsx b/packages/twenty-ui/src/components/__stories__/reading-direction/TextDirectionProvider.layout.stories.tsxindex e747bca5f5b..f7ac08fa5b0 100644--- a/packages/twenty-ui/src/components/__stories__/reading-direction/TextDirectionProvider.layout.stories.tsx+++ b/packages/twenty-ui/src/components/__stories__/reading-direction/TextDirectionProvider.layout.stories.tsx@@ -46,7 +46,10 @@ export const LeftToRight: Story = {expect(Math.abs(descriptionBox.left - titleBox.left)).toBeLessThan(1);expect(Math.abs(descriptionBox.right - titleBox.right)).toBeLessThan(1);const soon = canvas.getByText('Soon');- const upcoming = canvas.getByRole('button', { name: /Upcoming action/ });+ const upcoming = canvas.getByRole('button', {+ name: 'Upcoming action Soon',+ });+ expect(upcoming).toBeDisabled();expect(soon.getBoundingClientRect().left <upcoming.getBoundingClientRect().left +diff --git a/packages/twenty-ui/src/components/input/IconButton/types/IconButtonProps.ts b/packages/twenty-ui/src/components/input/IconButton/types/IconButtonProps.tsindex 88d24d3bb81..af18571abc5 100644--- a/packages/twenty-ui/src/components/input/IconButton/types/IconButtonProps.ts+++ b/packages/twenty-ui/src/components/input/IconButton/types/IconButtonProps.ts@@ -14,8 +14,6 @@ export type IconButtonProps = Omit<| 'endIcon'| 'hotkeys'| 'fullWidth'- | 'soon'- | 'soonLabel'> & {size?: IconButtonSize;shape?: 'square' | 'round';diff --git a/packages/twenty-ui/src/components/navigation/TabButton/types/TabButtonProps.ts b/packages/twenty-ui/src/components/navigation/TabButton/types/TabButtonProps.tsindex 8c9f4547d33..23ed18ef53a 100644--- a/packages/twenty-ui/src/components/navigation/TabButton/types/TabButtonProps.ts+++ b/packages/twenty-ui/src/components/navigation/TabButton/types/TabButtonProps.ts@@ -3,14 +3,7 @@ import { type TabsTabProps } from '@ui/primitives/navigation/Tabs/types/TabsTabPexport type TabButtonProps = Omit<ButtonProps,- | 'variant'- | 'color'- | 'fullWidth'- | 'loading'- | 'elevated'- | 'hotkeys'- | 'soon'- | 'soonLabel'+ 'variant' | 'color' | 'fullWidth' | 'loading' | 'elevated' | 'hotkeys'> &Pick<TabsTabProps, 'badge'> & {active?: boolean;diff --git a/packages/twenty-ui/src/primitives/input/Button/Button.tsx b/packages/twenty-ui/src/primitives/input/Button/Button.tsxindex 7ee3628347c..b440f27a426 100644--- a/packages/twenty-ui/src/primitives/input/Button/Button.tsx+++ b/packages/twenty-ui/src/primitives/input/Button/Button.tsx@@ -4,7 +4,6 @@ import { useContext } from 'react';import { Loader } from '@ui/primitives/feedback/Loader/Loader';import { ButtonHotkeys } from '@ui/primitives/input/Button/internal/ButtonHotKeys';-import { ButtonSoon } from '@ui/primitives/input/Button/internal/ButtonSoon';import { ButtonGroupContext } from '@ui/primitives/input/ButtonGroup/internal/ButtonGroupContext';import { mergeClassNames } from '@ui/utilities/internal/mergeClassNames';import { useIsMobile } from '@ui/utilities';@@ -23,8 +22,6 @@ export const Button = ({startIcon,endIcon,hotkeys,- soon = false,- soonLabel,disabled = false,href,render,@@ -52,7 +49,7 @@ export const Button = ({data-loading={loading || undefined}data-elevated={elevated || undefined}aria-busy={loading ? 'true' : props['aria-busy']}- disabled={disabled || soon || loading}+ disabled={disabled || loading}role={isLink ? 'link' : undefined}nativeButton={!isLink}render={render ?? (isLink ? <a href={href}>{children}</a> : undefined)}@@ -72,7 +69,6 @@ export const Button = ({</span>)}{isDefined(hotkeys) && !isMobile && <ButtonHotkeys hotkeys={hotkeys} />}- {soon && <ButtonSoon label={soonLabel} />}</span>{loading && (<span className={styles.loader} aria-hidden>diff --git a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsxindex 7d5f5e9cabe..5937ce5a566 100644--- a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx+++ b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx@@ -3,6 +3,8 @@ import { useState } from 'react';import { expect, fn, userEvent, within } from 'storybook/test';import { IconArrowRight, IconPlus } from '@ui/icon';+import { Pill } from '@ui/primitives/data-display';+import { Text } from '@ui/primitives/typography';import {A11Y_DEFER_COLOR_CONTRAST,CatalogDecorator,@@ -53,7 +55,21 @@ export const LinkAction: Story = {};export const Soon: Story = {...Disabled,- args: { soon: true, soonLabel: 'Coming soon', onClick: fn() },+ render: ({ children, ...args }) => (+ <Button {...args}>+ <Text+ render={<span />}+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 'var(--t-spacing-1)',+ }}+ >+ {children}+ <Pill label="Coming soon" />+ </Text>+ </Button>+ ),};const LoadingExample = () => {diff --git a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scss b/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scssdeleted file mode 100644index 01f542d718a..00000000000--- a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scss+++ /dev/null@@ -1,4 +0,0 @@-.soonPillContainer {- display: flex;- margin-inline-start: auto;-}diff --git a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scss.d.ts b/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scss.d.tsdeleted file mode 100644index 6f168cd4be6..00000000000--- a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.module.scss.d.ts+++ /dev/null@@ -1,4 +0,0 @@-declare const classNames: {- readonly soonPillContainer: 'soonPillContainer';-};-export default classNames;diff --git a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.tsx b/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.tsxdeleted file mode 100644index 40a2cfe7b84..00000000000--- a/packages/twenty-ui/src/primitives/input/Button/internal/ButtonSoon.tsx+++ /dev/null@@ -1,13 +0,0 @@-import { Pill } from '@ui/primitives/data-display/Pill/Pill';--import styles from './ButtonSoon.module.scss';--type ButtonSoonProps = {- label?: string;-};--export const ButtonSoon = ({ label = 'Soon' }: ButtonSoonProps) => (- <span className={styles.soonPillContainer}>- <Pill label={label} />- </span>-);diff --git a/packages/twenty-ui/src/primitives/input/Button/types/ButtonProps.ts b/packages/twenty-ui/src/primitives/input/Button/types/ButtonProps.tsindex 739f8362781..2c66f2de478 100644--- a/packages/twenty-ui/src/primitives/input/Button/types/ButtonProps.ts+++ b/packages/twenty-ui/src/primitives/input/Button/types/ButtonProps.ts@@ -19,6 +19,4 @@ export type ButtonProps = Omit<startIcon?: ReactNode;endIcon?: ReactNode;hotkeys?: string[];- soon?: boolean;- soonLabel?: string;};