diff --git a/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx b/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx index 684866240c6..dd08e2df9c9 100644 --- a/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx +++ b/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx @@ -56,7 +56,7 @@ function CardOption({ icon, title, description, selectedCloudProvider, recommend const renderContent = () => ( - + {title} {recommended && ( diff --git a/libs/shared/ui/src/lib/components/accordion/accordion.tsx b/libs/shared/ui/src/lib/components/accordion/accordion.tsx index 4979b12c9dc..707560a3c89 100644 --- a/libs/shared/ui/src/lib/components/accordion/accordion.tsx +++ b/libs/shared/ui/src/lib/components/accordion/accordion.tsx @@ -31,7 +31,7 @@ const AccordionTrigger = forwardRef {children} diff --git a/libs/shared/ui/src/lib/components/action-toolbar/action-toolbar.tsx b/libs/shared/ui/src/lib/components/action-toolbar/action-toolbar.tsx index d6977daf6a6..054f38ca42f 100644 --- a/libs/shared/ui/src/lib/components/action-toolbar/action-toolbar.tsx +++ b/libs/shared/ui/src/lib/components/action-toolbar/action-toolbar.tsx @@ -46,6 +46,9 @@ const toolbarButtonVariants = cva(['active:scale-100'], { className: [ 'first:rounded-l', 'last:rounded-r', + 'first:border-r-0', + 'first:border-x', + 'border-l-0', 'hover:border-brand-strong', 'data-[state=open]:bg-surface-brand-subtle', 'data-[state=open]:border-brand-strong', diff --git a/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.stories.tsx b/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.stories.tsx index eb4da4d5a8c..92362236649 100644 --- a/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.stories.tsx +++ b/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.stories.tsx @@ -19,7 +19,7 @@ const Story: Meta = { }, decorators: [ (Story) => ( -
+
), diff --git a/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.tsx b/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.tsx index 596b6bb40dc..05bdb1f83ec 100644 --- a/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.tsx +++ b/libs/shared/ui/src/lib/components/action-trigger-status-chip/action-trigger-status-chip.tsx @@ -13,17 +13,7 @@ import Indicator from '../indicator/indicator' import StatusChip from '../status-chip/status-chip' const triggerActionVariants = cva( - [ - 'flex', - 'items-center', - 'justify-center', - 'rounded-full', - 'border', - 'border-neutral-200', - 'text-neutral-350', - 'dark:border-neutral-400', - 'dark:text-neutral-250', - ], + ['flex', 'items-center', 'justify-center', 'rounded-full', 'border', 'border-neutral', 'text-neutral-subtle'], { variants: { size: { @@ -34,7 +24,7 @@ const triggerActionVariants = cva( } ) -const statusChipVariants = cva(['relative', 'rounded-full', 'bg-white', 'dark:bg-neutral-600'], { +const statusChipVariants = cva(['relative', 'rounded-full', 'bg-background'], { variants: { size: { sm: ['-left-0.5', '-top-1'], @@ -54,17 +44,17 @@ export function TriggerActionIcon({ {match(triggerAction) .with(undefined, 'UNKNOWN', () => ) - .with('DELETE', () => ) - .with('UNINSTALL', () => ) - .with('DEPLOY', () => ) - .with('RESTART', () => ) - .with('STOP', () => ) - .with('DEPLOY_DRY_RUN', () => ) - .with('TERRAFORM_FORCE_UNLOCK', () => ) - .with('TERRAFORM_MIGRATE_STATE', () => ) - .with('DELETE_RESOURCES_ONLY', () => ) - .with('TERRAFORM_PLAN_ONLY', () => ) - .with('TERRAFORM_PLAN_AND_APPLY', () => ) + .with('DELETE', () => ) + .with('UNINSTALL', () => ) + .with('DEPLOY', () => ) + .with('RESTART', () => ) + .with('STOP', () => ) + .with('DEPLOY_DRY_RUN', () => ) + .with('TERRAFORM_FORCE_UNLOCK', () => ) + .with('TERRAFORM_MIGRATE_STATE', () => ) + .with('DELETE_RESOURCES_ONLY', () => ) + .with('TERRAFORM_PLAN_ONLY', () => ) + .with('TERRAFORM_PLAN_AND_APPLY', () => ) .with('TERRAFORM_DESTROY', () => ) .with('TERRAFORM_FORCE_UNLOCK_STATE', () => ) .exhaustive()} diff --git a/libs/shared/ui/src/lib/components/animated-gradient-text/animated-gradient-text.tsx b/libs/shared/ui/src/lib/components/animated-gradient-text/animated-gradient-text.tsx index b181115f9a8..ddd6fe89151 100644 --- a/libs/shared/ui/src/lib/components/animated-gradient-text/animated-gradient-text.tsx +++ b/libs/shared/ui/src/lib/components/animated-gradient-text/animated-gradient-text.tsx @@ -16,7 +16,7 @@ export function AnimatedGradientText({ children, className, shimmerWidth = 100 } } as CSSProperties } className={twMerge( - 'relative inline-flex animate-[shiny-text_3s_linear_infinite] items-center bg-gradient-to-r from-brand-500 via-brand-200 via-60% to-brand-500 bg-clip-text text-transparent [background-position:0_0] [background-size:var(--shimmer-width)_100%]', + 'relative inline-flex animate-[shiny-text_3s_linear_infinite] items-center bg-gradient-to-r from-brand-11 via-brand-8 via-60% to-brand-11 bg-clip-text text-transparent [background-position:0_0] [background-size:var(--shimmer-width)_100%]', className )} > diff --git a/libs/shared/ui/src/lib/components/badge/badge.stories.tsx b/libs/shared/ui/src/lib/components/badge/badge.stories.tsx index d21d6dbc216..f1239aba525 100644 --- a/libs/shared/ui/src/lib/components/badge/badge.stories.tsx +++ b/libs/shared/ui/src/lib/components/badge/badge.stories.tsx @@ -6,7 +6,7 @@ const Story: Meta = { title: 'Badge', decorators: [ (Story) => ( -
+
), diff --git a/libs/shared/ui/src/lib/components/badge/badge.tsx b/libs/shared/ui/src/lib/components/badge/badge.tsx index db7d7f16df2..6aac4e4e066 100644 --- a/libs/shared/ui/src/lib/components/badge/badge.tsx +++ b/libs/shared/ui/src/lib/components/badge/badge.tsx @@ -35,7 +35,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'red', - className: ['bg-surface-negative-subtle'], + className: ['bg-surface-negative-subtle', 'text-negative'], }, { variant: 'outline', @@ -45,7 +45,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'purple', - className: ['bg-surface-accent1-component'], + className: ['bg-surface-accent1-component', 'text-accent1'], }, { variant: 'outline', @@ -55,7 +55,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'sky', - className: ['bg-surface-info-subtle'], + className: ['bg-surface-info-subtle', 'text-info'], }, { variant: 'outline', @@ -65,7 +65,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'green', - className: ['bg-surface-positive-subtle'], + className: ['bg-surface-positive-subtle', 'text-positive'], }, { variant: 'outline', @@ -75,7 +75,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'yellow', - className: ['bg-surface-warning-subtle'], + className: ['bg-surface-warning-subtle', 'text-warning'], }, { variant: 'outline', @@ -85,7 +85,7 @@ const badgeVariants = cva(['text-neutral', 'inline-flex', 'items-center', 'shrin { variant: 'surface', color: 'brand', - className: ['bg-surface-brand-subtle'], + className: ['bg-surface-brand-subtle', 'text-brand'], }, { variant: 'outline', diff --git a/libs/shared/ui/src/lib/components/banner/banner.tsx b/libs/shared/ui/src/lib/components/banner/banner.tsx index 64cda46eef9..e374b706bd6 100644 --- a/libs/shared/ui/src/lib/components/banner/banner.tsx +++ b/libs/shared/ui/src/lib/components/banner/banner.tsx @@ -8,25 +8,12 @@ import Icon from '../icon/icon' const bannerVariants = cva('flex h-10 items-center justify-center text-sm font-medium', { variants: { color: { - brand: ['bg-brand-500', 'text-white'], - yellow: ['bg-yellow-500', 'text-yellow-900'], - purple: ['bg-purple-500', 'text-white'], - red: ['bg-red-500', 'text-white'], + brand: ['bg-surface-brand-component', 'text-brand'], + yellow: ['bg-surface-warning-component', 'text-warning'], + red: ['bg-surface-negative-component', 'text-negative'], }, }, }) - -const buttonVariants = cva('ml-4', { - variants: { - color: { - brand: ['!bg-brand-400/50', 'hover:!bg-brand-400/75', '!text-white'], - yellow: ['!bg-yellow-600/50', 'hover:!bg-yellow-600/75', '!text-yellow-900'], - purple: ['!bg-purple-400', 'hover:!bg-purple-600', '!text-white'], - red: ['!bg-red-400', 'hover:!bg-red-600', '!text-white'], - }, - }, -}) - export interface BannerProps extends VariantProps { buttonLabel?: string buttonIconRight?: IconName @@ -43,7 +30,7 @@ export const Banner = forwardRef>
{children} {buttonLabel && ( - @@ -51,10 +38,9 @@ export const Banner = forwardRef> {dismissible && ( - + }>Deploy } color="yellow"> Update diff --git a/libs/shared/ui/src/lib/components/dropdown-menu/dropdown-menu.tsx b/libs/shared/ui/src/lib/components/dropdown-menu/dropdown-menu.tsx index ac461e68e3e..1f292c4dd94 100644 --- a/libs/shared/ui/src/lib/components/dropdown-menu/dropdown-menu.tsx +++ b/libs/shared/ui/src/lib/components/dropdown-menu/dropdown-menu.tsx @@ -5,15 +5,26 @@ import { type ComponentPropsWithoutRef, type ElementRef, type ReactElement, clon import { twMerge } from '@qovery/shared/util-js' const dropdownMenuItemVariants = cva( - ['px-3', 'flex', 'items-center', 'h-8', 'text-sm', 'font-medium', 'rounded-sm', 'outline-none', 'select-none'], + [ + 'px-3', + 'flex', + 'items-center', + 'h-8', + 'text-sm', + 'font-medium', + 'rounded-sm', + 'outline-none', + 'select-none', + 'rounded', + ], { variants: { color: { brand: [ - 'data-[highlighted]:bg-brand-2', - 'data-[highlighted]:text-brand-11', - 'hover:bg-brand-2', - 'hover:text-brand-11', + 'data-[highlighted]:bg-surface-brand-component', + 'data-[highlighted]:text-brand', + 'hover:bg-surface-brand-component', + 'hover:text-brand', ], red: [ 'data-[highlighted]:bg-surface-negative-component', @@ -29,7 +40,7 @@ const dropdownMenuItemVariants = cva( ], }, disabled: { - true: ['cursor-not-allowed'], + true: ['cursor-not-allowed, hover:bg-transparent, hover:text-neutral-disabled'], false: ['cursor-pointer'], }, }, @@ -67,7 +78,7 @@ const dropdownMenuItemVariants = cva( } ) -const dropdownMenuItemIconVariants = cva(['text-sm', 'mr-3'], { +const dropdownMenuItemIconVariants = cva(['text-sm', 'mr-2'], { variants: { color: { brand: [], @@ -145,7 +156,7 @@ const DropdownMenuContent = forwardRef -
+
{!isDragActive ? (

Click to import your {typeFile} file or drag and drop it

diff --git a/libs/shared/ui/src/lib/components/empty-state/empty-state.tsx b/libs/shared/ui/src/lib/components/empty-state/empty-state.tsx index b1d805a232f..3762d2cd7e2 100644 --- a/libs/shared/ui/src/lib/components/empty-state/empty-state.tsx +++ b/libs/shared/ui/src/lib/components/empty-state/empty-state.tsx @@ -14,7 +14,7 @@ export function EmptyState({ title, description, className, icon, children }: Em return (
diff --git a/libs/shared/ui/src/lib/components/enable-box/enable-box.tsx b/libs/shared/ui/src/lib/components/enable-box/enable-box.tsx index 745be9164d7..8a1813e5570 100644 --- a/libs/shared/ui/src/lib/components/enable-box/enable-box.tsx +++ b/libs/shared/ui/src/lib/components/enable-box/enable-box.tsx @@ -34,7 +34,9 @@ export function EnableBox(props: EnableBoxProps) { if (currentChecked !== checked) setChecked(currentChecked) }, [currentChecked, setChecked, checked]) - const checkedClasses = currentChecked ? 'bg-brand-50 border border-brand-500' : ' bg-neutral-100 border-neutral-250' + const checkedClasses = currentChecked + ? 'bg-surface-brand-subtle border border-brand-strong' + : ' bg-surface-neutral-subtle border-neutral' return (
setCurrentChecked(checked as boolean)} /> -
- {description &&

{description}

} + {description &&

{description}

}
{currentChecked &&
e.stopPropagation()}>{children}
} diff --git a/libs/shared/ui/src/lib/components/icon-flag/icon-flag.tsx b/libs/shared/ui/src/lib/components/icon-flag/icon-flag.tsx index a7da69ed0a2..5593f9d3827 100644 --- a/libs/shared/ui/src/lib/components/icon-flag/icon-flag.tsx +++ b/libs/shared/ui/src/lib/components/icon-flag/icon-flag.tsx @@ -9,7 +9,11 @@ export function IconFlag(props: IconFlagProps) { const { code = 'US', className = '' } = props return ( - + ) } diff --git a/libs/shared/ui/src/lib/components/inputs/input-select-small/input-select-small.tsx b/libs/shared/ui/src/lib/components/inputs/input-select-small/input-select-small.tsx index e56d0e0b336..9ec6c7b6402 100644 --- a/libs/shared/ui/src/lib/components/inputs/input-select-small/input-select-small.tsx +++ b/libs/shared/ui/src/lib/components/inputs/input-select-small/input-select-small.tsx @@ -55,7 +55,7 @@ export function InputSelectSmall(props: InputSelectSmallProps) { name={name} value={value} className={twMerge( - 'disabled:shadow-non h-9 w-full cursor-pointer appearance-none rounded border border-neutral bg-surface-neutral px-3 pr-6 text-sm text-neutral shadow-sm transition-colors hover:bg-surface-neutral-component focus:outline-none active:shadow-none', + 'h-9 w-full cursor-pointer appearance-none rounded border border-neutral bg-surface-neutral px-3 pr-6 text-sm text-neutral transition-colors hover:bg-surface-neutral-component focus:outline-none', inputClassName )} onChange={(e) => onClickItem(e.target.value)} diff --git a/libs/shared/ui/src/lib/components/inputs/input-select/input-select.tsx b/libs/shared/ui/src/lib/components/inputs/input-select/input-select.tsx index b1acadbc9db..4e8790b7232 100644 --- a/libs/shared/ui/src/lib/components/inputs/input-select/input-select.tsx +++ b/libs/shared/ui/src/lib/components/inputs/input-select/input-select.tsx @@ -226,7 +226,7 @@ export function InputSelect({ const inputActions = hasFocus && !disabled - ? '!border-brand-strong !shadow-[0_2px_2px_rgba(0, 0, 0, 0.05)] input--focused' + ? '!border-brand-strong input--focused' : disabled ? '!bg-surface-neutral-subtle !border-neutral !pointer-events-none' : hasError @@ -273,6 +273,7 @@ export function InputSelect({ ...base, backgroundColor: 'var(--neutral-1)', borderRadius: '6px', + borderColor: 'var(--neutral-6)', }), menuList: (base) => ({ ...base, diff --git a/libs/shared/ui/src/lib/components/legacy-avatar/legacy-avatar.tsx b/libs/shared/ui/src/lib/components/legacy-avatar/legacy-avatar.tsx index 15f6c643511..baecf69a546 100644 --- a/libs/shared/ui/src/lib/components/legacy-avatar/legacy-avatar.tsx +++ b/libs/shared/ui/src/lib/components/legacy-avatar/legacy-avatar.tsx @@ -40,7 +40,7 @@ export function LegacyAvatar(props: LegacyAvatarProps) { noTooltip = false, } = props - const defineClass = `${style === LegacyAvatarStyle.STROKED ? 'border border-neutral-200' : ''} ${ + const defineClass = `${style === LegacyAvatarStyle.STROKED ? 'border border-neutral' : ''} ${ onClick ? 'cursor-pointer' : '' }` @@ -54,8 +54,8 @@ export function LegacyAvatar(props: LegacyAvatarProps) { {url ? ( {alt} ) : ( -
- +
+ {firstName && firstName.charAt(0).toUpperCase()} {lastName && lastName.charAt(0).toUpperCase()} @@ -70,11 +70,11 @@ export function LegacyAvatar(props: LegacyAvatarProps) { className="absolute -right-[2px] top-[24px] flex h-[18px] w-[18px] items-center rounded-full text-sm font-medium" > {logoUrl ? ( - + Logo Organization ) : ( - + {logoText} )} diff --git a/libs/shared/ui/src/lib/components/link/link.stories.tsx b/libs/shared/ui/src/lib/components/link/link.stories.tsx index 96b99accf21..1bf80f4f223 100644 --- a/libs/shared/ui/src/lib/components/link/link.stories.tsx +++ b/libs/shared/ui/src/lib/components/link/link.stories.tsx @@ -7,7 +7,7 @@ const Story: Meta = { title: 'Link', decorators: [ (Story) => ( -
+
), diff --git a/libs/shared/ui/src/lib/components/link/link.tsx b/libs/shared/ui/src/lib/components/link/link.tsx index a3457745d19..72b06972bf9 100644 --- a/libs/shared/ui/src/lib/components/link/link.tsx +++ b/libs/shared/ui/src/lib/components/link/link.tsx @@ -7,23 +7,14 @@ import { buttonVariants } from '../button-primitive/button-primitive' import Icon from '../icon/icon' export const linkVariants = cva( - [ - 'cursor-pointer', - 'transition', - 'duration-100', - 'font-medium', - 'inline-flex', - 'items-center', - 'gap-1', - 'hover:brightness-75', - ], + ['cursor-pointer', 'transition', 'duration-100', 'font-medium', 'inline-flex', 'items-center', 'gap-1'], { variants: { color: { - brand: ['text-surface-brand-solid'], - red: ['text-negative'], - sky: ['text-info'], - current: ['text-current'], + brand: ['text-brand', 'hover:text-brand-hover'], + red: ['text-negative', 'hover:text-negative-hover'], + sky: ['text-info', 'hover:text-info-hover'], + neutral: ['text-neutral', 'hover:text-neutral-subtle'], }, size: { xs: ['text-xs'], diff --git a/libs/shared/ui/src/lib/components/loader-dots/loader-dots.tsx b/libs/shared/ui/src/lib/components/loader-dots/loader-dots.tsx index feb65639038..38bbf3e2336 100644 --- a/libs/shared/ui/src/lib/components/loader-dots/loader-dots.tsx +++ b/libs/shared/ui/src/lib/components/loader-dots/loader-dots.tsx @@ -7,10 +7,7 @@ export interface LoaderDotsProps { export function LoaderDots({ className }: LoaderDotsProps) { return ( ) } diff --git a/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.stories.tsx b/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.stories.tsx index 7ce8b5878e1..049e5601405 100644 --- a/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.stories.tsx +++ b/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.stories.tsx @@ -4,12 +4,7 @@ import { LoaderSpinner } from './loader-spinner' export default { component: LoaderSpinner, title: 'LoaderSpinner', - argTypes: { - theme: { - options: ['dark', 'light'], - control: { type: 'select' }, - }, - }, + argTypes: {}, } as Meta const Template: StoryFn = (args) => @@ -19,5 +14,4 @@ Primary.args = { className: '', classWidth: 'w-16', classBorder: 'border-4', - theme: 'light', } diff --git a/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.tsx b/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.tsx index 80d36a0e69d..fd755a794bb 100644 --- a/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.tsx +++ b/libs/shared/ui/src/lib/components/loader-spinner/loader-spinner.tsx @@ -2,17 +2,15 @@ export interface LoaderSpinnerProps { className?: string classWidth?: string classBorder?: string - theme?: 'dark' | 'light' } export function LoaderSpinner(props: LoaderSpinnerProps) { - const { className = '', classWidth = 'w-4', classBorder = 'border-2', theme = 'light' } = props - const themeClasses = theme === 'dark' ? 'border-neutral-350 border-r-neutral-50' : 'border-r-neutral-500' + const { className = '', classWidth = 'w-4', classBorder = 'border-2' } = props return (
diff --git a/libs/shared/ui/src/lib/components/logo-branded/logo-branded.tsx b/libs/shared/ui/src/lib/components/logo-branded/logo-branded.tsx index d9449561935..d17efeec1cb 100644 --- a/libs/shared/ui/src/lib/components/logo-branded/logo-branded.tsx +++ b/libs/shared/ui/src/lib/components/logo-branded/logo-branded.tsx @@ -29,7 +29,7 @@ export function LogoBrandedIcon(props: SVGProps) { /> ) diff --git a/libs/shared/ui/src/lib/components/navbar/navbar.tsx b/libs/shared/ui/src/lib/components/navbar/navbar.tsx index 2e057ec0c94..884a876a7ef 100644 --- a/libs/shared/ui/src/lib/components/navbar/navbar.tsx +++ b/libs/shared/ui/src/lib/components/navbar/navbar.tsx @@ -43,8 +43,8 @@ const navbarItemVariants = cva( { variants: { active: { - true: ['text-brand-11'], - false: ['text-neutral-subtle', 'hover:text-brand-11'], + true: ['text-brand'], + false: ['text-neutral-subtle', 'hover:text-brand'], }, }, defaultVariants: { diff --git a/libs/shared/ui/src/lib/components/pagination/pagination.tsx b/libs/shared/ui/src/lib/components/pagination/pagination.tsx index a3e4808bd09..f3453024864 100644 --- a/libs/shared/ui/src/lib/components/pagination/pagination.tsx +++ b/libs/shared/ui/src/lib/components/pagination/pagination.tsx @@ -18,7 +18,7 @@ export function Pagination(props: PaginationProps) {