feat(design): add IMS Admin primitives (Button, StatusTag, Checkbox, FilterChip, Segmented, Avatar, Drawer) and restyle Field, Card, Modal

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 09:28:34 +08:00
co-authored by Claude Haiku 4.5
parent 01343d732e
commit 2a5b9332c7
15 changed files with 417 additions and 248 deletions
@@ -667,8 +667,8 @@ describe('FilterChip', () => {
const options = [{ value: 'open', label: 'Open' }, { value: 'closed', label: 'Closed' }]
it('unset shows the label and a select with an empty option', () => {
render(<FilterChip label="Status" value="" options={options} onChange={() => {}} />)
expect(screen.getByText('Status')).toBeTruthy()
const { container } = render(<FilterChip label="Status" value="" options={options} onChange={() => {}} />)
expect(container.querySelector('label > span')?.textContent).toBe('Status')
expect((screen.getByLabelText('Status') as HTMLSelectElement).value).toBe('')
})