[package]
name = "leptos-shadcn-ui-wasm"
version = "0.1.0"
edition = "2021"
authors = ["CloudShuttle <info@cloudshuttle.com>"]
license = "MIT"
repository = "https://github.com/cloud-shuttle/leptos-shadcn-ui"
description = "WASM-optimized ShadCN UI components for Leptos 0.8+ with minimal dependencies"
keywords = ["leptos", "shadcn", "ui", "wasm", "webassembly", "components"]
categories = ["web-programming", "gui"]

# WASM-optimized dependencies only
[dependencies]
leptos = "0.8"

# WASM-compatible utilities
getrandom = { version = "0.2", features = ["js"] }
uuid = { version = "1.0", features = ["v4", "js"] }

# Core component dependencies
leptos-shadcn-button = "0.9"
leptos-shadcn-input = "0.9"
leptos-shadcn-card = "0.9"
leptos-shadcn-label = "0.9"
leptos-shadcn-badge = "0.9"
leptos-shadcn-avatar = "0.9"
leptos-shadcn-separator = "0.9"
leptos-shadcn-skeleton = "0.9"
leptos-shadcn-alert = "0.9"
leptos-shadcn-alert-dialog = "0.9"

# WASM-compatible dependencies
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = ["console", "Document", "Element", "HtmlElement", "Window", "Performance"] }
console_error_panic_hook = "0.1"

# WASM-compatible testing
[dev-dependencies]
wasm-bindgen-test = "0.3"

[features]
default = ["all-components"]
all-components = [
    "button",
    "input", 
    "card",
    "label",
    "badge",
    "avatar",
    "separator",
    "skeleton",
    "alert",
    "alert-dialog"
]

# Individual component features
button = []
input = []
card = []
label = []
badge = []
avatar = []
separator = []
skeleton = []
alert = []
alert-dialog = []

# WASM-specific optimizations
wasm-optimized = []
