@pandacss/studio 0.0.0-dev-20240212192921 → 0.0.0-dev-20240214192050
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/astro.config.mjs +3 -2
- package/dist/studio.d.mts +4 -3
- package/dist/studio.d.ts +4 -3
- package/dist/studio.js +8 -5
- package/dist/studio.mjs +8 -5
- package/package.json +7 -7
- package/src/components/overview.tsx +3 -2
- package/src/components/side-nav.astro +4 -3
- package/src/lib/url.ts +3 -0
- package/styled-system/styles.css +281 -439
- package/styled-system/jsx/styled-link.d.ts +0 -10
- package/styled-system/jsx/styled-link.mjs +0 -14
- package/styled-system/patterns/styled-link.d.ts +0 -21
- package/styled-system/patterns/styled-link.mjs +0 -18
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { StyledLinkProperties } from '../patterns/styled-link';
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface StyledLinkProps extends StyledLinkProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof StyledLinkProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const StyledLink: FunctionComponent<StyledLinkProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { mergeCss } from '../css/css.mjs';
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getStyledLinkStyle } from '../patterns/styled-link.mjs';
|
|
5
|
-
import { panda } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const StyledLink = /* @__PURE__ */ forwardRef(function StyledLink(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
-
|
|
10
|
-
const styleProps = getStyledLinkStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(panda.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface StyledLinkProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface StyledLinkStyles extends StyledLinkProperties, DistributiveOmit<SystemStyleObject, keyof StyledLinkProperties > {}
|
|
14
|
-
|
|
15
|
-
interface StyledLinkPatternFn {
|
|
16
|
-
(styles?: StyledLinkStyles): string
|
|
17
|
-
raw: (styles?: StyledLinkStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const styledLink: StyledLinkPatternFn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { mapObject } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const styledLinkConfig = {
|
|
5
|
-
transform:(props) => ({
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
opacity: "0.5",
|
|
9
|
-
borderBottom: "1px solid transparent",
|
|
10
|
-
cursor: "pointer",
|
|
11
|
-
_hover: { opacity: 1, borderBottomColor: "black" },
|
|
12
|
-
...props
|
|
13
|
-
})}
|
|
14
|
-
|
|
15
|
-
export const getStyledLinkStyle = (styles = {}) => styledLinkConfig.transform(styles, { map: mapObject })
|
|
16
|
-
|
|
17
|
-
export const styledLink = (styles) => css(getStyledLinkStyle(styles))
|
|
18
|
-
styledLink.raw = getStyledLinkStyle
|