@mekari/pixel3-styled-system 0.0.10-dev.0 → 0.0.10-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 +9 -0
- package/package.json +1 -1
- package/recipes/color-picker-slot-recipe.d.ts +28 -0
- package/recipes/color-picker-slot-recipe.mjs +84 -0
- package/recipes/index.d.ts +5 -2
- package/recipes/index.mjs +5 -2
- package/recipes/slider-slot-recipe.d.ts +28 -0
- package/recipes/slider-slot-recipe.mjs +60 -0
- package/recipes/tab-list-slot-recipe.d.ts +28 -0
- package/recipes/tab-list-slot-recipe.mjs +36 -0
- package/recipes/time-panel-slot-recipe.d.ts +28 -0
- package/recipes/time-panel-slot-recipe.mjs +36 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.0.10-dev.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 95fe7cd: - Update datepicker recipe.
|
|
8
|
+
- Update tabs recipe.
|
|
9
|
+
- 04f23d5: - Generate new style.
|
|
10
|
+
- 0792952: Generate new style
|
|
11
|
+
|
|
3
12
|
## 0.0.10-dev.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface ColorPickerSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ColorPickerSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof ColorPickerSlotRecipeVariant]: Array<ColorPickerSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ColorPickerSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof ColorPickerSlotRecipeVariant]?: ConditionalValue<ColorPickerSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ColorPickerSlotRecipeRecipe {
|
|
18
|
+
__type: ColorPickerSlotRecipeVariantProps
|
|
19
|
+
(props?: ColorPickerSlotRecipeVariantProps): Pretty<Record<"root" | "popoverTrigger" | "boxColor" | "inputTrigger" | "iconDropdown" | "popoverContent" | "wrapperAdvance" | "wrapperBasic" | "wrapperSaturation" | "wrapperHue" | "wrapperInput" | "boxPreset" | "wrapperPreset" | "wrapperBasicPreset", string>>
|
|
20
|
+
raw: (props?: ColorPickerSlotRecipeVariantProps) => ColorPickerSlotRecipeVariantProps
|
|
21
|
+
variantMap: ColorPickerSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof ColorPickerSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends ColorPickerSlotRecipeVariantProps>(props: Props): [ColorPickerSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ColorPickerSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ColorPickerSlotRecipeVariantProps) => ColorPickerSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const colorPickerSlotRecipe: ColorPickerSlotRecipeRecipe
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const colorPickerSlotRecipeDefaultVariants = {}
|
|
5
|
+
const colorPickerSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const colorPickerSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"color-picker__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"popoverTrigger",
|
|
14
|
+
"color-picker__popoverTrigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"boxColor",
|
|
18
|
+
"color-picker__boxColor"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"inputTrigger",
|
|
22
|
+
"color-picker__inputTrigger"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"iconDropdown",
|
|
26
|
+
"color-picker__iconDropdown"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"popoverContent",
|
|
30
|
+
"color-picker__popoverContent"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"wrapperAdvance",
|
|
34
|
+
"color-picker__wrapperAdvance"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"wrapperBasic",
|
|
38
|
+
"color-picker__wrapperBasic"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"wrapperSaturation",
|
|
42
|
+
"color-picker__wrapperSaturation"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"wrapperHue",
|
|
46
|
+
"color-picker__wrapperHue"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"wrapperInput",
|
|
50
|
+
"color-picker__wrapperInput"
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"boxPreset",
|
|
54
|
+
"color-picker__boxPreset"
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"wrapperPreset",
|
|
58
|
+
"color-picker__wrapperPreset"
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"wrapperBasicPreset",
|
|
62
|
+
"color-picker__wrapperBasicPreset"
|
|
63
|
+
]
|
|
64
|
+
]
|
|
65
|
+
const colorPickerSlotRecipeSlotFns = /* @__PURE__ */ colorPickerSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, colorPickerSlotRecipeDefaultVariants, getSlotCompoundVariant(colorPickerSlotRecipeCompoundVariants, slotName))])
|
|
66
|
+
|
|
67
|
+
const colorPickerSlotRecipeFn = memo((props = {}) => {
|
|
68
|
+
return Object.fromEntries(colorPickerSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
const colorPickerSlotRecipeVariantKeys = []
|
|
72
|
+
const getVariantProps = (variants) => ({ ...colorPickerSlotRecipeDefaultVariants, ...compact(variants) })
|
|
73
|
+
|
|
74
|
+
export const colorPickerSlotRecipe = /* @__PURE__ */ Object.assign(colorPickerSlotRecipeFn, {
|
|
75
|
+
__recipe__: false,
|
|
76
|
+
__name__: 'colorPickerSlotRecipe',
|
|
77
|
+
raw: (props) => props,
|
|
78
|
+
variantKeys: colorPickerSlotRecipeVariantKeys,
|
|
79
|
+
variantMap: {},
|
|
80
|
+
splitVariantProps(props) {
|
|
81
|
+
return splitProps(props, colorPickerSlotRecipeVariantKeys)
|
|
82
|
+
},
|
|
83
|
+
getVariantProps
|
|
84
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './popover-list-item-recipe';
|
|
|
10
10
|
export * from './badge-recipe';
|
|
11
11
|
export * from './textarea-recipe';
|
|
12
12
|
export * from './tooltip-recipe';
|
|
13
|
-
export * from './tab-list-recipe';
|
|
14
13
|
export * from './tab-recipe';
|
|
15
14
|
export * from './selected-border-recipe';
|
|
16
15
|
export * from './table-recipe';
|
|
@@ -53,6 +52,7 @@ export * from './toast-slot-recipe';
|
|
|
53
52
|
export * from './broadcast-slot-recipe';
|
|
54
53
|
export * from './rich-text-editor-slot-recipe';
|
|
55
54
|
export * from './date-picker-slot-recipe';
|
|
55
|
+
export * from './time-panel-slot-recipe';
|
|
56
56
|
export * from './table-date-slot-recipe';
|
|
57
57
|
export * from './table-month-slot-recipe';
|
|
58
58
|
export * from './table-year-slot-recipe';
|
|
@@ -64,4 +64,7 @@ export * from './timeline-slot-recipe';
|
|
|
64
64
|
export * from './timeline-document-slot-recipe';
|
|
65
65
|
export * from './timeline-log-slot-recipe';
|
|
66
66
|
export * from './timeline-separator-slot-recipe';
|
|
67
|
-
export * from './timeline-accordion-slot-recipe';
|
|
67
|
+
export * from './timeline-accordion-slot-recipe';
|
|
68
|
+
export * from './tab-list-slot-recipe';
|
|
69
|
+
export * from './color-picker-slot-recipe';
|
|
70
|
+
export * from './slider-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -9,7 +9,6 @@ export * from './popover-list-item-recipe.mjs';
|
|
|
9
9
|
export * from './badge-recipe.mjs';
|
|
10
10
|
export * from './textarea-recipe.mjs';
|
|
11
11
|
export * from './tooltip-recipe.mjs';
|
|
12
|
-
export * from './tab-list-recipe.mjs';
|
|
13
12
|
export * from './tab-recipe.mjs';
|
|
14
13
|
export * from './selected-border-recipe.mjs';
|
|
15
14
|
export * from './table-recipe.mjs';
|
|
@@ -52,6 +51,7 @@ export * from './toast-slot-recipe.mjs';
|
|
|
52
51
|
export * from './broadcast-slot-recipe.mjs';
|
|
53
52
|
export * from './rich-text-editor-slot-recipe.mjs';
|
|
54
53
|
export * from './date-picker-slot-recipe.mjs';
|
|
54
|
+
export * from './time-panel-slot-recipe.mjs';
|
|
55
55
|
export * from './table-date-slot-recipe.mjs';
|
|
56
56
|
export * from './table-month-slot-recipe.mjs';
|
|
57
57
|
export * from './table-year-slot-recipe.mjs';
|
|
@@ -63,4 +63,7 @@ export * from './timeline-slot-recipe.mjs';
|
|
|
63
63
|
export * from './timeline-document-slot-recipe.mjs';
|
|
64
64
|
export * from './timeline-log-slot-recipe.mjs';
|
|
65
65
|
export * from './timeline-separator-slot-recipe.mjs';
|
|
66
|
-
export * from './timeline-accordion-slot-recipe.mjs';
|
|
66
|
+
export * from './timeline-accordion-slot-recipe.mjs';
|
|
67
|
+
export * from './tab-list-slot-recipe.mjs';
|
|
68
|
+
export * from './color-picker-slot-recipe.mjs';
|
|
69
|
+
export * from './slider-slot-recipe.mjs';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface SliderSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type SliderSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof SliderSlotRecipeVariant]: Array<SliderSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type SliderSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof SliderSlotRecipeVariant]?: ConditionalValue<SliderSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SliderSlotRecipeRecipe {
|
|
18
|
+
__type: SliderSlotRecipeVariantProps
|
|
19
|
+
(props?: SliderSlotRecipeVariantProps): Pretty<Record<"root" | "labelWrapper" | "sliderWrapper" | "progress" | "slider" | "inputWrapper" | "input" | "legendWrapper", string>>
|
|
20
|
+
raw: (props?: SliderSlotRecipeVariantProps) => SliderSlotRecipeVariantProps
|
|
21
|
+
variantMap: SliderSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof SliderSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends SliderSlotRecipeVariantProps>(props: Props): [SliderSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SliderSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SliderSlotRecipeVariantProps) => SliderSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const sliderSlotRecipe: SliderSlotRecipeRecipe
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const sliderSlotRecipeDefaultVariants = {}
|
|
5
|
+
const sliderSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const sliderSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"slider__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"labelWrapper",
|
|
14
|
+
"slider__labelWrapper"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"sliderWrapper",
|
|
18
|
+
"slider__sliderWrapper"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"progress",
|
|
22
|
+
"slider__progress"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"slider",
|
|
26
|
+
"slider__slider"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"inputWrapper",
|
|
30
|
+
"slider__inputWrapper"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"input",
|
|
34
|
+
"slider__input"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"legendWrapper",
|
|
38
|
+
"slider__legendWrapper"
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
const sliderSlotRecipeSlotFns = /* @__PURE__ */ sliderSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderSlotRecipeDefaultVariants, getSlotCompoundVariant(sliderSlotRecipeCompoundVariants, slotName))])
|
|
42
|
+
|
|
43
|
+
const sliderSlotRecipeFn = memo((props = {}) => {
|
|
44
|
+
return Object.fromEntries(sliderSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
const sliderSlotRecipeVariantKeys = []
|
|
48
|
+
const getVariantProps = (variants) => ({ ...sliderSlotRecipeDefaultVariants, ...compact(variants) })
|
|
49
|
+
|
|
50
|
+
export const sliderSlotRecipe = /* @__PURE__ */ Object.assign(sliderSlotRecipeFn, {
|
|
51
|
+
__recipe__: false,
|
|
52
|
+
__name__: 'sliderSlotRecipe',
|
|
53
|
+
raw: (props) => props,
|
|
54
|
+
variantKeys: sliderSlotRecipeVariantKeys,
|
|
55
|
+
variantMap: {},
|
|
56
|
+
splitVariantProps(props) {
|
|
57
|
+
return splitProps(props, sliderSlotRecipeVariantKeys)
|
|
58
|
+
},
|
|
59
|
+
getVariantProps
|
|
60
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface TabListSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TabListSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TabListSlotRecipeVariant]: Array<TabListSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TabListSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TabListSlotRecipeVariant]?: ConditionalValue<TabListSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TabListSlotRecipeRecipe {
|
|
18
|
+
__type: TabListSlotRecipeVariantProps
|
|
19
|
+
(props?: TabListSlotRecipeVariantProps): Pretty<Record<"root" | "list", string>>
|
|
20
|
+
raw: (props?: TabListSlotRecipeVariantProps) => TabListSlotRecipeVariantProps
|
|
21
|
+
variantMap: TabListSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TabListSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TabListSlotRecipeVariantProps>(props: Props): [TabListSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TabListSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TabListSlotRecipeVariantProps) => TabListSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const tabListSlotRecipe: TabListSlotRecipeRecipe
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tabListSlotRecipeDefaultVariants = {}
|
|
5
|
+
const tabListSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tabListSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"tab-list__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"list",
|
|
14
|
+
"tab-list__list"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const tabListSlotRecipeSlotFns = /* @__PURE__ */ tabListSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tabListSlotRecipeDefaultVariants, getSlotCompoundVariant(tabListSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const tabListSlotRecipeFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(tabListSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const tabListSlotRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...tabListSlotRecipeDefaultVariants, ...compact(variants) })
|
|
25
|
+
|
|
26
|
+
export const tabListSlotRecipe = /* @__PURE__ */ Object.assign(tabListSlotRecipeFn, {
|
|
27
|
+
__recipe__: false,
|
|
28
|
+
__name__: 'tabListSlotRecipe',
|
|
29
|
+
raw: (props) => props,
|
|
30
|
+
variantKeys: tabListSlotRecipeVariantKeys,
|
|
31
|
+
variantMap: {},
|
|
32
|
+
splitVariantProps(props) {
|
|
33
|
+
return splitProps(props, tabListSlotRecipeVariantKeys)
|
|
34
|
+
},
|
|
35
|
+
getVariantProps
|
|
36
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface TimePanelSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimePanelSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimePanelSlotRecipeVariant]: Array<TimePanelSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimePanelSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimePanelSlotRecipeVariant]?: ConditionalValue<TimePanelSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimePanelSlotRecipeRecipe {
|
|
18
|
+
__type: TimePanelSlotRecipeVariantProps
|
|
19
|
+
(props?: TimePanelSlotRecipeVariantProps): Pretty<Record<"root" | "column", string>>
|
|
20
|
+
raw: (props?: TimePanelSlotRecipeVariantProps) => TimePanelSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimePanelSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimePanelSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimePanelSlotRecipeVariantProps>(props: Props): [TimePanelSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimePanelSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimePanelSlotRecipeVariantProps) => TimePanelSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timePanelSlotRecipe: TimePanelSlotRecipeRecipe
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timePanelSlotRecipeDefaultVariants = {}
|
|
5
|
+
const timePanelSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const timePanelSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"timePanel__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"column",
|
|
14
|
+
"timePanel__column"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const timePanelSlotRecipeSlotFns = /* @__PURE__ */ timePanelSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timePanelSlotRecipeDefaultVariants, getSlotCompoundVariant(timePanelSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const timePanelSlotRecipeFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(timePanelSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const timePanelSlotRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...timePanelSlotRecipeDefaultVariants, ...compact(variants) })
|
|
25
|
+
|
|
26
|
+
export const timePanelSlotRecipe = /* @__PURE__ */ Object.assign(timePanelSlotRecipeFn, {
|
|
27
|
+
__recipe__: false,
|
|
28
|
+
__name__: 'timePanelSlotRecipe',
|
|
29
|
+
raw: (props) => props,
|
|
30
|
+
variantKeys: timePanelSlotRecipeVariantKeys,
|
|
31
|
+
variantMap: {},
|
|
32
|
+
splitVariantProps(props) {
|
|
33
|
+
return splitProps(props, timePanelSlotRecipeVariantKeys)
|
|
34
|
+
},
|
|
35
|
+
getVariantProps
|
|
36
|
+
})
|