The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Unify icon buttons with elevated styling (#26213)
Raphaël Bosi340901bc5fd9
diff --git a/packages/twenty-docs/snippets/ui/generated/input/button.mdx b/packages/twenty-docs/snippets/ui/generated/input/button.mdxindex 892fc0e2387..1b857042949 100644--- a/packages/twenty-docs/snippets/ui/generated/input/button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/button.mdx@@ -21,7 +21,7 @@</ParamField><ParamField body="elevated" type="boolean" default="false">- Adds a shadow to the button.+ Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.</ParamField><ParamField body="endIcon" type="ReactNode">diff --git a/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdxindex 14638f9ca6a..72b59c9539b 100644--- a/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx@@ -29,7 +29,7 @@</ParamField><ParamField body="elevated" type="boolean">- Adds a shadow to the button.+ Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.</ParamField><ParamField body="focusableWhenDisabled" type="boolean" default="false">diff --git a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdxindex 26cd5eff4ef..b5a37f1a63a 100644--- a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx@@ -21,7 +21,7 @@</ParamField><ParamField body="elevated" type="boolean">- Adds a shadow to the button.+ Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.</ParamField><ParamField body="emphasis" type=""standard" | "subtle"" default="standard">diff --git a/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdxindex 257afd6e83b..974b1c90909 100644--- a/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx@@ -29,7 +29,7 @@</ParamField><ParamField body="elevated" type="boolean">- Adds a shadow to the button.+ Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.</ParamField><ParamField body="emphasis" type=""standard" | "subtle"" default="standard">diff --git a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdxindex 72f26701071..415c091b600 100644--- a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx@@ -21,7 +21,7 @@</ParamField><ParamField body="elevated" type="boolean" default="true">- Adds a shadow to the button.+ Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.</ParamField><ParamField body="endIcon" type="ReactNode">diff --git a/packages/twenty-docs/ui/components/input/icon-button.mdx b/packages/twenty-docs/ui/components/input/icon-button.mdxindex b55b04f615f..6c4d1d140ff 100644--- a/packages/twenty-docs/ui/components/input/icon-button.mdx+++ b/packages/twenty-docs/ui/components/input/icon-button.mdx@@ -1,13 +1,13 @@---title: IconButton-description: Trigger actions with accessible square icon buttons.+description: Trigger actions with accessible icon buttons.---import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';import IconButtonReference from '/snippets/ui/generated/input/icon-button.mdx';-`IconButton` composes [Button](/ui/primitives/input/button) with a square surface. Pass the icon as children and provide an `aria-label` describing the action. Icon content is decorative and hidden from assistive technology.+`IconButton` composes [Button](/ui/primitives/input/button) with a square or round surface. Pass the icon as children and provide an `aria-label` describing the action. Icon content is decorative and hidden from assistive technology.## Usage@@ -62,6 +62,41 @@ The tooltip defaults to the bottom, with a 1000ms delay and a 5px offset. Use `tYour application supplies `loading` and `disabled`. Both prevent activation. Loading preserves the square dimensions and accessible label. The button does not track a selected value or set loading automatically after a click. Native keyboard focus follows the browser; use `aria-pressed` when your application owns a toggle state.+## Elevated actions++Use `elevated` to add a shadow and backdrop blur. The default neutral outline button also gains a bordered surface with matching icon and interaction colors. Other variants and semantic colors keep their existing palette.++`elevated` defaults to `false`. It does not change positioning, visibility, or size. The size remains `md` (32px) by default; set `size="sm"` for a 24px control.++```tsx+import { IconButton } from 'twenty-ui/components';+import { IconPlus } from 'twenty-ui/icon';++export const AddWidgetButton = () => (+ <IconButton elevated size="sm" aria-label="Add widget">+ <IconPlus />+ </IconButton>+);+```++<StoryEmbed+ title="Elevated icon action"+ storyId="ui-components-iconbutton--elevated"+ height={180}+/>++Omit `elevated` or set it to `false` to restore the standard appearance. Elevated buttons support the same tooltips, loading states, links, and keyboard interactions.++<StoryEmbed+ title="Elevated icon action with tooltip"+ storyId="ui-components-iconbutton--elevated-tooltip"+ height={180}+/>++Replace existing `FloatingIconButton` controls with `IconButton elevated`. Pass the icon as children, use native `aria-label`, and map `small` to `sm` and `medium` to `md`. Supply `size="sm"` when the previous control used its default size. Native focus and `aria-pressed` replace synthetic focus and active flags.++`FloatingIconButtonGroup` is removed. Compose ButtonGroup with IconButton for grouped actions, and keep any shared floating surface in your layout.+## Grouped actions```tsxdiff --git a/packages/twenty-docs/ui/primitives/input/button.mdx b/packages/twenty-docs/ui/primitives/input/button.mdxindex 02889677ba6..740540ca2a9 100644--- a/packages/twenty-docs/ui/primitives/input/button.mdx+++ b/packages/twenty-docs/ui/primitives/input/button.mdx@@ -66,7 +66,7 @@ export const CreateRecord = () => ();```-Choose `solid`, `outline`, `soft`, or `ghost` independently of the `neutral`, `accent`, `danger`, or `success` color. Sizes are `sm` and `md`; the defaults are `outline`, `neutral`, and `md`. `fullWidth` fills the available width. `startIcon` and `endIcon` accept elements and are decorative. `elevated` adds a shadow. `hotkeys` displays keyboard hints on larger screens; bind the shortcuts in your application.+Choose `solid`, `outline`, `soft`, or `ghost` independently of the `neutral`, `accent`, `danger`, or `success` color. Sizes are `sm` and `md`; the defaults are `outline`, `neutral`, and `md`. `fullWidth` fills the available width. `startIcon` and `endIcon` accept elements and are decorative. `elevated` adds a shadow and backdrop blur. Neutral outline buttons also gain a bordered surface with matching text and interaction colors. Other variants and semantic colors keep their existing palette. It defaults to `false` and does not change size or position. `hotkeys` displays keyboard hints on larger screens; bind the shortcuts in your application.`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`.diff --git a/packages/twenty-front-component-renderer/src/__stories__/TwentyUiGallery.stories.tsx b/packages/twenty-front-component-renderer/src/__stories__/TwentyUiGallery.stories.tsxindex 9d7b72411d9..bf33f8255a6 100644--- a/packages/twenty-front-component-renderer/src/__stories__/TwentyUiGallery.stories.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/TwentyUiGallery.stories.tsx@@ -1,6 +1,7 @@import { settingsRowTest } from '@/__stories__/twenty-ui-gallery/utils/settingsRowTest';import { listItemTest } from '@/__stories__/twenty-ui-gallery/utils/listItemTest';import { pickerListItemsTest } from '@/__stories__/twenty-ui-gallery/utils/pickerListItemsTest';+import { iconButtonElevatedTest } from '@/__stories__/twenty-ui-gallery/utils/iconButtonElevatedTest';import { buttonControlsTest } from '@/__stories__/twenty-ui-gallery/utils/buttonControlsTest';import { dialogTest } from '@/__stories__/twenty-ui-gallery/utils/dialogTest';import { type Meta } from '@storybook/react-vite';@@ -461,3 +462,15 @@ export const ChipControlsPreact: Story = createGalleryStory({runtime: 'preact',play: chipControlsTest,});++export const IconButtonElevatedReact: Story = createGalleryStory({+ frontComponentBundleName: 'twenty-ui-icon-button-elevated',+ runtime: 'react',+ play: iconButtonElevatedTest,+});++export const IconButtonElevatedPreact: Story = createGalleryStory({+ frontComponentBundleName: 'twenty-ui-icon-button-elevated',+ runtime: 'preact',+ play: iconButtonElevatedTest,+});diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-icon-button-elevated.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-icon-button-elevated.front-component.tsxnew file mode 100644index 00000000000..913c4522c9b--- /dev/null+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-icon-button-elevated.front-component.tsx@@ -0,0 +1,63 @@+import { useState } from 'react';+import { defineFrontComponent } from 'twenty-sdk/define';+import { IconButton } from 'twenty-ui/components';+import { IconPlus, IconSearch } from 'twenty-ui/icon';+import { ThemeProvider } from 'twenty-ui/theme-constants';+import 'twenty-ui/style.css';++const IconButtonElevatedExample = () => {+ const [activations, setActivations] = useState(0);+ const handleClick = () => setActivations((count) => count + 1);++ return (+ <ThemeProvider colorScheme="light">+ <IconButton+ elevated+ size="sm"+ aria-label="Add widget"+ onClick={handleClick}+ >+ <IconPlus />+ </IconButton>+ <IconButton+ elevated+ size="sm"+ aria-label="Disabled widget action"+ disabled+ onClick={handleClick}+ >+ <IconPlus />+ </IconButton>+ <IconButton+ elevated+ size="sm"+ aria-label="Saving widget"+ loading+ onClick={handleClick}+ >+ <IconPlus />+ </IconButton>+ <IconButton+ aria-label="Browse widgets"+ href="https://twenty.com"+ target="_blank"+ rel="noreferrer"+ size="md"+ >+ <IconSearch />+ </IconButton>+ <IconButton aria-label="Elevated action" elevated>+ <IconSearch />+ </IconButton>+ <output aria-label="Widget activations">{activations}</output>+ </ThemeProvider>+ );+};++export default defineFrontComponent({+ universalIdentifier: 'b0f2a49f-a4a9-4f80-8d2d-5fb1d3223607',+ name: 'twenty-ui-icon-button-elevated',+ description:+ 'Elevated icon button appearance and interactions in the sandbox',+ component: IconButtonElevatedExample,+});diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-input-gallery.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-input-gallery.front-component.tsxindex c5c5dbe9e13..a72bc031bf4 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-input-gallery.front-component.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-input-gallery.front-component.tsx@@ -18,8 +18,6 @@ import {ColorSchemePicker,FloatingButton,FloatingButtonGroup,- FloatingIconButton,- FloatingIconButtonGroup,IconListViewGrip,SearchInput,SegmentedControl,@@ -121,17 +119,14 @@ const INPUT_ENTRIES: GalleryEntry[] = [),},{- name: 'FloatingIconButton',- node: <FloatingIconButton Icon={IconSearch} ariaLabel="Search" />,- },- {- name: 'FloatingIconButtonGroup',+ name: 'IconButton (elevated)',node: (- <FloatingIconButtonGroup- iconButtons={[{ Icon: IconSearch, ariaLabel: 'Search' }]}- />+ <IconButton elevated size="sm" aria-label="Search">+ <IconSearch />+ </IconButton>),},+{name: 'IconButton',node: (diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/iconButtonElevatedTest.ts b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/iconButtonElevatedTest.tsnew file mode 100644index 00000000000..188a362fcee--- /dev/null+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/iconButtonElevatedTest.ts@@ -0,0 +1,63 @@+import { expect, userEvent, waitFor, within } from 'storybook/test';++import { type TwentyUiGalleryPlayFunction } from '@/__stories__/twenty-ui-gallery/types/TwentyUiGalleryPlayFunction';++export const iconButtonElevatedTest: TwentyUiGalleryPlayFunction = async ({+ canvasElement,+}) => {+ const canvas = within(canvasElement);+ const button = await canvas.findByRole(+ 'button',+ { name: 'Add widget' },+ { timeout: 10000 },+ );++ await expect(button).toHaveAttribute('type', 'button');+ await waitFor(() => {+ expect(button.getBoundingClientRect().width).toBe(24);+ expect(button.getBoundingClientRect().height).toBe(24);+ expect(getComputedStyle(button).boxShadow).not.toBe('none');+ expect(getComputedStyle(button).backdropFilter).not.toBe('none');+ });+ await userEvent.click(button);+ button.focus();+ await userEvent.keyboard('{Enter} ');+ await waitFor(() =>+ expect(canvas.getByLabelText('Widget activations')).toHaveTextContent('3'),+ );++ for (const name of ['Disabled widget action', 'Saving widget']) {+ const disabledButton = canvas.getByRole('button', { name });++ await expect(disabledButton).toBeDisabled();+ await userEvent.click(disabledButton);+ }++ await expect(+ canvas.getByRole('button', { name: 'Saving widget' }),+ ).toHaveAttribute('aria-busy', 'true');+ await expect(canvas.getByLabelText('Widget activations')).toHaveTextContent(+ '3',+ );++ const link = canvas.getByRole('link', { name: 'Browse widgets' });++ await expect(link).toHaveAttribute('href', 'https://twenty.com');+ await expect(link.getBoundingClientRect().width).toBe(32);+ await expect(getComputedStyle(link).boxShadow).toBe('none');+ await expect(getComputedStyle(link).backdropFilter).toBe('none');++ const elevated = canvas.getByRole('button', { name: 'Elevated action' });++ await expect(getComputedStyle(elevated).boxShadow).not.toBe('none');+ await expect(getComputedStyle(elevated).backdropFilter).not.toBe('none');++ await userEvent.unhover(elevated);+ await waitFor(() => {+ for (const property of ['backgroundColor', 'borderColor'] as const) {+ expect(getComputedStyle(elevated)[property]).not.toBe(+ getComputedStyle(link)[property],+ );+ }+ });+};diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RawJsonFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RawJsonFieldInput.tsxindex a1e5220cfb1..7ddca937177 100644--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RawJsonFieldInput.tsx+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RawJsonFieldInput.tsx@@ -11,7 +11,7 @@ import { useContext, useRef, useState } from 'react';import { Key } from 'ts-key-enum';import { IconPencil } from 'twenty-ui/icon';import { CodeEditor } from 'twenty-ui/components/code-editor';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import {JsonTree,isTwoFirstDepths,@@ -180,10 +180,14 @@ export const RawJsonFieldInput = () => {<>{showEditingButton && (<StyledSwitchModeButtonContainer>- <FloatingIconButton- Icon={IconPencil}+ <IconButton+ elevated+ size="sm"onClick={handleStartEditing}- />+ aria-label={t`Edit JSON`}+ >+ <IconPencil />+ </IconButton></StyledSwitchModeButtonContainer>)}diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput.tsxindex 23ec129c04d..cfd8bcd9c66 100644--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput.tsx+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/RichTextFieldInput.tsx@@ -10,10 +10,11 @@ import { FieldInputEventContext } from '@/object-record/record-field/ui/contextsimport { type FieldRichTextMetadata } from '@/object-record/record-field/ui/types/FieldMetadata';import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';import { styled } from '@linaria/react';+import { t } from '@lingui/core/macro';import { Suspense, lazy, useContext, useRef } from 'react';import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';import { IconLayoutSidebarLeftCollapse } from 'twenty-ui/icon';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';const ActivityRichTextEditor = lazy(() =>@@ -131,14 +132,17 @@ export const RichTextFieldInput = () => {</Suspense></StyledEditorScroll><StyledCollapseButton>- <FloatingIconButton- Icon={IconLayoutSidebarLeftCollapse}- size="small"+ <IconButton+ elevated+ size="sm"onClick={() => {onEscape?.({ skipPersist: true });openRichTextInSidePanel(recordId, objectNameSingular, fieldName);}}- />+ aria-label={t`Open in side panel`}+ >+ <IconLayoutSidebarLeftCollapse />+ </IconButton></StyledCollapseButton></StyledContainer>);diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditButton.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditButton.tsxindex 4467de0297f..8587b5d7f4e 100644--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditButton.tsx+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditButton.tsx@@ -1,6 +1,7 @@import { styled } from '@linaria/react';+import { t } from '@lingui/core/macro';import { type IconComponent } from 'twenty-ui/icon';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import { AnimatedContainer } from 'twenty-ui/primitives/layout';const StyledInlineCellButtonContainer = styled.div`@@ -19,13 +20,16 @@ export const RecordInlineCellButton = ({}) => {return (<AnimatedContainer>- <StyledInlineCellButtonContainer onClick={onClick}>- <FloatingIconButton- size="small"- Icon={Icon}- ariaLabel={ariaLabel}+ <StyledInlineCellButtonContainer>+ <IconButton+ elevated+ size="sm"+ aria-label={ariaLabel ?? t`Edit field`}+ onClick={onClick}data-testid="inline-cell-edit-mode-container"- />+ >+ <Icon />+ </IconButton></StyledInlineCellButtonContainer></AnimatedContainer>);diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageWidgetInsertionSeparator.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageWidgetInsertionSeparator.tsxindex 0f819ecfe5c..540d166d791 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageWidgetInsertionSeparator.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageWidgetInsertionSeparator.tsx@@ -1,12 +1,13 @@import { useNavigateToMoreWidgets } from '@/page-layout/hooks/useNavigateToMoreWidgets';import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';+import { css } from '@linaria/core';import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { IconPlus } from 'twenty-ui/icon';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import { themeCssVariables } from 'twenty-ui/theme-constants';-const StyledInsertButton = styled(FloatingIconButton)`+const INSERT_BUTTON_CLASS_NAME = css`background: ${themeCssVariables.background.transparent.primary};border-color: ${themeCssVariables.background.transparent.light};flex-shrink: 0;@@ -39,11 +40,11 @@ const StyledSeparator = styled.div`&:focus-within {&::before,&::after,- ${StyledInsertButton} {+ .${INSERT_BUTTON_CLASS_NAME} {opacity: 1;}- ${StyledInsertButton} {+ .${INSERT_BUTTON_CLASS_NAME} {pointer-events: auto;}}@@ -51,11 +52,11 @@ const StyledSeparator = styled.div`@media (hover: none) {&::before,&::after,- ${StyledInsertButton} {+ .${INSERT_BUTTON_CLASS_NAME} {opacity: 1;}- ${StyledInsertButton} {+ .${INSERT_BUTTON_CLASS_NAME} {pointer-events: auto;}}@@ -72,17 +73,20 @@ export const RecordPageWidgetInsertionSeparator = ({return (<StyledSeparator>- <StyledInsertButton- Icon={IconPlus}- ariaLabel={t`Add widget above ${widget.title}`}- size="small"+ <IconButton+ elevated+ className={INSERT_BUTTON_CLASS_NAME}+ aria-label={t`Add widget above ${widget.title}`}+ size="sm"onClick={() =>navigateToMoreWidgets({targetWidgetId: widget.id,direction: 'above',})}- />+ >+ <IconPlus />+ </IconButton></StyledSeparator>);};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsxindex 98f6a9ae88a..74f226e63ee 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsx@@ -5,7 +5,7 @@ import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { Key } from 'ts-key-enum';import { IconChevronLeft, IconChevronRight, IconX } from 'twenty-ui/icon';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import { themeCssVariables } from 'twenty-ui/theme-constants';type SettingsApplicationScreenshotLightboxProps = {@@ -114,19 +114,25 @@ export const SettingsApplicationScreenshotLightbox = ({><StyledContainer><StyledCloseButton>- <FloatingIconButton- Icon={IconX}- ariaLabel={t`Close`}+ <IconButton+ elevated+ size="sm"+ aria-label={t`Close`}onClick={onClose}- />+ >+ <IconX />+ </IconButton></StyledCloseButton>{hasSeveralScreenshots && (<StyledPreviousButton>- <FloatingIconButton- Icon={IconChevronLeft}- ariaLabel={t`Previous screenshot`}+ <IconButton+ elevated+ size="sm"+ aria-label={t`Previous screenshot`}onClick={showPrevious}- />+ >+ <IconChevronLeft />+ </IconButton></StyledPreviousButton>)}<StyledImage@@ -136,11 +142,14 @@ export const SettingsApplicationScreenshotLightbox = ({{hasSeveralScreenshots && (<><StyledNextButton>- <FloatingIconButton- Icon={IconChevronRight}- ariaLabel={t`Next screenshot`}+ <IconButton+ elevated+ size="sm"+ aria-label={t`Next screenshot`}onClick={showNext}- />+ >+ <IconChevronRight />+ </IconButton></StyledNextButton><StyledCounter>{selectedIndex + 1} / {screenshotCount}diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeOptionsDropdown.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeOptionsDropdown.tsxindex 0dbe240a147..393f9e2c61d 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeOptionsDropdown.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeOptionsDropdown.tsx@@ -11,7 +11,7 @@ import { useLingui } from '@lingui/react/macro';import { useId } from 'react';import { isDefined } from 'twenty-shared/utils';import { IconDotsVertical } from 'twenty-ui/icon';-import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { IconButton } from 'twenty-ui/components';import { themeCssVariables } from 'twenty-ui/theme-constants';const StyledOptionsButtonContainer = styled.div`@@ -70,11 +70,9 @@ export const WorkflowDiagramStepNodeOptionsDropdown = ({dropdownId={dropdownId}selectableItemIdArray={selectableItemIds}clickableComponent={- <FloatingIconButton- size="medium"- Icon={IconDotsVertical}- ariaLabel={t`Node options`}- />+ <IconButton elevated size="md" aria-label={t`Node options`}>+ <IconDotsVertical />+ </IconButton>}dropdownPlacement="right-start"shouldRegisterOptionsHotkey={false}diff --git a/packages/twenty-ui/docs/buttonPropDescriptions.ts b/packages/twenty-ui/docs/buttonPropDescriptions.tsindex 7faf62f77c8..d5b4fc0acd1 100644--- a/packages/twenty-ui/docs/buttonPropDescriptions.ts+++ b/packages/twenty-ui/docs/buttonPropDescriptions.ts@@ -7,7 +7,8 @@ export const BUTTON_PROP_DESCRIPTIONS = {fullWidth: 'Expands the button to fill its container width.',loading:'Shows a loading indicator and disables activation while preserving the button width.',- elevated: 'Adds a shadow to the button.',+ elevated:+ 'Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors.',startIcon: 'Decorative content displayed before the label.',endIcon: 'Decorative content displayed after the label.',hotkeys: 'Keyboard shortcut hints displayed on non-mobile screens.',diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.jsonindex 5ce569ef65c..cc37f491b71 100644--- a/packages/twenty-ui/generated/components.docs.json+++ b/packages/twenty-ui/generated/components.docs.json@@ -37,7 +37,7 @@"type": "boolean","required": false,"defaultValue": null,- "description": "Adds a shadow to the button."+ "description": "Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors."},{"name": "emphasis",@@ -163,7 +163,7 @@"type": "boolean","required": false,"defaultValue": null,- "description": "Adds a shadow to the button."+ "description": "Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors."},{"name": "focusableWhenDisabled",@@ -268,7 +268,7 @@"type": "boolean","required": false,"defaultValue": "true",- "description": "Adds a shadow to the button."+ "description": "Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors."},{"name": "endIcon",@@ -380,7 +380,7 @@"type": "boolean","required": false,"defaultValue": null,- "description": "Adds a shadow to the button."+ "description": "Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors."},{"name": "emphasis",@@ -499,7 +499,7 @@"type": "boolean","required": false,"defaultValue": "false",- "description": "Adds a shadow to the button."+ "description": "Adds a shadow and backdrop blur. Neutral outline buttons also use elevated surface colors."},{"name": "endIcon",diff --git a/packages/twenty-ui/src/components/IconButton/__stories__/IconButton.stories.tsx b/packages/twenty-ui/src/components/IconButton/__stories__/IconButton.stories.tsxindex f5b4e3dc664..e37dd204d4a 100644--- a/packages/twenty-ui/src/components/IconButton/__stories__/IconButton.stories.tsx+++ b/packages/twenty-ui/src/components/IconButton/__stories__/IconButton.stories.tsx@@ -26,6 +26,110 @@ type Story = StoryObj<typeof IconButton>;export const Default: Story = { decorators: [ComponentDecorator] };+export const Elevated: Story = {+ ...Default,+ args: { elevated: true, size: 'sm' },+};++export const ElevatedTooltip: Story = {+ ...Elevated,+ args: { ...Elevated.args, tooltip: 'Search records', tooltipDelay: 0 },+};++export const ElevatedAppearance: Story = {+ ...Default,+ args: { onClick: fn() },+ render: (args) => (+ <>+ <IconButton {...args} aria-label="Regular action" />+ <IconButton {...args} elevated aria-label="Elevated action" />+ <IconButton {...args} elevated size="sm" aria-label="Compact action" />+ <IconButton+ {...args}+ href="#search"+ aria-label="Link without elevation"+ />+ <IconButton {...args} variant="solid" aria-label="Solid action" />+ <IconButton+ {...args}+ variant="solid"+ elevated+ aria-label="Elevated solid action"+ />+ <IconButton {...args} color="accent" aria-label="Accent action" />+ <IconButton+ {...args}+ color="accent"+ elevated+ aria-label="Elevated accent action"+ />+ </>+ ),+ play: async ({ canvasElement, args }) => {+ const canvas = within(canvasElement);+ const regular = canvas.getByRole('button', { name: 'Regular action' });+ const elevated = canvas.getByRole('button', { name: 'Elevated action' });+ const compact = canvas.getByRole('button', { name: 'Compact action' });+ const link = canvas.getByRole('link', { name: 'Link without elevation' });++ await expect(regular.getBoundingClientRect().width).toBe(32);+ await expect(getComputedStyle(regular).boxShadow).toBe('none');+ await expect(getComputedStyle(regular).backdropFilter).toBe('none');+ await expect(getComputedStyle(elevated).backgroundColor).not.toBe(+ getComputedStyle(regular).backgroundColor,+ );+ await expect(getComputedStyle(elevated).borderColor).not.toBe(+ getComputedStyle(regular).borderColor,+ );+ await expect(elevated.getBoundingClientRect().width).toBe(32);+ await expect(elevated).toHaveAttribute('type', 'button');+ await expect(compact.getBoundingClientRect().width).toBe(24);+ await expect(compact.getBoundingClientRect().height).toBe(24);++ for (const button of [elevated, compact]) {+ await expect(getComputedStyle(button).boxShadow).not.toBe('none');+ await expect(getComputedStyle(button).backdropFilter).not.toBe('none');+ await expect(+ button.querySelector('svg')?.getBoundingClientRect().width,+ ).toBe(16);+ }++ for (const [regularName, elevatedName] of [+ ['Solid action', 'Elevated solid action'],+ ['Accent action', 'Elevated accent action'],+ ]) {+ const regularButton = canvas.getByRole('button', { name: regularName });+ const elevatedButton = canvas.getByRole('button', { name: elevatedName });++ for (const property of [+ 'backgroundColor',+ 'borderColor',+ 'color',+ ] as const) {+ await expect(getComputedStyle(elevatedButton)[property]).toBe(+ getComputedStyle(regularButton)[property],+ );+ }+ await expect(getComputedStyle(elevatedButton).boxShadow).not.toBe('none');+ await expect(getComputedStyle(elevatedButton).backdropFilter).not.toBe(+ 'none',+ );+ }++ elevated.focus();+ await userEvent.keyboard('{Enter} ');+ await expect(args.onClick).toHaveBeenCalledTimes(2);+ await expect(link).toHaveAttribute('href', '#search');+ await expect(getComputedStyle(link).boxShadow).toBe('none');+ await expect(getComputedStyle(link).backdropFilter).toBe('none');+ },+};++export const ElevatedAppearanceDark: Story = {+ ...ElevatedAppearance,+ globals: { colorScheme: 'dark' },+};+export const Keyboard: Story = {...Default,args: { onClick: fn() },@@ -184,6 +288,7 @@ export const Grouped: Story = {const CATALOG_STATES: Record<string, Partial<IconButtonProps>> = {default: {},small: { size: 'sm' },+ elevated: { elevated: true },hover: { className: 'hover' },pressed: { className: 'pressed' },focused: { className: 'focused' },diff --git a/packages/twenty-ui/src/primitives/input/Button/Button.module.scss b/packages/twenty-ui/src/primitives/input/Button/Button.module.scssindex 31e09006322..9c61a667aa6 100644--- a/packages/twenty-ui/src/primitives/input/Button/Button.module.scss+++ b/packages/twenty-ui/src/primitives/input/Button/Button.module.scss@@ -56,6 +56,19 @@}&[data-elevated] {box-shadow: var(--t-box-shadow-light);+ backdrop-filter: var(--t-blur-medium);++ &[data-color='neutral'][data-variant='outline'] {+ --tw-button-background: var(--t-background-primary);+ --tw-button-border: var(--t-border-color-strong);+ --tw-button-color: var(--t-font-color-tertiary);+ --tw-button-hover: var(--t-background-transparent-lighter);+ --tw-button-active: var(--t-background-transparent-medium);++ &[aria-pressed='true'] {+ --tw-button-background: var(--tw-button-active);+ }+ }}&[data-variant='solid'] {--tw-button-background: var(--t-background-primary-inverted);diff --git a/packages/twenty-ui/src/primitives/input/Button/Button.tsx b/packages/twenty-ui/src/primitives/input/Button/Button.tsxindex 83f73110fdf..7ee3628347c 100644--- a/packages/twenty-ui/src/primitives/input/Button/Button.tsx+++ b/packages/twenty-ui/src/primitives/input/Button/Button.tsx@@ -51,7 +51,7 @@ export const Button = ({data-full-width={fullWidth || undefined}data-loading={loading || undefined}data-elevated={elevated || undefined}- aria-busy={loading || props['aria-busy']}+ aria-busy={loading ? 'true' : props['aria-busy']}disabled={disabled || soon || loading}role={isLink ? 'link' : undefined}nativeButton={!isLink}diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scss b/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scssdeleted file mode 100644index a6c32083ca4..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scss+++ /dev/null@@ -1,117 +0,0 @@-// Ported from the legacy Linaria FloatingIconButton. State rules below are-// kept flat on .button so twenty-front styled(FloatingIconButton) overrides-// keep beating them at (0,1,0) specificity. Source order replicates the-// legacy ternary precedence: hover/active beat the isActive background,-// applyShadow beats the focus ring, and disabled wins last.--.button {- align-items: center;- backdrop-filter: none;- background: var(--t-background-primary);- border: 1px solid var(--t-border-color-strong);- border-radius: var(--floating-icon-button-radius, var(--t-border-radius-md));- box-shadow: none;- box-sizing: border-box;- color: var(--t-font-color-tertiary);- cursor: pointer;- display: flex;- flex-direction: row;- font-family: var(--t-font-family);- font-weight: var(--t-font-weight-regular);- gap: var(--t-spacing-1);- justify-content: center;- padding: 0;- position: relative;- transition: background calc(var(--t-animation-duration-instant) * 1s) ease;- white-space: nowrap;-}--.small {- height: 24px;- width: 24px;-}--.medium {- height: 32px;- width: 32px;-}--// Grouped buttons (any non-standalone position) are 4px smaller.-.small:not([data-position='standalone']) {- height: 20px;- width: 20px;-}--.medium:not([data-position='standalone']) {- height: 28px;- width: 28px;-}--// Grouped edges stay concentric with the FloatingIconButtonGroup container:-// its sm radius minus the 2px padding. The group container uses sm (not md)-// because at these sizes (24-32px) md would exceed 50% of the box, clamp to a-// full squircle, and break concentricity — see the group stylesheet.-.button[data-position='left'] {- --floating-icon-button-radius: calc(var(--t-border-radius-sm) - 2px) 0px 0px- calc(var(--t-border-radius-sm) - 2px);-}--.button[data-position='middle'] {- --floating-icon-button-radius: 0px;-}--.button[data-position='right'] {- --floating-icon-button-radius: 0px calc(var(--t-border-radius-sm) - 2px)- calc(var(--t-border-radius-sm) - 2px) 0px;-}--.button[data-apply-blur] {- backdrop-filter: var(--t-blur-medium);-}--.button[data-is-active] {- background: var(--t-background-transparent-medium);-}--// Declared after [data-is-active] so hover/active win over it, like the-// legacy &:hover/&:active beating the base background.-.button:hover {- background: var(--t-background-transparent-lighter);-}--.button:active {- background: var(--t-background-transparent-medium);-}--.button:focus {- outline: none;-}--.button {- @include focus-ring;-}--// data-focus is gated by !disabled in the component, like the legacy-// call-site passing focus={focus && !disabled}.-.button[data-focus] {- border-color: var(--t-color-blue);- box-shadow: 0 0 0 3px var(--t-color-blue3);- color: var(--t-color-blue);-}--// applyShadow wins over the focus ring, replicating the legacy ternary order.-.button[data-apply-shadow] {- box-shadow: var(--t-box-shadow-light);-}--.button[data-disabled] {- color: var(--t-font-color-extra-light);- cursor: not-allowed;-}--// A disabled button still matches :hover/:active; the legacy styles-// explicitly turned the background transparent there.-.button[data-disabled]:hover,-.button[data-disabled]:active {- background: transparent;-}diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scss.d.ts b/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scss.d.tsdeleted file mode 100644index de85059fc80..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.module.scss.d.ts+++ /dev/null@@ -1,6 +0,0 @@-declare const classNames: {- readonly button: 'button';- readonly small: 'small';- readonly medium: 'medium';-};-export default classNames;diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.tsx b/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.tsxdeleted file mode 100644index 7e95a417d86..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButton/FloatingIconButton.tsx+++ /dev/null@@ -1,61 +0,0 @@-import { clsx } from 'clsx';-import React from 'react';--import { type IconComponent } from '@ui/icon';-import { useTheme } from '@ui/theme-constants';--import styles from './FloatingIconButton.module.scss';--export type FloatingIconButtonSize = 'small' | 'medium';-export type FloatingIconButtonPosition =- | 'standalone'- | 'left'- | 'middle'- | 'right';--export type FloatingIconButtonProps = {- className?: string;- Icon?: IconComponent;- ariaLabel?: string;- size?: FloatingIconButtonSize;- position?: FloatingIconButtonPosition;- applyShadow?: boolean;- applyBlur?: boolean;- disabled?: boolean;- focus?: boolean;- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;- isActive?: boolean;-};--export const FloatingIconButton = ({- className,- Icon,- ariaLabel,- size = 'small',- position = 'standalone',- applyShadow = true,- applyBlur = true,- disabled = false,- focus = false,- onClick,- isActive,-}: FloatingIconButtonProps) => {- const theme = useTheme();-- return (- <button- disabled={disabled}- aria-label={ariaLabel}- className={clsx(styles.button, styles[size], className)}- data-position={position}- data-apply-shadow={applyShadow || undefined}- data-apply-blur={applyBlur || undefined}- data-disabled={disabled || undefined}- data-focus={(focus && !disabled) || undefined}- data-is-active={isActive || undefined}- onClick={onClick}- >- {Icon && <Icon size={theme.icon.size.md} aria-hidden={!!ariaLabel} />}- </button>- );-};diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButton/__stories__/FloatingIconButton.stories.tsx b/packages/twenty-ui/src/primitives/input/FloatingIconButton/__stories__/FloatingIconButton.stories.tsxdeleted file mode 100644index 973f2296eff..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButton/__stories__/FloatingIconButton.stories.tsx+++ /dev/null@@ -1,88 +0,0 @@-import { type Meta, type StoryObj } from '@storybook/react-vite';-import { IconSearch } from '@ui/icon';-import {- A11Y_DEFER_COLOR_CONTRAST,- CatalogDecorator,- type CatalogStory,- ComponentDecorator,-} from '@ui/testing';-import {- FloatingIconButton,- type FloatingIconButtonSize,-} from '@ui/primitives/input/FloatingIconButton/FloatingIconButton';--const meta: Meta<typeof FloatingIconButton> = {- title: 'UI/Input/Button/FloatingIconButton',- component: FloatingIconButton,-};--export default meta;-type Story = StoryObj<typeof FloatingIconButton>;--export const Default: Story = {- args: {- size: 'small',- disabled: false,- focus: false,- applyBlur: true,- applyShadow: true,- position: 'standalone',- Icon: IconSearch,- ariaLabel: 'Search',- },- argTypes: {- Icon: { control: false },- },- decorators: [ComponentDecorator],-};--export const Catalog: CatalogStory<Story, typeof FloatingIconButton> = {- args: { Icon: IconSearch, ariaLabel: 'Search' },- argTypes: {- size: { control: false },- disabled: { control: false },- focus: { control: false },- },- parameters: {- a11y: A11Y_DEFER_COLOR_CONTRAST,- pseudo: { hover: ['.hover'], active: ['.pressed'] },- catalog: {- dimensions: [- {- name: 'sizes',- values: ['small', 'medium'] satisfies FloatingIconButtonSize[],- props: (size: FloatingIconButtonSize) => ({ size }),- },- {- name: 'states',- values: [- 'default',- 'hover',- 'pressed',- 'disabled',- 'focus',- 'disabled+focus',- ],- props: (state: string) => {- switch (state) {- case 'default':- return {};- case 'hover':- case 'pressed':- return { className: state };- case 'focus':- return { focus: true };- case 'disabled':- return { disabled: true };- case 'disabled+focus':- return { disabled: true, focus: true };- default:- return {};- }- },- },- ],- },- },- decorators: [CatalogDecorator],-};diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scss b/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scssdeleted file mode 100644index 511c2f111b1..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scss+++ /dev/null@@ -1,15 +0,0 @@-.container {- backdrop-filter: blur(20px);- background-color: var(--t-background-primary);- // sm, not md: the container is only 24-32px tall, where md would exceed 50%- // of the box and clamp to a full squircle. A scaled full squircle is not a- // uniform offset, so the child buttons' corners would pull away from the- // frame. sm stays below the clamp point, keeping the group concentric.- border-radius: var(--t-border-radius-sm);- box-shadow:- 0px 2px 4px 0px var(--t-background-transparent-light),- 0px 0px 4px 0px var(--t-background-transparent-medium);- display: inline-flex;- gap: 2px;- padding: 2px;-}diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scss.d.ts b/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scss.d.tsdeleted file mode 100644index 8df71b4dead..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.module.scss.d.ts+++ /dev/null@@ -1,4 +0,0 @@-declare const classNames: {- readonly container: 'container';-};-export default classNames;diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.tsx b/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.tsxdeleted file mode 100644index a3ca2907b9e..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.tsx+++ /dev/null@@ -1,60 +0,0 @@-import { clsx } from 'clsx';-import { type MouseEvent } from 'react';--import { type IconComponent } from '@ui/icon';--import {- FloatingIconButton,- type FloatingIconButtonPosition,- type FloatingIconButtonProps,-} from '@ui/primitives/input/FloatingIconButton/FloatingIconButton';--import styles from './FloatingIconButtonGroup.module.scss';--export type FloatingIconButtonGroupProps = Pick<- FloatingIconButtonProps,- 'className' | 'size'-> & {- iconButtons: {- Icon: IconComponent;- ariaLabel?: string;- // eslint-disable-next-line @typescript-eslint/no-explicit-any- onClick?: (event: MouseEvent<any>) => void;- isActive?: boolean;- }[];-};--export const FloatingIconButtonGroup = ({- iconButtons,- size,- className,-}: FloatingIconButtonGroupProps) => {- return (- <div className={clsx(styles.container, className)}>- {iconButtons.map(({ Icon, onClick, isActive, ariaLabel }, index) => {- const position: FloatingIconButtonPosition =- iconButtons.length === 1- ? 'standalone'- : index === 0- ? 'left'- : index === iconButtons.length - 1- ? 'right'- : 'middle';-- return (- <FloatingIconButton- key={`floating-icon-button-${index}`}- applyBlur={false}- applyShadow={false}- Icon={Icon}- ariaLabel={ariaLabel}- onClick={onClick}- position={position}- size={size}- isActive={isActive}- />- );- })}- </div>- );-};diff --git a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/__stories__/FloatingIconButtonGroup.stories.tsx b/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/__stories__/FloatingIconButtonGroup.stories.tsxdeleted file mode 100644index ed30e227cce..00000000000--- a/packages/twenty-ui/src/primitives/input/FloatingIconButtonGroup/__stories__/FloatingIconButtonGroup.stories.tsx+++ /dev/null@@ -1,55 +0,0 @@-import { type Meta, type StoryObj } from '@storybook/react-vite';-import { IconCheckbox, IconNotes, IconTimelineEvent } from '@ui/icon';-import {- A11Y_DEFER_COLOR_CONTRAST,- CatalogDecorator,- type CatalogStory,- ComponentDecorator,-} from '@ui/testing';-import { type FloatingIconButtonSize } from '@ui/primitives/input/FloatingIconButton/FloatingIconButton';-import { FloatingIconButtonGroup } from '@ui/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup';--const meta: Meta<typeof FloatingIconButtonGroup> = {- title: 'UI/Input/Button/FloatingIconButtonGroup',- component: FloatingIconButtonGroup,- args: {- iconButtons: [- { Icon: IconNotes, ariaLabel: 'Notes' },- { Icon: IconCheckbox, ariaLabel: 'Tasks' },- { Icon: IconTimelineEvent, ariaLabel: 'Timeline' },- ],- },- argTypes: {- iconButtons: { control: false },- },-};--export default meta;-type Story = StoryObj<typeof FloatingIconButtonGroup>;--export const Default: Story = {- args: {- size: 'small',- },- decorators: [ComponentDecorator],-};--export const Catalog: CatalogStory<Story, typeof FloatingIconButtonGroup> = {- argTypes: {- size: { control: false },- },- parameters: {- a11y: A11Y_DEFER_COLOR_CONTRAST,- pseudo: { hover: ['.hover'], active: ['.pressed'], focus: ['.focus'] },- catalog: {- dimensions: [- {- name: 'sizes',- values: ['small', 'medium'] satisfies FloatingIconButtonSize[],- props: (size: FloatingIconButtonSize) => ({ size }),- },- ],- },- },- decorators: [CatalogDecorator],-};diff --git a/packages/twenty-ui/src/primitives/input/index.ts b/packages/twenty-ui/src/primitives/input/index.tsindex f6e93f84e24..2265ff27b1f 100644--- a/packages/twenty-ui/src/primitives/input/index.ts+++ b/packages/twenty-ui/src/primitives/input/index.ts@@ -43,14 +43,6 @@ export type {export { FloatingButton } from './FloatingButton/FloatingButton';export type { FloatingButtonGroupProps } from './FloatingButtonGroup/FloatingButtonGroup';export { FloatingButtonGroup } from './FloatingButtonGroup/FloatingButtonGroup';-export type {- FloatingIconButtonSize,- FloatingIconButtonPosition,- FloatingIconButtonProps,-} from './FloatingIconButton/FloatingIconButton';-export { FloatingIconButton } from './FloatingIconButton/FloatingIconButton';-export type { FloatingIconButtonGroupProps } from './FloatingIconButtonGroup/FloatingIconButtonGroup';-export { FloatingIconButtonGroup } from './FloatingIconButtonGroup/FloatingIconButtonGroup';export { IconListViewGrip } from './IconListViewGrip/IconListViewGrip';export { Input } from './Input/Input';export type { InputProps } from './Input/types/InputProps';