@mekari/pixel3-styled-system 0.0.6 → 0.0.7-dev.0
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/carousel-slot-recipe.d.ts +27 -0
- package/recipes/carousel-slot-recipe.mjs +38 -0
- package/recipes/index.d.ts +2 -1
- package/recipes/index.mjs +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface CarouselSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CarouselSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof CarouselSlotRecipeVariant]: Array<CarouselSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CarouselSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof CarouselSlotRecipeVariant]?: ConditionalValue<CarouselSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CarouselSlotRecipeRecipe {
|
|
18
|
+
__type: CarouselSlotRecipeVariantProps
|
|
19
|
+
(props?: CarouselSlotRecipeVariantProps): Pretty<Record<"root" | "buttonRight" | "buttonLeft", string>>
|
|
20
|
+
raw: (props?: CarouselSlotRecipeVariantProps) => CarouselSlotRecipeVariantProps
|
|
21
|
+
variantMap: CarouselSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof CarouselSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends CarouselSlotRecipeVariantProps>(props: Props): [CarouselSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof CarouselSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const carouselSlotRecipe: CarouselSlotRecipeRecipe
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const carouselSlotRecipeDefaultVariants = {}
|
|
5
|
+
const carouselSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const carouselSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"carousel__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"buttonRight",
|
|
14
|
+
"carousel__buttonRight"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"buttonLeft",
|
|
18
|
+
"carousel__buttonLeft"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const carouselSlotRecipeSlotFns = /* @__PURE__ */ carouselSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, carouselSlotRecipeDefaultVariants, getSlotCompoundVariant(carouselSlotRecipeCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const carouselSlotRecipeFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(carouselSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const carouselSlotRecipeVariantKeys = []
|
|
28
|
+
|
|
29
|
+
export const carouselSlotRecipe = /* @__PURE__ */ Object.assign(carouselSlotRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'carouselSlotRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
variantKeys: carouselSlotRecipeVariantKeys,
|
|
34
|
+
variantMap: {},
|
|
35
|
+
splitVariantProps(props) {
|
|
36
|
+
return splitProps(props, carouselSlotRecipeVariantKeys)
|
|
37
|
+
},
|
|
38
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -45,4 +45,5 @@ export * from './banner-icon-slot-recipe';
|
|
|
45
45
|
export * from './segmented-control-slot-recipe';
|
|
46
46
|
export * from './toast-slot-recipe';
|
|
47
47
|
export * from './broadcast-slot-recipe';
|
|
48
|
-
export * from './rich-text-editor-slot-recipe';
|
|
48
|
+
export * from './rich-text-editor-slot-recipe';
|
|
49
|
+
export * from './carousel-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -44,4 +44,5 @@ export * from './banner-icon-slot-recipe.mjs';
|
|
|
44
44
|
export * from './segmented-control-slot-recipe.mjs';
|
|
45
45
|
export * from './toast-slot-recipe.mjs';
|
|
46
46
|
export * from './broadcast-slot-recipe.mjs';
|
|
47
|
-
export * from './
|
|
47
|
+
export * from './carousel-slot-recipe.mjs';
|
|
48
|
+
export * from './rich-text-editor-slot-recipe.mjs';
|