@pandacss/studio 0.53.7 → 0.54.0
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/package.json +7 -7
- package/src/components/layer-styles.tsx +10 -9
- package/src/components/text-styles.tsx +10 -18
- package/src/lib/virtual-panda.d.ts +2 -0
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/styles.css +318 -323
- package/styled-system/tokens/tokens.d.ts +1 -1
- package/styled-system/types/conditions.d.ts +6 -6
- package/styled-system/jsx/link-box.d.ts +0 -10
- package/styled-system/jsx/link-box.mjs +0 -14
- package/styled-system/patterns/link-box.d.ts +0 -21
- package/styled-system/patterns/link-box.mjs +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token =
|
|
2
|
+
export type Token = `aspectRatios.${AspectRatioToken}` | `borders.${BorderToken}` | `easings.${EasingToken}` | `durations.${DurationToken}` | `radii.${RadiusToken}` | `fontWeights.${FontWeightToken}` | `lineHeights.${LineHeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `fontSizes.${FontSizeToken}` | `shadows.${ShadowToken}` | `blurs.${BlurToken}` | `spacing.${SpacingToken}` | `sizes.${SizeToken}` | `animations.${AnimationToken}` | `colors.${ColorToken}` | `assets.${AssetToken}` | `breakpoints.${BreakpointToken}`
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "stone" | "zinc" | "gray" | "slate" | "neutral" | "text" | "bg" | "card" | "border" | "accent"
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ export interface Conditions {
|
|
|
10
10
|
"_focusWithin": string
|
|
11
11
|
/** `&:is(:focus-visible, [data-focus-visible])` */
|
|
12
12
|
"_focusVisible": string
|
|
13
|
-
/** `&:is(:disabled, [disabled], [data-disabled])` */
|
|
13
|
+
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
14
14
|
"_disabled": string
|
|
15
15
|
/** `&:is(:active, [data-active])` */
|
|
16
16
|
"_active": string
|
|
@@ -18,7 +18,7 @@ export interface Conditions {
|
|
|
18
18
|
"_visited": string
|
|
19
19
|
/** `&:target` */
|
|
20
20
|
"_target": string
|
|
21
|
-
/** `&:is(:read-only, [data-read-only])` */
|
|
21
|
+
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
22
22
|
"_readOnly": string
|
|
23
23
|
/** `&:read-write` */
|
|
24
24
|
"_readWrite": string
|
|
@@ -80,7 +80,7 @@ export interface Conditions {
|
|
|
80
80
|
"_peerFocusWithin": string
|
|
81
81
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
82
82
|
"_peerFocusVisible": string
|
|
83
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
|
|
83
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
84
84
|
"_peerDisabled": string
|
|
85
85
|
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
86
86
|
"_peerChecked": string
|
|
@@ -100,13 +100,13 @@ export interface Conditions {
|
|
|
100
100
|
"_groupFocusWithin": string
|
|
101
101
|
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
102
102
|
"_groupFocusVisible": string
|
|
103
|
-
/** `.group:is(:disabled, [disabled], [data-disabled]) &` */
|
|
103
|
+
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
104
104
|
"_groupDisabled": string
|
|
105
105
|
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
106
106
|
"_groupChecked": string
|
|
107
107
|
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
108
108
|
"_groupExpanded": string
|
|
109
|
-
/** `.group:is(:invalid, [data-invalid]) &` */
|
|
109
|
+
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
110
110
|
"_groupInvalid": string
|
|
111
111
|
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
112
112
|
"_indeterminate": string
|
|
@@ -114,7 +114,7 @@ export interface Conditions {
|
|
|
114
114
|
"_required": string
|
|
115
115
|
/** `&:is(:valid, [data-valid])` */
|
|
116
116
|
"_valid": string
|
|
117
|
-
/** `&:is(:invalid, [data-invalid])` */
|
|
117
|
+
/** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
|
|
118
118
|
"_invalid": string
|
|
119
119
|
/** `&:autofill` */
|
|
120
120
|
"_autofill": string
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { LinkBoxProperties } from '../patterns/link-box';
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const LinkBox: FunctionComponent<LinkBoxProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
5
|
-
import { panda } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const LinkBox = /* @__PURE__ */ forwardRef(function LinkBox(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
-
|
|
10
|
-
const styleProps = getLinkBoxStyle(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 { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface LinkBoxProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface LinkBoxStyles extends LinkBoxProperties, DistributiveOmit<SystemStyleObject, keyof LinkBoxProperties > {}
|
|
14
|
-
|
|
15
|
-
interface LinkBoxPatternFn {
|
|
16
|
-
(styles?: LinkBoxStyles): string
|
|
17
|
-
raw: (styles?: LinkBoxStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const linkBox: LinkBoxPatternFn;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const linkBoxConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return {
|
|
7
|
-
position: "relative",
|
|
8
|
-
"& :where(a, abbr)": {
|
|
9
|
-
position: "relative",
|
|
10
|
-
zIndex: "1"
|
|
11
|
-
},
|
|
12
|
-
...props
|
|
13
|
-
};
|
|
14
|
-
}}
|
|
15
|
-
|
|
16
|
-
export const getLinkBoxStyle = (styles = {}) => {
|
|
17
|
-
const _styles = getPatternStyles(linkBoxConfig, styles)
|
|
18
|
-
return linkBoxConfig.transform(_styles, patternFns)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const linkBox = (styles) => css(getLinkBoxStyle(styles))
|
|
22
|
-
linkBox.raw = getLinkBoxStyle
|