Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/shared

Package Overview
Dependencies
Maintainers
0
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/shared - npm Package Versions

1
115

0.0.0-dev-20240422122109

Diff

segunadebayo
published 0.0.0-dev-20240419031424 •

segunadebayo
published 0.0.0-dev-20240413152357 •

segunadebayo
published 0.0.0-dev-20240411204220 •

segunadebayo
published 0.0.0-dev-20240409220115 •

segunadebayo
published 0.37.2 •

Changelog

Source

[0.37.2] - 2024-04-05

Fixed

  • fix: build correct path for debug files on windows
  • Add missing type PatternProperties to solve a TypeScript issue (The inferred type of xxx cannot be named without a reference)
  • Fix sva typings, the splitVariantProps was missing from the d.ts file

Added

  • Add a getVariantProps helper to the slot recipes API (sva and config slot recipes)
import { sva } from '../styled-system/css'
import { getVariantProps } from '../styled-system/recipes'

const button = sva({
  slots: ['root', 'icon'],
  // ...
  variants: {
    size: {
      sm: {
        // ...
      },
      md: {
        // ...
      },
    },
    variant: {
      primary: {
        // ...
      },
      danger: {
        // ...
      }
    }
  }
  defaultVariants: {
    size: 'md',
    variant: 'primary',
  }
})

// ✅ this will return the computed variants based on the defaultVariants + props passed
const buttonProps = button.getVariantProps({ size: "sm" })
//    ^? { size: "sm", variant: "primary" }

Changed

  • Make WithImportant<T> more performant and ensure typescript is happy. This changes will make code autocompletion and ts-related linting much faster than before.
segunadebayo
published 0.0.0-dev-20240405065931 •

segunadebayo
published 0.0.0-dev-20240404161354 •

segunadebayo
published 0.0.0-dev-20240403210529 •

segunadebayo
published 0.0.0-dev-20240403123832 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc