πŸš€ DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

@clovirtualfashion/components

Package Overview
Dependencies
Maintainers
14
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@clovirtualfashion/components

latest
npmnpm
Version
0.0.112
Version published
Maintainers
14
Created
Source

@clovirtualfashion/components

개발 ν™˜κ²½

  • node: ^22.14.0

  • yarn: ^4.9.1

  • vite: ^6.3.5

  • react: ^19.1.0

  • tailwindcss: ^3.4.17

  • typescript: ~5.7.2

  • tailwind-variants: ^1.0.0

    tailwind의 className을 μ‘°ν•©ν•˜μ—¬ μ‚¬μš©ν•  수 있게 ν•΄μ£ΌλŠ” 라이브러리. μœ μ‚¬ν•œ λΌμ΄λΈŒλŸ¬λ¦¬λ‘œλŠ” cva(class-variance-authority), twin 등이 있고, μ‚¬μš©μ˜ νŽΈμ˜μ„±κ³Ό variant에 따라 λ‹€λ₯Έ μŠ€νƒ€μΌ 적용이 λ˜λŠ” Compound variants 그리고 클래슀 좩돌 ν•΄κ²° λ“± λ‹€μ–‘ν•œ κΈ°λŠ₯λ“€μ˜ μž₯점으둜 선택.

    πŸ€” 아직 μ΄ˆκΈ°μ΄λ‹ˆ tailwind-variants와 비ꡐ κ³ λ―Ό ν–ˆλ˜ cva + tailwind-merge 에 λŒ€ν•΄μ„œλ„ ν›„λ³΄κ΅°μœΌλ‘œ 고민해봐도 쒋을 것 κ°™μŠ΅λ‹ˆλ‹€.

νŒ¨ν‚€μ§€ ꡬ쑰

src/
  β”œβ”€β”€ components/             # μ»΄ν¬λ„ŒνŠΈ 디렉토리
  β”‚   β”œβ”€β”€ button/             # λ²„νŠΌ μ»΄ν¬λ„ŒνŠΈ
  β”‚   β”‚   └── src
  β”‚   β”‚   β”‚   β”œβ”€β”€ Button.styles.ts  # λ²„νŠΌ μŠ€νƒ€μΌ
  β”‚   β”‚   β”‚   β”œβ”€β”€ Button.types.ts   # λ²„νŠΌ νƒ€μž… μ •μ˜
  β”‚   β”‚   β”‚   └── Button.tsx        # λ²„νŠΌ μ»΄ν¬λ„ŒνŠΈ κ΅¬ν˜„
  β”‚   β”‚   └── index.ts          # λ²„νŠΌ μ»΄ν¬λ„ŒνŠΈ 내보내기
  β”‚   β”‚
  β”‚   β”œβ”€β”€ {componentName}/    # {componentName} μ»΄ν¬λ„ŒνŠΈ
  β”‚   β”‚   └── src
  β”‚   β”‚   β”‚   β”œβ”€β”€ {componentName}.styles.ts  # Component μŠ€νƒ€μΌ
  β”‚   β”‚   β”‚   β”œβ”€β”€ {componentName}.types.ts   # Component νƒ€μž…
  β”‚   β”‚   β”‚   └── {componentName}.tsx        # Component κ΅¬ν˜„
  β”‚   β”‚   └── index.ts          # {componentName} κ΄€λ ¨ νŒŒμΌλ“€
  β”‚   └── index.ts            # 전체 μ»΄ν¬λ„ŒνŠΈ 내보내기
  β”‚
  β”œβ”€β”€ styles/                # μŠ€νƒ€μΌ κ΄€λ ¨ 파일
  β”‚   └── global.css         # μ „μ—­ μŠ€νƒ€μΌ (tailwindcss)
  β”‚
  β”œβ”€β”€ vite-env.d.ts          # Vite ν™˜κ²½ μ •μ˜ 파일
  β”œβ”€β”€ vite.config.ts         # Vite μ„€μ • 파일
  β”œβ”€β”€ tailwind.config.ts     # tailwindcss μ„€μ • 파일
  └── index.ts               # 라이브러리 μ§„μž…μ 

⚠️ 주의 사항

μ€‘μš”: Tailwindcss 4λΆ€ν„° λ³€κ²½λœ μ‚¬ν•­μœΌλ‘œ, λΉŒλ“œ κ³Όμ •μ—μ„œ μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” className은 μžλ™μœΌλ‘œ μ œκ±°λ©λ‹ˆλ‹€.

νŠΉμ • ν΄λž˜μŠ€κ°€ μ œκ±°λ˜μ§€ μ•Šκ³  μœ μ§€λ˜λ„λ‘ ν•˜λ €λ©΄ λ°˜λ“œμ‹œ safelist-tailwind.txt νŒŒμΌμ— λͺ…μ‹œν•΄μ•Ό ν•©λ‹ˆλ‹€.

νŒ¨ν„΄ ν˜•μ‹(예: bg-*)은 ν—ˆμš©λ˜μ§€ μ•ŠμœΌλ©°, 각 클래슀λ₯Ό κ°œλ³„μ μœΌλ‘œ λͺ…μ‹œν•΄μ•Ό ν•©λ‹ˆλ‹€.

λͺ…λ Ήμ–΄

λΉŒλ“œ

## Aurora root
yarn @components build

# or

# Aurora Component packages
yarn build

μ»΄ν¬λ„ŒνŠΈ 생성

## Aurora root
yarn @components component:create

# or

# Aurora Component packages
yarn component:create

μ»΄ν¬λ„ŒνŠΈ 검사

## Aurora root
yarn @components validate:components

# or

# Aurora Component packages
yarn validate:components

μ‚¬μš© 방법

/*
* Import design system styles
* μ»΄ν¬λ„ŒνŠΈ μ‚¬μš© μ „ λ°˜λ“œμ‹œ μŠ€νƒ€μΌμ„ λ¨Όμ € import ν•΄μ•Ό ν•©λ‹ˆλ‹€.
*/
import "@clovirtualfashion/components/styles";

// μ»΄ν¬λ„ŒνŠΈ κ°€μ Έμ˜€κΈ°
// case 1
import Button from '@clovirtualfashion/components/button'

// case 2
import { Button } from "@clovirtualfashion/components"

// μ‚¬μš© μ˜ˆμ‹œ
<Button label="λ²„νŠΌ ν…μŠ€νŠΈ" />

μ»΄ν¬λ„ŒνŠΈ ꡬ쑰 검사

μ»΄ν¬λ„ŒνŠΈλŠ” μ •ν˜•ν™”λœ ꡬ쑰λ₯Ό μœ μ§€ν•΄μ•Ό ν•©λ‹ˆλ‹€. λ‹€μŒ λͺ…λ Ήμ–΄λ₯Ό μ‚¬μš©ν•˜μ—¬ λͺ¨λ“  μ»΄ν¬λ„ŒνŠΈμ˜ ꡬ쑰λ₯Ό 검사할 수 μžˆμŠ΅λ‹ˆλ‹€:

yarn check:structure

μ˜¬λ°”λ₯Έ κ΅¬μ‘°λŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€:

src/components/
└── {componentName}/    # {componentName} μ»΄ν¬λ„ŒνŠΈ (μ†Œλ¬Έμž)
    β”œβ”€β”€ index.ts          # μ»΄ν¬λ„ŒνŠΈ μ§„μž…μ 
    └── src/
        β”œβ”€β”€ {ComponentName}.tsx        # μ»΄ν¬λ„ŒνŠΈ κ΅¬ν˜„ (λŒ€λ¬Έμž μ‹œμž‘)
        β”œβ”€β”€ {ComponentName}.styles.ts  # μ»΄ν¬λ„ŒνŠΈ μŠ€νƒ€μΌ
        └── {ComponentName}.types.ts   # μ»΄ν¬λ„ŒνŠΈ νƒ€μž…

FAQs

Package last updated on 21 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts