Phase 0: fix typecheck, format, build; remove stray emit; pin port via env
CI / Lint, typecheck, test, build (push) Failing after 22s
CI / Lint, typecheck, test, build (push) Failing after 22s
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
"private": true,
|
||||
"description": "Shared React components for hub + live-map",
|
||||
"type": "module",
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"main": "./src/index.tsx",
|
||||
"types": "./src/index.tsx",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
".": "./src/index.tsx"
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
|
||||
@@ -6,7 +6,13 @@
|
||||
|
||||
import { type ReactNode } from 'react';
|
||||
|
||||
export function Pill({ children, tone = 'neutral' }: { children: ReactNode; tone?: 'neutral' | 'success' | 'warn' | 'danger' }) {
|
||||
export function Pill({
|
||||
children,
|
||||
tone = 'neutral',
|
||||
}: {
|
||||
children: ReactNode;
|
||||
tone?: 'neutral' | 'success' | 'warn' | 'danger';
|
||||
}) {
|
||||
const colorMap = {
|
||||
neutral: 'var(--pill-neutral, #ddd)',
|
||||
success: 'var(--pill-success, #2c5)',
|
||||
Reference in New Issue
Block a user