Files
medusa-store/packages/design-system/ui
Kasper Fabricius Kristensen 591ba2388d fix(ui): Bump cva and minor type fixes (#5818)
**What**
- Bumps `class-variance-authority` to new beta version - `cva@beta`.
- Updates all usages of `cva` to new API.
- Clear up the naming of types in `usePrompt`

**Why**
- A bug in how `class-variance-authority` exported its types mean that we were relying on patching the package to ensure that the correct types made it into the build of our UI package. This was important to ensure intellisense for component variants, such as `<Button size="large" />`. Previously in the UI monorepo, having the patch was enough to ensure that the correct types made it into the build, but that was not the case after we moved the design system to the core repo. The issue with types is fixed in the `@1` version of `cva` which is currently in beta. I have pinpointed the version to the current beta version to ensure stability despite the package currently being in beta.
2023-12-07 20:13:44 +00:00
..
2023-11-27 16:43:51 +00:00

Medusa logo

Medusa UI

Documentation | Website

Medusa's admin component library.

Medusa is released under the MIT license. Discord Chat Follow @medusajs

Getting Started

Installation

yarn add @medusajs/medusa-ui

Usage

import { Button } from "@medusajs/ui"

const App = () => <Button variant="primary">Hello World</Button>

Documentation

You can find the documentation for Medusa UI on the documentation site.