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

@pandacss/shared

Package Overview
Dependencies
Maintainers
1
Versions
1132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/shared - npm Package Versions

1
114

0.0.0-dev-20240513211003

Diff

segunadebayo
published 0.0.0-dev-20240513162943 •

segunadebayo
published 0.39.1 •

Changelog

Source

[0.39.1] - 2024-05-07

Fixed

Fix css.raw typings after recent (0.39.0) changes allowing arrays of SystemStyleObject

segunadebayo
published 0.0.0-dev-20240504172116 •

segunadebayo
published 0.39.0 •

Changelog

Source

[0.39.0] - 2024-04-29

Fixed

  • Fix issue where mergeCss import in styled-system/jsx/* could be unused.
  • Fix issue where float property did not allow inherited values (auto, initial, none, etc.)
  • Fix issue where animationName property was not connected to theme.keyframes, as a result, no autocompletion was available.

Added

  • Add support for more typography related properties in text styles such as fontFeatureSettings, fontPalette, etc.
  • Allow passing arrays of SystemStyleObject to the css(xxx, [aaa, bbb, ccc], yyy) fn

This is useful when you are creating your own styled component and want to benefit from the recent css array property support.

import { css } from 'styled-system/css'
import type { HTMLStyledProps } from 'styled-system/types'

type ButtonProps = HTMLStyledProps<'button'>

export const Button = ({ css: cssProp = {}, children }: ButtonProps) => {
-  const className = css(...(Array.isArray(cssProp) ? cssProp : [cssProp]))
+  const className = css(cssProp)
  return <button className={className}>{children}</button>
}

Changed

  • BREAKING 💥

Remove linkBox pattern in favor of using adding position: relative when using the linkOverlay pattern.

Before

import { linkBox, linkOverlay } from 'styled-system/patterns'

const App = () => {
  return (
    <div className={linkBox()}>
      <img src="https://via.placeholder.com/150" alt="placeholder" />
      <a href="#" className={linkOverlay()}>
        Link
      </a>
    </div>
  )
}

After

import { css } from 'styled-system/css'
import { linkOverlay } from 'styled-system/patterns'

const App = () => {
  return (
    <div className={css({ pos: 'relative' })}>
      <img src="https://via.placeholder.com/150" alt="placeholder" />
      <a href="#" className={linkOverlay()}>
        Link
      </a>
    </div>
  )
}
segunadebayo
published 0.0.0-dev-20240503130204 •

segunadebayo
published 0.0.0-dev-20240501211216 •

segunadebayo
published 0.0.0-dev-20240501191510 •

segunadebayo
published 0.0.0-dev-20240501184738 •

segunadebayo
published 0.0.0-dev-20240501183327 •

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