@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
package/recipes/icon-recipe.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IconRecipeRecipe {
|
|
|
21
21
|
variantMap: IconRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof IconRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends IconRecipeVariantProps>(props: Props): [IconRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof IconRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: IconRecipeVariantProps) => IconRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
package/recipes/icon-recipe.mjs
CHANGED
|
@@ -14,9 +14,10 @@ const iconRecipeVariantMap = {
|
|
|
14
14
|
|
|
15
15
|
const iconRecipeVariantKeys = Object.keys(iconRecipeVariantMap)
|
|
16
16
|
|
|
17
|
-
export const iconRecipe = /* @__PURE__ */ Object.assign(memo(iconRecipeFn), {
|
|
17
|
+
export const iconRecipe = /* @__PURE__ */ Object.assign(memo(iconRecipeFn.recipeFn), {
|
|
18
18
|
__recipe__: true,
|
|
19
19
|
__name__: 'iconRecipe',
|
|
20
|
+
__getCompoundVariantCss__: iconRecipeFn.__getCompoundVariantCss__,
|
|
20
21
|
raw: (props) => props,
|
|
21
22
|
variantKeys: iconRecipeVariantKeys,
|
|
22
23
|
variantMap: iconRecipeVariantMap,
|
|
@@ -26,4 +27,5 @@ export const iconRecipe = /* @__PURE__ */ Object.assign(memo(iconRecipeFn), {
|
|
|
26
27
|
splitVariantProps(props) {
|
|
27
28
|
return splitProps(props, iconRecipeVariantKeys)
|
|
28
29
|
},
|
|
30
|
+
getVariantProps: iconRecipeFn.getVariantProps,
|
|
29
31
|
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -56,4 +56,5 @@ export * from './table-date-slot-recipe';
|
|
|
56
56
|
export * from './table-month-slot-recipe';
|
|
57
57
|
export * from './table-year-slot-recipe';
|
|
58
58
|
export * from './pinbar-slot-recipe';
|
|
59
|
-
export * from './carousel-slot-recipe';
|
|
59
|
+
export * from './carousel-slot-recipe';
|
|
60
|
+
export * from './chart-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -55,4 +55,5 @@ export * from './table-date-slot-recipe.mjs';
|
|
|
55
55
|
export * from './table-month-slot-recipe.mjs';
|
|
56
56
|
export * from './table-year-slot-recipe.mjs';
|
|
57
57
|
export * from './pinbar-slot-recipe.mjs';
|
|
58
|
-
export * from './carousel-slot-recipe.mjs';
|
|
58
|
+
export * from './carousel-slot-recipe.mjs';
|
|
59
|
+
export * from './chart-slot-recipe.mjs';
|
|
@@ -22,6 +22,7 @@ export interface InputAddonSlotRecipeRecipe {
|
|
|
22
22
|
variantMap: InputAddonSlotRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof InputAddonSlotRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends InputAddonSlotRecipeVariantProps>(props: Props): [InputAddonSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonSlotRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: InputAddonSlotRecipeVariantProps) => InputAddonSlotRecipeVariantProps
|
|
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 inputAddonSlotRecipeDefaultVariants = {
|
|
@@ -16,13 +16,14 @@ const inputAddonSlotRecipeSlotNames = [
|
|
|
16
16
|
const inputAddonSlotRecipeSlotFns = /* @__PURE__ */ inputAddonSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputAddonSlotRecipeDefaultVariants, getSlotCompoundVariant(inputAddonSlotRecipeCompoundVariants, slotName))])
|
|
17
17
|
|
|
18
18
|
const inputAddonSlotRecipeFn = memo((props = {}) => {
|
|
19
|
-
return Object.fromEntries(inputAddonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
19
|
+
return Object.fromEntries(inputAddonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
const inputAddonSlotRecipeVariantKeys = [
|
|
23
23
|
"placement",
|
|
24
24
|
"size"
|
|
25
25
|
]
|
|
26
|
+
const getVariantProps = (variants) => ({ ...inputAddonSlotRecipeDefaultVariants, ...compact(variants) })
|
|
26
27
|
|
|
27
28
|
export const inputAddonSlotRecipe = /* @__PURE__ */ Object.assign(inputAddonSlotRecipeFn, {
|
|
28
29
|
__recipe__: false,
|
|
@@ -42,4 +43,5 @@ export const inputAddonSlotRecipe = /* @__PURE__ */ Object.assign(inputAddonSlot
|
|
|
42
43
|
splitVariantProps(props) {
|
|
43
44
|
return splitProps(props, inputAddonSlotRecipeVariantKeys)
|
|
44
45
|
},
|
|
46
|
+
getVariantProps
|
|
45
47
|
})
|
|
@@ -21,6 +21,7 @@ export interface InputGroupSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: InputGroupSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof InputGroupSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends InputGroupSlotRecipeVariantProps>(props: Props): [InputGroupSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: InputGroupSlotRecipeVariantProps) => InputGroupSlotRecipeVariantProps
|
|
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 inputGroupSlotRecipeDefaultVariants = {}
|
|
@@ -13,10 +13,11 @@ const inputGroupSlotRecipeSlotNames = [
|
|
|
13
13
|
const inputGroupSlotRecipeSlotFns = /* @__PURE__ */ inputGroupSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputGroupSlotRecipeDefaultVariants, getSlotCompoundVariant(inputGroupSlotRecipeCompoundVariants, slotName))])
|
|
14
14
|
|
|
15
15
|
const inputGroupSlotRecipeFn = memo((props = {}) => {
|
|
16
|
-
return Object.fromEntries(inputGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
16
|
+
return Object.fromEntries(inputGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
const inputGroupSlotRecipeVariantKeys = []
|
|
20
|
+
const getVariantProps = (variants) => ({ ...inputGroupSlotRecipeDefaultVariants, ...compact(variants) })
|
|
20
21
|
|
|
21
22
|
export const inputGroupSlotRecipe = /* @__PURE__ */ Object.assign(inputGroupSlotRecipeFn, {
|
|
22
23
|
__recipe__: false,
|
|
@@ -27,4 +28,5 @@ export const inputGroupSlotRecipe = /* @__PURE__ */ Object.assign(inputGroupSlot
|
|
|
27
28
|
splitVariantProps(props) {
|
|
28
29
|
return splitProps(props, inputGroupSlotRecipeVariantKeys)
|
|
29
30
|
},
|
|
31
|
+
getVariantProps
|
|
30
32
|
})
|
|
@@ -22,6 +22,7 @@ export interface InputSlotRecipeRecipe {
|
|
|
22
22
|
variantMap: InputSlotRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof InputSlotRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends InputSlotRecipeVariantProps>(props: Props): [InputSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputSlotRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: InputSlotRecipeVariantProps) => InputSlotRecipeVariantProps
|
|
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 inputSlotRecipeDefaultVariants = {
|
|
@@ -24,13 +24,14 @@ const inputSlotRecipeSlotNames = [
|
|
|
24
24
|
const inputSlotRecipeSlotFns = /* @__PURE__ */ inputSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputSlotRecipeDefaultVariants, getSlotCompoundVariant(inputSlotRecipeCompoundVariants, slotName))])
|
|
25
25
|
|
|
26
26
|
const inputSlotRecipeFn = memo((props = {}) => {
|
|
27
|
-
return Object.fromEntries(inputSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
27
|
+
return Object.fromEntries(inputSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
const inputSlotRecipeVariantKeys = [
|
|
31
31
|
"variant",
|
|
32
32
|
"size"
|
|
33
33
|
]
|
|
34
|
+
const getVariantProps = (variants) => ({ ...inputSlotRecipeDefaultVariants, ...compact(variants) })
|
|
34
35
|
|
|
35
36
|
export const inputSlotRecipe = /* @__PURE__ */ Object.assign(inputSlotRecipeFn, {
|
|
36
37
|
__recipe__: false,
|
|
@@ -50,4 +51,5 @@ export const inputSlotRecipe = /* @__PURE__ */ Object.assign(inputSlotRecipeFn,
|
|
|
50
51
|
splitVariantProps(props) {
|
|
51
52
|
return splitProps(props, inputSlotRecipeVariantKeys)
|
|
52
53
|
},
|
|
54
|
+
getVariantProps
|
|
53
55
|
})
|
|
@@ -21,6 +21,7 @@ export interface InputTagSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: InputTagSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof InputTagSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends InputTagSlotRecipeVariantProps>(props: Props): [InputTagSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputTagSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: InputTagSlotRecipeVariantProps) => InputTagSlotRecipeVariantProps
|
|
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 inputTagSlotRecipeDefaultVariants = {}
|
|
@@ -53,10 +53,11 @@ const inputTagSlotRecipeSlotNames = [
|
|
|
53
53
|
const inputTagSlotRecipeSlotFns = /* @__PURE__ */ inputTagSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputTagSlotRecipeDefaultVariants, getSlotCompoundVariant(inputTagSlotRecipeCompoundVariants, slotName))])
|
|
54
54
|
|
|
55
55
|
const inputTagSlotRecipeFn = memo((props = {}) => {
|
|
56
|
-
return Object.fromEntries(inputTagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
56
|
+
return Object.fromEntries(inputTagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
57
57
|
})
|
|
58
58
|
|
|
59
59
|
const inputTagSlotRecipeVariantKeys = []
|
|
60
|
+
const getVariantProps = (variants) => ({ ...inputTagSlotRecipeDefaultVariants, ...compact(variants) })
|
|
60
61
|
|
|
61
62
|
export const inputTagSlotRecipe = /* @__PURE__ */ Object.assign(inputTagSlotRecipeFn, {
|
|
62
63
|
__recipe__: false,
|
|
@@ -67,4 +68,5 @@ export const inputTagSlotRecipe = /* @__PURE__ */ Object.assign(inputTagSlotReci
|
|
|
67
68
|
splitVariantProps(props) {
|
|
68
69
|
return splitProps(props, inputTagSlotRecipeVariantKeys)
|
|
69
70
|
},
|
|
71
|
+
getVariantProps
|
|
70
72
|
})
|
|
@@ -21,7 +21,12 @@ export interface ModalSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: ModalSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof ModalSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends ModalSlotRecipeVariantProps>(props: Props): [ModalSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ModalSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ModalSlotRecipeVariantProps) => ModalSlotRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the Modal component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const modalSlotRecipe: ModalSlotRecipeRecipe
|
|
@@ -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 modalSlotRecipeDefaultVariants = {
|
|
@@ -51,12 +51,13 @@ const modalSlotRecipeSlotNames = [
|
|
|
51
51
|
const modalSlotRecipeSlotFns = /* @__PURE__ */ modalSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, modalSlotRecipeDefaultVariants, getSlotCompoundVariant(modalSlotRecipeCompoundVariants, slotName))])
|
|
52
52
|
|
|
53
53
|
const modalSlotRecipeFn = memo((props = {}) => {
|
|
54
|
-
return Object.fromEntries(modalSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
54
|
+
return Object.fromEntries(modalSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
55
55
|
})
|
|
56
56
|
|
|
57
57
|
const modalSlotRecipeVariantKeys = [
|
|
58
58
|
"full"
|
|
59
59
|
]
|
|
60
|
+
const getVariantProps = (variants) => ({ ...modalSlotRecipeDefaultVariants, ...compact(variants) })
|
|
60
61
|
|
|
61
62
|
export const modalSlotRecipe = /* @__PURE__ */ Object.assign(modalSlotRecipeFn, {
|
|
62
63
|
__recipe__: false,
|
|
@@ -72,4 +73,5 @@ export const modalSlotRecipe = /* @__PURE__ */ Object.assign(modalSlotRecipeFn,
|
|
|
72
73
|
splitVariantProps(props) {
|
|
73
74
|
return splitProps(props, modalSlotRecipeVariantKeys)
|
|
74
75
|
},
|
|
76
|
+
getVariantProps
|
|
75
77
|
})
|
|
@@ -21,6 +21,7 @@ export interface MonthItemRecipeRecipe {
|
|
|
21
21
|
variantMap: MonthItemRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof MonthItemRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends MonthItemRecipeVariantProps>(props: Props): [MonthItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof MonthItemRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: MonthItemRecipeVariantProps) => MonthItemRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -15,9 +15,10 @@ const monthItemRecipeVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
const monthItemRecipeVariantKeys = Object.keys(monthItemRecipeVariantMap)
|
|
17
17
|
|
|
18
|
-
export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecipeFn), {
|
|
18
|
+
export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecipeFn.recipeFn), {
|
|
19
19
|
__recipe__: true,
|
|
20
20
|
__name__: 'monthItemRecipe',
|
|
21
|
+
__getCompoundVariantCss__: monthItemRecipeFn.__getCompoundVariantCss__,
|
|
21
22
|
raw: (props) => props,
|
|
22
23
|
variantKeys: monthItemRecipeVariantKeys,
|
|
23
24
|
variantMap: monthItemRecipeVariantMap,
|
|
@@ -27,4 +28,5 @@ export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecip
|
|
|
27
28
|
splitVariantProps(props) {
|
|
28
29
|
return splitProps(props, monthItemRecipeVariantKeys)
|
|
29
30
|
},
|
|
31
|
+
getVariantProps: monthItemRecipeFn.getVariantProps,
|
|
30
32
|
})
|
|
@@ -21,6 +21,7 @@ export interface PinbarSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: PinbarSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof PinbarSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends PinbarSlotRecipeVariantProps>(props: Props): [PinbarSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PinbarSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PinbarSlotRecipeVariantProps) => PinbarSlotRecipeVariantProps
|
|
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 pinbarSlotRecipeDefaultVariants = {}
|
|
@@ -17,10 +17,11 @@ const pinbarSlotRecipeSlotNames = [
|
|
|
17
17
|
const pinbarSlotRecipeSlotFns = /* @__PURE__ */ pinbarSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, pinbarSlotRecipeDefaultVariants, getSlotCompoundVariant(pinbarSlotRecipeCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
19
|
const pinbarSlotRecipeFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(pinbarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
20
|
+
return Object.fromEntries(pinbarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
const pinbarSlotRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...pinbarSlotRecipeDefaultVariants, ...compact(variants) })
|
|
24
25
|
|
|
25
26
|
export const pinbarSlotRecipe = /* @__PURE__ */ Object.assign(pinbarSlotRecipeFn, {
|
|
26
27
|
__recipe__: false,
|
|
@@ -31,4 +32,5 @@ export const pinbarSlotRecipe = /* @__PURE__ */ Object.assign(pinbarSlotRecipeFn
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, pinbarSlotRecipeVariantKeys)
|
|
33
34
|
},
|
|
35
|
+
getVariantProps
|
|
34
36
|
})
|
|
@@ -22,6 +22,7 @@ export interface PopoverContentRecipeRecipe {
|
|
|
22
22
|
variantMap: PopoverContentRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof PopoverContentRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends PopoverContentRecipeVariantProps>(props: Props): [PopoverContentRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverContentRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: PopoverContentRecipeVariantProps) => PopoverContentRecipeVariantProps
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
|
@@ -19,9 +19,10 @@ const popoverContentRecipeVariantMap = {
|
|
|
19
19
|
|
|
20
20
|
const popoverContentRecipeVariantKeys = Object.keys(popoverContentRecipeVariantMap)
|
|
21
21
|
|
|
22
|
-
export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverContentRecipeFn), {
|
|
22
|
+
export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverContentRecipeFn.recipeFn), {
|
|
23
23
|
__recipe__: true,
|
|
24
24
|
__name__: 'popoverContentRecipe',
|
|
25
|
+
__getCompoundVariantCss__: popoverContentRecipeFn.__getCompoundVariantCss__,
|
|
25
26
|
raw: (props) => props,
|
|
26
27
|
variantKeys: popoverContentRecipeVariantKeys,
|
|
27
28
|
variantMap: popoverContentRecipeVariantMap,
|
|
@@ -31,4 +32,5 @@ export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverCo
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, popoverContentRecipeVariantKeys)
|
|
33
34
|
},
|
|
35
|
+
getVariantProps: popoverContentRecipeFn.getVariantProps,
|
|
34
36
|
})
|
|
@@ -21,6 +21,7 @@ export interface PopoverListItemRecipeRecipe {
|
|
|
21
21
|
variantMap: PopoverListItemRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof PopoverListItemRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends PopoverListItemRecipeVariantProps>(props: Props): [PopoverListItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverListItemRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PopoverListItemRecipeVariantProps) => PopoverListItemRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const popoverListItemRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const popoverListItemRecipeVariantKeys = Object.keys(popoverListItemRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverListItemRecipeFn), {
|
|
10
|
+
export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverListItemRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'popoverListItemRecipe',
|
|
13
|
+
__getCompoundVariantCss__: popoverListItemRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: popoverListItemRecipeVariantKeys,
|
|
15
16
|
variantMap: popoverListItemRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverL
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, popoverListItemRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: popoverListItemRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface PopoverListRecipeRecipe {
|
|
|
21
21
|
variantMap: PopoverListRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof PopoverListRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends PopoverListRecipeVariantProps>(props: Props): [PopoverListRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverListRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PopoverListRecipeVariantProps) => PopoverListRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const popoverListRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const popoverListRecipeVariantKeys = Object.keys(popoverListRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListRecipeFn), {
|
|
10
|
+
export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'popoverListRecipe',
|
|
13
|
+
__getCompoundVariantCss__: popoverListRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: popoverListRecipeVariantKeys,
|
|
15
16
|
variantMap: popoverListRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListR
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, popoverListRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: popoverListRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -22,6 +22,7 @@ export interface ProgressSlotRecipeRecipe {
|
|
|
22
22
|
variantMap: ProgressSlotRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof ProgressSlotRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends ProgressSlotRecipeVariantProps>(props: Props): [ProgressSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ProgressSlotRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: ProgressSlotRecipeVariantProps) => ProgressSlotRecipeVariantProps
|
|
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 progressSlotRecipeDefaultVariants = {
|
|
@@ -28,13 +28,14 @@ const progressSlotRecipeSlotNames = [
|
|
|
28
28
|
const progressSlotRecipeSlotFns = /* @__PURE__ */ progressSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, progressSlotRecipeDefaultVariants, getSlotCompoundVariant(progressSlotRecipeCompoundVariants, slotName))])
|
|
29
29
|
|
|
30
30
|
const progressSlotRecipeFn = memo((props = {}) => {
|
|
31
|
-
return Object.fromEntries(progressSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
31
|
+
return Object.fromEntries(progressSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const progressSlotRecipeVariantKeys = [
|
|
35
35
|
"size",
|
|
36
36
|
"variant"
|
|
37
37
|
]
|
|
38
|
+
const getVariantProps = (variants) => ({ ...progressSlotRecipeDefaultVariants, ...compact(variants) })
|
|
38
39
|
|
|
39
40
|
export const progressSlotRecipe = /* @__PURE__ */ Object.assign(progressSlotRecipeFn, {
|
|
40
41
|
__recipe__: false,
|
|
@@ -54,4 +55,5 @@ export const progressSlotRecipe = /* @__PURE__ */ Object.assign(progressSlotReci
|
|
|
54
55
|
splitVariantProps(props) {
|
|
55
56
|
return splitProps(props, progressSlotRecipeVariantKeys)
|
|
56
57
|
},
|
|
58
|
+
getVariantProps
|
|
57
59
|
})
|
|
@@ -21,6 +21,7 @@ export interface RadioSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: RadioSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof RadioSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends RadioSlotRecipeVariantProps>(props: Props): [RadioSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RadioSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RadioSlotRecipeVariantProps) => RadioSlotRecipeVariantProps
|
|
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 radioSlotRecipeDefaultVariants = {}
|
|
@@ -21,10 +21,11 @@ const radioSlotRecipeSlotNames = [
|
|
|
21
21
|
const radioSlotRecipeSlotFns = /* @__PURE__ */ radioSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioSlotRecipeDefaultVariants, getSlotCompoundVariant(radioSlotRecipeCompoundVariants, slotName))])
|
|
22
22
|
|
|
23
23
|
const radioSlotRecipeFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(radioSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
24
|
+
return Object.fromEntries(radioSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
const radioSlotRecipeVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...radioSlotRecipeDefaultVariants, ...compact(variants) })
|
|
28
29
|
|
|
29
30
|
export const radioSlotRecipe = /* @__PURE__ */ Object.assign(radioSlotRecipeFn, {
|
|
30
31
|
__recipe__: false,
|
|
@@ -35,4 +36,5 @@ export const radioSlotRecipe = /* @__PURE__ */ Object.assign(radioSlotRecipeFn,
|
|
|
35
36
|
splitVariantProps(props) {
|
|
36
37
|
return splitProps(props, radioSlotRecipeVariantKeys)
|
|
37
38
|
},
|
|
39
|
+
getVariantProps
|
|
38
40
|
})
|
|
@@ -21,6 +21,7 @@ export interface RichTextEditorSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: RichTextEditorSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof RichTextEditorSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends RichTextEditorSlotRecipeVariantProps>(props: Props): [RichTextEditorSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RichTextEditorSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RichTextEditorSlotRecipeVariantProps) => RichTextEditorSlotRecipeVariantProps
|
|
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 richTextEditorSlotRecipeDefaultVariants = {}
|
|
@@ -21,10 +21,11 @@ const richTextEditorSlotRecipeSlotNames = [
|
|
|
21
21
|
const richTextEditorSlotRecipeSlotFns = /* @__PURE__ */ richTextEditorSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, richTextEditorSlotRecipeDefaultVariants, getSlotCompoundVariant(richTextEditorSlotRecipeCompoundVariants, slotName))])
|
|
22
22
|
|
|
23
23
|
const richTextEditorSlotRecipeFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(richTextEditorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
24
|
+
return Object.fromEntries(richTextEditorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
const richTextEditorSlotRecipeVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...richTextEditorSlotRecipeDefaultVariants, ...compact(variants) })
|
|
28
29
|
|
|
29
30
|
export const richTextEditorSlotRecipe = /* @__PURE__ */ Object.assign(richTextEditorSlotRecipeFn, {
|
|
30
31
|
__recipe__: false,
|
|
@@ -35,4 +36,5 @@ export const richTextEditorSlotRecipe = /* @__PURE__ */ Object.assign(richTextEd
|
|
|
35
36
|
splitVariantProps(props) {
|
|
36
37
|
return splitProps(props, richTextEditorSlotRecipeVariantKeys)
|
|
37
38
|
},
|
|
39
|
+
getVariantProps
|
|
38
40
|
})
|
|
@@ -21,6 +21,7 @@ export interface RTEStyleProviderRecipeRecipe {
|
|
|
21
21
|
variantMap: RTEStyleProviderRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof RTEStyleProviderRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends RTEStyleProviderRecipeVariantProps>(props: Props): [RTEStyleProviderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RTEStyleProviderRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RTEStyleProviderRecipeVariantProps) => RTEStyleProviderRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -7,9 +7,10 @@ const RTEStyleProviderRecipeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const RTEStyleProviderRecipeVariantKeys = Object.keys(RTEStyleProviderRecipeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyleProviderRecipeFn), {
|
|
10
|
+
export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyleProviderRecipeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'RTEStyleProviderRecipe',
|
|
13
|
+
__getCompoundVariantCss__: RTEStyleProviderRecipeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: RTEStyleProviderRecipeVariantKeys,
|
|
15
16
|
variantMap: RTEStyleProviderRecipeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyl
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, RTEStyleProviderRecipeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: RTEStyleProviderRecipeFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,6 +21,7 @@ export interface SegmentedControlSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: SegmentedControlSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof SegmentedControlSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends SegmentedControlSlotRecipeVariantProps>(props: Props): [SegmentedControlSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SegmentedControlSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SegmentedControlSlotRecipeVariantProps) => SegmentedControlSlotRecipeVariantProps
|
|
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 segmentedControlSlotRecipeDefaultVariants = {}
|
|
@@ -33,10 +33,11 @@ const segmentedControlSlotRecipeSlotNames = [
|
|
|
33
33
|
const segmentedControlSlotRecipeSlotFns = /* @__PURE__ */ segmentedControlSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, segmentedControlSlotRecipeDefaultVariants, getSlotCompoundVariant(segmentedControlSlotRecipeCompoundVariants, slotName))])
|
|
34
34
|
|
|
35
35
|
const segmentedControlSlotRecipeFn = memo((props = {}) => {
|
|
36
|
-
return Object.fromEntries(segmentedControlSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
36
|
+
return Object.fromEntries(segmentedControlSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
37
37
|
})
|
|
38
38
|
|
|
39
39
|
const segmentedControlSlotRecipeVariantKeys = []
|
|
40
|
+
const getVariantProps = (variants) => ({ ...segmentedControlSlotRecipeDefaultVariants, ...compact(variants) })
|
|
40
41
|
|
|
41
42
|
export const segmentedControlSlotRecipe = /* @__PURE__ */ Object.assign(segmentedControlSlotRecipeFn, {
|
|
42
43
|
__recipe__: false,
|
|
@@ -47,4 +48,5 @@ export const segmentedControlSlotRecipe = /* @__PURE__ */ Object.assign(segmente
|
|
|
47
48
|
splitVariantProps(props) {
|
|
48
49
|
return splitProps(props, segmentedControlSlotRecipeVariantKeys)
|
|
49
50
|
},
|
|
51
|
+
getVariantProps
|
|
50
52
|
})
|
|
@@ -21,6 +21,7 @@ export interface SelectSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: SelectSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof SelectSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends SelectSlotRecipeVariantProps>(props: Props): [SelectSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SelectSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SelectSlotRecipeVariantProps) => SelectSlotRecipeVariantProps
|
|
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 selectSlotRecipeDefaultVariants = {
|
|
@@ -27,12 +27,13 @@ const selectSlotRecipeSlotNames = [
|
|
|
27
27
|
const selectSlotRecipeSlotFns = /* @__PURE__ */ selectSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectSlotRecipeDefaultVariants, getSlotCompoundVariant(selectSlotRecipeCompoundVariants, slotName))])
|
|
28
28
|
|
|
29
29
|
const selectSlotRecipeFn = memo((props = {}) => {
|
|
30
|
-
return Object.fromEntries(selectSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
30
|
+
return Object.fromEntries(selectSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
31
31
|
})
|
|
32
32
|
|
|
33
33
|
const selectSlotRecipeVariantKeys = [
|
|
34
34
|
"size"
|
|
35
35
|
]
|
|
36
|
+
const getVariantProps = (variants) => ({ ...selectSlotRecipeDefaultVariants, ...compact(variants) })
|
|
36
37
|
|
|
37
38
|
export const selectSlotRecipe = /* @__PURE__ */ Object.assign(selectSlotRecipeFn, {
|
|
38
39
|
__recipe__: false,
|
|
@@ -48,4 +49,5 @@ export const selectSlotRecipe = /* @__PURE__ */ Object.assign(selectSlotRecipeFn
|
|
|
48
49
|
splitVariantProps(props) {
|
|
49
50
|
return splitProps(props, selectSlotRecipeVariantKeys)
|
|
50
51
|
},
|
|
52
|
+
getVariantProps
|
|
51
53
|
})
|
|
@@ -22,6 +22,7 @@ export interface SelectedBorderRecipeRecipe {
|
|
|
22
22
|
variantMap: SelectedBorderRecipeVariantMap
|
|
23
23
|
variantKeys: Array<keyof SelectedBorderRecipeVariant>
|
|
24
24
|
splitVariantProps<Props extends SelectedBorderRecipeVariantProps>(props: Props): [SelectedBorderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SelectedBorderRecipeVariantProps>>]
|
|
25
|
+
getVariantProps: (props?: SelectedBorderRecipeVariantProps) => SelectedBorderRecipeVariantProps
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
|
@@ -73,9 +73,10 @@ const selectedBorderRecipeVariantMap = {
|
|
|
73
73
|
|
|
74
74
|
const selectedBorderRecipeVariantKeys = Object.keys(selectedBorderRecipeVariantMap)
|
|
75
75
|
|
|
76
|
-
export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedBorderRecipeFn), {
|
|
76
|
+
export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedBorderRecipeFn.recipeFn), {
|
|
77
77
|
__recipe__: true,
|
|
78
78
|
__name__: 'selectedBorderRecipe',
|
|
79
|
+
__getCompoundVariantCss__: selectedBorderRecipeFn.__getCompoundVariantCss__,
|
|
79
80
|
raw: (props) => props,
|
|
80
81
|
variantKeys: selectedBorderRecipeVariantKeys,
|
|
81
82
|
variantMap: selectedBorderRecipeVariantMap,
|
|
@@ -85,4 +86,5 @@ export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedB
|
|
|
85
86
|
splitVariantProps(props) {
|
|
86
87
|
return splitProps(props, selectedBorderRecipeVariantKeys)
|
|
87
88
|
},
|
|
89
|
+
getVariantProps: selectedBorderRecipeFn.getVariantProps,
|
|
88
90
|
})
|
|
@@ -21,6 +21,7 @@ export interface SharedSlotRecipeRecipe {
|
|
|
21
21
|
variantMap: SharedSlotRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof SharedSlotRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends SharedSlotRecipeVariantProps>(props: Props): [SharedSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SharedSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SharedSlotRecipeVariantProps) => SharedSlotRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|