@mekari/pixel3-styled-system 0.1.2 → 0.1.3-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/recipes/button-recipe.mjs +16 -8
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
- package/recipes/skeleton-recipe.d.ts +31 -0
- package/recipes/skeleton-recipe.mjs +52 -0
- package/types/prop-type.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.1.3-dev.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6e300fa: Generate new styled
|
|
8
|
+
|
|
9
|
+
## 0.1.3-dev.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 28f1adb: - Update divider recipe.
|
|
14
|
+
- 7b100db: Fix visual disabled state
|
|
15
|
+
|
|
3
16
|
## 0.1.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -66,13 +66,17 @@ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
66
66
|
"background": "gray.50",
|
|
67
67
|
"borderColor": "gray.50",
|
|
68
68
|
"_hasIcon": {
|
|
69
|
-
"
|
|
70
|
-
|
|
69
|
+
"&:not([data-has-label=true])": {
|
|
70
|
+
"background": "transparent",
|
|
71
|
+
"borderColor": "transparent"
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
75
|
"_hasIcon": {
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
+
"&:not([data-has-label=true])": {
|
|
77
|
+
"background": "transparent",
|
|
78
|
+
"borderColor": "transparent"
|
|
79
|
+
}
|
|
76
80
|
},
|
|
77
81
|
"_nextTheme": {
|
|
78
82
|
"color": "text.disabled",
|
|
@@ -82,13 +86,17 @@ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
82
86
|
"background": "background.disabled",
|
|
83
87
|
"borderColor": "background.disabled",
|
|
84
88
|
"_hasIcon": {
|
|
85
|
-
"
|
|
86
|
-
|
|
89
|
+
"&:not([data-has-label=true])": {
|
|
90
|
+
"background": "transparent",
|
|
91
|
+
"borderColor": "transparent"
|
|
92
|
+
}
|
|
87
93
|
}
|
|
88
94
|
},
|
|
89
95
|
"_hasIcon": {
|
|
90
|
-
"
|
|
91
|
-
|
|
96
|
+
"&:not([data-has-label=true])": {
|
|
97
|
+
"background": "transparent",
|
|
98
|
+
"borderColor": "transparent"
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
102
|
}
|
package/recipes/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './month-item-recipe';
|
|
|
26
26
|
export * from './year-item-recipe';
|
|
27
27
|
export * from './time-item-recipe';
|
|
28
28
|
export * from './textlink-recipe';
|
|
29
|
+
export * from './skeleton-recipe';
|
|
29
30
|
export * from './accordion-slot-recipe';
|
|
30
31
|
export * from './checkbox-slot-recipe';
|
|
31
32
|
export * from './divider-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -25,6 +25,7 @@ export * from './month-item-recipe.mjs';
|
|
|
25
25
|
export * from './year-item-recipe.mjs';
|
|
26
26
|
export * from './time-item-recipe.mjs';
|
|
27
27
|
export * from './textlink-recipe.mjs';
|
|
28
|
+
export * from './skeleton-recipe.mjs';
|
|
28
29
|
export * from './accordion-slot-recipe.mjs';
|
|
29
30
|
export * from './checkbox-slot-recipe.mjs';
|
|
30
31
|
export * from './divider-slot-recipe.mjs';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface SkeletonRecipeVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "gray"
|
|
8
|
+
*/
|
|
9
|
+
color: "gray" | "blue" | "purple"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type SkeletonRecipeVariantMap = {
|
|
13
|
+
[key in keyof SkeletonRecipeVariant]: Array<SkeletonRecipeVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SkeletonRecipeVariantProps = {
|
|
17
|
+
[key in keyof SkeletonRecipeVariant]?: SkeletonRecipeVariant[key] | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SkeletonRecipeRecipe {
|
|
21
|
+
__type: SkeletonRecipeVariantProps
|
|
22
|
+
(props?: SkeletonRecipeVariantProps): string
|
|
23
|
+
raw: (props?: SkeletonRecipeVariantProps) => SkeletonRecipeVariantProps
|
|
24
|
+
variantMap: SkeletonRecipeVariantMap
|
|
25
|
+
variantKeys: Array<keyof SkeletonRecipeVariant>
|
|
26
|
+
splitVariantProps<Props extends SkeletonRecipeVariantProps>(props: Props): [SkeletonRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SkeletonRecipeVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: SkeletonRecipeVariantProps) => SkeletonRecipeVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const skeletonRecipe: SkeletonRecipeRecipe
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const skeletonRecipeFn = /* @__PURE__ */ createRecipe('skeleton', {
|
|
5
|
+
"color": "gray"
|
|
6
|
+
}, [
|
|
7
|
+
{
|
|
8
|
+
"color": [
|
|
9
|
+
"gray",
|
|
10
|
+
"blue",
|
|
11
|
+
"purple"
|
|
12
|
+
],
|
|
13
|
+
"css": {
|
|
14
|
+
"&:is([data-has-children=true])": {
|
|
15
|
+
"&:is([data-loading=false])": {
|
|
16
|
+
"background": "unset",
|
|
17
|
+
"pointerEvents": "auto",
|
|
18
|
+
"userSelect": "auto",
|
|
19
|
+
"& *": {
|
|
20
|
+
"visibility": "visible"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
])
|
|
27
|
+
|
|
28
|
+
const skeletonRecipeVariantMap = {
|
|
29
|
+
"color": [
|
|
30
|
+
"gray",
|
|
31
|
+
"blue",
|
|
32
|
+
"purple"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const skeletonRecipeVariantKeys = Object.keys(skeletonRecipeVariantMap)
|
|
37
|
+
|
|
38
|
+
export const skeletonRecipe = /* @__PURE__ */ Object.assign(memo(skeletonRecipeFn.recipeFn), {
|
|
39
|
+
__recipe__: true,
|
|
40
|
+
__name__: 'skeletonRecipe',
|
|
41
|
+
__getCompoundVariantCss__: skeletonRecipeFn.__getCompoundVariantCss__,
|
|
42
|
+
raw: (props) => props,
|
|
43
|
+
variantKeys: skeletonRecipeVariantKeys,
|
|
44
|
+
variantMap: skeletonRecipeVariantMap,
|
|
45
|
+
merge(recipe) {
|
|
46
|
+
return mergeRecipes(this, recipe)
|
|
47
|
+
},
|
|
48
|
+
splitVariantProps(props) {
|
|
49
|
+
return splitProps(props, skeletonRecipeVariantKeys)
|
|
50
|
+
},
|
|
51
|
+
getVariantProps: skeletonRecipeFn.getVariantProps,
|
|
52
|
+
})
|
package/types/prop-type.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export interface UtilityValues {
|
|
|
143
143
|
transitionDelay: Tokens["durations"];
|
|
144
144
|
transitionDuration: Tokens["durations"];
|
|
145
145
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
146
|
-
animationName: "fade-in" | "fade-out" | "spin" | "border-shine";
|
|
146
|
+
animationName: "fade-in" | "fade-out" | "spin" | "border-shine" | "shimmer";
|
|
147
147
|
animationDuration: Tokens["durations"];
|
|
148
148
|
animationDelay: Tokens["durations"];
|
|
149
149
|
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|