@mekari/pixel3-styled-system 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +16 -0
- package/chunks/packages__accordion__src__accordion.css +10 -0
- package/chunks/packages__avatar2__src__modules__avatar.recipes.css +166 -0
- package/chunks/packages__avatar__src__avatar.style.css +150 -0
- package/chunks/packages__avatar__src__avatar.styles.css +171 -0
- package/chunks/packages__avatar__src__modules__avatar.recipes.css +191 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-accordion__src__accordion.css +10 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar2__src__modules__avatar.recipes.css +166 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.css +16 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.style.css +150 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.styles.css +171 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__modules__avatar.recipes.css +191 -0
- package/css/conditions.mjs +34 -0
- package/css/css.d.ts +9 -0
- package/css/css.mjs +44 -0
- package/css/cva.d.ts +6 -0
- package/css/cva.mjs +85 -0
- package/css/cx.d.ts +5 -0
- package/css/cx.mjs +15 -0
- package/css/index.d.ts +5 -0
- package/css/index.mjs +4 -0
- package/css/sva.d.ts +4 -0
- package/css/sva.mjs +35 -0
- package/global.css +59 -0
- package/helpers.mjs +300 -0
- package/jsx/aspect-ratio.d.ts +10 -0
- package/jsx/aspect-ratio.mjs +16 -0
- package/jsx/bleed.d.ts +10 -0
- package/jsx/bleed.mjs +16 -0
- package/jsx/box.d.ts +10 -0
- package/jsx/box.mjs +16 -0
- package/jsx/center.d.ts +10 -0
- package/jsx/center.mjs +16 -0
- package/jsx/circle.d.ts +10 -0
- package/jsx/circle.mjs +16 -0
- package/jsx/container.d.ts +10 -0
- package/jsx/container.mjs +16 -0
- package/jsx/divider.d.ts +10 -0
- package/jsx/divider.mjs +16 -0
- package/jsx/factory-helper.mjs +22 -0
- package/jsx/factory.d.ts +4 -0
- package/jsx/factory.mjs +85 -0
- package/jsx/flex.d.ts +10 -0
- package/jsx/flex.mjs +16 -0
- package/jsx/float.d.ts +10 -0
- package/jsx/float.mjs +16 -0
- package/jsx/grid-item.d.ts +10 -0
- package/jsx/grid-item.mjs +16 -0
- package/jsx/grid.d.ts +10 -0
- package/jsx/grid.mjs +16 -0
- package/jsx/hstack.d.ts +10 -0
- package/jsx/hstack.mjs +16 -0
- package/jsx/index.d.ts +27 -0
- package/jsx/index.mjs +22 -0
- package/jsx/is-valid-prop.d.ts +5 -0
- package/jsx/is-valid-prop.mjs +17 -0
- package/jsx/link-box.d.ts +10 -0
- package/jsx/link-box.mjs +16 -0
- package/jsx/link-overlay.d.ts +10 -0
- package/jsx/link-overlay.mjs +16 -0
- package/jsx/spacer.d.ts +10 -0
- package/jsx/spacer.mjs +16 -0
- package/jsx/square.d.ts +10 -0
- package/jsx/square.mjs +16 -0
- package/jsx/stack.d.ts +10 -0
- package/jsx/stack.mjs +16 -0
- package/jsx/visually-hidden.d.ts +10 -0
- package/jsx/visually-hidden.mjs +16 -0
- package/jsx/vstack.d.ts +10 -0
- package/jsx/vstack.mjs +16 -0
- package/jsx/wrap.d.ts +10 -0
- package/jsx/wrap.mjs +16 -0
- package/package.json +40 -0
- package/patterns/aspect-ratio.d.ts +21 -0
- package/patterns/aspect-ratio.mjs +35 -0
- package/patterns/bleed.d.ts +22 -0
- package/patterns/bleed.mjs +19 -0
- package/patterns/box.d.ts +21 -0
- package/patterns/box.mjs +12 -0
- package/patterns/center.d.ts +21 -0
- package/patterns/center.mjs +18 -0
- package/patterns/circle.d.ts +21 -0
- package/patterns/circle.mjs +22 -0
- package/patterns/container.d.ts +21 -0
- package/patterns/container.mjs +18 -0
- package/patterns/divider.d.ts +23 -0
- package/patterns/divider.mjs +21 -0
- package/patterns/flex.d.ts +27 -0
- package/patterns/flex.mjs +23 -0
- package/patterns/float.d.ts +24 -0
- package/patterns/float.mjs +45 -0
- package/patterns/grid-item.d.ts +26 -0
- package/patterns/grid-item.mjs +22 -0
- package/patterns/grid.d.ts +25 -0
- package/patterns/grid.mjs +22 -0
- package/patterns/hstack.d.ts +22 -0
- package/patterns/hstack.mjs +20 -0
- package/patterns/index.d.ts +21 -0
- package/patterns/index.mjs +20 -0
- package/patterns/link-box.d.ts +21 -0
- package/patterns/link-box.mjs +19 -0
- package/patterns/link-overlay.d.ts +21 -0
- package/patterns/link-overlay.mjs +24 -0
- package/patterns/spacer.d.ts +21 -0
- package/patterns/spacer.mjs +18 -0
- package/patterns/square.d.ts +21 -0
- package/patterns/square.mjs +21 -0
- package/patterns/stack.d.ts +24 -0
- package/patterns/stack.mjs +20 -0
- package/patterns/visually-hidden.d.ts +21 -0
- package/patterns/visually-hidden.mjs +15 -0
- package/patterns/vstack.d.ts +22 -0
- package/patterns/vstack.mjs +20 -0
- package/patterns/wrap.d.ts +25 -0
- package/patterns/wrap.mjs +22 -0
- package/recipes/accordion.d.ts +27 -0
- package/recipes/accordion.mjs +50 -0
- package/recipes/avatar-group-recipe.d.ts +27 -0
- package/recipes/avatar-group-recipe.mjs +43 -0
- package/recipes/avatar-group-slot-recipe.d.ts +27 -0
- package/recipes/avatar-group-slot-recipe.mjs +43 -0
- package/recipes/avatar-recipe.d.ts +30 -0
- package/recipes/avatar-recipe.mjs +122 -0
- package/recipes/avatar-slot-recipe.d.ts +29 -0
- package/recipes/avatar-slot-recipe.mjs +116 -0
- package/recipes/badge-recipe.d.ts +29 -0
- package/recipes/badge-recipe.mjs +160 -0
- package/recipes/button-group-recipe.d.ts +27 -0
- package/recipes/button-group-recipe.mjs +22 -0
- package/recipes/button-recipe.d.ts +28 -0
- package/recipes/button-recipe.mjs +94 -0
- package/recipes/checkbox-slot-recipe.d.ts +27 -0
- package/recipes/checkbox-slot-recipe.mjs +38 -0
- package/recipes/create-recipe.d.ts +1 -0
- package/recipes/create-recipe.mjs +79 -0
- package/recipes/icon-recipe.d.ts +27 -0
- package/recipes/icon-recipe.mjs +29 -0
- package/recipes/index.d.ts +30 -0
- package/recipes/index.mjs +29 -0
- package/recipes/input-addon-recipe.d.ts +29 -0
- package/recipes/input-addon-recipe.mjs +107 -0
- package/recipes/input-addon-slot-recipe.d.ts +28 -0
- package/recipes/input-addon-slot-recipe.mjs +45 -0
- package/recipes/input-group-recipe.d.ts +27 -0
- package/recipes/input-group-recipe.mjs +30 -0
- package/recipes/input-group-slot-recipe.d.ts +27 -0
- package/recipes/input-group-slot-recipe.mjs +30 -0
- package/recipes/input-recipe.d.ts +30 -0
- package/recipes/input-recipe.mjs +63 -0
- package/recipes/input-slot-recipe.d.ts +28 -0
- package/recipes/input-slot-recipe.mjs +53 -0
- package/recipes/popover-content-recipe.d.ts +28 -0
- package/recipes/popover-content-recipe.mjs +34 -0
- package/recipes/popover-list-item-recipe.d.ts +27 -0
- package/recipes/popover-list-item-recipe.mjs +22 -0
- package/recipes/popover-list-recipe.d.ts +27 -0
- package/recipes/popover-list-recipe.mjs +22 -0
- package/recipes/progress-slot-recipe.d.ts +28 -0
- package/recipes/progress-slot-recipe.mjs +57 -0
- package/recipes/radio-slot-recipe.d.ts +27 -0
- package/recipes/radio-slot-recipe.mjs +38 -0
- package/recipes/select-slot-recipe.d.ts +27 -0
- package/recipes/select-slot-recipe.mjs +51 -0
- package/recipes/selected-border-recipe.d.ts +28 -0
- package/recipes/selected-border-recipe.mjs +88 -0
- package/recipes/shared-slot-recipe.d.ts +27 -0
- package/recipes/shared-slot-recipe.mjs +30 -0
- package/recipes/spinner-recipe.d.ts +27 -0
- package/recipes/spinner-recipe.mjs +29 -0
- package/recipes/tab-list-recipe.d.ts +27 -0
- package/recipes/tab-list-recipe.mjs +22 -0
- package/recipes/tab-recipe.d.ts +28 -0
- package/recipes/tab-recipe.mjs +87 -0
- package/recipes/table-container-recipe.d.ts +27 -0
- package/recipes/table-container-recipe.mjs +22 -0
- package/recipes/table-head-recipe.d.ts +27 -0
- package/recipes/table-head-recipe.mjs +22 -0
- package/recipes/table-recipe.d.ts +27 -0
- package/recipes/table-recipe.mjs +22 -0
- package/recipes/tag-recipe.d.ts +28 -0
- package/recipes/tag-recipe.mjs +66 -0
- package/recipes/tag-slot-recipe.d.ts +28 -0
- package/recipes/tag-slot-recipe.mjs +66 -0
- package/recipes/text-recipe.d.ts +28 -0
- package/recipes/text-recipe.mjs +40 -0
- package/recipes/textarea-recipe.d.ts +27 -0
- package/recipes/textarea-recipe.mjs +26 -0
- package/recipes/toggle-slot-recipe.d.ts +27 -0
- package/recipes/toggle-slot-recipe.mjs +38 -0
- package/recipes/tooltip-recipe.d.ts +27 -0
- package/recipes/tooltip-recipe.mjs +22 -0
- package/reset.css +214 -0
- package/styles.css +246 -0
- package/tokens/index.css +179 -0
- package/tokens/index.d.ts +9 -0
- package/tokens/index.mjs +848 -0
- package/tokens/keyframes.css +23 -0
- package/tokens/tokens.d.ts +57 -0
- package/types/composition.d.ts +111 -0
- package/types/conditions.d.ts +256 -0
- package/types/csstype.d.ts +20749 -0
- package/types/global.d.ts +19 -0
- package/types/index.d.ts +8 -0
- package/types/jsx.d.ts +54 -0
- package/types/parts.d.ts +8 -0
- package/types/pattern.d.ts +63 -0
- package/types/prop-type.d.ts +317 -0
- package/types/recipe.d.ts +146 -0
- package/types/selectors.d.ts +59 -0
- package/types/style-props.d.ts +653 -0
- package/types/system-types.d.ts +93 -0
package/jsx/center.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { CenterProperties } from '../patterns/center';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface CenterProps extends CenterProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof CenterProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Center: FunctionalComponent<CenterProps>
|
package/jsx/center.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getCenterStyle } from '../patterns/center.mjs';
|
|
4
|
+
|
|
5
|
+
export const Center = defineComponent({
|
|
6
|
+
name: 'Center',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["inline"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getCenterStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/circle.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { CircleProperties } from '../patterns/circle';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface CircleProps extends CircleProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof CircleProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Circle: FunctionalComponent<CircleProps>
|
package/jsx/circle.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getCircleStyle } from '../patterns/circle.mjs';
|
|
4
|
+
|
|
5
|
+
export const Circle = defineComponent({
|
|
6
|
+
name: 'Circle',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["size"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getCircleStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { ContainerProperties } from '../patterns/container';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface ContainerProps extends ContainerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof ContainerProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Container: FunctionalComponent<ContainerProps>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getContainerStyle } from '../patterns/container.mjs';
|
|
4
|
+
|
|
5
|
+
export const Container = defineComponent({
|
|
6
|
+
name: 'Container',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: [],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getContainerStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/divider.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { DividerProperties } from '../patterns/divider';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface DividerProps extends DividerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof DividerProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Divider: FunctionalComponent<DividerProps>
|
package/jsx/divider.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getDividerStyle } from '../patterns/divider.mjs';
|
|
4
|
+
|
|
5
|
+
export const Divider = defineComponent({
|
|
6
|
+
name: 'Divider',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["orientation", "thickness", "color"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getDividerStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
package/jsx/factory.d.ts
ADDED
package/jsx/factory.mjs
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { defaultShouldForwardProp, composeShouldForwardProps, composeCvaFn, getDisplayName } from './factory-helper.mjs';
|
|
3
|
+
import { isCssProperty } from './is-valid-prop.mjs';
|
|
4
|
+
import { css, cx, cva } from '../css/index.mjs';
|
|
5
|
+
import { splitProps, normalizeHTMLProps } from '../helpers.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 name = getDisplayName(Dynamic)
|
|
19
|
+
|
|
20
|
+
const StyledComponent = defineComponent({
|
|
21
|
+
name: `styled.${name}`,
|
|
22
|
+
inheritAttrs: false,
|
|
23
|
+
props: { as: { type: [String, Object], default: Dynamic.__base__ || Dynamic } },
|
|
24
|
+
setup(props, { slots, attrs }) {
|
|
25
|
+
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
26
|
+
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
27
|
+
|
|
28
|
+
const combinedProps = computed(() => Object.assign({}, defaultProps, attrs))
|
|
29
|
+
|
|
30
|
+
const splittedProps = computed(() => {
|
|
31
|
+
return splitProps(combinedProps.value, normalizeHTMLProps.keys, shouldForwardProp, __cvaFn__.variantKeys, isCssProperty)
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const recipeClass = computed(() => {
|
|
35
|
+
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
36
|
+
const { css: cssStyles, ...propStyles } = styleProps
|
|
37
|
+
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
38
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const cvaClass = computed(() => {
|
|
42
|
+
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
43
|
+
const { css: cssStyles, ...propStyles } = styleProps
|
|
44
|
+
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
45
|
+
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
49
|
+
|
|
50
|
+
return () => {
|
|
51
|
+
const [htmlProps, forwardedProps, _variantProps, _styleProps, elementProps] = splittedProps.value
|
|
52
|
+
return h(
|
|
53
|
+
props.as,
|
|
54
|
+
{
|
|
55
|
+
...forwardedProps,
|
|
56
|
+
...elementProps,
|
|
57
|
+
...normalizeHTMLProps(htmlProps),
|
|
58
|
+
class: classes.value,
|
|
59
|
+
},
|
|
60
|
+
slots.default && slots.default(),
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
StyledComponent.displayName = `styled.${name}`
|
|
67
|
+
StyledComponent.__cva__ = cvaFn
|
|
68
|
+
StyledComponent.__base__ = Dynamic
|
|
69
|
+
StyledComponent.__shouldForwardProps__ = shouldForwardProp
|
|
70
|
+
|
|
71
|
+
return StyledComponent
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function createJsxFactory() {
|
|
75
|
+
return new Proxy(styledFn, {
|
|
76
|
+
apply(_, __, args) {
|
|
77
|
+
return styledFn(...args)
|
|
78
|
+
},
|
|
79
|
+
get(_, el) {
|
|
80
|
+
return styledFn(el)
|
|
81
|
+
},
|
|
82
|
+
})
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const styled = /* @__PURE__ */ createJsxFactory()
|
package/jsx/flex.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<FlexProps>
|
package/jsx/flex.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getFlexStyle } from '../patterns/flex.mjs';
|
|
4
|
+
|
|
5
|
+
export const Flex = defineComponent({
|
|
6
|
+
name: 'Flex',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["align", "justify", "direction", "wrap", "basis", "grow", "shrink"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getFlexStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/float.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<FloatProps>
|
package/jsx/float.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getFloatStyle } from '../patterns/float.mjs';
|
|
4
|
+
|
|
5
|
+
export const Float = defineComponent({
|
|
6
|
+
name: 'Float',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["offsetX", "offsetY", "offset", "placement"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getFloatStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<GridItemProps>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getGridItemStyle } from '../patterns/grid-item.mjs';
|
|
4
|
+
|
|
5
|
+
export const GridItem = defineComponent({
|
|
6
|
+
name: 'GridItem',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["colSpan", "rowSpan", "colStart", "rowStart", "colEnd", "rowEnd"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getGridItemStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/grid.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<GridProps>
|
package/jsx/grid.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getGridStyle } from '../patterns/grid.mjs';
|
|
4
|
+
|
|
5
|
+
export const Grid = defineComponent({
|
|
6
|
+
name: 'Grid',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["gap", "columnGap", "rowGap", "columns", "minChildWidth"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getGridStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/hstack.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<HstackProps>
|
package/jsx/hstack.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getHstackStyle } from '../patterns/hstack.mjs';
|
|
4
|
+
|
|
5
|
+
export const HStack = defineComponent({
|
|
6
|
+
name: 'HStack',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["justify", "gap"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getHstackStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
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
|
+
|
|
27
|
+
export type { HTMLStyledProps, StyledComponent } from '../types/jsx';
|
package/jsx/index.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { memo } from '../helpers.mjs';
|
|
3
|
+
// src/index.ts
|
|
4
|
+
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,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,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,strokeWidth,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,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_hidden,_collapsed,_hasIcon,_highlight,_hasBorder,_hasBackground,_isFullWidth,_placementLeft,_placementRight,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl"
|
|
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,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";
|
|
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 = /* @__PURE__ */ (props) => splitProps(props, isCssProperty)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { LinkBoxProperties } from '../patterns/link-box';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const LinkBox: FunctionalComponent<LinkBoxProps>
|
package/jsx/link-box.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
4
|
+
|
|
5
|
+
export const LinkBox = defineComponent({
|
|
6
|
+
name: 'LinkBox',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: [],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getLinkBoxStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
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: FunctionalComponent<LinkOverlayProps>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs';
|
|
4
|
+
|
|
5
|
+
export const LinkOverlay = defineComponent({
|
|
6
|
+
name: 'LinkOverlay',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: [],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getLinkOverlayStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.a, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/spacer.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { SpacerProperties } from '../patterns/spacer';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface SpacerProps extends SpacerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SpacerProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Spacer: FunctionalComponent<SpacerProps>
|
package/jsx/spacer.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getSpacerStyle } from '../patterns/spacer.mjs';
|
|
4
|
+
|
|
5
|
+
export const Spacer = defineComponent({
|
|
6
|
+
name: 'Spacer',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["size"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getSpacerStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/square.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { SquareProperties } from '../patterns/square';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface SquareProps extends SquareProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SquareProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Square: FunctionalComponent<SquareProps>
|
package/jsx/square.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getSquareStyle } from '../patterns/square.mjs';
|
|
4
|
+
|
|
5
|
+
export const Square = defineComponent({
|
|
6
|
+
name: 'Square',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["size"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getSquareStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jsx/stack.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { StackProperties } from '../patterns/stack';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface StackProps extends StackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof StackProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Stack: FunctionalComponent<StackProps>
|
package/jsx/stack.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2
|
+
import { styled } from './factory.mjs';
|
|
3
|
+
import { getStackStyle } from '../patterns/stack.mjs';
|
|
4
|
+
|
|
5
|
+
export const Stack = defineComponent({
|
|
6
|
+
name: 'Stack',
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: ["align", "justify", "direction", "gap"],
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
const styleProps = computed(() => getStackStyle(props))
|
|
11
|
+
return () => {
|
|
12
|
+
const computedProps = { ...styleProps.value, ...attrs }
|
|
13
|
+
return h(styled.div, computedProps, slots)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionalComponent } from 'vue'
|
|
3
|
+
import type { VisuallyHiddenProperties } from '../patterns/visually-hidden';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
|
|
7
|
+
export interface VisuallyHiddenProps extends VisuallyHiddenProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof VisuallyHiddenProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const VisuallyHidden: FunctionalComponent<VisuallyHiddenProps>
|