Skip to content

Commit 75021c7

Browse files
committed
refactor(shared): alias SelectButtonSize to ButtonBaseSize to avoid literal duplication and ensure sync
1 parent 34c3c4b commit 75021c7

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

packages/design-system-shared/src/types/SelectButton/SelectButton.types.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import type { ReactNode } from 'react';
2+
import { ButtonBaseSize } from '../ButtonBase';
23

34
/**
45
* SelectButton size options (ADR-0003).
56
* Sm (32px) | Md (40px, default) | Lg (48px).
67
*/
7-
export const SelectButtonSize = {
8-
Sm: 'sm',
9-
Md: 'md',
10-
Lg: 'lg',
11-
} as const;
12-
export type SelectButtonSize =
13-
(typeof SelectButtonSize)[keyof typeof SelectButtonSize];
8+
export const SelectButtonSize = ButtonBaseSize;
9+
export type SelectButtonSize = ButtonBaseSize;
1410

1511
/**
1612
* SelectButton — trailing arrow direction (maps to platform arrow icons).

0 commit comments

Comments
 (0)