@mekari/pixel3-styled-system 0.0.1 → 0.0.3
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/CHANGELOG.md +12 -0
- package/jsx/aspect-ratio.d.ts +2 -2
- package/jsx/aspect-ratio.mjs +9 -7
- package/jsx/bleed.d.ts +2 -2
- package/jsx/bleed.mjs +10 -8
- package/jsx/box.d.ts +2 -2
- package/jsx/box.mjs +9 -7
- package/jsx/center.d.ts +2 -2
- package/jsx/center.mjs +9 -7
- package/jsx/circle.d.ts +2 -2
- package/jsx/circle.mjs +9 -7
- package/jsx/container.d.ts +2 -2
- package/jsx/container.mjs +9 -7
- package/jsx/divider.d.ts +2 -2
- package/jsx/divider.mjs +10 -8
- package/jsx/factory.d.ts +2 -2
- package/jsx/factory.mjs +9 -9
- package/jsx/flex.d.ts +2 -2
- package/jsx/flex.mjs +10 -8
- package/jsx/float.d.ts +2 -2
- package/jsx/float.mjs +10 -8
- package/jsx/grid-item.d.ts +2 -2
- package/jsx/grid-item.mjs +10 -8
- package/jsx/grid.d.ts +2 -2
- package/jsx/grid.mjs +10 -8
- package/jsx/hstack.d.ts +2 -2
- package/jsx/hstack.mjs +10 -8
- package/jsx/index.d.ts +1 -1
- package/jsx/link-box.d.ts +2 -2
- package/jsx/link-box.mjs +9 -7
- package/jsx/link-overlay.d.ts +2 -2
- package/jsx/link-overlay.mjs +9 -7
- package/jsx/spacer.d.ts +2 -2
- package/jsx/spacer.mjs +9 -7
- package/jsx/square.d.ts +2 -2
- package/jsx/square.mjs +9 -7
- package/jsx/stack.d.ts +2 -2
- package/jsx/stack.mjs +10 -8
- package/jsx/visually-hidden.d.ts +2 -2
- package/jsx/visually-hidden.mjs +9 -7
- package/jsx/vstack.d.ts +2 -2
- package/jsx/vstack.mjs +10 -8
- package/jsx/wrap.d.ts +2 -2
- package/jsx/wrap.mjs +10 -8
- package/package.json +1 -1
- package/recipes/banner-close-button-recipe.d.ts +27 -0
- package/recipes/banner-close-button-recipe.mjs +22 -0
- package/recipes/banner-description-recipe.d.ts +27 -0
- package/recipes/banner-description-recipe.mjs +22 -0
- package/recipes/banner-icon-recipe.d.ts +27 -0
- package/recipes/banner-icon-recipe.mjs +34 -0
- package/recipes/banner-icon-slot-recipe.d.ts +27 -0
- package/recipes/banner-icon-slot-recipe.mjs +34 -0
- package/recipes/banner-link-recipe.d.ts +27 -0
- package/recipes/banner-link-recipe.mjs +22 -0
- package/recipes/banner-recipe.d.ts +27 -0
- package/recipes/banner-recipe.mjs +31 -0
- package/recipes/banner-slot-recipe.d.ts +27 -0
- package/recipes/banner-slot-recipe.mjs +45 -0
- package/recipes/banner-title-recipe.d.ts +27 -0
- package/recipes/banner-title-recipe.mjs +22 -0
- package/recipes/dropzone-recipe.d.ts +27 -0
- package/recipes/dropzone-recipe.mjs +34 -0
- package/recipes/dropzone-slot-recipe.d.ts +27 -0
- package/recipes/dropzone-slot-recipe.mjs +70 -0
- package/recipes/index.d.ts +11 -1
- package/recipes/index.mjs +11 -1
- package/recipes/modal-slot-recipe.d.ts +27 -0
- package/recipes/modal-slot-recipe.mjs +75 -0
- package/recipes/tag-slot-recipe.mjs +9 -1
- package/recipes/upload-list-slot-recipe.d.ts +27 -0
- package/recipes/upload-list-slot-recipe.mjs +38 -0
- package/recipes/upload-slot-recipe.d.ts +27 -0
- package/recipes/upload-slot-recipe.mjs +34 -0
- package/tokens/index.css +16 -0
- package/tokens/index.mjs +108 -8
- package/tokens/tokens.d.ts +4 -4
- package/types/jsx.d.ts +9 -9
- package/types/prop-type.d.ts +1 -1
- package/types/static-css.d.ts +23 -17
package/CHANGELOG.md
CHANGED
package/jsx/aspect-ratio.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { AspectRatioProperties } from '../patterns/aspect-ratio';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface AspectRatioProps extends AspectRatioProperties, DistributiveOmit<
|
|
7
|
+
export interface AspectRatioProps extends AspectRatioProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const AspectRatio: FunctionalComponent<AspectRatioProps>
|
package/jsx/aspect-ratio.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getAspectRatioStyle } from '../patterns/aspect-ratio.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const AspectRatio = defineComponent({
|
|
6
|
+
export const AspectRatio = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'AspectRatio',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: ["ratio"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getAspectRatioStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/bleed.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { BleedProperties } from '../patterns/bleed';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface BleedProps extends BleedProperties, DistributiveOmit<
|
|
7
|
+
export interface BleedProps extends BleedProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof BleedProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Bleed: FunctionalComponent<BleedProps>
|
package/jsx/bleed.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getBleedStyle } from '../patterns/bleed.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Bleed = defineComponent({
|
|
6
|
+
export const Bleed = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Bleed',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["inline",
|
|
9
|
+
props: ["inline","block"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getBleedStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/box.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { BoxProperties } from '../patterns/box';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface BoxProps extends BoxProperties, DistributiveOmit<
|
|
7
|
+
export interface BoxProps extends BoxProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof BoxProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Box: FunctionalComponent<BoxProps>
|
package/jsx/box.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getBoxStyle } from '../patterns/box.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Box = defineComponent({
|
|
6
|
+
export const Box = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Box',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: [],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getBoxStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/center.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { CenterProperties } from '../patterns/center';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface CenterProps extends CenterProperties, DistributiveOmit<
|
|
7
|
+
export interface CenterProps extends CenterProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof CenterProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Center: FunctionalComponent<CenterProps>
|
package/jsx/center.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getCenterStyle } from '../patterns/center.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Center = defineComponent({
|
|
6
|
+
export const Center = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Center',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: ["inline"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getCenterStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/circle.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { CircleProperties } from '../patterns/circle';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface CircleProps extends CircleProperties, DistributiveOmit<
|
|
7
|
+
export interface CircleProps extends CircleProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof CircleProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Circle: FunctionalComponent<CircleProps>
|
package/jsx/circle.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getCircleStyle } from '../patterns/circle.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Circle = defineComponent({
|
|
6
|
+
export const Circle = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Circle',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: ["size"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getCircleStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/container.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { ContainerProperties } from '../patterns/container';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface ContainerProps extends ContainerProperties, DistributiveOmit<
|
|
7
|
+
export interface ContainerProps extends ContainerProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof ContainerProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Container: FunctionalComponent<ContainerProps>
|
package/jsx/container.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getContainerStyle } from '../patterns/container.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Container = defineComponent({
|
|
6
|
+
export const Container = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Container',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: [],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getContainerStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/divider.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { DividerProperties } from '../patterns/divider';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface DividerProps extends DividerProperties, DistributiveOmit<
|
|
7
|
+
export interface DividerProps extends DividerProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof DividerProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Divider: FunctionalComponent<DividerProps>
|
package/jsx/divider.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getDividerStyle } from '../patterns/divider.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Divider = defineComponent({
|
|
6
|
+
export const Divider = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Divider',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["orientation",
|
|
9
|
+
props: ["orientation","thickness","color"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getDividerStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/factory.d.ts
CHANGED
package/jsx/factory.mjs
CHANGED
|
@@ -17,8 +17,8 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
17
17
|
|
|
18
18
|
const name = getDisplayName(Dynamic)
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
name: `
|
|
20
|
+
const PixelComponent = defineComponent({
|
|
21
|
+
name: `Pixel.${name}`,
|
|
22
22
|
inheritAttrs: false,
|
|
23
23
|
props: { as: { type: [String, Object], default: Dynamic.__base__ || Dynamic } },
|
|
24
24
|
setup(props, { slots, attrs }) {
|
|
@@ -28,7 +28,7 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
28
28
|
const combinedProps = computed(() => Object.assign({}, defaultProps, attrs))
|
|
29
29
|
|
|
30
30
|
const splittedProps = computed(() => {
|
|
31
|
-
return splitProps(combinedProps.value, normalizeHTMLProps.keys,
|
|
31
|
+
return splitProps(combinedProps.value, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const recipeClass = computed(() => {
|
|
@@ -63,12 +63,12 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
63
63
|
},
|
|
64
64
|
})
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
PixelComponent.displayName = `Pixel.${name}`
|
|
67
|
+
PixelComponent.__cva__ = cvaFn
|
|
68
|
+
PixelComponent.__base__ = Dynamic
|
|
69
|
+
PixelComponent.__shouldForwardProps__ = shouldForwardProp
|
|
70
70
|
|
|
71
|
-
return
|
|
71
|
+
return PixelComponent
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
function createJsxFactory() {
|
|
@@ -82,4 +82,4 @@ function createJsxFactory() {
|
|
|
82
82
|
})
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export const
|
|
85
|
+
export const Pixel = /* @__PURE__ */ createJsxFactory()
|
package/jsx/flex.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { FlexProperties } from '../patterns/flex';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface FlexProps extends FlexProperties, DistributiveOmit<
|
|
7
|
+
export interface FlexProps extends FlexProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof FlexProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Flex: FunctionalComponent<FlexProps>
|
package/jsx/flex.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getFlexStyle } from '../patterns/flex.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Flex = defineComponent({
|
|
6
|
+
export const Flex = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Flex',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["align",
|
|
9
|
+
props: ["align","justify","direction","wrap","basis","grow","shrink"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getFlexStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/float.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { FloatProperties } from '../patterns/float';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface FloatProps extends FloatProperties, DistributiveOmit<
|
|
7
|
+
export interface FloatProps extends FloatProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof FloatProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Float: FunctionalComponent<FloatProps>
|
package/jsx/float.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getFloatStyle } from '../patterns/float.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Float = defineComponent({
|
|
6
|
+
export const Float = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Float',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["offsetX",
|
|
9
|
+
props: ["offsetX","offsetY","offset","placement"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getFloatStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/grid-item.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { GridItemProperties } from '../patterns/grid-item';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface GridItemProps extends GridItemProperties, DistributiveOmit<
|
|
7
|
+
export interface GridItemProps extends GridItemProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof GridItemProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const GridItem: FunctionalComponent<GridItemProps>
|
package/jsx/grid-item.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getGridItemStyle } from '../patterns/grid-item.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const GridItem = defineComponent({
|
|
6
|
+
export const GridItem = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'GridItem',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["colSpan",
|
|
9
|
+
props: ["colSpan","rowSpan","colStart","rowStart","colEnd","rowEnd"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getGridItemStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/grid.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { GridProperties } from '../patterns/grid';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface GridProps extends GridProperties, DistributiveOmit<
|
|
7
|
+
export interface GridProps extends GridProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof GridProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Grid: FunctionalComponent<GridProps>
|
package/jsx/grid.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getGridStyle } from '../patterns/grid.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const Grid = defineComponent({
|
|
6
|
+
export const Grid = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'Grid',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["gap",
|
|
9
|
+
props: ["gap","columnGap","rowGap","columns","minChildWidth"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getGridStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/hstack.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { HstackProperties } from '../patterns/hstack';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface HstackProps extends HstackProperties, DistributiveOmit<
|
|
7
|
+
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof HstackProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const HStack: FunctionalComponent<HstackProps>
|
package/jsx/hstack.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getHstackStyle } from '../patterns/hstack.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const HStack = defineComponent({
|
|
6
|
+
export const HStack = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'HStack',
|
|
7
8
|
inheritAttrs: false,
|
|
8
|
-
props: ["justify",
|
|
9
|
+
props: ["justify","gap"],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getHstackStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/index.d.ts
CHANGED
package/jsx/link-box.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { LinkBoxProperties } from '../patterns/link-box';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<
|
|
7
|
+
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLPixelProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const LinkBox: FunctionalComponent<LinkBoxProps>
|
package/jsx/link-box.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent, h, computed } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
3
|
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
4
|
+
import { Pixel } from './factory.mjs';
|
|
4
5
|
|
|
5
|
-
export const LinkBox = defineComponent({
|
|
6
|
+
export const LinkBox = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: 'LinkBox',
|
|
7
8
|
inheritAttrs: false,
|
|
8
9
|
props: [],
|
|
9
10
|
setup(props, { attrs, slots }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const styleProps = computed(() => getLinkBoxStyle(props))
|
|
12
|
+
|
|
13
|
+
return () => {
|
|
14
|
+
const mergedProps = { ...styleProps.value, ...attrs }
|
|
15
|
+
return h(Pixel.div, mergedProps, slots)
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
})
|
package/jsx/link-overlay.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { FunctionalComponent } from 'vue'
|
|
3
3
|
import type { LinkOverlayProperties } from '../patterns/link-overlay';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HTMLPixelProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<
|
|
7
|
+
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<HTMLPixelProps<'a'>, keyof LinkOverlayProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const LinkOverlay: FunctionalComponent<LinkOverlayProps>
|