@mekari/pixel3-styled-system 0.0.7-dev.3 → 0.0.8-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 +17 -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
|
@@ -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 sharedSlotRecipeDefaultVariants = {}
|
|
@@ -13,10 +13,11 @@ const sharedSlotRecipeSlotNames = [
|
|
|
13
13
|
const sharedSlotRecipeSlotFns = /* @__PURE__ */ sharedSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sharedSlotRecipeDefaultVariants, getSlotCompoundVariant(sharedSlotRecipeCompoundVariants, slotName))])
|
|
14
14
|
|
|
15
15
|
const sharedSlotRecipeFn = memo((props = {}) => {
|
|
16
|
-
return Object.fromEntries(sharedSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
16
|
+
return Object.fromEntries(sharedSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
const sharedSlotRecipeVariantKeys = []
|
|
20
|
+
const getVariantProps = (variants) => ({ ...sharedSlotRecipeDefaultVariants, ...compact(variants) })
|
|
20
21
|
|
|
21
22
|
export const sharedSlotRecipe = /* @__PURE__ */ Object.assign(sharedSlotRecipeFn, {
|
|
22
23
|
__recipe__: false,
|
|
@@ -27,4 +28,5 @@ export const sharedSlotRecipe = /* @__PURE__ */ Object.assign(sharedSlotRecipeFn
|
|
|
27
28
|
splitVariantProps(props) {
|
|
28
29
|
return splitProps(props, sharedSlotRecipeVariantKeys)
|
|
29
30
|
},
|
|
31
|
+
getVariantProps
|
|
30
32
|
})
|
|
@@ -21,6 +21,7 @@ export interface SpinnerRecipeRecipe {
|
|
|
21
21
|
variantMap: SpinnerRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof SpinnerRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends SpinnerRecipeVariantProps>(props: Props): [SpinnerRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SpinnerRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SpinnerRecipeVariantProps) => SpinnerRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -14,9 +14,10 @@ const spinnerRecipeVariantMap = {
|
|
|
14
14
|
|
|
15
15
|
const spinnerRecipeVariantKeys = Object.keys(spinnerRecipeVariantMap)
|
|
16
16
|
|
|
17
|
-
export const spinnerRecipe = /* @__PURE__ */ Object.assign(memo(spinnerRecipeFn), {
|
|
17
|
+
export const spinnerRecipe = /* @__PURE__ */ Object.assign(memo(spinnerRecipeFn.recipeFn), {
|
|
18
18
|
__recipe__: true,
|
|
19
19
|
__name__: 'spinnerRecipe',
|
|
20
|
+
__getCompoundVariantCss__: spinnerRecipeFn.__getCompoundVariantCss__,
|
|
20
21
|
raw: (props) => props,
|
|
21
22
|
variantKeys: spinnerRecipeVariantKeys,
|
|
22
23
|
variantMap: spinnerRecipeVariantMap,
|
|
@@ -26,4 +27,5 @@ export const spinnerRecipe = /* @__PURE__ */ Object.assign(memo(spinnerRecipeFn)
|
|
|
26
27
|
splitVariantProps(props) {
|
|
27
28
|
return splitProps(props, spinnerRecipeVariantKeys)
|
|
28
29
|
},
|
|
30
|
+
getVariantProps: spinnerRecipeFn.getVariantProps,
|
|
29
31
|
})
|
|
@@ -21,6 +21,7 @@ export interface TabListRecipeRecipe {
|
|
|
21
21
|
variantMap: TabListRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TabListRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TabListRecipeVariantProps>(props: Props): [TabListRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TabListRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TabListRecipeVariantProps) => TabListRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const tabListRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tabListRecipeVariantKeys = Object.keys(tabListRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tabListRecipe = /* @__PURE__ */ Object.assign(memo(tabListRecipeFn), {
|
|
10
|
+
export const tabListRecipe = /* @__PURE__ */ Object.assign(memo(tabListRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tabListRecipe',
|
|
13
|
+
__getCompoundVariantCss__: tabListRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tabListRecipeVariantKeys,
|
|
15
16
|
variantMap: tabListRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tabListRecipe = /* @__PURE__ */ Object.assign(memo(tabListRecipeFn)
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tabListRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tabListRecipeFn.getVariantProps,
|
|
22
24
|
})
|
package/recipes/tab-recipe.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface TabRecipeRecipe {
|
|
|
22
22
|
variantMap: TabRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof TabRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends TabRecipeVariantProps>(props: Props): [TabRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TabRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: TabRecipeVariantProps) => TabRecipeVariantProps
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
package/recipes/tab-recipe.mjs
CHANGED
|
@@ -72,9 +72,10 @@ const tabRecipeVariantMap = {
|
|
|
72
72
|
|
|
73
73
|
const tabRecipeVariantKeys = Object.keys(tabRecipeVariantMap)
|
|
74
74
|
|
|
75
|
-
export const tabRecipe = /* @__PURE__ */ Object.assign(memo(tabRecipeFn), {
|
|
75
|
+
export const tabRecipe = /* @__PURE__ */ Object.assign(memo(tabRecipeFn.recipeFn), {
|
|
76
76
|
__recipe__: true,
|
|
77
77
|
__name__: 'tabRecipe',
|
|
78
|
+
__getCompoundVariantCss__: tabRecipeFn.__getCompoundVariantCss__,
|
|
78
79
|
raw: (props) => props,
|
|
79
80
|
variantKeys: tabRecipeVariantKeys,
|
|
80
81
|
variantMap: tabRecipeVariantMap,
|
|
@@ -84,4 +85,5 @@ export const tabRecipe = /* @__PURE__ */ Object.assign(memo(tabRecipeFn), {
|
|
|
84
85
|
splitVariantProps(props) {
|
|
85
86
|
return splitProps(props, tabRecipeVariantKeys)
|
|
86
87
|
},
|
|
88
|
+
getVariantProps: tabRecipeFn.getVariantProps,
|
|
87
89
|
})
|
|
@@ -21,6 +21,7 @@ export interface TableContainerRecipeRecipe {
|
|
|
21
21
|
variantMap: TableContainerRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableContainerRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TableContainerRecipeVariantProps>(props: Props): [TableContainerRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableContainerRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableContainerRecipeVariantProps) => TableContainerRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const tableContainerRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableContainerRecipeVariantKeys = Object.keys(tableContainerRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableContainerRecipe = /* @__PURE__ */ Object.assign(memo(tableContainerRecipeFn), {
|
|
10
|
+
export const tableContainerRecipe = /* @__PURE__ */ Object.assign(memo(tableContainerRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableContainerRecipe',
|
|
13
|
+
__getCompoundVariantCss__: tableContainerRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableContainerRecipeVariantKeys,
|
|
15
16
|
variantMap: tableContainerRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableContainerRecipe = /* @__PURE__ */ Object.assign(memo(tableCont
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableContainerRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableContainerRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface TableDateSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: TableDateSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableDateSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TableDateSlotRecipeVariantProps>(props: Props): [TableDateSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableDateSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableDateSlotRecipeVariantProps) => TableDateSlotRecipeVariantProps
|
|
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 tableDateSlotRecipeDefaultVariants = {}
|
|
@@ -33,10 +33,11 @@ const tableDateSlotRecipeSlotNames = [
|
|
|
33
33
|
const tableDateSlotRecipeSlotFns = /* @__PURE__ */ tableDateSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableDateSlotRecipeDefaultVariants, getSlotCompoundVariant(tableDateSlotRecipeCompoundVariants, slotName))])
|
|
34
34
|
|
|
35
35
|
const tableDateSlotRecipeFn = memo((props = {}) => {
|
|
36
|
-
return Object.fromEntries(tableDateSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
36
|
+
return Object.fromEntries(tableDateSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
37
37
|
})
|
|
38
38
|
|
|
39
39
|
const tableDateSlotRecipeVariantKeys = []
|
|
40
|
+
const getVariantProps = (variants) => ({ ...tableDateSlotRecipeDefaultVariants, ...compact(variants) })
|
|
40
41
|
|
|
41
42
|
export const tableDateSlotRecipe = /* @__PURE__ */ Object.assign(tableDateSlotRecipeFn, {
|
|
42
43
|
__recipe__: false,
|
|
@@ -47,4 +48,5 @@ export const tableDateSlotRecipe = /* @__PURE__ */ Object.assign(tableDateSlotRe
|
|
|
47
48
|
splitVariantProps(props) {
|
|
48
49
|
return splitProps(props, tableDateSlotRecipeVariantKeys)
|
|
49
50
|
},
|
|
51
|
+
getVariantProps
|
|
50
52
|
})
|
|
@@ -21,6 +21,7 @@ export interface TableMonthSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: TableMonthSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableMonthSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TableMonthSlotRecipeVariantProps>(props: Props): [TableMonthSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableMonthSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableMonthSlotRecipeVariantProps) => TableMonthSlotRecipeVariantProps
|
|
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 tableMonthSlotRecipeDefaultVariants = {}
|
|
@@ -29,10 +29,11 @@ const tableMonthSlotRecipeSlotNames = [
|
|
|
29
29
|
const tableMonthSlotRecipeSlotFns = /* @__PURE__ */ tableMonthSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableMonthSlotRecipeDefaultVariants, getSlotCompoundVariant(tableMonthSlotRecipeCompoundVariants, slotName))])
|
|
30
30
|
|
|
31
31
|
const tableMonthSlotRecipeFn = memo((props = {}) => {
|
|
32
|
-
return Object.fromEntries(tableMonthSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
32
|
+
return Object.fromEntries(tableMonthSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
const tableMonthSlotRecipeVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...tableMonthSlotRecipeDefaultVariants, ...compact(variants) })
|
|
36
37
|
|
|
37
38
|
export const tableMonthSlotRecipe = /* @__PURE__ */ Object.assign(tableMonthSlotRecipeFn, {
|
|
38
39
|
__recipe__: false,
|
|
@@ -43,4 +44,5 @@ export const tableMonthSlotRecipe = /* @__PURE__ */ Object.assign(tableMonthSlot
|
|
|
43
44
|
splitVariantProps(props) {
|
|
44
45
|
return splitProps(props, tableMonthSlotRecipeVariantKeys)
|
|
45
46
|
},
|
|
47
|
+
getVariantProps
|
|
46
48
|
})
|
|
@@ -21,6 +21,7 @@ export interface TableRecipeRecipe {
|
|
|
21
21
|
variantMap: TableRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TableRecipeVariantProps>(props: Props): [TableRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableRecipeVariantProps) => TableRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
package/recipes/table-recipe.mjs
CHANGED
|
@@ -7,9 +7,10 @@ const tableRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableRecipeVariantKeys = Object.keys(tableRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableRecipe = /* @__PURE__ */ Object.assign(memo(tableRecipeFn), {
|
|
10
|
+
export const tableRecipe = /* @__PURE__ */ Object.assign(memo(tableRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableRecipe',
|
|
13
|
+
__getCompoundVariantCss__: tableRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableRecipeVariantKeys,
|
|
15
16
|
variantMap: tableRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableRecipe = /* @__PURE__ */ Object.assign(memo(tableRecipeFn), {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface TableYearSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: TableYearSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableYearSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TableYearSlotRecipeVariantProps>(props: Props): [TableYearSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableYearSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableYearSlotRecipeVariantProps) => TableYearSlotRecipeVariantProps
|
|
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 tableYearSlotRecipeDefaultVariants = {}
|
|
@@ -29,10 +29,11 @@ const tableYearSlotRecipeSlotNames = [
|
|
|
29
29
|
const tableYearSlotRecipeSlotFns = /* @__PURE__ */ tableYearSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableYearSlotRecipeDefaultVariants, getSlotCompoundVariant(tableYearSlotRecipeCompoundVariants, slotName))])
|
|
30
30
|
|
|
31
31
|
const tableYearSlotRecipeFn = memo((props = {}) => {
|
|
32
|
-
return Object.fromEntries(tableYearSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
32
|
+
return Object.fromEntries(tableYearSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
const tableYearSlotRecipeVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...tableYearSlotRecipeDefaultVariants, ...compact(variants) })
|
|
36
37
|
|
|
37
38
|
export const tableYearSlotRecipe = /* @__PURE__ */ Object.assign(tableYearSlotRecipeFn, {
|
|
38
39
|
__recipe__: false,
|
|
@@ -43,4 +44,5 @@ export const tableYearSlotRecipe = /* @__PURE__ */ Object.assign(tableYearSlotRe
|
|
|
43
44
|
splitVariantProps(props) {
|
|
44
45
|
return splitProps(props, tableYearSlotRecipeVariantKeys)
|
|
45
46
|
},
|
|
47
|
+
getVariantProps
|
|
46
48
|
})
|
|
@@ -22,6 +22,7 @@ export interface TagSlotRecipeRecipe {
|
|
|
22
22
|
variantMap: TagSlotRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof TagSlotRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends TagSlotRecipeVariantProps>(props: Props): [TagSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TagSlotRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: TagSlotRecipeVariantProps) => TagSlotRecipeVariantProps
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
|
@@ -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 tagSlotRecipeDefaultVariants = {
|
|
@@ -45,13 +45,14 @@ const tagSlotRecipeSlotNames = [
|
|
|
45
45
|
const tagSlotRecipeSlotFns = /* @__PURE__ */ tagSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tagSlotRecipeDefaultVariants, getSlotCompoundVariant(tagSlotRecipeCompoundVariants, slotName))])
|
|
46
46
|
|
|
47
47
|
const tagSlotRecipeFn = memo((props = {}) => {
|
|
48
|
-
return Object.fromEntries(tagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
48
|
+
return Object.fromEntries(tagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
const tagSlotRecipeVariantKeys = [
|
|
52
52
|
"size",
|
|
53
53
|
"variant"
|
|
54
54
|
]
|
|
55
|
+
const getVariantProps = (variants) => ({ ...tagSlotRecipeDefaultVariants, ...compact(variants) })
|
|
55
56
|
|
|
56
57
|
export const tagSlotRecipe = /* @__PURE__ */ Object.assign(tagSlotRecipeFn, {
|
|
57
58
|
__recipe__: false,
|
|
@@ -71,4 +72,5 @@ export const tagSlotRecipe = /* @__PURE__ */ Object.assign(tagSlotRecipeFn, {
|
|
|
71
72
|
splitVariantProps(props) {
|
|
72
73
|
return splitProps(props, tagSlotRecipeVariantKeys)
|
|
73
74
|
},
|
|
75
|
+
getVariantProps
|
|
74
76
|
})
|
package/recipes/text-recipe.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface TextRecipeRecipe {
|
|
|
22
22
|
variantMap: TextRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof TextRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends TextRecipeVariantProps>(props: Props): [TextRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TextRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: TextRecipeVariantProps) => TextRecipeVariantProps
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
package/recipes/text-recipe.mjs
CHANGED
|
@@ -25,9 +25,10 @@ const textRecipeVariantMap = {
|
|
|
25
25
|
|
|
26
26
|
const textRecipeVariantKeys = Object.keys(textRecipeVariantMap)
|
|
27
27
|
|
|
28
|
-
export const textRecipe = /* @__PURE__ */ Object.assign(memo(textRecipeFn), {
|
|
28
|
+
export const textRecipe = /* @__PURE__ */ Object.assign(memo(textRecipeFn.recipeFn), {
|
|
29
29
|
__recipe__: true,
|
|
30
30
|
__name__: 'textRecipe',
|
|
31
|
+
__getCompoundVariantCss__: textRecipeFn.__getCompoundVariantCss__,
|
|
31
32
|
raw: (props) => props,
|
|
32
33
|
variantKeys: textRecipeVariantKeys,
|
|
33
34
|
variantMap: textRecipeVariantMap,
|
|
@@ -37,4 +38,5 @@ export const textRecipe = /* @__PURE__ */ Object.assign(memo(textRecipeFn), {
|
|
|
37
38
|
splitVariantProps(props) {
|
|
38
39
|
return splitProps(props, textRecipeVariantKeys)
|
|
39
40
|
},
|
|
41
|
+
getVariantProps: textRecipeFn.getVariantProps,
|
|
40
42
|
})
|
|
@@ -21,6 +21,7 @@ export interface TextareaRecipeRecipe {
|
|
|
21
21
|
variantMap: TextareaRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TextareaRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TextareaRecipeVariantProps>(props: Props): [TextareaRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TextareaRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TextareaRecipeVariantProps) => TextareaRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const textareaRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const textareaRecipeVariantKeys = Object.keys(textareaRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const textareaRecipe = /* @__PURE__ */ Object.assign(memo(textareaRecipeFn), {
|
|
10
|
+
export const textareaRecipe = /* @__PURE__ */ Object.assign(memo(textareaRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'textareaRecipe',
|
|
13
|
+
__getCompoundVariantCss__: textareaRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: textareaRecipeVariantKeys,
|
|
15
16
|
variantMap: textareaRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const textareaRecipe = /* @__PURE__ */ Object.assign(memo(textareaRecipeF
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, textareaRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: textareaRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface ToastSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: ToastSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof ToastSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends ToastSlotRecipeVariantProps>(props: Props): [ToastSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ToastSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ToastSlotRecipeVariantProps) => ToastSlotRecipeVariantProps
|
|
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 toastSlotRecipeDefaultVariants = {
|
|
@@ -40,12 +40,13 @@ const toastSlotRecipeSlotNames = [
|
|
|
40
40
|
const toastSlotRecipeSlotFns = /* @__PURE__ */ toastSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, toastSlotRecipeDefaultVariants, getSlotCompoundVariant(toastSlotRecipeCompoundVariants, slotName))])
|
|
41
41
|
|
|
42
42
|
const toastSlotRecipeFn = memo((props = {}) => {
|
|
43
|
-
return Object.fromEntries(toastSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
43
|
+
return Object.fromEntries(toastSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
44
44
|
})
|
|
45
45
|
|
|
46
46
|
const toastSlotRecipeVariantKeys = [
|
|
47
47
|
"variant"
|
|
48
48
|
]
|
|
49
|
+
const getVariantProps = (variants) => ({ ...toastSlotRecipeDefaultVariants, ...compact(variants) })
|
|
49
50
|
|
|
50
51
|
export const toastSlotRecipe = /* @__PURE__ */ Object.assign(toastSlotRecipeFn, {
|
|
51
52
|
__recipe__: false,
|
|
@@ -61,4 +62,5 @@ export const toastSlotRecipe = /* @__PURE__ */ Object.assign(toastSlotRecipeFn,
|
|
|
61
62
|
splitVariantProps(props) {
|
|
62
63
|
return splitProps(props, toastSlotRecipeVariantKeys)
|
|
63
64
|
},
|
|
65
|
+
getVariantProps
|
|
64
66
|
})
|
|
@@ -21,6 +21,7 @@ export interface ToggleSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: ToggleSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof ToggleSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends ToggleSlotRecipeVariantProps>(props: Props): [ToggleSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ToggleSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ToggleSlotRecipeVariantProps) => ToggleSlotRecipeVariantProps
|
|
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 toggleSlotRecipeDefaultVariants = {}
|
|
@@ -21,10 +21,11 @@ const toggleSlotRecipeSlotNames = [
|
|
|
21
21
|
const toggleSlotRecipeSlotFns = /* @__PURE__ */ toggleSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, toggleSlotRecipeDefaultVariants, getSlotCompoundVariant(toggleSlotRecipeCompoundVariants, slotName))])
|
|
22
22
|
|
|
23
23
|
const toggleSlotRecipeFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(toggleSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
24
|
+
return Object.fromEntries(toggleSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
const toggleSlotRecipeVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...toggleSlotRecipeDefaultVariants, ...compact(variants) })
|
|
28
29
|
|
|
29
30
|
export const toggleSlotRecipe = /* @__PURE__ */ Object.assign(toggleSlotRecipeFn, {
|
|
30
31
|
__recipe__: false,
|
|
@@ -35,4 +36,5 @@ export const toggleSlotRecipe = /* @__PURE__ */ Object.assign(toggleSlotRecipeFn
|
|
|
35
36
|
splitVariantProps(props) {
|
|
36
37
|
return splitProps(props, toggleSlotRecipeVariantKeys)
|
|
37
38
|
},
|
|
39
|
+
getVariantProps
|
|
38
40
|
})
|
|
@@ -21,6 +21,7 @@ export interface TooltipRecipeRecipe {
|
|
|
21
21
|
variantMap: TooltipRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof TooltipRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends TooltipRecipeVariantProps>(props: Props): [TooltipRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TooltipRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TooltipRecipeVariantProps) => TooltipRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const tooltipRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tooltipRecipeVariantKeys = Object.keys(tooltipRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tooltipRecipe = /* @__PURE__ */ Object.assign(memo(tooltipRecipeFn), {
|
|
10
|
+
export const tooltipRecipe = /* @__PURE__ */ Object.assign(memo(tooltipRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tooltipRecipe',
|
|
13
|
+
__getCompoundVariantCss__: tooltipRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tooltipRecipeVariantKeys,
|
|
15
16
|
variantMap: tooltipRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tooltipRecipe = /* @__PURE__ */ Object.assign(memo(tooltipRecipeFn)
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tooltipRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tooltipRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface UploadListSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: UploadListSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof UploadListSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends UploadListSlotRecipeVariantProps>(props: Props): [UploadListSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof UploadListSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: UploadListSlotRecipeVariantProps) => UploadListSlotRecipeVariantProps
|
|
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 uploadListSlotRecipeDefaultVariants = {}
|
|
@@ -21,10 +21,11 @@ const uploadListSlotRecipeSlotNames = [
|
|
|
21
21
|
const uploadListSlotRecipeSlotFns = /* @__PURE__ */ uploadListSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, uploadListSlotRecipeDefaultVariants, getSlotCompoundVariant(uploadListSlotRecipeCompoundVariants, slotName))])
|
|
22
22
|
|
|
23
23
|
const uploadListSlotRecipeFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(uploadListSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
24
|
+
return Object.fromEntries(uploadListSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
const uploadListSlotRecipeVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...uploadListSlotRecipeDefaultVariants, ...compact(variants) })
|
|
28
29
|
|
|
29
30
|
export const uploadListSlotRecipe = /* @__PURE__ */ Object.assign(uploadListSlotRecipeFn, {
|
|
30
31
|
__recipe__: false,
|
|
@@ -35,4 +36,5 @@ export const uploadListSlotRecipe = /* @__PURE__ */ Object.assign(uploadListSlot
|
|
|
35
36
|
splitVariantProps(props) {
|
|
36
37
|
return splitProps(props, uploadListSlotRecipeVariantKeys)
|
|
37
38
|
},
|
|
39
|
+
getVariantProps
|
|
38
40
|
})
|
|
@@ -21,6 +21,7 @@ export interface UploadSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: UploadSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof UploadSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends UploadSlotRecipeVariantProps>(props: Props): [UploadSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof UploadSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: UploadSlotRecipeVariantProps) => UploadSlotRecipeVariantProps
|
|
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 uploadSlotRecipeDefaultVariants = {}
|
|
@@ -17,10 +17,11 @@ const uploadSlotRecipeSlotNames = [
|
|
|
17
17
|
const uploadSlotRecipeSlotFns = /* @__PURE__ */ uploadSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, uploadSlotRecipeDefaultVariants, getSlotCompoundVariant(uploadSlotRecipeCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
19
|
const uploadSlotRecipeFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(uploadSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
20
|
+
return Object.fromEntries(uploadSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
const uploadSlotRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...uploadSlotRecipeDefaultVariants, ...compact(variants) })
|
|
24
25
|
|
|
25
26
|
export const uploadSlotRecipe = /* @__PURE__ */ Object.assign(uploadSlotRecipeFn, {
|
|
26
27
|
__recipe__: false,
|
|
@@ -31,4 +32,5 @@ export const uploadSlotRecipe = /* @__PURE__ */ Object.assign(uploadSlotRecipeFn
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, uploadSlotRecipeVariantKeys)
|
|
33
34
|
},
|
|
35
|
+
getVariantProps
|
|
34
36
|
})
|
|
@@ -21,6 +21,7 @@ export interface YearItemRecipeRecipe {
|
|
|
21
21
|
variantMap: YearItemRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof YearItemRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends YearItemRecipeVariantProps>(props: Props): [YearItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof YearItemRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: YearItemRecipeVariantProps) => YearItemRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -15,9 +15,10 @@ const yearItemRecipeVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
const yearItemRecipeVariantKeys = Object.keys(yearItemRecipeVariantMap)
|
|
17
17
|
|
|
18
|
-
export const yearItemRecipe = /* @__PURE__ */ Object.assign(memo(yearItemRecipeFn), {
|
|
18
|
+
export const yearItemRecipe = /* @__PURE__ */ Object.assign(memo(yearItemRecipeFn.recipeFn), {
|
|
19
19
|
__recipe__: true,
|
|
20
20
|
__name__: 'yearItemRecipe',
|
|
21
|
+
__getCompoundVariantCss__: yearItemRecipeFn.__getCompoundVariantCss__,
|
|
21
22
|
raw: (props) => props,
|
|
22
23
|
variantKeys: yearItemRecipeVariantKeys,
|
|
23
24
|
variantMap: yearItemRecipeVariantMap,
|
|
@@ -27,4 +28,5 @@ export const yearItemRecipe = /* @__PURE__ */ Object.assign(memo(yearItemRecipeF
|
|
|
27
28
|
splitVariantProps(props) {
|
|
28
29
|
return splitProps(props, yearItemRecipeVariantKeys)
|
|
29
30
|
},
|
|
31
|
+
getVariantProps: yearItemRecipeFn.getVariantProps,
|
|
30
32
|
})
|
package/tokens/tokens.d.ts
CHANGED
|
@@ -33,8 +33,6 @@ export type ZIndexToken = "hide" | "base" | "docked" | "sticky" | "overlay" | "m
|
|
|
33
33
|
|
|
34
34
|
export type BreakpointToken = "sm" | "md" | "lg" | "xl"
|
|
35
35
|
|
|
36
|
-
export type AnimationName = "fade-in" | "fade-out" | "spin"
|
|
37
|
-
|
|
38
36
|
export type Tokens = {
|
|
39
37
|
borders: BorderToken
|
|
40
38
|
colors: ColorToken
|
|
@@ -51,7 +49,6 @@ export type Tokens = {
|
|
|
51
49
|
spacing: SpacingToken
|
|
52
50
|
zIndex: ZIndexToken
|
|
53
51
|
breakpoints: BreakpointToken
|
|
54
|
-
animationName: AnimationName
|
|
55
52
|
} & { [token: string]: never }
|
|
56
53
|
|
|
57
54
|
export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
|