Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions packages/chip/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "@side/chip",
"version": "0.0.1",
"description": "Chip component for SIDE design system",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/recipes": "^0.5.1",
"clsx": "^2.0.0"
},
"devDependencies": {
"@sipe-team/tokens": "workspace:*",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "^18.2.0",
"jsdom": "^26.1.0",
"react": "^18.2.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0",
"vitest": "^1.0.0"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"keywords": [
"chip",
"tag",
"badge",
"design-system",
"react"
],
"author": "SIDE Team",
"license": "MIT"
}
21 changes: 21 additions & 0 deletions packages/chip/src/Chip.constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export const ChipVariant = {
filled: 'filled',
outline: 'outline',
} as const;
export type ChipVariant = (typeof ChipVariant)[keyof typeof ChipVariant];

export const ChipSize = {
small: 'small',
medium: 'medium',
large: 'large',
} as const;
export type ChipSize = (typeof ChipSize)[keyof typeof ChipSize];

export const ChipColor = {
primary: 'primary',
secondary: 'secondary',
success: 'success',
warning: 'warning',
danger: 'danger',
} as const;
export type ChipColor = (typeof ChipColor)[keyof typeof ChipColor];
Loading
Loading