@mekari/pixel3-styled-system 0.1.3-dev.1 → 0.1.3-dev.2
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/scrollbar-recipe.d.ts +28 -0
- package/recipes/scrollbar-recipe.mjs +24 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/recipes/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './year-item-recipe';
|
|
|
27
27
|
export * from './time-item-recipe';
|
|
28
28
|
export * from './textlink-recipe';
|
|
29
29
|
export * from './skeleton-recipe';
|
|
30
|
+
export * from './scrollbar-recipe';
|
|
30
31
|
export * from './accordion-slot-recipe';
|
|
31
32
|
export * from './checkbox-slot-recipe';
|
|
32
33
|
export * from './divider-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -26,6 +26,7 @@ export * from './year-item-recipe.mjs';
|
|
|
26
26
|
export * from './time-item-recipe.mjs';
|
|
27
27
|
export * from './textlink-recipe.mjs';
|
|
28
28
|
export * from './skeleton-recipe.mjs';
|
|
29
|
+
export * from './scrollbar-recipe.mjs';
|
|
29
30
|
export * from './accordion-slot-recipe.mjs';
|
|
30
31
|
export * from './checkbox-slot-recipe.mjs';
|
|
31
32
|
export * from './divider-slot-recipe.mjs';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface ScrollbarRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ScrollbarRecipeVariantMap = {
|
|
10
|
+
[key in keyof ScrollbarRecipeVariant]: Array<ScrollbarRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ScrollbarRecipeVariantProps = {
|
|
14
|
+
[key in keyof ScrollbarRecipeVariant]?: ConditionalValue<ScrollbarRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ScrollbarRecipeRecipe {
|
|
18
|
+
__type: ScrollbarRecipeVariantProps
|
|
19
|
+
(props?: ScrollbarRecipeVariantProps): string
|
|
20
|
+
raw: (props?: ScrollbarRecipeVariantProps) => ScrollbarRecipeVariantProps
|
|
21
|
+
variantMap: ScrollbarRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof ScrollbarRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends ScrollbarRecipeVariantProps>(props: Props): [ScrollbarRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ScrollbarRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ScrollbarRecipeVariantProps) => ScrollbarRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const scrollbarRecipe: ScrollbarRecipeRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const scrollbarRecipeFn = /* @__PURE__ */ createRecipe('skeleton', {}, [])
|
|
5
|
+
|
|
6
|
+
const scrollbarRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const scrollbarRecipeVariantKeys = Object.keys(scrollbarRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const scrollbarRecipe = /* @__PURE__ */ Object.assign(memo(scrollbarRecipeFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'scrollbarRecipe',
|
|
13
|
+
__getCompoundVariantCss__: scrollbarRecipeFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: scrollbarRecipeVariantKeys,
|
|
16
|
+
variantMap: scrollbarRecipeVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, scrollbarRecipeVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: scrollbarRecipeFn.getVariantProps,
|
|
24
|
+
})
|