@mekari/pixel3-styled-system 0.0.6 → 0.0.7-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/recipes/calendar-panel-range-recipe.d.ts +27 -0
- package/recipes/calendar-panel-range-recipe.mjs +22 -0
- package/recipes/carousel-slot-recipe.d.ts +27 -0
- package/recipes/carousel-slot-recipe.mjs +38 -0
- package/recipes/date-item-recipe.d.ts +27 -0
- package/recipes/date-item-recipe.mjs +37 -0
- package/recipes/date-picker-recipe.d.ts +27 -0
- package/recipes/date-picker-recipe.mjs +39 -0
- package/recipes/date-picker-slot-recipe.d.ts +27 -0
- package/recipes/date-picker-slot-recipe.mjs +34 -0
- package/recipes/day-item-recipe.d.ts +27 -0
- package/recipes/day-item-recipe.mjs +22 -0
- package/recipes/index.d.ts +12 -1
- package/recipes/index.mjs +12 -1
- package/recipes/month-item-recipe.d.ts +27 -0
- package/recipes/month-item-recipe.mjs +30 -0
- package/recipes/pinbar-recipe.d.ts +27 -0
- package/recipes/pinbar-recipe.mjs +37 -0
- package/recipes/pinbar-slot-recipe.d.ts +27 -0
- package/recipes/pinbar-slot-recipe.mjs +34 -0
- package/recipes/table-date-recipe.d.ts +27 -0
- package/recipes/table-date-recipe.mjs +43 -0
- package/recipes/table-date-slot-recipe.d.ts +27 -0
- package/recipes/table-date-slot-recipe.mjs +50 -0
- package/recipes/table-month-recipe.d.ts +27 -0
- package/recipes/table-month-recipe.mjs +42 -0
- package/recipes/table-month-slot-recipe.d.ts +27 -0
- package/recipes/table-month-slot-recipe.mjs +46 -0
- package/recipes/table-year-recipe.d.ts +27 -0
- package/recipes/table-year-recipe.mjs +42 -0
- package/recipes/table-year-slot-recipe.d.ts +27 -0
- package/recipes/table-year-slot-recipe.mjs +46 -0
- package/recipes/year-item-recipe.d.ts +27 -0
- package/recipes/year-item-recipe.mjs +30 -0
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 CalendarPanelRangeRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CalendarPanelRangeRecipeVariantMap = {
|
|
10
|
+
[key in keyof CalendarPanelRangeRecipeVariant]: Array<CalendarPanelRangeRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CalendarPanelRangeRecipeVariantProps = {
|
|
14
|
+
[key in keyof CalendarPanelRangeRecipeVariant]?: ConditionalValue<CalendarPanelRangeRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CalendarPanelRangeRecipeRecipe {
|
|
18
|
+
__type: CalendarPanelRangeRecipeVariantProps
|
|
19
|
+
(props?: CalendarPanelRangeRecipeVariantProps): string
|
|
20
|
+
raw: (props?: CalendarPanelRangeRecipeVariantProps) => CalendarPanelRangeRecipeVariantProps
|
|
21
|
+
variantMap: CalendarPanelRangeRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof CalendarPanelRangeRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends CalendarPanelRangeRecipeVariantProps>(props: Props): [CalendarPanelRangeRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof CalendarPanelRangeRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const calendarPanelRangeRecipe: CalendarPanelRangeRecipeRecipe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const calendarPanelRangeRecipeFn = /* @__PURE__ */ createRecipe('calendarPanelRange', {}, [])
|
|
5
|
+
|
|
6
|
+
const calendarPanelRangeRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const calendarPanelRangeRecipeVariantKeys = Object.keys(calendarPanelRangeRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const calendarPanelRangeRecipe = /* @__PURE__ */ Object.assign(memo(calendarPanelRangeRecipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'calendarPanelRangeRecipe',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: calendarPanelRangeRecipeVariantKeys,
|
|
15
|
+
variantMap: calendarPanelRangeRecipeVariantMap,
|
|
16
|
+
merge(recipe) {
|
|
17
|
+
return mergeRecipes(this, recipe)
|
|
18
|
+
},
|
|
19
|
+
splitVariantProps(props) {
|
|
20
|
+
return splitProps(props, calendarPanelRangeRecipeVariantKeys)
|
|
21
|
+
},
|
|
22
|
+
})
|
|
@@ -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
|
+
})
|
|
@@ -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 DateItemRecipeVariant {
|
|
6
|
+
status: "default" | "selected" | "range" | "today" | "notThisMonth" | "disabled" | "weekHoveredStart" | "weekHoveredMiddle" | "weekHoveredEnd" | "weekSelectedStart" | "weekSelectedMiddle" | "weekSelectedEnd"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DateItemRecipeVariantMap = {
|
|
10
|
+
[key in keyof DateItemRecipeVariant]: Array<DateItemRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DateItemRecipeVariantProps = {
|
|
14
|
+
[key in keyof DateItemRecipeVariant]?: ConditionalValue<DateItemRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DateItemRecipeRecipe {
|
|
18
|
+
__type: DateItemRecipeVariantProps
|
|
19
|
+
(props?: DateItemRecipeVariantProps): string
|
|
20
|
+
raw: (props?: DateItemRecipeVariantProps) => DateItemRecipeVariantProps
|
|
21
|
+
variantMap: DateItemRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DateItemRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DateItemRecipeVariantProps>(props: Props): [DateItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DateItemRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const dateItemRecipe: DateItemRecipeRecipe
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dateItemRecipeFn = /* @__PURE__ */ createRecipe('dateItem', {}, [])
|
|
5
|
+
|
|
6
|
+
const dateItemRecipeVariantMap = {
|
|
7
|
+
"status": [
|
|
8
|
+
"default",
|
|
9
|
+
"selected",
|
|
10
|
+
"range",
|
|
11
|
+
"today",
|
|
12
|
+
"notThisMonth",
|
|
13
|
+
"disabled",
|
|
14
|
+
"weekHoveredStart",
|
|
15
|
+
"weekHoveredMiddle",
|
|
16
|
+
"weekHoveredEnd",
|
|
17
|
+
"weekSelectedStart",
|
|
18
|
+
"weekSelectedMiddle",
|
|
19
|
+
"weekSelectedEnd"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const dateItemRecipeVariantKeys = Object.keys(dateItemRecipeVariantMap)
|
|
24
|
+
|
|
25
|
+
export const dateItemRecipe = /* @__PURE__ */ Object.assign(memo(dateItemRecipeFn), {
|
|
26
|
+
__recipe__: true,
|
|
27
|
+
__name__: 'dateItemRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: dateItemRecipeVariantKeys,
|
|
30
|
+
variantMap: dateItemRecipeVariantMap,
|
|
31
|
+
merge(recipe) {
|
|
32
|
+
return mergeRecipes(this, recipe)
|
|
33
|
+
},
|
|
34
|
+
splitVariantProps(props) {
|
|
35
|
+
return splitProps(props, dateItemRecipeVariantKeys)
|
|
36
|
+
},
|
|
37
|
+
})
|
|
@@ -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 DatePickerRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DatePickerRecipeVariantMap = {
|
|
10
|
+
[key in keyof DatePickerRecipeVariant]: Array<DatePickerRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DatePickerRecipeVariantProps = {
|
|
14
|
+
[key in keyof DatePickerRecipeVariant]?: ConditionalValue<DatePickerRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DatePickerRecipeRecipe {
|
|
18
|
+
__type: DatePickerRecipeVariantProps
|
|
19
|
+
(props?: DatePickerRecipeVariantProps): Pretty<Record<"root" | "popoverContent", string>>
|
|
20
|
+
raw: (props?: DatePickerRecipeVariantProps) => DatePickerRecipeVariantProps
|
|
21
|
+
variantMap: DatePickerRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DatePickerRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DatePickerRecipeVariantProps>(props: Props): [DatePickerRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DatePickerRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const datePickerRecipe: DatePickerRecipeRecipe
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs'
|
|
3
|
+
|
|
4
|
+
const datePickerRecipeDefaultVariants = {}
|
|
5
|
+
const datePickerRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const datePickerRecipeSlotNames = [
|
|
8
|
+
['root', 'datepicker__root'],
|
|
9
|
+
['popoverContent', 'datepicker__popoverContent']
|
|
10
|
+
]
|
|
11
|
+
const datePickerRecipeSlotFns = /* @__PURE__ */ datePickerRecipeSlotNames.map(
|
|
12
|
+
([slotName, slotKey]) => [
|
|
13
|
+
slotName,
|
|
14
|
+
createRecipe(
|
|
15
|
+
slotKey,
|
|
16
|
+
datePickerRecipeDefaultVariants,
|
|
17
|
+
getSlotCompoundVariant(datePickerRecipeCompoundVariants, slotName)
|
|
18
|
+
)
|
|
19
|
+
]
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
const datePickerRecipeFn = memo((props = {}) => {
|
|
23
|
+
return Object.fromEntries(
|
|
24
|
+
datePickerRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)])
|
|
25
|
+
)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const datePickerRecipeVariantKeys = []
|
|
29
|
+
|
|
30
|
+
export const datePickerRecipe = /* @__PURE__ */ Object.assign(datePickerRecipeFn, {
|
|
31
|
+
__recipe__: false,
|
|
32
|
+
__name__: 'datePickerRecipe',
|
|
33
|
+
raw: (props) => props,
|
|
34
|
+
variantKeys: datePickerRecipeVariantKeys,
|
|
35
|
+
variantMap: {},
|
|
36
|
+
splitVariantProps(props) {
|
|
37
|
+
return splitProps(props, datePickerRecipeVariantKeys)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
@@ -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 DatePickerSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DatePickerSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof DatePickerSlotRecipeVariant]: Array<DatePickerSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DatePickerSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof DatePickerSlotRecipeVariant]?: ConditionalValue<DatePickerSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DatePickerSlotRecipeRecipe {
|
|
18
|
+
__type: DatePickerSlotRecipeVariantProps
|
|
19
|
+
(props?: DatePickerSlotRecipeVariantProps): Pretty<Record<"root" | "popoverContent", string>>
|
|
20
|
+
raw: (props?: DatePickerSlotRecipeVariantProps) => DatePickerSlotRecipeVariantProps
|
|
21
|
+
variantMap: DatePickerSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DatePickerSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DatePickerSlotRecipeVariantProps>(props: Props): [DatePickerSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DatePickerSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const datePickerSlotRecipe: DatePickerSlotRecipeRecipe
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const datePickerSlotRecipeDefaultVariants = {}
|
|
5
|
+
const datePickerSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const datePickerSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"datepicker__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"popoverContent",
|
|
14
|
+
"datepicker__popoverContent"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const datePickerSlotRecipeSlotFns = /* @__PURE__ */ datePickerSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, datePickerSlotRecipeDefaultVariants, getSlotCompoundVariant(datePickerSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const datePickerSlotRecipeFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(datePickerSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const datePickerSlotRecipeVariantKeys = []
|
|
24
|
+
|
|
25
|
+
export const datePickerSlotRecipe = /* @__PURE__ */ Object.assign(datePickerSlotRecipeFn, {
|
|
26
|
+
__recipe__: false,
|
|
27
|
+
__name__: 'datePickerSlotRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: datePickerSlotRecipeVariantKeys,
|
|
30
|
+
variantMap: {},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, datePickerSlotRecipeVariantKeys)
|
|
33
|
+
},
|
|
34
|
+
})
|
|
@@ -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 DayItemRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DayItemRecipeVariantMap = {
|
|
10
|
+
[key in keyof DayItemRecipeVariant]: Array<DayItemRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DayItemRecipeVariantProps = {
|
|
14
|
+
[key in keyof DayItemRecipeVariant]?: ConditionalValue<DayItemRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DayItemRecipeRecipe {
|
|
18
|
+
__type: DayItemRecipeVariantProps
|
|
19
|
+
(props?: DayItemRecipeVariantProps): string
|
|
20
|
+
raw: (props?: DayItemRecipeVariantProps) => DayItemRecipeVariantProps
|
|
21
|
+
variantMap: DayItemRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DayItemRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DayItemRecipeVariantProps>(props: Props): [DayItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DayItemRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const dayItemRecipe: DayItemRecipeRecipe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dayItemRecipeFn = /* @__PURE__ */ createRecipe('day', {}, [])
|
|
5
|
+
|
|
6
|
+
const dayItemRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const dayItemRecipeVariantKeys = Object.keys(dayItemRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const dayItemRecipe = /* @__PURE__ */ Object.assign(memo(dayItemRecipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'dayItemRecipe',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: dayItemRecipeVariantKeys,
|
|
15
|
+
variantMap: dayItemRecipeVariantMap,
|
|
16
|
+
merge(recipe) {
|
|
17
|
+
return mergeRecipes(this, recipe)
|
|
18
|
+
},
|
|
19
|
+
splitVariantProps(props) {
|
|
20
|
+
return splitProps(props, dayItemRecipeVariantKeys)
|
|
21
|
+
},
|
|
22
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export * from './banner-description-recipe';
|
|
|
21
21
|
export * from './banner-link-recipe';
|
|
22
22
|
export * from './banner-close-button-recipe';
|
|
23
23
|
export * from './rtestyle-provider-recipe';
|
|
24
|
+
export * from './calendar-panel-range-recipe';
|
|
25
|
+
export * from './day-item-recipe';
|
|
26
|
+
export * from './date-item-recipe';
|
|
27
|
+
export * from './month-item-recipe';
|
|
28
|
+
export * from './year-item-recipe';
|
|
24
29
|
export * from './accordion';
|
|
25
30
|
export * from './checkbox-slot-recipe';
|
|
26
31
|
export * from './radio-slot-recipe';
|
|
@@ -45,4 +50,10 @@ export * from './banner-icon-slot-recipe';
|
|
|
45
50
|
export * from './segmented-control-slot-recipe';
|
|
46
51
|
export * from './toast-slot-recipe';
|
|
47
52
|
export * from './broadcast-slot-recipe';
|
|
48
|
-
export * from './rich-text-editor-slot-recipe';
|
|
53
|
+
export * from './rich-text-editor-slot-recipe';
|
|
54
|
+
export * from './date-picker-slot-recipe';
|
|
55
|
+
export * from './table-date-slot-recipe';
|
|
56
|
+
export * from './table-month-slot-recipe';
|
|
57
|
+
export * from './table-year-slot-recipe';
|
|
58
|
+
export * from './pinbar-slot-recipe';
|
|
59
|
+
export * from './carousel-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -20,6 +20,11 @@ export * from './banner-description-recipe.mjs';
|
|
|
20
20
|
export * from './banner-link-recipe.mjs';
|
|
21
21
|
export * from './banner-close-button-recipe.mjs';
|
|
22
22
|
export * from './rtestyle-provider-recipe.mjs';
|
|
23
|
+
export * from './calendar-panel-range-recipe.mjs';
|
|
24
|
+
export * from './day-item-recipe.mjs';
|
|
25
|
+
export * from './date-item-recipe.mjs';
|
|
26
|
+
export * from './month-item-recipe.mjs';
|
|
27
|
+
export * from './year-item-recipe.mjs';
|
|
23
28
|
export * from './accordion.mjs';
|
|
24
29
|
export * from './checkbox-slot-recipe.mjs';
|
|
25
30
|
export * from './radio-slot-recipe.mjs';
|
|
@@ -44,4 +49,10 @@ export * from './banner-icon-slot-recipe.mjs';
|
|
|
44
49
|
export * from './segmented-control-slot-recipe.mjs';
|
|
45
50
|
export * from './toast-slot-recipe.mjs';
|
|
46
51
|
export * from './broadcast-slot-recipe.mjs';
|
|
47
|
-
export * from './rich-text-editor-slot-recipe.mjs';
|
|
52
|
+
export * from './rich-text-editor-slot-recipe.mjs';
|
|
53
|
+
export * from './date-picker-slot-recipe.mjs';
|
|
54
|
+
export * from './table-date-slot-recipe.mjs';
|
|
55
|
+
export * from './table-month-slot-recipe.mjs';
|
|
56
|
+
export * from './table-year-slot-recipe.mjs';
|
|
57
|
+
export * from './pinbar-slot-recipe.mjs';
|
|
58
|
+
export * from './carousel-slot-recipe.mjs';
|
|
@@ -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 MonthItemRecipeVariant {
|
|
6
|
+
status: "disabled" | "default" | "selected" | "range" | "today"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type MonthItemRecipeVariantMap = {
|
|
10
|
+
[key in keyof MonthItemRecipeVariant]: Array<MonthItemRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type MonthItemRecipeVariantProps = {
|
|
14
|
+
[key in keyof MonthItemRecipeVariant]?: ConditionalValue<MonthItemRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface MonthItemRecipeRecipe {
|
|
18
|
+
__type: MonthItemRecipeVariantProps
|
|
19
|
+
(props?: MonthItemRecipeVariantProps): string
|
|
20
|
+
raw: (props?: MonthItemRecipeVariantProps) => MonthItemRecipeVariantProps
|
|
21
|
+
variantMap: MonthItemRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof MonthItemRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends MonthItemRecipeVariantProps>(props: Props): [MonthItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof MonthItemRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const monthItemRecipe: MonthItemRecipeRecipe
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const monthItemRecipeFn = /* @__PURE__ */ createRecipe('monthItem', {}, [])
|
|
5
|
+
|
|
6
|
+
const monthItemRecipeVariantMap = {
|
|
7
|
+
"status": [
|
|
8
|
+
"disabled",
|
|
9
|
+
"default",
|
|
10
|
+
"selected",
|
|
11
|
+
"range",
|
|
12
|
+
"today"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const monthItemRecipeVariantKeys = Object.keys(monthItemRecipeVariantMap)
|
|
17
|
+
|
|
18
|
+
export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecipeFn), {
|
|
19
|
+
__recipe__: true,
|
|
20
|
+
__name__: 'monthItemRecipe',
|
|
21
|
+
raw: (props) => props,
|
|
22
|
+
variantKeys: monthItemRecipeVariantKeys,
|
|
23
|
+
variantMap: monthItemRecipeVariantMap,
|
|
24
|
+
merge(recipe) {
|
|
25
|
+
return mergeRecipes(this, recipe)
|
|
26
|
+
},
|
|
27
|
+
splitVariantProps(props) {
|
|
28
|
+
return splitProps(props, monthItemRecipeVariantKeys)
|
|
29
|
+
},
|
|
30
|
+
})
|
|
@@ -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 PinbarRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type PinbarRecipeVariantMap = {
|
|
10
|
+
[key in keyof PinbarRecipeVariant]: Array<PinbarRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PinbarRecipeVariantProps = {
|
|
14
|
+
[key in keyof PinbarRecipeVariant]?: ConditionalValue<PinbarRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PinbarRecipeRecipe {
|
|
18
|
+
__type: PinbarRecipeVariantProps
|
|
19
|
+
(props?: PinbarRecipeVariantProps): Pretty<Record<"root" | "pinbar", string>>
|
|
20
|
+
raw: (props?: PinbarRecipeVariantProps) => PinbarRecipeVariantProps
|
|
21
|
+
variantMap: PinbarRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof PinbarRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends PinbarRecipeVariantProps>(props: Props): [PinbarRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PinbarRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const pinbarRecipe: PinbarRecipeRecipe
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs'
|
|
3
|
+
|
|
4
|
+
const pinbarRecipeDefaultVariants = {}
|
|
5
|
+
const pinbarRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const pinbarRecipeSlotNames = [
|
|
8
|
+
['root', 'pinbar__root'],
|
|
9
|
+
['pinbar', 'pinbar__pinbar']
|
|
10
|
+
]
|
|
11
|
+
const pinbarRecipeSlotFns = /* @__PURE__ */ pinbarRecipeSlotNames.map(([slotName, slotKey]) => [
|
|
12
|
+
slotName,
|
|
13
|
+
createRecipe(
|
|
14
|
+
slotKey,
|
|
15
|
+
pinbarRecipeDefaultVariants,
|
|
16
|
+
getSlotCompoundVariant(pinbarRecipeCompoundVariants, slotName)
|
|
17
|
+
)
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
const pinbarRecipeFn = memo((props = {}) => {
|
|
21
|
+
return Object.fromEntries(
|
|
22
|
+
pinbarRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)])
|
|
23
|
+
)
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const pinbarRecipeVariantKeys = []
|
|
27
|
+
|
|
28
|
+
export const pinbarRecipe = /* @__PURE__ */ Object.assign(pinbarRecipeFn, {
|
|
29
|
+
__recipe__: false,
|
|
30
|
+
__name__: 'pinbarRecipe',
|
|
31
|
+
raw: (props) => props,
|
|
32
|
+
variantKeys: pinbarRecipeVariantKeys,
|
|
33
|
+
variantMap: {},
|
|
34
|
+
splitVariantProps(props) {
|
|
35
|
+
return splitProps(props, pinbarRecipeVariantKeys)
|
|
36
|
+
}
|
|
37
|
+
})
|
|
@@ -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 PinbarSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type PinbarSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof PinbarSlotRecipeVariant]: Array<PinbarSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PinbarSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof PinbarSlotRecipeVariant]?: ConditionalValue<PinbarSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PinbarSlotRecipeRecipe {
|
|
18
|
+
__type: PinbarSlotRecipeVariantProps
|
|
19
|
+
(props?: PinbarSlotRecipeVariantProps): Pretty<Record<"root" | "pinbar", string>>
|
|
20
|
+
raw: (props?: PinbarSlotRecipeVariantProps) => PinbarSlotRecipeVariantProps
|
|
21
|
+
variantMap: PinbarSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof PinbarSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends PinbarSlotRecipeVariantProps>(props: Props): [PinbarSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PinbarSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const pinbarSlotRecipe: PinbarSlotRecipeRecipe
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const pinbarSlotRecipeDefaultVariants = {}
|
|
5
|
+
const pinbarSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const pinbarSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"pinbar__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"pinbar",
|
|
14
|
+
"pinbar__pinbar"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const pinbarSlotRecipeSlotFns = /* @__PURE__ */ pinbarSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, pinbarSlotRecipeDefaultVariants, getSlotCompoundVariant(pinbarSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const pinbarSlotRecipeFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(pinbarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const pinbarSlotRecipeVariantKeys = []
|
|
24
|
+
|
|
25
|
+
export const pinbarSlotRecipe = /* @__PURE__ */ Object.assign(pinbarSlotRecipeFn, {
|
|
26
|
+
__recipe__: false,
|
|
27
|
+
__name__: 'pinbarSlotRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: pinbarSlotRecipeVariantKeys,
|
|
30
|
+
variantMap: {},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, pinbarSlotRecipeVariantKeys)
|
|
33
|
+
},
|
|
34
|
+
})
|
|
@@ -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 TableDateRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableDateRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableDateRecipeVariant]: Array<TableDateRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableDateRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableDateRecipeVariant]?: ConditionalValue<TableDateRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableDateRecipeRecipe {
|
|
18
|
+
__type: TableDateRecipeVariantProps
|
|
19
|
+
(props?: TableDateRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "dayWrapper" | "dateItemRoot" | "dateItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableDateRecipeVariantProps) => TableDateRecipeVariantProps
|
|
21
|
+
variantMap: TableDateRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableDateRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableDateRecipeVariantProps>(props: Props): [TableDateRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableDateRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableDateRecipe: TableDateRecipeRecipe
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs'
|
|
3
|
+
|
|
4
|
+
const tableDateRecipeDefaultVariants = {}
|
|
5
|
+
const tableDateRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableDateRecipeSlotNames = [
|
|
8
|
+
['headerRoot', 'tableDate__headerRoot'],
|
|
9
|
+
['headerLabel', 'tableDate__headerLabel'],
|
|
10
|
+
['dayWrapper', 'tableDate__dayWrapper'],
|
|
11
|
+
['dateItemRoot', 'tableDate__dateItemRoot'],
|
|
12
|
+
['dateItemWrapper', 'tableDate__dateItemWrapper'],
|
|
13
|
+
['shortcutLabelWrapper', 'tableDate__shortcutLabelWrapper']
|
|
14
|
+
]
|
|
15
|
+
const tableDateRecipeSlotFns = /* @__PURE__ */ tableDateRecipeSlotNames.map(
|
|
16
|
+
([slotName, slotKey]) => [
|
|
17
|
+
slotName,
|
|
18
|
+
createRecipe(
|
|
19
|
+
slotKey,
|
|
20
|
+
tableDateRecipeDefaultVariants,
|
|
21
|
+
getSlotCompoundVariant(tableDateRecipeCompoundVariants, slotName)
|
|
22
|
+
)
|
|
23
|
+
]
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const tableDateRecipeFn = memo((props = {}) => {
|
|
27
|
+
return Object.fromEntries(
|
|
28
|
+
tableDateRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)])
|
|
29
|
+
)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const tableDateRecipeVariantKeys = []
|
|
33
|
+
|
|
34
|
+
export const tableDateRecipe = /* @__PURE__ */ Object.assign(tableDateRecipeFn, {
|
|
35
|
+
__recipe__: false,
|
|
36
|
+
__name__: 'tableDateRecipe',
|
|
37
|
+
raw: (props) => props,
|
|
38
|
+
variantKeys: tableDateRecipeVariantKeys,
|
|
39
|
+
variantMap: {},
|
|
40
|
+
splitVariantProps(props) {
|
|
41
|
+
return splitProps(props, tableDateRecipeVariantKeys)
|
|
42
|
+
}
|
|
43
|
+
})
|
|
@@ -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 TableDateSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableDateSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableDateSlotRecipeVariant]: Array<TableDateSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableDateSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableDateSlotRecipeVariant]?: ConditionalValue<TableDateSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableDateSlotRecipeRecipe {
|
|
18
|
+
__type: TableDateSlotRecipeVariantProps
|
|
19
|
+
(props?: TableDateSlotRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "dayWrapper" | "dateItemRoot" | "dateItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableDateSlotRecipeVariantProps) => TableDateSlotRecipeVariantProps
|
|
21
|
+
variantMap: TableDateSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableDateSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableDateSlotRecipeVariantProps>(props: Props): [TableDateSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableDateSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableDateSlotRecipe: TableDateSlotRecipeRecipe
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableDateSlotRecipeDefaultVariants = {}
|
|
5
|
+
const tableDateSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableDateSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"headerRoot",
|
|
10
|
+
"tableDate__headerRoot"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"headerLabel",
|
|
14
|
+
"tableDate__headerLabel"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"dayWrapper",
|
|
18
|
+
"tableDate__dayWrapper"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"dateItemRoot",
|
|
22
|
+
"tableDate__dateItemRoot"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"dateItemWrapper",
|
|
26
|
+
"tableDate__dateItemWrapper"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"shortcutLabelWrapper",
|
|
30
|
+
"tableDate__shortcutLabelWrapper"
|
|
31
|
+
]
|
|
32
|
+
]
|
|
33
|
+
const tableDateSlotRecipeSlotFns = /* @__PURE__ */ tableDateSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableDateSlotRecipeDefaultVariants, getSlotCompoundVariant(tableDateSlotRecipeCompoundVariants, slotName))])
|
|
34
|
+
|
|
35
|
+
const tableDateSlotRecipeFn = memo((props = {}) => {
|
|
36
|
+
return Object.fromEntries(tableDateSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const tableDateSlotRecipeVariantKeys = []
|
|
40
|
+
|
|
41
|
+
export const tableDateSlotRecipe = /* @__PURE__ */ Object.assign(tableDateSlotRecipeFn, {
|
|
42
|
+
__recipe__: false,
|
|
43
|
+
__name__: 'tableDateSlotRecipe',
|
|
44
|
+
raw: (props) => props,
|
|
45
|
+
variantKeys: tableDateSlotRecipeVariantKeys,
|
|
46
|
+
variantMap: {},
|
|
47
|
+
splitVariantProps(props) {
|
|
48
|
+
return splitProps(props, tableDateSlotRecipeVariantKeys)
|
|
49
|
+
},
|
|
50
|
+
})
|
|
@@ -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 TableMonthRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableMonthRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableMonthRecipeVariant]: Array<TableMonthRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableMonthRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableMonthRecipeVariant]?: ConditionalValue<TableMonthRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableMonthRecipeRecipe {
|
|
18
|
+
__type: TableMonthRecipeVariantProps
|
|
19
|
+
(props?: TableMonthRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "monthItemRoot" | "monthItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableMonthRecipeVariantProps) => TableMonthRecipeVariantProps
|
|
21
|
+
variantMap: TableMonthRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableMonthRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableMonthRecipeVariantProps>(props: Props): [TableMonthRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableMonthRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableMonthRecipe: TableMonthRecipeRecipe
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs'
|
|
3
|
+
|
|
4
|
+
const tableMonthRecipeDefaultVariants = {}
|
|
5
|
+
const tableMonthRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableMonthRecipeSlotNames = [
|
|
8
|
+
['headerRoot', 'tableMonth__headerRoot'],
|
|
9
|
+
['headerLabel', 'tableMonth__headerLabel'],
|
|
10
|
+
['monthItemRoot', 'tableMonth__monthItemRoot'],
|
|
11
|
+
['monthItemWrapper', 'tableMonth__monthItemWrapper'],
|
|
12
|
+
['shortcutLabelWrapper', 'tableMonth__shortcutLabelWrapper']
|
|
13
|
+
]
|
|
14
|
+
const tableMonthRecipeSlotFns = /* @__PURE__ */ tableMonthRecipeSlotNames.map(
|
|
15
|
+
([slotName, slotKey]) => [
|
|
16
|
+
slotName,
|
|
17
|
+
createRecipe(
|
|
18
|
+
slotKey,
|
|
19
|
+
tableMonthRecipeDefaultVariants,
|
|
20
|
+
getSlotCompoundVariant(tableMonthRecipeCompoundVariants, slotName)
|
|
21
|
+
)
|
|
22
|
+
]
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const tableMonthRecipeFn = memo((props = {}) => {
|
|
26
|
+
return Object.fromEntries(
|
|
27
|
+
tableMonthRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)])
|
|
28
|
+
)
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const tableMonthRecipeVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const tableMonthRecipe = /* @__PURE__ */ Object.assign(tableMonthRecipeFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'tableMonthRecipe',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: tableMonthRecipeVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, tableMonthRecipeVariantKeys)
|
|
41
|
+
}
|
|
42
|
+
})
|
|
@@ -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 TableMonthSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableMonthSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableMonthSlotRecipeVariant]: Array<TableMonthSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableMonthSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableMonthSlotRecipeVariant]?: ConditionalValue<TableMonthSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableMonthSlotRecipeRecipe {
|
|
18
|
+
__type: TableMonthSlotRecipeVariantProps
|
|
19
|
+
(props?: TableMonthSlotRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "monthItemRoot" | "monthItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableMonthSlotRecipeVariantProps) => TableMonthSlotRecipeVariantProps
|
|
21
|
+
variantMap: TableMonthSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableMonthSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableMonthSlotRecipeVariantProps>(props: Props): [TableMonthSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableMonthSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableMonthSlotRecipe: TableMonthSlotRecipeRecipe
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableMonthSlotRecipeDefaultVariants = {}
|
|
5
|
+
const tableMonthSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableMonthSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"headerRoot",
|
|
10
|
+
"tableMonth__headerRoot"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"headerLabel",
|
|
14
|
+
"tableMonth__headerLabel"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"monthItemRoot",
|
|
18
|
+
"tableMonth__monthItemRoot"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"monthItemWrapper",
|
|
22
|
+
"tableMonth__monthItemWrapper"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"shortcutLabelWrapper",
|
|
26
|
+
"tableMonth__shortcutLabelWrapper"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const tableMonthSlotRecipeSlotFns = /* @__PURE__ */ tableMonthSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableMonthSlotRecipeDefaultVariants, getSlotCompoundVariant(tableMonthSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const tableMonthSlotRecipeFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(tableMonthSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const tableMonthSlotRecipeVariantKeys = []
|
|
36
|
+
|
|
37
|
+
export const tableMonthSlotRecipe = /* @__PURE__ */ Object.assign(tableMonthSlotRecipeFn, {
|
|
38
|
+
__recipe__: false,
|
|
39
|
+
__name__: 'tableMonthSlotRecipe',
|
|
40
|
+
raw: (props) => props,
|
|
41
|
+
variantKeys: tableMonthSlotRecipeVariantKeys,
|
|
42
|
+
variantMap: {},
|
|
43
|
+
splitVariantProps(props) {
|
|
44
|
+
return splitProps(props, tableMonthSlotRecipeVariantKeys)
|
|
45
|
+
},
|
|
46
|
+
})
|
|
@@ -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 TableYearRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableYearRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableYearRecipeVariant]: Array<TableYearRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableYearRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableYearRecipeVariant]?: ConditionalValue<TableYearRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableYearRecipeRecipe {
|
|
18
|
+
__type: TableYearRecipeVariantProps
|
|
19
|
+
(props?: TableYearRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "yearItemRoot" | "yearItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableYearRecipeVariantProps) => TableYearRecipeVariantProps
|
|
21
|
+
variantMap: TableYearRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableYearRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableYearRecipeVariantProps>(props: Props): [TableYearRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableYearRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableYearRecipe: TableYearRecipeRecipe
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs'
|
|
3
|
+
|
|
4
|
+
const tableYearRecipeDefaultVariants = {}
|
|
5
|
+
const tableYearRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableYearRecipeSlotNames = [
|
|
8
|
+
['headerRoot', 'tableYear__headerRoot'],
|
|
9
|
+
['headerLabel', 'tableYear__headerLabel'],
|
|
10
|
+
['yearItemRoot', 'tableYear__yearItemRoot'],
|
|
11
|
+
['yearItemWrapper', 'tableYear__yearItemWrapper'],
|
|
12
|
+
['shortcutLabelWrapper', 'tableYear__shortcutLabelWrapper']
|
|
13
|
+
]
|
|
14
|
+
const tableYearRecipeSlotFns = /* @__PURE__ */ tableYearRecipeSlotNames.map(
|
|
15
|
+
([slotName, slotKey]) => [
|
|
16
|
+
slotName,
|
|
17
|
+
createRecipe(
|
|
18
|
+
slotKey,
|
|
19
|
+
tableYearRecipeDefaultVariants,
|
|
20
|
+
getSlotCompoundVariant(tableYearRecipeCompoundVariants, slotName)
|
|
21
|
+
)
|
|
22
|
+
]
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const tableYearRecipeFn = memo((props = {}) => {
|
|
26
|
+
return Object.fromEntries(
|
|
27
|
+
tableYearRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)])
|
|
28
|
+
)
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const tableYearRecipeVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const tableYearRecipe = /* @__PURE__ */ Object.assign(tableYearRecipeFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'tableYearRecipe',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: tableYearRecipeVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, tableYearRecipeVariantKeys)
|
|
41
|
+
}
|
|
42
|
+
})
|
|
@@ -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 TableYearSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TableYearSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TableYearSlotRecipeVariant]: Array<TableYearSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TableYearSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TableYearSlotRecipeVariant]?: ConditionalValue<TableYearSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TableYearSlotRecipeRecipe {
|
|
18
|
+
__type: TableYearSlotRecipeVariantProps
|
|
19
|
+
(props?: TableYearSlotRecipeVariantProps): Pretty<Record<"headerRoot" | "headerLabel" | "yearItemRoot" | "yearItemWrapper" | "shortcutLabelWrapper", string>>
|
|
20
|
+
raw: (props?: TableYearSlotRecipeVariantProps) => TableYearSlotRecipeVariantProps
|
|
21
|
+
variantMap: TableYearSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TableYearSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TableYearSlotRecipeVariantProps>(props: Props): [TableYearSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TableYearSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const tableYearSlotRecipe: TableYearSlotRecipeRecipe
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableYearSlotRecipeDefaultVariants = {}
|
|
5
|
+
const tableYearSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tableYearSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"headerRoot",
|
|
10
|
+
"tableYear__headerRoot"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"headerLabel",
|
|
14
|
+
"tableYear__headerLabel"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"yearItemRoot",
|
|
18
|
+
"tableYear__yearItemRoot"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"yearItemWrapper",
|
|
22
|
+
"tableYear__yearItemWrapper"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"shortcutLabelWrapper",
|
|
26
|
+
"tableYear__shortcutLabelWrapper"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const tableYearSlotRecipeSlotFns = /* @__PURE__ */ tableYearSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableYearSlotRecipeDefaultVariants, getSlotCompoundVariant(tableYearSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const tableYearSlotRecipeFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(tableYearSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const tableYearSlotRecipeVariantKeys = []
|
|
36
|
+
|
|
37
|
+
export const tableYearSlotRecipe = /* @__PURE__ */ Object.assign(tableYearSlotRecipeFn, {
|
|
38
|
+
__recipe__: false,
|
|
39
|
+
__name__: 'tableYearSlotRecipe',
|
|
40
|
+
raw: (props) => props,
|
|
41
|
+
variantKeys: tableYearSlotRecipeVariantKeys,
|
|
42
|
+
variantMap: {},
|
|
43
|
+
splitVariantProps(props) {
|
|
44
|
+
return splitProps(props, tableYearSlotRecipeVariantKeys)
|
|
45
|
+
},
|
|
46
|
+
})
|
|
@@ -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 YearItemRecipeVariant {
|
|
6
|
+
status: "disabled" | "default" | "selected" | "range" | "today"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type YearItemRecipeVariantMap = {
|
|
10
|
+
[key in keyof YearItemRecipeVariant]: Array<YearItemRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type YearItemRecipeVariantProps = {
|
|
14
|
+
[key in keyof YearItemRecipeVariant]?: ConditionalValue<YearItemRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface YearItemRecipeRecipe {
|
|
18
|
+
__type: YearItemRecipeVariantProps
|
|
19
|
+
(props?: YearItemRecipeVariantProps): string
|
|
20
|
+
raw: (props?: YearItemRecipeVariantProps) => YearItemRecipeVariantProps
|
|
21
|
+
variantMap: YearItemRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof YearItemRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends YearItemRecipeVariantProps>(props: Props): [YearItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof YearItemRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const yearItemRecipe: YearItemRecipeRecipe
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const yearItemRecipeFn = /* @__PURE__ */ createRecipe('yearItem', {}, [])
|
|
5
|
+
|
|
6
|
+
const yearItemRecipeVariantMap = {
|
|
7
|
+
"status": [
|
|
8
|
+
"disabled",
|
|
9
|
+
"default",
|
|
10
|
+
"selected",
|
|
11
|
+
"range",
|
|
12
|
+
"today"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const yearItemRecipeVariantKeys = Object.keys(yearItemRecipeVariantMap)
|
|
17
|
+
|
|
18
|
+
export const yearItemRecipe = /* @__PURE__ */ Object.assign(memo(yearItemRecipeFn), {
|
|
19
|
+
__recipe__: true,
|
|
20
|
+
__name__: 'yearItemRecipe',
|
|
21
|
+
raw: (props) => props,
|
|
22
|
+
variantKeys: yearItemRecipeVariantKeys,
|
|
23
|
+
variantMap: yearItemRecipeVariantMap,
|
|
24
|
+
merge(recipe) {
|
|
25
|
+
return mergeRecipes(this, recipe)
|
|
26
|
+
},
|
|
27
|
+
splitVariantProps(props) {
|
|
28
|
+
return splitProps(props, yearItemRecipeVariantKeys)
|
|
29
|
+
},
|
|
30
|
+
})
|