cetec-design-system 0.0.20 → 0.0.21
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 +2 -3
- package/styled-system/css/conditions.js +0 -36
- package/styled-system/css/conditions.mjs +0 -36
- package/styled-system/css/css.d.ts +0 -22
- package/styled-system/css/css.js +0 -45
- package/styled-system/css/css.mjs +0 -45
- package/styled-system/css/cva.d.ts +0 -6
- package/styled-system/css/cva.js +0 -87
- package/styled-system/css/cva.mjs +0 -87
- package/styled-system/css/cx.d.ts +0 -5
- package/styled-system/css/cx.js +0 -15
- package/styled-system/css/cx.mjs +0 -15
- package/styled-system/css/index.d.ts +0 -5
- package/styled-system/css/index.js +0 -4
- package/styled-system/css/index.mjs +0 -4
- package/styled-system/css/sva.d.ts +0 -4
- package/styled-system/css/sva.js +0 -41
- package/styled-system/css/sva.mjs +0 -41
- package/styled-system/debug/config.json +0 -8379
- package/styled-system/debug/src__App.ast.json +0 -1291
- package/styled-system/debug/src__App.css +0 -830
- package/styled-system/debug/src__components__Button__Button.stories.ast.json +0 -244
- package/styled-system/debug/src__components__Button__Button.stories.css +0 -372
- package/styled-system/debug/src__components__Code__Code.ast.json +0 -32
- package/styled-system/debug/src__components__Code__Code.css +0 -25
- package/styled-system/debug/src__components__Code__Pre.ast.json +0 -53
- package/styled-system/debug/src__components__Code__Pre.css +0 -45
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +0 -68
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +0 -167
- package/styled-system/debug/src__components__Heading__Heading.ast.json +0 -59
- package/styled-system/debug/src__components__Heading__Heading.css +0 -25
- package/styled-system/debug/src__components__Icon__Icon.ast.json +0 -28
- package/styled-system/debug/src__components__Icon__Icon.css +0 -9
- package/styled-system/debug/src__components__Icon__iconStyle.ast.json +0 -27
- package/styled-system/debug/src__components__Icon__iconStyle.css +0 -5
- package/styled-system/debug/src__components__Input__Input.ast.json +0 -50
- package/styled-system/debug/src__components__Input__Input.css +0 -79
- package/styled-system/debug/src__components__Label__Label.ast.json +0 -45
- package/styled-system/debug/src__components__Label__Label.css +0 -40
- package/styled-system/debug/src__components__Link__Link.ast.json +0 -72
- package/styled-system/debug/src__components__Link__Link.css +0 -39
- package/styled-system/debug/src__components__Link__linkStyles.ast.json +0 -59
- package/styled-system/debug/src__components__Link__linkStyles.css +0 -77
- package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +0 -56
- package/styled-system/debug/src__components__Spinner__spinnerStyles.css +0 -69
- package/styled-system/debug/src__components__Text__Text.ast.json +0 -57
- package/styled-system/debug/src__components__Text__Text.css +0 -22
- package/styled-system/debug/src__components__Text__Text.stories.ast.json +0 -60
- package/styled-system/debug/src__components__Text__Text.stories.css +0 -40
- package/styled-system/debug/src__components__Textarea__Textarea.ast.json +0 -50
- package/styled-system/debug/src__components__Textarea__Textarea.css +0 -92
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +0 -42
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +0 -101
- package/styled-system/helpers.js +0 -336
- package/styled-system/helpers.mjs +0 -336
- package/styled-system/jsx/aspect-ratio.d.ts +0 -10
- package/styled-system/jsx/aspect-ratio.js +0 -14
- package/styled-system/jsx/aspect-ratio.mjs +0 -14
- package/styled-system/jsx/bleed.d.ts +0 -10
- package/styled-system/jsx/bleed.js +0 -14
- package/styled-system/jsx/bleed.mjs +0 -14
- package/styled-system/jsx/box.d.ts +0 -10
- package/styled-system/jsx/box.mjs +0 -14
- package/styled-system/jsx/center.d.ts +0 -10
- package/styled-system/jsx/center.js +0 -14
- package/styled-system/jsx/center.mjs +0 -14
- package/styled-system/jsx/circle.d.ts +0 -10
- package/styled-system/jsx/circle.js +0 -14
- package/styled-system/jsx/circle.mjs +0 -14
- package/styled-system/jsx/container.d.ts +0 -10
- package/styled-system/jsx/container.js +0 -14
- package/styled-system/jsx/container.mjs +0 -14
- package/styled-system/jsx/cq.d.ts +0 -10
- package/styled-system/jsx/cq.js +0 -14
- package/styled-system/jsx/cq.mjs +0 -14
- package/styled-system/jsx/divider.d.ts +0 -10
- package/styled-system/jsx/divider.mjs +0 -14
- package/styled-system/jsx/factory-helper.js +0 -22
- package/styled-system/jsx/factory-helper.mjs +0 -22
- package/styled-system/jsx/factory.d.ts +0 -3
- package/styled-system/jsx/factory.js +0 -80
- package/styled-system/jsx/factory.mjs +0 -80
- package/styled-system/jsx/flex.d.ts +0 -10
- package/styled-system/jsx/flex.js +0 -14
- package/styled-system/jsx/flex.mjs +0 -14
- package/styled-system/jsx/float.d.ts +0 -10
- package/styled-system/jsx/float.js +0 -14
- package/styled-system/jsx/float.mjs +0 -14
- package/styled-system/jsx/grid-item.d.ts +0 -10
- package/styled-system/jsx/grid-item.js +0 -14
- package/styled-system/jsx/grid-item.mjs +0 -14
- package/styled-system/jsx/grid.d.ts +0 -10
- package/styled-system/jsx/grid.js +0 -14
- package/styled-system/jsx/grid.mjs +0 -14
- package/styled-system/jsx/hstack.d.ts +0 -10
- package/styled-system/jsx/hstack.js +0 -14
- package/styled-system/jsx/hstack.mjs +0 -14
- package/styled-system/jsx/icon.d.ts +0 -10
- package/styled-system/jsx/icon.js +0 -14
- package/styled-system/jsx/icon.mjs +0 -14
- package/styled-system/jsx/index.d.ts +0 -23
- package/styled-system/jsx/index.js +0 -21
- package/styled-system/jsx/index.mjs +0 -21
- package/styled-system/jsx/is-valid-prop.d.ts +0 -11
- package/styled-system/jsx/is-valid-prop.js +0 -17
- package/styled-system/jsx/is-valid-prop.mjs +0 -17
- package/styled-system/jsx/link-overlay.d.ts +0 -10
- package/styled-system/jsx/link-overlay.js +0 -14
- package/styled-system/jsx/link-overlay.mjs +0 -14
- package/styled-system/jsx/spacer.d.ts +0 -10
- package/styled-system/jsx/spacer.js +0 -14
- package/styled-system/jsx/spacer.mjs +0 -14
- package/styled-system/jsx/square.d.ts +0 -10
- package/styled-system/jsx/square.js +0 -14
- package/styled-system/jsx/square.mjs +0 -14
- package/styled-system/jsx/stack.d.ts +0 -10
- package/styled-system/jsx/stack.js +0 -14
- package/styled-system/jsx/stack.mjs +0 -14
- package/styled-system/jsx/visually-hidden.d.ts +0 -10
- package/styled-system/jsx/visually-hidden.js +0 -14
- package/styled-system/jsx/visually-hidden.mjs +0 -14
- package/styled-system/jsx/vstack.d.ts +0 -10
- package/styled-system/jsx/vstack.js +0 -14
- package/styled-system/jsx/vstack.mjs +0 -14
- package/styled-system/jsx/wrap.d.ts +0 -10
- package/styled-system/jsx/wrap.js +0 -14
- package/styled-system/jsx/wrap.mjs +0 -14
- package/styled-system/patterns/aspect-ratio.d.ts +0 -21
- package/styled-system/patterns/aspect-ratio.js +0 -38
- package/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/styled-system/patterns/bleed.d.ts +0 -22
- package/styled-system/patterns/bleed.js +0 -24
- package/styled-system/patterns/bleed.mjs +0 -24
- package/styled-system/patterns/box.d.ts +0 -21
- package/styled-system/patterns/box.mjs +0 -15
- package/styled-system/patterns/center.d.ts +0 -21
- package/styled-system/patterns/center.js +0 -21
- package/styled-system/patterns/center.mjs +0 -21
- package/styled-system/patterns/circle.d.ts +0 -21
- package/styled-system/patterns/circle.js +0 -25
- package/styled-system/patterns/circle.mjs +0 -25
- package/styled-system/patterns/container.d.ts +0 -21
- package/styled-system/patterns/container.js +0 -24
- package/styled-system/patterns/container.mjs +0 -24
- package/styled-system/patterns/cq.d.ts +0 -22
- package/styled-system/patterns/cq.js +0 -21
- package/styled-system/patterns/cq.mjs +0 -21
- package/styled-system/patterns/divider.d.ts +0 -23
- package/styled-system/patterns/divider.mjs +0 -25
- package/styled-system/patterns/flex.d.ts +0 -27
- package/styled-system/patterns/flex.js +0 -26
- package/styled-system/patterns/flex.mjs +0 -26
- package/styled-system/patterns/float.d.ts +0 -24
- package/styled-system/patterns/float.js +0 -52
- package/styled-system/patterns/float.mjs +0 -52
- package/styled-system/patterns/grid-item.d.ts +0 -26
- package/styled-system/patterns/grid-item.js +0 -25
- package/styled-system/patterns/grid-item.mjs +0 -25
- package/styled-system/patterns/grid.d.ts +0 -25
- package/styled-system/patterns/grid.js +0 -27
- package/styled-system/patterns/grid.mjs +0 -27
- package/styled-system/patterns/hstack.d.ts +0 -22
- package/styled-system/patterns/hstack.js +0 -24
- package/styled-system/patterns/hstack.mjs +0 -24
- package/styled-system/patterns/icon.d.ts +0 -21
- package/styled-system/patterns/icon.js +0 -20
- package/styled-system/patterns/icon.mjs +0 -20
- package/styled-system/patterns/index.d.ts +0 -20
- package/styled-system/patterns/index.js +0 -19
- package/styled-system/patterns/index.mjs +0 -19
- package/styled-system/patterns/link-overlay.d.ts +0 -21
- package/styled-system/patterns/link-overlay.js +0 -24
- package/styled-system/patterns/link-overlay.mjs +0 -24
- package/styled-system/patterns/spacer.d.ts +0 -21
- package/styled-system/patterns/spacer.js +0 -21
- package/styled-system/patterns/spacer.mjs +0 -21
- package/styled-system/patterns/square.d.ts +0 -21
- package/styled-system/patterns/square.js +0 -24
- package/styled-system/patterns/square.mjs +0 -24
- package/styled-system/patterns/stack.d.ts +0 -24
- package/styled-system/patterns/stack.js +0 -24
- package/styled-system/patterns/stack.mjs +0 -24
- package/styled-system/patterns/visually-hidden.d.ts +0 -21
- package/styled-system/patterns/visually-hidden.js +0 -18
- package/styled-system/patterns/visually-hidden.mjs +0 -18
- package/styled-system/patterns/vstack.d.ts +0 -22
- package/styled-system/patterns/vstack.js +0 -24
- package/styled-system/patterns/vstack.mjs +0 -24
- package/styled-system/patterns/wrap.d.ts +0 -25
- package/styled-system/patterns/wrap.js +0 -25
- package/styled-system/patterns/wrap.mjs +0 -25
- package/styled-system/recipes/box.d.ts +0 -28
- package/styled-system/recipes/box.js +0 -24
- package/styled-system/recipes/box.mjs +0 -24
- package/styled-system/recipes/button.d.ts +0 -35
- package/styled-system/recipes/button.js +0 -41
- package/styled-system/recipes/button.mjs +0 -41
- package/styled-system/recipes/checkbox.d.ts +0 -28
- package/styled-system/recipes/checkbox.js +0 -40
- package/styled-system/recipes/checkbox.mjs +0 -40
- package/styled-system/recipes/code.d.ts +0 -28
- package/styled-system/recipes/code.js +0 -24
- package/styled-system/recipes/code.mjs +0 -24
- package/styled-system/recipes/create-recipe.js +0 -82
- package/styled-system/recipes/create-recipe.mjs +0 -82
- package/styled-system/recipes/divider.d.ts +0 -35
- package/styled-system/recipes/divider.js +0 -38
- package/styled-system/recipes/divider.mjs +0 -38
- package/styled-system/recipes/heading.d.ts +0 -31
- package/styled-system/recipes/heading.js +0 -33
- package/styled-system/recipes/heading.mjs +0 -33
- package/styled-system/recipes/icon-button.d.ts +0 -35
- package/styled-system/recipes/icon-button.js +0 -41
- package/styled-system/recipes/icon-button.mjs +0 -41
- package/styled-system/recipes/index.d.ts +0 -17
- package/styled-system/recipes/index.js +0 -15
- package/styled-system/recipes/index.mjs +0 -16
- package/styled-system/recipes/input.d.ts +0 -31
- package/styled-system/recipes/input.js +0 -31
- package/styled-system/recipes/input.mjs +0 -31
- package/styled-system/recipes/label.d.ts +0 -38
- package/styled-system/recipes/label.js +0 -83
- package/styled-system/recipes/label.mjs +0 -83
- package/styled-system/recipes/link.d.ts +0 -38
- package/styled-system/recipes/link.js +0 -83
- package/styled-system/recipes/link.mjs +0 -83
- package/styled-system/recipes/pre.d.ts +0 -28
- package/styled-system/recipes/pre.js +0 -24
- package/styled-system/recipes/pre.mjs +0 -24
- package/styled-system/recipes/radio-input.d.ts +0 -28
- package/styled-system/recipes/radio-input.mjs +0 -24
- package/styled-system/recipes/radio.d.ts +0 -28
- package/styled-system/recipes/radio.js +0 -40
- package/styled-system/recipes/radio.mjs +0 -40
- package/styled-system/recipes/spinner.d.ts +0 -31
- package/styled-system/recipes/spinner.js +0 -32
- package/styled-system/recipes/spinner.mjs +0 -32
- package/styled-system/recipes/switchbox.d.ts +0 -28
- package/styled-system/recipes/switchbox.mjs +0 -44
- package/styled-system/recipes/text.d.ts +0 -37
- package/styled-system/recipes/text.js +0 -80
- package/styled-system/recipes/text.mjs +0 -80
- package/styled-system/recipes/textarea.d.ts +0 -32
- package/styled-system/recipes/textarea.js +0 -32
- package/styled-system/recipes/textarea.mjs +0 -35
- package/styled-system/recipes/textinput.d.ts +0 -32
- package/styled-system/recipes/textinput.mjs +0 -35
- package/styled-system/styles.css +0 -2184
- package/styled-system/tokens/index.d.ts +0 -9
- package/styled-system/tokens/index.js +0 -1480
- package/styled-system/tokens/index.mjs +0 -1580
- package/styled-system/tokens/tokens.d.ts +0 -63
- package/styled-system/types/composition.d.ts +0 -164
- package/styled-system/types/conditions.d.ts +0 -306
- package/styled-system/types/csstype.d.ts +0 -21298
- package/styled-system/types/global.d.ts +0 -20
- package/styled-system/types/index.d.ts +0 -8
- package/styled-system/types/jsx.d.ts +0 -52
- package/styled-system/types/parts.d.ts +0 -8
- package/styled-system/types/pattern.d.ts +0 -78
- package/styled-system/types/prop-type.d.ts +0 -235
- package/styled-system/types/recipe.d.ts +0 -181
- package/styled-system/types/selectors.d.ts +0 -59
- package/styled-system/types/static-css.d.ts +0 -56
- package/styled-system/types/style-props.d.ts +0 -7468
- package/styled-system/types/system-types.d.ts +0 -109
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { isCssProperty } from './is-valid-prop.mjs';
|
|
2
|
-
|
|
3
|
-
export const defaultShouldForwardProp = (prop, variantKeys) => !variantKeys.includes(prop) && !isCssProperty(prop)
|
|
4
|
-
|
|
5
|
-
export const composeShouldForwardProps = (tag, shouldForwardProp) =>
|
|
6
|
-
tag.__shouldForwardProps__ && shouldForwardProp
|
|
7
|
-
? (propName) => tag.__shouldForwardProps__(propName) && shouldForwardProp(propName)
|
|
8
|
-
: shouldForwardProp
|
|
9
|
-
|
|
10
|
-
export const composeCvaFn = (cvaA, cvaB) => {
|
|
11
|
-
if (cvaA && !cvaB) return cvaA
|
|
12
|
-
if (!cvaA && cvaB) return cvaB
|
|
13
|
-
if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB)
|
|
14
|
-
const error = new TypeError('Cannot merge cva with recipe. Please use either cva or recipe.')
|
|
15
|
-
TypeError.captureStackTrace?.(error)
|
|
16
|
-
throw error
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const getDisplayName = (Component) => {
|
|
20
|
-
if (typeof Component === 'string') return Component
|
|
21
|
-
return Component?.displayName || Component?.name || 'Component'
|
|
22
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef, useMemo } from 'react'
|
|
2
|
-
import { css, cx, cva } from '../css/index.js';
|
|
3
|
-
import { defaultShouldForwardProp, composeShouldForwardProps, composeCvaFn, getDisplayName } from './factory-helper.js';
|
|
4
|
-
import { splitProps, normalizeHTMLProps } from '../helpers.js';
|
|
5
|
-
import { isCssProperty } from './is-valid-prop.js';
|
|
6
|
-
|
|
7
|
-
function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
8
|
-
const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
|
|
9
|
-
|
|
10
|
-
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
11
|
-
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
12
|
-
|
|
13
|
-
const defaultProps = Object.assign(
|
|
14
|
-
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
15
|
-
options.defaultProps,
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
19
|
-
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
20
|
-
const __base__ = Dynamic.__base__ || Dynamic
|
|
21
|
-
|
|
22
|
-
const StyledComponent = /* @__PURE__ */ forwardRef(function StyledComponent(props, ref) {
|
|
23
|
-
const { as: Element = __base__, children, ...restProps } = props
|
|
24
|
-
|
|
25
|
-
const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
|
|
26
|
-
|
|
27
|
-
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] = useMemo(() => {
|
|
28
|
-
return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
29
|
-
}, [combinedProps])
|
|
30
|
-
|
|
31
|
-
function recipeClass() {
|
|
32
|
-
const { css: cssStyles, ...propStyles } = styleProps
|
|
33
|
-
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
34
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function cvaClass() {
|
|
38
|
-
const { css: cssStyles, ...propStyles } = styleProps
|
|
39
|
-
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
40
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
44
|
-
|
|
45
|
-
return createElement(Element, {
|
|
46
|
-
ref,
|
|
47
|
-
...forwardedProps,
|
|
48
|
-
...elementProps,
|
|
49
|
-
...normalizeHTMLProps(htmlProps),
|
|
50
|
-
className: classes(),
|
|
51
|
-
}, combinedProps.children ?? children)
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
const name = getDisplayName(__base__)
|
|
55
|
-
|
|
56
|
-
StyledComponent.displayName = `styled.${name}`
|
|
57
|
-
StyledComponent.__cva__ = __cvaFn__
|
|
58
|
-
StyledComponent.__base__ = __base__
|
|
59
|
-
StyledComponent.__shouldForwardProps__ = shouldForwardProp
|
|
60
|
-
|
|
61
|
-
return StyledComponent
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function createJsxFactory() {
|
|
65
|
-
const cache = new Map()
|
|
66
|
-
|
|
67
|
-
return new Proxy(styledFn, {
|
|
68
|
-
apply(_, __, args) {
|
|
69
|
-
return styledFn(...args)
|
|
70
|
-
},
|
|
71
|
-
get(_, el) {
|
|
72
|
-
if (!cache.has(el)) {
|
|
73
|
-
cache.set(el, styledFn(el))
|
|
74
|
-
}
|
|
75
|
-
return cache.get(el)
|
|
76
|
-
},
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const styled = /* @__PURE__ */ createJsxFactory()
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef, useMemo } from 'react'
|
|
2
|
-
import { css, cx, cva } from '../css/index.mjs';
|
|
3
|
-
import { defaultShouldForwardProp, composeShouldForwardProps, composeCvaFn, getDisplayName } from './factory-helper.mjs';
|
|
4
|
-
import { splitProps, normalizeHTMLProps } from '../helpers.mjs';
|
|
5
|
-
import { isCssProperty } from './is-valid-prop.mjs';
|
|
6
|
-
|
|
7
|
-
function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
8
|
-
const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
|
|
9
|
-
|
|
10
|
-
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
11
|
-
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
12
|
-
|
|
13
|
-
const defaultProps = Object.assign(
|
|
14
|
-
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
15
|
-
options.defaultProps,
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
19
|
-
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
20
|
-
const __base__ = Dynamic.__base__ || Dynamic
|
|
21
|
-
|
|
22
|
-
const StyledComponent = /* @__PURE__ */ forwardRef(function StyledComponent(props, ref) {
|
|
23
|
-
const { as: Element = __base__, children, ...restProps } = props
|
|
24
|
-
|
|
25
|
-
const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
|
|
26
|
-
|
|
27
|
-
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] = useMemo(() => {
|
|
28
|
-
return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
29
|
-
}, [combinedProps])
|
|
30
|
-
|
|
31
|
-
function recipeClass() {
|
|
32
|
-
const { css: cssStyles, ...propStyles } = styleProps
|
|
33
|
-
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
34
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function cvaClass() {
|
|
38
|
-
const { css: cssStyles, ...propStyles } = styleProps
|
|
39
|
-
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
40
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
44
|
-
|
|
45
|
-
return createElement(Element, {
|
|
46
|
-
ref,
|
|
47
|
-
...forwardedProps,
|
|
48
|
-
...elementProps,
|
|
49
|
-
...normalizeHTMLProps(htmlProps),
|
|
50
|
-
className: classes(),
|
|
51
|
-
}, combinedProps.children ?? children)
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
const name = getDisplayName(__base__)
|
|
55
|
-
|
|
56
|
-
StyledComponent.displayName = `styled.${name}`
|
|
57
|
-
StyledComponent.__cva__ = __cvaFn__
|
|
58
|
-
StyledComponent.__base__ = __base__
|
|
59
|
-
StyledComponent.__shouldForwardProps__ = shouldForwardProp
|
|
60
|
-
|
|
61
|
-
return StyledComponent
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function createJsxFactory() {
|
|
65
|
-
const cache = new Map()
|
|
66
|
-
|
|
67
|
-
return new Proxy(styledFn, {
|
|
68
|
-
apply(_, __, args) {
|
|
69
|
-
return styledFn(...args)
|
|
70
|
-
},
|
|
71
|
-
get(_, el) {
|
|
72
|
-
if (!cache.has(el)) {
|
|
73
|
-
cache.set(el, styledFn(el))
|
|
74
|
-
}
|
|
75
|
-
return cache.get(el)
|
|
76
|
-
},
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const styled = /* @__PURE__ */ createJsxFactory()
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FlexProperties } from '../patterns/flex';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface FlexProps extends FlexProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof FlexProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Flex: FunctionComponent<FlexProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getFlexStyle } from '../patterns/flex.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const Flex = /* @__PURE__ */ forwardRef(function Flex(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["align","justify","direction","wrap","basis","grow","shrink"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getFlexStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getFlexStyle } from '../patterns/flex.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const Flex = /* @__PURE__ */ forwardRef(function Flex(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["align","justify","direction","wrap","basis","grow","shrink"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getFlexStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FloatProperties } from '../patterns/float';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface FloatProps extends FloatProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof FloatProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Float: FunctionComponent<FloatProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getFloatStyle } from '../patterns/float.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const Float = /* @__PURE__ */ forwardRef(function Float(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["offsetX","offsetY","offset","placement"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getFloatStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getFloatStyle } from '../patterns/float.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const Float = /* @__PURE__ */ forwardRef(function Float(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["offsetX","offsetY","offset","placement"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getFloatStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridItemProperties } from '../patterns/grid-item';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface GridItemProps extends GridItemProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof GridItemProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const GridItem: FunctionComponent<GridItemProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getGridItemStyle } from '../patterns/grid-item.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const GridItem = /* @__PURE__ */ forwardRef(function GridItem(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["colSpan","rowSpan","colStart","rowStart","colEnd","rowEnd"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getGridItemStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getGridItemStyle } from '../patterns/grid-item.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const GridItem = /* @__PURE__ */ forwardRef(function GridItem(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["colSpan","rowSpan","colStart","rowStart","colEnd","rowEnd"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getGridItemStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridProperties } from '../patterns/grid';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface GridProps extends GridProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof GridProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Grid: FunctionComponent<GridProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getGridStyle } from '../patterns/grid.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const Grid = /* @__PURE__ */ forwardRef(function Grid(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["gap","columnGap","rowGap","columns","minChildWidth"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getGridStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getGridStyle } from '../patterns/grid.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const Grid = /* @__PURE__ */ forwardRef(function Grid(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["gap","columnGap","rowGap","columns","minChildWidth"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getGridStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { HstackProperties } from '../patterns/hstack';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof HstackProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const HStack: FunctionComponent<HstackProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getHstackStyle } from '../patterns/hstack.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["justify","gap"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getHstackStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getHstackStyle } from '../patterns/hstack.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["justify","gap"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getHstackStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { IconProperties } from '../patterns/icon';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface IconProps extends IconProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof IconProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Icon: FunctionComponent<IconProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.js';
|
|
4
|
-
import { getIconStyle } from '../patterns/icon.js';
|
|
5
|
-
import { styled } from './factory.js';
|
|
6
|
-
|
|
7
|
-
export const Icon = /* @__PURE__ */ forwardRef(function Icon(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["size"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getIconStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getIconStyle } from '../patterns/icon.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const Icon = /* @__PURE__ */ forwardRef(function Icon(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, ["size"])
|
|
9
|
-
|
|
10
|
-
const styleProps = getIconStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export * from './factory';
|
|
3
|
-
export * from './is-valid-prop';
|
|
4
|
-
export * from './icon';
|
|
5
|
-
export * from './flex';
|
|
6
|
-
export * from './stack';
|
|
7
|
-
export * from './vstack';
|
|
8
|
-
export * from './hstack';
|
|
9
|
-
export * from './spacer';
|
|
10
|
-
export * from './square';
|
|
11
|
-
export * from './circle';
|
|
12
|
-
export * from './center';
|
|
13
|
-
export * from './link-overlay';
|
|
14
|
-
export * from './aspect-ratio';
|
|
15
|
-
export * from './grid';
|
|
16
|
-
export * from './grid-item';
|
|
17
|
-
export * from './wrap';
|
|
18
|
-
export * from './container';
|
|
19
|
-
export * from './float';
|
|
20
|
-
export * from './bleed';
|
|
21
|
-
export * from './visually-hidden';
|
|
22
|
-
export * from './cq';
|
|
23
|
-
export type { HTMLStyledProps, StyledComponent } from '../types/jsx';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from './factory.js';
|
|
2
|
-
export * from './is-valid-prop.js';
|
|
3
|
-
export * from './icon.js';
|
|
4
|
-
export * from './flex.js';
|
|
5
|
-
export * from './stack.js';
|
|
6
|
-
export * from './vstack.js';
|
|
7
|
-
export * from './hstack.js';
|
|
8
|
-
export * from './spacer.js';
|
|
9
|
-
export * from './square.js';
|
|
10
|
-
export * from './circle.js';
|
|
11
|
-
export * from './center.js';
|
|
12
|
-
export * from './link-overlay.js';
|
|
13
|
-
export * from './aspect-ratio.js';
|
|
14
|
-
export * from './grid.js';
|
|
15
|
-
export * from './grid-item.js';
|
|
16
|
-
export * from './wrap.js';
|
|
17
|
-
export * from './container.js';
|
|
18
|
-
export * from './float.js';
|
|
19
|
-
export * from './bleed.js';
|
|
20
|
-
export * from './visually-hidden.js';
|
|
21
|
-
export * from './cq.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from './factory.mjs';
|
|
2
|
-
export * from './is-valid-prop.mjs';
|
|
3
|
-
export * from './icon.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-overlay.mjs';
|
|
13
|
-
export * from './aspect-ratio.mjs';
|
|
14
|
-
export * from './grid.mjs';
|
|
15
|
-
export * from './grid-item.mjs';
|
|
16
|
-
export * from './wrap.mjs';
|
|
17
|
-
export * from './container.mjs';
|
|
18
|
-
export * from './float.mjs';
|
|
19
|
-
export * from './bleed.mjs';
|
|
20
|
-
export * from './visually-hidden.mjs';
|
|
21
|
-
export * from './cq.mjs';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { DistributiveOmit, HTMLPandaProps, JsxStyleProps, Pretty } from '../types';
|
|
3
|
-
|
|
4
|
-
declare const isCssProperty: (value: string) => boolean;
|
|
5
|
-
|
|
6
|
-
type CssPropKey = keyof JsxStyleProps
|
|
7
|
-
type OmittedCssProps<T> = Pretty<DistributiveOmit<T, CssPropKey>>
|
|
8
|
-
|
|
9
|
-
declare const splitCssProps: <T>(props: T) => [JsxStyleProps, OmittedCssProps<T>]
|
|
10
|
-
|
|
11
|
-
export { isCssProperty, splitCssProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.js';
|
|
2
|
-
import { memo } from '../helpers.js';
|
|
3
|
-
// src/index.ts
|
|
4
|
-
var userGeneratedStr = "css,pos,insetX,insetY,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,textShadowColor,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,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,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,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,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,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,colorPalette,_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,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_error,_hidden,_current,_today,_collapsed,_containerSmall,_containerMedium,_containerLarge,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,xsToSm,xsToMd,xsToLg,xsToXl,xsTo2xl,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,textStyle"
|
|
5
|
-
var userGenerated = userGeneratedStr.split(",");
|
|
6
|
-
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,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,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,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,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,overlay,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,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,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";
|
|
7
|
-
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
|
8
|
-
var properties = new Map(allCssProperties.map((prop) => [prop, true]));
|
|
9
|
-
var cssPropertySelectorRegex = /&|@/;
|
|
10
|
-
var isCssProperty = /* @__PURE__ */ memo((prop) => {
|
|
11
|
-
return properties.has(prop) || prop.startsWith("--") || cssPropertySelectorRegex.test(prop);
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
allCssProperties,
|
|
15
|
-
isCssProperty
|
|
16
|
-
};
|
|
17
|
-
export const splitCssProps = (props) => splitProps(props, isCssProperty)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { memo } from '../helpers.mjs';
|
|
3
|
-
// src/index.ts
|
|
4
|
-
var userGeneratedStr = "css,pos,insetX,insetY,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,textShadowColor,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,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,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,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,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,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,colorPalette,_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,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_error,_hidden,_current,_today,_collapsed,_containerSmall,_containerMedium,_containerLarge,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,xsToSm,xsToMd,xsToLg,xsToXl,xsTo2xl,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,textStyle"
|
|
5
|
-
var userGenerated = userGeneratedStr.split(",");
|
|
6
|
-
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,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,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,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,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,overlay,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,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,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";
|
|
7
|
-
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
|
8
|
-
var properties = new Map(allCssProperties.map((prop) => [prop, true]));
|
|
9
|
-
var cssPropertySelectorRegex = /&|@/;
|
|
10
|
-
var isCssProperty = /* @__PURE__ */ memo((prop) => {
|
|
11
|
-
return properties.has(prop) || prop.startsWith("--") || cssPropertySelectorRegex.test(prop);
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
allCssProperties,
|
|
15
|
-
isCssProperty
|
|
16
|
-
};
|
|
17
|
-
export const splitCssProps = (props) => splitProps(props, isCssProperty)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { LinkOverlayProperties } from '../patterns/link-overlay';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<HTMLStyledProps<'a'>, keyof LinkOverlayProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const LinkOverlay: FunctionComponent<LinkOverlayProps>
|