@mekari/pixel3-styled-system 0.0.7 → 0.0.8
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 +14 -0
- package/css/conditions.mjs +1 -1
- package/css/css.d.ts +15 -2
- package/css/css.mjs +2 -1
- package/css/cva.d.ts +1 -1
- package/css/cva.mjs +3 -1
- package/css/sva.mjs +8 -2
- package/helpers.mjs +44 -48
- package/jsx/aspect-ratio.mjs +1 -1
- package/jsx/bleed.mjs +1 -1
- package/jsx/box.mjs +1 -1
- package/jsx/center.mjs +1 -1
- package/jsx/circle.mjs +1 -1
- package/jsx/container.mjs +1 -1
- package/jsx/cq.mjs +1 -1
- package/jsx/divider.mjs +1 -1
- package/jsx/factory.mjs +46 -18
- package/jsx/flex.mjs +1 -1
- package/jsx/float.mjs +1 -1
- package/jsx/grid-item.mjs +1 -1
- package/jsx/grid.mjs +1 -1
- package/jsx/hstack.mjs +1 -1
- package/jsx/index.d.ts +0 -1
- package/jsx/index.mjs +0 -1
- package/jsx/is-valid-prop.d.ts +1 -2
- package/jsx/is-valid-prop.mjs +2 -2
- package/jsx/link-overlay.mjs +1 -1
- package/jsx/spacer.mjs +1 -1
- package/jsx/square.mjs +1 -1
- package/jsx/stack.mjs +1 -1
- package/jsx/visually-hidden.mjs +1 -1
- package/jsx/vstack.mjs +1 -1
- package/jsx/wrap.mjs +1 -1
- package/package.json +1 -1
- package/patterns/aspect-ratio.d.ts +1 -1
- package/patterns/bleed.d.ts +3 -3
- package/patterns/box.d.ts +1 -1
- package/patterns/center.d.ts +1 -1
- package/patterns/circle.d.ts +2 -2
- package/patterns/container.d.ts +1 -1
- package/patterns/cq.d.ts +2 -2
- package/patterns/divider.d.ts +1 -1
- package/patterns/flex.d.ts +8 -8
- package/patterns/float.d.ts +1 -1
- package/patterns/grid-item.d.ts +1 -1
- package/patterns/grid.d.ts +4 -4
- package/patterns/hstack.d.ts +3 -3
- package/patterns/index.d.ts +0 -1
- package/patterns/index.mjs +0 -1
- package/patterns/link-overlay.d.ts +1 -1
- package/patterns/link-overlay.mjs +0 -3
- package/patterns/spacer.d.ts +1 -1
- package/patterns/square.d.ts +2 -2
- package/patterns/stack.d.ts +5 -5
- package/patterns/visually-hidden.d.ts +1 -1
- package/patterns/vstack.d.ts +3 -3
- package/patterns/wrap.d.ts +6 -6
- package/recipes/accordion.d.ts +1 -0
- package/recipes/accordion.mjs +4 -2
- package/recipes/avatar-group-slot-recipe.d.ts +1 -0
- package/recipes/avatar-group-slot-recipe.mjs +4 -2
- package/recipes/avatar-slot-recipe.d.ts +1 -0
- package/recipes/avatar-slot-recipe.mjs +4 -2
- package/recipes/badge-recipe.d.ts +1 -0
- package/recipes/badge-recipe.mjs +3 -1
- package/recipes/banner-close-button-recipe.d.ts +1 -0
- package/recipes/banner-close-button-recipe.mjs +3 -1
- package/recipes/banner-description-recipe.d.ts +1 -0
- package/recipes/banner-description-recipe.mjs +3 -1
- package/recipes/banner-icon-slot-recipe.d.ts +1 -0
- package/recipes/banner-icon-slot-recipe.mjs +4 -2
- package/recipes/banner-link-recipe.d.ts +1 -0
- package/recipes/banner-link-recipe.mjs +3 -1
- package/recipes/banner-slot-recipe.d.ts +1 -0
- package/recipes/banner-slot-recipe.mjs +4 -2
- package/recipes/banner-title-recipe.d.ts +1 -0
- package/recipes/banner-title-recipe.mjs +3 -1
- package/recipes/broadcast-slot-recipe.d.ts +1 -0
- package/recipes/broadcast-slot-recipe.mjs +4 -2
- package/recipes/button-group-recipe.d.ts +1 -0
- package/recipes/button-group-recipe.mjs +3 -1
- package/recipes/button-recipe.d.ts +1 -0
- package/recipes/button-recipe.mjs +3 -1
- package/recipes/calendar-panel-range-recipe.d.ts +1 -0
- package/recipes/calendar-panel-range-recipe.mjs +3 -1
- package/recipes/carousel-slot-recipe.d.ts +1 -0
- package/recipes/carousel-slot-recipe.mjs +4 -2
- package/recipes/chart-slot-recipe.d.ts +28 -0
- package/recipes/chart-slot-recipe.mjs +80 -0
- package/recipes/checkbox-slot-recipe.d.ts +1 -0
- package/recipes/checkbox-slot-recipe.mjs +4 -2
- package/recipes/create-recipe.mjs +8 -5
- package/recipes/date-item-recipe.d.ts +1 -0
- package/recipes/date-item-recipe.mjs +3 -1
- package/recipes/date-picker-slot-recipe.d.ts +1 -0
- package/recipes/date-picker-slot-recipe.mjs +4 -2
- package/recipes/day-item-recipe.d.ts +1 -0
- package/recipes/day-item-recipe.mjs +3 -1
- package/recipes/divider-recipe.d.ts +1 -0
- package/recipes/divider-recipe.mjs +3 -1
- package/recipes/dropzone-slot-recipe.d.ts +1 -0
- package/recipes/dropzone-slot-recipe.mjs +4 -2
- package/recipes/form-control-slot-recipe.d.ts +1 -0
- package/recipes/form-control-slot-recipe.mjs +4 -2
- package/recipes/icon-recipe.d.ts +1 -0
- package/recipes/icon-recipe.mjs +3 -1
- package/recipes/index.d.ts +2 -1
- package/recipes/index.mjs +2 -1
- package/recipes/input-addon-slot-recipe.d.ts +1 -0
- package/recipes/input-addon-slot-recipe.mjs +4 -2
- package/recipes/input-group-slot-recipe.d.ts +1 -0
- package/recipes/input-group-slot-recipe.mjs +4 -2
- package/recipes/input-slot-recipe.d.ts +1 -0
- package/recipes/input-slot-recipe.mjs +4 -2
- package/recipes/input-tag-slot-recipe.d.ts +1 -0
- package/recipes/input-tag-slot-recipe.mjs +4 -2
- package/recipes/modal-slot-recipe.d.ts +6 -1
- package/recipes/modal-slot-recipe.mjs +4 -2
- package/recipes/month-item-recipe.d.ts +1 -0
- package/recipes/month-item-recipe.mjs +3 -1
- package/recipes/pinbar-slot-recipe.d.ts +1 -0
- package/recipes/pinbar-slot-recipe.mjs +4 -2
- package/recipes/popover-content-recipe.d.ts +1 -0
- package/recipes/popover-content-recipe.mjs +3 -1
- package/recipes/popover-list-item-recipe.d.ts +1 -0
- package/recipes/popover-list-item-recipe.mjs +3 -1
- package/recipes/popover-list-recipe.d.ts +1 -0
- package/recipes/popover-list-recipe.mjs +3 -1
- package/recipes/progress-slot-recipe.d.ts +1 -0
- package/recipes/progress-slot-recipe.mjs +4 -2
- package/recipes/radio-slot-recipe.d.ts +1 -0
- package/recipes/radio-slot-recipe.mjs +4 -2
- package/recipes/rich-text-editor-slot-recipe.d.ts +1 -0
- package/recipes/rich-text-editor-slot-recipe.mjs +4 -2
- package/recipes/rtestyle-provider-recipe.d.ts +1 -0
- package/recipes/rtestyle-provider-recipe.mjs +3 -1
- package/recipes/segmented-control-slot-recipe.d.ts +1 -0
- package/recipes/segmented-control-slot-recipe.mjs +4 -2
- package/recipes/select-slot-recipe.d.ts +1 -0
- package/recipes/select-slot-recipe.mjs +4 -2
- package/recipes/selected-border-recipe.d.ts +1 -0
- package/recipes/selected-border-recipe.mjs +3 -1
- package/recipes/shared-slot-recipe.d.ts +1 -0
- package/recipes/shared-slot-recipe.mjs +4 -2
- package/recipes/spinner-recipe.d.ts +1 -0
- package/recipes/spinner-recipe.mjs +3 -1
- package/recipes/tab-list-recipe.d.ts +1 -0
- package/recipes/tab-list-recipe.mjs +3 -1
- package/recipes/tab-recipe.d.ts +1 -0
- package/recipes/tab-recipe.mjs +3 -1
- package/recipes/table-container-recipe.d.ts +1 -0
- package/recipes/table-container-recipe.mjs +3 -1
- package/recipes/table-date-slot-recipe.d.ts +1 -0
- package/recipes/table-date-slot-recipe.mjs +4 -2
- package/recipes/table-month-slot-recipe.d.ts +1 -0
- package/recipes/table-month-slot-recipe.mjs +4 -2
- package/recipes/table-recipe.d.ts +1 -0
- package/recipes/table-recipe.mjs +3 -1
- package/recipes/table-year-slot-recipe.d.ts +1 -0
- package/recipes/table-year-slot-recipe.mjs +4 -2
- package/recipes/tag-slot-recipe.d.ts +1 -0
- package/recipes/tag-slot-recipe.mjs +4 -2
- package/recipes/text-recipe.d.ts +1 -0
- package/recipes/text-recipe.mjs +3 -1
- package/recipes/textarea-recipe.d.ts +1 -0
- package/recipes/textarea-recipe.mjs +3 -1
- package/recipes/toast-slot-recipe.d.ts +1 -0
- package/recipes/toast-slot-recipe.mjs +4 -2
- package/recipes/toggle-slot-recipe.d.ts +1 -0
- package/recipes/toggle-slot-recipe.mjs +4 -2
- package/recipes/tooltip-recipe.d.ts +1 -0
- package/recipes/tooltip-recipe.mjs +3 -1
- package/recipes/upload-list-slot-recipe.d.ts +1 -0
- package/recipes/upload-list-slot-recipe.mjs +4 -2
- package/recipes/upload-slot-recipe.d.ts +1 -0
- package/recipes/upload-slot-recipe.mjs +4 -2
- package/recipes/year-item-recipe.d.ts +1 -0
- package/recipes/year-item-recipe.mjs +3 -1
- package/tokens/tokens.d.ts +0 -3
- package/types/composition.d.ts +39 -12
- package/types/conditions.d.ts +24 -26
- package/types/pattern.d.ts +4 -0
- package/types/prop-type.d.ts +51 -223
- package/types/recipe.d.ts +33 -10
- package/types/static-css.d.ts +4 -0
- package/types/style-props.d.ts +7458 -644
- package/types/system-types.d.ts +3 -8
package/jsx/link-overlay.mjs
CHANGED
package/jsx/spacer.mjs
CHANGED
package/jsx/square.mjs
CHANGED
package/jsx/stack.mjs
CHANGED
package/jsx/visually-hidden.mjs
CHANGED
package/jsx/vstack.mjs
CHANGED
package/jsx/wrap.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/bleed.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface BleedProperties {
|
|
9
|
-
inline?:
|
|
10
|
-
block?:
|
|
9
|
+
inline?: SystemProperties["marginInline"]
|
|
10
|
+
block?: SystemProperties["marginBlock"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
package/patterns/box.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/center.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/circle.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface CircleProperties {
|
|
9
|
-
size?:
|
|
9
|
+
size?: SystemProperties["width"]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
package/patterns/container.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/cq.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface CqProperties {
|
|
9
9
|
name?: ConditionalValue<Tokens["containerNames"] | Properties["containerName"]>
|
|
10
|
-
type?:
|
|
10
|
+
type?: SystemProperties["containerType"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
package/patterns/divider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/flex.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface FlexProperties {
|
|
9
|
-
align?:
|
|
10
|
-
justify?:
|
|
11
|
-
direction?:
|
|
12
|
-
wrap?:
|
|
13
|
-
basis?:
|
|
14
|
-
grow?:
|
|
15
|
-
shrink?:
|
|
9
|
+
align?: SystemProperties["alignItems"]
|
|
10
|
+
justify?: SystemProperties["justifyContent"]
|
|
11
|
+
direction?: SystemProperties["flexDirection"]
|
|
12
|
+
wrap?: SystemProperties["flexWrap"]
|
|
13
|
+
basis?: SystemProperties["flexBasis"]
|
|
14
|
+
grow?: SystemProperties["flexGrow"]
|
|
15
|
+
shrink?: SystemProperties["flexShrink"]
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
package/patterns/float.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/grid-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/grid.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface GridProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
columnGap?:
|
|
11
|
-
rowGap?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
columnGap?: SystemProperties["gap"]
|
|
11
|
+
rowGap?: SystemProperties["gap"]
|
|
12
12
|
columns?: ConditionalValue<number>
|
|
13
13
|
minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
|
|
14
14
|
}
|
package/patterns/hstack.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface HstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
package/patterns/index.d.ts
CHANGED
package/patterns/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
|
|
|
7
7
|
export * from './square.mjs';
|
|
8
8
|
export * from './circle.mjs';
|
|
9
9
|
export * from './center.mjs';
|
|
10
|
-
export * from './link-box.mjs';
|
|
11
10
|
export * from './link-overlay.mjs';
|
|
12
11
|
export * from './aspect-ratio.mjs';
|
|
13
12
|
export * from './grid.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -4,12 +4,9 @@ import { css } from '../css/index.mjs';
|
|
|
4
4
|
const linkOverlayConfig = {
|
|
5
5
|
transform(props) {
|
|
6
6
|
return {
|
|
7
|
-
position: "static",
|
|
8
7
|
_before: {
|
|
9
8
|
content: '""',
|
|
10
|
-
display: "block",
|
|
11
9
|
position: "absolute",
|
|
12
|
-
cursor: "inherit",
|
|
13
10
|
inset: "0",
|
|
14
11
|
zIndex: "0",
|
|
15
12
|
...props["_before"]
|
package/patterns/spacer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/square.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface SquareProperties {
|
|
9
|
-
size?:
|
|
9
|
+
size?: SystemProperties["width"]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
package/patterns/stack.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface StackProperties {
|
|
9
|
-
align?:
|
|
10
|
-
justify?:
|
|
11
|
-
direction?:
|
|
12
|
-
gap?:
|
|
9
|
+
align?: SystemProperties["alignItems"]
|
|
10
|
+
justify?: SystemProperties["justifyContent"]
|
|
11
|
+
direction?: SystemProperties["flexDirection"]
|
|
12
|
+
gap?: SystemProperties["gap"]
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
package/patterns/vstack.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface VstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
package/patterns/wrap.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface WrapProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
rowGap?:
|
|
11
|
-
columnGap?:
|
|
12
|
-
align?:
|
|
13
|
-
justify?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
rowGap?: SystemProperties["gap"]
|
|
11
|
+
columnGap?: SystemProperties["gap"]
|
|
12
|
+
align?: SystemProperties["alignItems"]
|
|
13
|
+
justify?: SystemProperties["justifyContent"]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
|
package/recipes/accordion.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface AccordionRecipe {
|
|
|
21
21
|
variantMap: AccordionVariantMap
|
|
22
22
|
variantKeys: Array<keyof AccordionVariant>
|
|
23
23
|
splitVariantProps<Props extends AccordionVariantProps>(props: Props): [AccordionVariantProps, Pretty<DistributiveOmit<Props, keyof AccordionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AccordionVariantProps) => AccordionVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
package/recipes/accordion.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const accordionDefaultVariants = {
|
|
@@ -27,12 +27,13 @@ const accordionSlotNames = [
|
|
|
27
27
|
const accordionSlotFns = /* @__PURE__ */ accordionSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, accordionDefaultVariants, getSlotCompoundVariant(accordionCompoundVariants, slotName))])
|
|
28
28
|
|
|
29
29
|
const accordionFn = memo((props = {}) => {
|
|
30
|
-
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
30
|
+
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
31
31
|
})
|
|
32
32
|
|
|
33
33
|
const accordionVariantKeys = [
|
|
34
34
|
"size"
|
|
35
35
|
]
|
|
36
|
+
const getVariantProps = (variants) => ({ ...accordionDefaultVariants, ...compact(variants) })
|
|
36
37
|
|
|
37
38
|
export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
38
39
|
__recipe__: false,
|
|
@@ -47,4 +48,5 @@ export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
|
47
48
|
splitVariantProps(props) {
|
|
48
49
|
return splitProps(props, accordionVariantKeys)
|
|
49
50
|
},
|
|
51
|
+
getVariantProps
|
|
50
52
|
})
|
|
@@ -21,6 +21,7 @@ export interface AvatarGroupSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: AvatarGroupSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof AvatarGroupSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends AvatarGroupSlotRecipeVariantProps>(props: Props): [AvatarGroupSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarGroupSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AvatarGroupSlotRecipeVariantProps) => AvatarGroupSlotRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const avatarGroupSlotRecipeDefaultVariants = {}
|
|
@@ -17,12 +17,13 @@ const avatarGroupSlotRecipeSlotNames = [
|
|
|
17
17
|
const avatarGroupSlotRecipeSlotFns = /* @__PURE__ */ avatarGroupSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarGroupSlotRecipeDefaultVariants, getSlotCompoundVariant(avatarGroupSlotRecipeCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
19
|
const avatarGroupSlotRecipeFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(avatarGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
20
|
+
return Object.fromEntries(avatarGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
const avatarGroupSlotRecipeVariantKeys = [
|
|
24
24
|
"size"
|
|
25
25
|
]
|
|
26
|
+
const getVariantProps = (variants) => ({ ...avatarGroupSlotRecipeDefaultVariants, ...compact(variants) })
|
|
26
27
|
|
|
27
28
|
export const avatarGroupSlotRecipe = /* @__PURE__ */ Object.assign(avatarGroupSlotRecipeFn, {
|
|
28
29
|
__recipe__: false,
|
|
@@ -40,4 +41,5 @@ export const avatarGroupSlotRecipe = /* @__PURE__ */ Object.assign(avatarGroupSl
|
|
|
40
41
|
splitVariantProps(props) {
|
|
41
42
|
return splitProps(props, avatarGroupSlotRecipeVariantKeys)
|
|
42
43
|
},
|
|
44
|
+
getVariantProps
|
|
43
45
|
})
|
|
@@ -24,6 +24,7 @@ export interface AvatarSlotRecipeRecipe {
|
|
|
24
24
|
variantMap: AvatarSlotRecipeVariantMap
|
|
25
25
|
variantKeys: Array<keyof AvatarSlotRecipeVariant>
|
|
26
26
|
splitVariantProps<Props extends AvatarSlotRecipeVariantProps>(props: Props): [AvatarSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarSlotRecipeVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: AvatarSlotRecipeVariantProps) => AvatarSlotRecipeVariantProps
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const avatarSlotRecipeDefaultVariants = {
|
|
@@ -73,7 +73,7 @@ const avatarSlotRecipeSlotNames = [
|
|
|
73
73
|
const avatarSlotRecipeSlotFns = /* @__PURE__ */ avatarSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarSlotRecipeDefaultVariants, getSlotCompoundVariant(avatarSlotRecipeCompoundVariants, slotName))])
|
|
74
74
|
|
|
75
75
|
const avatarSlotRecipeFn = memo((props = {}) => {
|
|
76
|
-
return Object.fromEntries(avatarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
76
|
+
return Object.fromEntries(avatarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
77
77
|
})
|
|
78
78
|
|
|
79
79
|
const avatarSlotRecipeVariantKeys = [
|
|
@@ -82,6 +82,7 @@ const avatarSlotRecipeVariantKeys = [
|
|
|
82
82
|
"variantColor",
|
|
83
83
|
"size"
|
|
84
84
|
]
|
|
85
|
+
const getVariantProps = (variants) => ({ ...avatarSlotRecipeDefaultVariants, ...compact(variants) })
|
|
85
86
|
|
|
86
87
|
export const avatarSlotRecipe = /* @__PURE__ */ Object.assign(avatarSlotRecipeFn, {
|
|
87
88
|
__recipe__: false,
|
|
@@ -125,4 +126,5 @@ export const avatarSlotRecipe = /* @__PURE__ */ Object.assign(avatarSlotRecipeFn
|
|
|
125
126
|
splitVariantProps(props) {
|
|
126
127
|
return splitProps(props, avatarSlotRecipeVariantKeys)
|
|
127
128
|
},
|
|
129
|
+
getVariantProps
|
|
128
130
|
})
|
|
@@ -23,6 +23,7 @@ export interface BadgeRecipeRecipe {
|
|
|
23
23
|
variantMap: BadgeRecipeVariantMap
|
|
24
24
|
variantKeys: Array<keyof BadgeRecipeVariant>
|
|
25
25
|
splitVariantProps<Props extends BadgeRecipeVariantProps>(props: Props): [BadgeRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BadgeRecipeVariantProps>>]
|
|
26
|
+
getVariantProps: (props?: BadgeRecipeVariantProps) => BadgeRecipeVariantProps
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
|
package/recipes/badge-recipe.mjs
CHANGED
|
@@ -145,9 +145,10 @@ const badgeRecipeVariantMap = {
|
|
|
145
145
|
|
|
146
146
|
const badgeRecipeVariantKeys = Object.keys(badgeRecipeVariantMap)
|
|
147
147
|
|
|
148
|
-
export const badgeRecipe = /* @__PURE__ */ Object.assign(memo(badgeRecipeFn), {
|
|
148
|
+
export const badgeRecipe = /* @__PURE__ */ Object.assign(memo(badgeRecipeFn.recipeFn), {
|
|
149
149
|
__recipe__: true,
|
|
150
150
|
__name__: 'badgeRecipe',
|
|
151
|
+
__getCompoundVariantCss__: badgeRecipeFn.__getCompoundVariantCss__,
|
|
151
152
|
raw: (props) => props,
|
|
152
153
|
variantKeys: badgeRecipeVariantKeys,
|
|
153
154
|
variantMap: badgeRecipeVariantMap,
|
|
@@ -157,4 +158,5 @@ export const badgeRecipe = /* @__PURE__ */ Object.assign(memo(badgeRecipeFn), {
|
|
|
157
158
|
splitVariantProps(props) {
|
|
158
159
|
return splitProps(props, badgeRecipeVariantKeys)
|
|
159
160
|
},
|
|
161
|
+
getVariantProps: badgeRecipeFn.getVariantProps,
|
|
160
162
|
})
|
|
@@ -21,6 +21,7 @@ export interface BannerCloseButtonRecipeRecipe {
|
|
|
21
21
|
variantMap: BannerCloseButtonRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof BannerCloseButtonRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends BannerCloseButtonRecipeVariantProps>(props: Props): [BannerCloseButtonRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BannerCloseButtonRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: BannerCloseButtonRecipeVariantProps) => BannerCloseButtonRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const bannerCloseButtonRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const bannerCloseButtonRecipeVariantKeys = Object.keys(bannerCloseButtonRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const bannerCloseButtonRecipe = /* @__PURE__ */ Object.assign(memo(bannerCloseButtonRecipeFn), {
|
|
10
|
+
export const bannerCloseButtonRecipe = /* @__PURE__ */ Object.assign(memo(bannerCloseButtonRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'bannerCloseButtonRecipe',
|
|
13
|
+
__getCompoundVariantCss__: bannerCloseButtonRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: bannerCloseButtonRecipeVariantKeys,
|
|
15
16
|
variantMap: bannerCloseButtonRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const bannerCloseButtonRecipe = /* @__PURE__ */ Object.assign(memo(banner
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, bannerCloseButtonRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: bannerCloseButtonRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface BannerDescriptionRecipeRecipe {
|
|
|
21
21
|
variantMap: BannerDescriptionRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof BannerDescriptionRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends BannerDescriptionRecipeVariantProps>(props: Props): [BannerDescriptionRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BannerDescriptionRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: BannerDescriptionRecipeVariantProps) => BannerDescriptionRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const bannerDescriptionRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const bannerDescriptionRecipeVariantKeys = Object.keys(bannerDescriptionRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const bannerDescriptionRecipe = /* @__PURE__ */ Object.assign(memo(bannerDescriptionRecipeFn), {
|
|
10
|
+
export const bannerDescriptionRecipe = /* @__PURE__ */ Object.assign(memo(bannerDescriptionRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'bannerDescriptionRecipe',
|
|
13
|
+
__getCompoundVariantCss__: bannerDescriptionRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: bannerDescriptionRecipeVariantKeys,
|
|
15
16
|
variantMap: bannerDescriptionRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const bannerDescriptionRecipe = /* @__PURE__ */ Object.assign(memo(banner
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, bannerDescriptionRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: bannerDescriptionRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface BannerIconSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: BannerIconSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof BannerIconSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends BannerIconSlotRecipeVariantProps>(props: Props): [BannerIconSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BannerIconSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: BannerIconSlotRecipeVariantProps) => BannerIconSlotRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const bannerIconSlotRecipeDefaultVariants = {}
|
|
@@ -17,10 +17,11 @@ const bannerIconSlotRecipeSlotNames = [
|
|
|
17
17
|
const bannerIconSlotRecipeSlotFns = /* @__PURE__ */ bannerIconSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, bannerIconSlotRecipeDefaultVariants, getSlotCompoundVariant(bannerIconSlotRecipeCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
19
|
const bannerIconSlotRecipeFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(bannerIconSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
20
|
+
return Object.fromEntries(bannerIconSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
const bannerIconSlotRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...bannerIconSlotRecipeDefaultVariants, ...compact(variants) })
|
|
24
25
|
|
|
25
26
|
export const bannerIconSlotRecipe = /* @__PURE__ */ Object.assign(bannerIconSlotRecipeFn, {
|
|
26
27
|
__recipe__: false,
|
|
@@ -31,4 +32,5 @@ export const bannerIconSlotRecipe = /* @__PURE__ */ Object.assign(bannerIconSlot
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, bannerIconSlotRecipeVariantKeys)
|
|
33
34
|
},
|
|
35
|
+
getVariantProps
|
|
34
36
|
})
|