@mekari/pixel3-styled-system 0.1.3-dev.0 → 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 +6 -0
- package/package.json +1 -1
- 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
package/package.json
CHANGED
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"];
|