@pandacss/studio 0.13.0 → 0.13.1
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 +8 -8
- package/styled-system/css/conditions.mjs +16 -18
- package/styled-system/css/css.d.ts +1 -1
- package/styled-system/css/css.mjs +12 -11
- package/styled-system/css/cva.d.ts +2 -2
- package/styled-system/css/cva.mjs +2 -2
- package/styled-system/css/cx.mjs +1 -1
- package/styled-system/css/index.d.ts +4 -4
- package/styled-system/css/index.mjs +4 -4
- package/styled-system/css/sva.d.ts +1 -1
- package/styled-system/css/sva.mjs +10 -8
- package/styled-system/global.css +30 -33
- package/styled-system/helpers.mjs +165 -154
- package/styled-system/jsx/aspect-ratio.d.ts +3 -3
- package/styled-system/jsx/aspect-ratio.mjs +5 -5
- package/styled-system/jsx/bleed.d.ts +3 -3
- package/styled-system/jsx/bleed.mjs +5 -5
- package/styled-system/jsx/box.d.ts +3 -3
- package/styled-system/jsx/box.mjs +4 -4
- package/styled-system/jsx/center.d.ts +3 -3
- package/styled-system/jsx/center.mjs +5 -5
- package/styled-system/jsx/circle.d.ts +3 -3
- package/styled-system/jsx/circle.mjs +5 -5
- package/styled-system/jsx/container.d.ts +3 -3
- package/styled-system/jsx/container.mjs +4 -4
- package/styled-system/jsx/divider.d.ts +3 -3
- package/styled-system/jsx/divider.mjs +5 -5
- package/styled-system/jsx/factory.d.ts +1 -1
- package/styled-system/jsx/factory.mjs +19 -18
- package/styled-system/jsx/flex.d.ts +3 -3
- package/styled-system/jsx/flex.mjs +5 -5
- package/styled-system/jsx/float.d.ts +3 -3
- package/styled-system/jsx/float.mjs +5 -5
- package/styled-system/jsx/grid-item.d.ts +3 -3
- package/styled-system/jsx/grid-item.mjs +5 -5
- package/styled-system/jsx/grid.d.ts +3 -3
- package/styled-system/jsx/grid.mjs +5 -5
- package/styled-system/jsx/hstack.d.ts +3 -3
- package/styled-system/jsx/hstack.mjs +5 -5
- package/styled-system/jsx/index.d.ts +27 -24
- package/styled-system/jsx/index.mjs +23 -23
- package/styled-system/jsx/is-valid-prop.mjs +13 -12
- package/styled-system/jsx/link-box.d.ts +3 -3
- package/styled-system/jsx/link-box.mjs +4 -4
- package/styled-system/jsx/link-overlay.d.ts +3 -3
- package/styled-system/jsx/link-overlay.mjs +4 -4
- package/styled-system/jsx/spacer.d.ts +3 -3
- package/styled-system/jsx/spacer.mjs +5 -5
- package/styled-system/jsx/square.d.ts +3 -3
- package/styled-system/jsx/square.mjs +5 -5
- package/styled-system/jsx/stack.d.ts +3 -3
- package/styled-system/jsx/stack.mjs +5 -5
- package/styled-system/jsx/styled-link.d.ts +3 -3
- package/styled-system/jsx/styled-link.mjs +4 -4
- package/styled-system/jsx/visually-hidden.d.ts +3 -3
- package/styled-system/jsx/visually-hidden.mjs +4 -4
- package/styled-system/jsx/vstack.d.ts +3 -3
- package/styled-system/jsx/vstack.mjs +5 -5
- package/styled-system/jsx/wrap.d.ts +3 -3
- package/styled-system/jsx/wrap.mjs +5 -5
- package/styled-system/patterns/aspect-ratio.d.ts +5 -5
- package/styled-system/patterns/aspect-ratio.mjs +29 -30
- package/styled-system/patterns/bleed.d.ts +5 -5
- package/styled-system/patterns/bleed.mjs +13 -14
- package/styled-system/patterns/box.d.ts +5 -5
- package/styled-system/patterns/box.mjs +6 -7
- package/styled-system/patterns/center.d.ts +5 -5
- package/styled-system/patterns/center.mjs +12 -13
- package/styled-system/patterns/circle.d.ts +5 -5
- package/styled-system/patterns/circle.mjs +16 -17
- package/styled-system/patterns/container.d.ts +5 -5
- package/styled-system/patterns/container.mjs +12 -13
- package/styled-system/patterns/divider.d.ts +5 -5
- package/styled-system/patterns/divider.mjs +15 -16
- package/styled-system/patterns/flex.d.ts +5 -5
- package/styled-system/patterns/flex.mjs +17 -18
- package/styled-system/patterns/float.d.ts +5 -5
- package/styled-system/patterns/float.mjs +39 -40
- package/styled-system/patterns/grid-item.d.ts +5 -5
- package/styled-system/patterns/grid-item.mjs +16 -17
- package/styled-system/patterns/grid.d.ts +5 -5
- package/styled-system/patterns/grid.mjs +14 -20
- package/styled-system/patterns/hstack.d.ts +5 -5
- package/styled-system/patterns/hstack.mjs +14 -15
- package/styled-system/patterns/index.d.ts +21 -21
- package/styled-system/patterns/index.mjs +21 -21
- package/styled-system/patterns/link-box.d.ts +5 -5
- package/styled-system/patterns/link-box.mjs +13 -14
- package/styled-system/patterns/link-overlay.d.ts +5 -5
- package/styled-system/patterns/link-overlay.mjs +18 -19
- package/styled-system/patterns/spacer.d.ts +5 -5
- package/styled-system/patterns/spacer.mjs +12 -13
- package/styled-system/patterns/square.d.ts +5 -5
- package/styled-system/patterns/square.mjs +15 -16
- package/styled-system/patterns/stack.d.ts +5 -5
- package/styled-system/patterns/stack.mjs +14 -15
- package/styled-system/patterns/styled-link.d.ts +5 -5
- package/styled-system/patterns/styled-link.mjs +12 -13
- package/styled-system/patterns/visually-hidden.d.ts +5 -5
- package/styled-system/patterns/visually-hidden.mjs +9 -10
- package/styled-system/patterns/vstack.d.ts +5 -5
- package/styled-system/patterns/vstack.mjs +14 -15
- package/styled-system/patterns/wrap.d.ts +5 -5
- package/styled-system/patterns/wrap.mjs +16 -17
- package/styled-system/reset.css +4 -3
- package/styled-system/static.css +3 -3
- package/styled-system/styles.css +50 -50
- package/styled-system/tokens/index.css +434 -434
- package/styled-system/tokens/index.d.ts +2 -2
- package/styled-system/tokens/index.mjs +1419 -1421
- package/styled-system/tokens/keyframes.css +23 -25
- package/styled-system/types/composition.d.ts +1 -1
- package/styled-system/types/conditions.d.ts +1 -1
- package/styled-system/types/global.d.ts +6 -5
- package/styled-system/types/index.d.ts +3 -3
- package/styled-system/types/jsx.d.ts +2 -2
- package/styled-system/types/pattern.d.ts +2 -2
- package/styled-system/types/prop-type.d.ts +2 -2
- package/styled-system/types/recipe.d.ts +1 -1
- package/styled-system/types/selectors.d.ts +1 -1
- package/styled-system/types/style-props.d.ts +3 -3
- package/styled-system/types/system-types.d.ts +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getDividerStyle } from '../patterns/divider.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getDividerStyle } from '../patterns/divider.mjs';
|
|
4
4
|
|
|
5
5
|
export const Divider = /* @__PURE__ */ forwardRef(function Divider(props, ref) {
|
|
6
6
|
const { orientation, thickness, color, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getDividerStyle({orientation, thickness, color})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement, forwardRef, useMemo } from 'react'
|
|
2
|
-
import { css, cx, cva, assignCss } from '../css/index.mjs'
|
|
3
|
-
import { splitProps, normalizeHTMLProps } from '../helpers.mjs'
|
|
4
|
-
import { isCssProperty } from './is-valid-prop.mjs'
|
|
2
|
+
import { css, cx, cva, assignCss } from '../css/index.mjs';
|
|
3
|
+
import { splitProps, normalizeHTMLProps } from '../helpers.mjs';
|
|
4
|
+
import { isCssProperty } from './is-valid-prop.mjs';
|
|
5
5
|
|
|
6
6
|
function styledFn(Dynamic, configOrCva = {}) {
|
|
7
7
|
const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
|
|
@@ -10,21 +10,22 @@ function styledFn(Dynamic, configOrCva = {}) {
|
|
|
10
10
|
const { as: Element = Dynamic, ...restProps } = props
|
|
11
11
|
|
|
12
12
|
const [variantProps, styleProps, htmlProps, elementProps] = useMemo(() => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
return splitProps(restProps, cvaFn.variantKeys, isCssProperty, normalizeHTMLProps.keys)
|
|
14
|
+
}, [restProps])
|
|
15
|
+
|
|
16
|
+
function recipeClass() {
|
|
17
|
+
const { css: cssStyles, ...propStyles } = styleProps
|
|
18
|
+
const styles = assignCss(propStyles, cssStyles)
|
|
19
|
+
return cx(cvaFn(variantProps), css(styles), elementProps.className)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function cvaClass() {
|
|
23
|
+
const { css: cssStyles, ...propStyles } = styleProps
|
|
24
|
+
const cvaStyles = cvaFn.raw(variantProps)
|
|
25
|
+
const styles = assignCss(cvaStyles, propStyles, cssStyles)
|
|
26
|
+
return cx(css(styles), elementProps.className)
|
|
27
|
+
}
|
|
28
|
+
|
|
28
29
|
|
|
29
30
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
30
31
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FlexProperties } from '../patterns/flex'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { FlexProperties } from '../patterns/flex';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type FlexProps = FlexProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof FlexProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getFlexStyle } from '../patterns/flex.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getFlexStyle } from '../patterns/flex.mjs';
|
|
4
4
|
|
|
5
5
|
export const Flex = /* @__PURE__ */ forwardRef(function Flex(props, ref) {
|
|
6
6
|
const { align, justify, direction, wrap, basis, grow, shrink, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getFlexStyle({align, justify, direction, wrap, basis, grow, shrink})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FloatProperties } from '../patterns/float'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { FloatProperties } from '../patterns/float';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type FloatProps = FloatProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof FloatProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getFloatStyle } from '../patterns/float.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getFloatStyle } from '../patterns/float.mjs';
|
|
4
4
|
|
|
5
5
|
export const Float = /* @__PURE__ */ forwardRef(function Float(props, ref) {
|
|
6
6
|
const { offsetX, offsetY, offset, placement, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getFloatStyle({offsetX, offsetY, offset, placement})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridItemProperties } from '../patterns/grid-item'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { GridItemProperties } from '../patterns/grid-item';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type GridItemProps = GridItemProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof GridItemProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getGridItemStyle } from '../patterns/grid-item.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getGridItemStyle } from '../patterns/grid-item.mjs';
|
|
4
4
|
|
|
5
5
|
export const GridItem = /* @__PURE__ */ forwardRef(function GridItem(props, ref) {
|
|
6
6
|
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getGridItemStyle({colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridProperties } from '../patterns/grid'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { GridProperties } from '../patterns/grid';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type GridProps = GridProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof GridProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getGridStyle } from '../patterns/grid.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getGridStyle } from '../patterns/grid.mjs';
|
|
4
4
|
|
|
5
5
|
export const Grid = /* @__PURE__ */ forwardRef(function Grid(props, ref) {
|
|
6
6
|
const { gap, columnGap, rowGap, columns, minChildWidth, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getGridStyle({gap, columnGap, rowGap, columns, minChildWidth})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { HstackProperties } from '../patterns/hstack'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { HstackProperties } from '../patterns/hstack';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type HstackProps = HstackProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof HstackProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getHstackStyle } from '../patterns/hstack.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getHstackStyle } from '../patterns/hstack.mjs';
|
|
4
4
|
|
|
5
5
|
export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) {
|
|
6
6
|
const { justify, gap, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getHstackStyle({justify, gap})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export * from './factory'
|
|
3
|
-
|
|
4
|
-
export * from './
|
|
5
|
-
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export
|
|
2
|
+
export * from './factory';
|
|
3
|
+
|
|
4
|
+
export * from './is-valid-prop';
|
|
5
|
+
|
|
6
|
+
export * from './box';
|
|
7
|
+
export * from './flex';
|
|
8
|
+
export * from './stack';
|
|
9
|
+
export * from './vstack';
|
|
10
|
+
export * from './hstack';
|
|
11
|
+
export * from './spacer';
|
|
12
|
+
export * from './square';
|
|
13
|
+
export * from './circle';
|
|
14
|
+
export * from './center';
|
|
15
|
+
export * from './link-box';
|
|
16
|
+
export * from './link-overlay';
|
|
17
|
+
export * from './aspect-ratio';
|
|
18
|
+
export * from './grid';
|
|
19
|
+
export * from './grid-item';
|
|
20
|
+
export * from './wrap';
|
|
21
|
+
export * from './container';
|
|
22
|
+
export * from './divider';
|
|
23
|
+
export * from './float';
|
|
24
|
+
export * from './bleed';
|
|
25
|
+
export * from './visually-hidden';
|
|
26
|
+
export * from './styled-link';
|
|
27
|
+
|
|
28
|
+
export type { HTMLPandaProps } from '../types/jsx';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export * from './factory.mjs'
|
|
2
|
-
export * from './is-valid-prop.mjs'
|
|
3
|
-
export * from './box.mjs'
|
|
4
|
-
export * from './flex.mjs'
|
|
5
|
-
export * from './stack.mjs'
|
|
6
|
-
export * from './vstack.mjs'
|
|
7
|
-
export * from './hstack.mjs'
|
|
8
|
-
export * from './spacer.mjs'
|
|
9
|
-
export * from './square.mjs'
|
|
10
|
-
export * from './circle.mjs'
|
|
11
|
-
export * from './center.mjs'
|
|
12
|
-
export * from './link-box.mjs'
|
|
13
|
-
export * from './link-overlay.mjs'
|
|
14
|
-
export * from './aspect-ratio.mjs'
|
|
15
|
-
export * from './grid.mjs'
|
|
16
|
-
export * from './grid-item.mjs'
|
|
17
|
-
export * from './wrap.mjs'
|
|
18
|
-
export * from './container.mjs'
|
|
19
|
-
export * from './divider.mjs'
|
|
20
|
-
export * from './float.mjs'
|
|
21
|
-
export * from './bleed.mjs'
|
|
22
|
-
export * from './visually-hidden.mjs'
|
|
23
|
-
export * from './styled-link.mjs'
|
|
1
|
+
export * from './factory.mjs';
|
|
2
|
+
export * from './is-valid-prop.mjs';
|
|
3
|
+
export * from './box.mjs';
|
|
4
|
+
export * from './flex.mjs';
|
|
5
|
+
export * from './stack.mjs';
|
|
6
|
+
export * from './vstack.mjs';
|
|
7
|
+
export * from './hstack.mjs';
|
|
8
|
+
export * from './spacer.mjs';
|
|
9
|
+
export * from './square.mjs';
|
|
10
|
+
export * from './circle.mjs';
|
|
11
|
+
export * from './center.mjs';
|
|
12
|
+
export * from './link-box.mjs';
|
|
13
|
+
export * from './link-overlay.mjs';
|
|
14
|
+
export * from './aspect-ratio.mjs';
|
|
15
|
+
export * from './grid.mjs';
|
|
16
|
+
export * from './grid-item.mjs';
|
|
17
|
+
export * from './wrap.mjs';
|
|
18
|
+
export * from './container.mjs';
|
|
19
|
+
export * from './divider.mjs';
|
|
20
|
+
export * from './float.mjs';
|
|
21
|
+
export * from './bleed.mjs';
|
|
22
|
+
export * from './visually-hidden.mjs';
|
|
23
|
+
export * from './styled-link.mjs';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { memo } from '../helpers.mjs'
|
|
1
|
+
import { memo } from '../helpers.mjs';
|
|
2
2
|
// src/index.ts
|
|
3
|
-
var userGeneratedStr =
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var properties = new Map(allCssProperties.map((prop) => [prop, true]))
|
|
10
|
-
var cssPropertySelectorRegex = /&|@/
|
|
3
|
+
var userGeneratedStr = "css,pos,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,insetInline,insetBlock,inset,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,insetX,insetY,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontWeight,fontSmoothing,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFrom,gradientTo,gradientVia,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationDelay,transformOrigin,scale,scaleX,scaleY,translate,translateX,translateY,accentColor,caretColor,scrollBehavior,scrollbar,scrollMargin,scrollMarginX,scrollMarginY,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingX,scrollPaddingY,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,touchAction,userSelect,fill,stroke,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,colorPalette,textStyle,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl"
|
|
4
|
+
var userGenerated = userGeneratedStr.split(",");
|
|
5
|
+
var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect";
|
|
6
|
+
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
|
7
|
+
var properties = new Map(allCssProperties.map((prop) => [prop, true]));
|
|
8
|
+
var cssPropertySelectorRegex = /&|@/;
|
|
11
9
|
var isCssProperty = /* @__PURE__ */ memo((prop) => {
|
|
12
|
-
return properties.has(prop) || prop.startsWith(
|
|
13
|
-
})
|
|
14
|
-
export {
|
|
10
|
+
return properties.has(prop) || prop.startsWith("--") || cssPropertySelectorRegex.test(prop);
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
allCssProperties,
|
|
14
|
+
isCssProperty
|
|
15
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
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'
|
|
3
|
+
import type { LinkBoxProperties } from '../patterns/link-box';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type LinkBoxProps = LinkBoxProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof LinkBoxProperties >
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getLinkBoxStyle } from '../patterns/link-box.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
4
4
|
|
|
5
5
|
export const LinkBox = /* @__PURE__ */ forwardRef(function LinkBox(props, ref) {
|
|
6
6
|
const styleProps = getLinkBoxStyle()
|
|
7
|
-
|
|
8
|
-
})
|
|
7
|
+
return createElement(panda.div, { ref, ...styleProps, ...props })
|
|
8
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { LinkOverlayProperties } from '../patterns/link-overlay'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { LinkOverlayProperties } from '../patterns/link-overlay';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type LinkOverlayProps = LinkOverlayProperties & DistributiveOmit<HTMLPandaProps<'a'>, keyof LinkOverlayProperties >
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs';
|
|
4
4
|
|
|
5
5
|
export const LinkOverlay = /* @__PURE__ */ forwardRef(function LinkOverlay(props, ref) {
|
|
6
6
|
const styleProps = getLinkOverlayStyle()
|
|
7
|
-
|
|
8
|
-
})
|
|
7
|
+
return createElement(panda.a, { ref, ...styleProps, ...props })
|
|
8
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { SpacerProperties } from '../patterns/spacer'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { SpacerProperties } from '../patterns/spacer';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type SpacerProps = SpacerProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof SpacerProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getSpacerStyle } from '../patterns/spacer.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getSpacerStyle } from '../patterns/spacer.mjs';
|
|
4
4
|
|
|
5
5
|
export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
|
|
6
6
|
const { size, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getSpacerStyle({size})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { SquareProperties } from '../patterns/square'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { SquareProperties } from '../patterns/square';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type SquareProps = SquareProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof SquareProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getSquareStyle } from '../patterns/square.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getSquareStyle } from '../patterns/square.mjs';
|
|
4
4
|
|
|
5
5
|
export const Square = /* @__PURE__ */ forwardRef(function Square(props, ref) {
|
|
6
6
|
const { size, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getSquareStyle({size})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { StackProperties } from '../patterns/stack'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { StackProperties } from '../patterns/stack';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type StackProps = StackProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof StackProperties >
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getStackStyle } from '../patterns/stack.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getStackStyle } from '../patterns/stack.mjs';
|
|
4
4
|
|
|
5
5
|
export const Stack = /* @__PURE__ */ forwardRef(function Stack(props, ref) {
|
|
6
6
|
const { align, justify, direction, gap, ...restProps } = props
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
7
|
+
const styleProps = getStackStyle({align, justify, direction, gap})
|
|
8
|
+
return createElement(panda.div, { ref, ...styleProps, ...restProps })
|
|
9
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
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'
|
|
3
|
+
import type { StyledLinkProperties } from '../patterns/styled-link';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type StyledLinkProps = StyledLinkProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof StyledLinkProperties >
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getStyledLinkStyle } from '../patterns/styled-link.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getStyledLinkStyle } from '../patterns/styled-link.mjs';
|
|
4
4
|
|
|
5
5
|
export const StyledLink = /* @__PURE__ */ forwardRef(function StyledLink(props, ref) {
|
|
6
6
|
const styleProps = getStyledLinkStyle()
|
|
7
|
-
|
|
8
|
-
})
|
|
7
|
+
return createElement(panda.div, { ref, ...styleProps, ...props })
|
|
8
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { VisuallyHiddenProperties } from '../patterns/visually-hidden'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { VisuallyHiddenProperties } from '../patterns/visually-hidden';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type VisuallyHiddenProps = VisuallyHiddenProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof VisuallyHiddenProperties >
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { panda } from './factory.mjs'
|
|
3
|
-
import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs'
|
|
2
|
+
import { panda } from './factory.mjs';
|
|
3
|
+
import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs';
|
|
4
4
|
|
|
5
5
|
export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) {
|
|
6
6
|
const styleProps = getVisuallyHiddenStyle()
|
|
7
|
-
|
|
8
|
-
})
|
|
7
|
+
return createElement(panda.div, { ref, ...styleProps, ...props })
|
|
8
|
+
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { VstackProperties } from '../patterns/vstack'
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx'
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types'
|
|
3
|
+
import type { VstackProperties } from '../patterns/vstack';
|
|
4
|
+
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
7
|
export type VstackProps = VstackProperties & DistributiveOmit<HTMLPandaProps<'div'>, keyof VstackProperties >
|
|
8
8
|
|