@mekari/pixel3-styled-system 0.0.9-dev.0 → 0.0.10-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 +14 -0
- package/package.json +1 -1
- package/recipes/accordion-slot-recipe.d.ts +28 -0
- package/recipes/accordion-slot-recipe.mjs +49 -0
- package/recipes/autocomplete-slot-recipe.d.ts +28 -0
- package/recipes/autocomplete-slot-recipe.mjs +48 -0
- package/recipes/date-picker-slot-recipe.mjs +22 -25
- package/recipes/index.d.ts +8 -2
- package/recipes/index.mjs +66 -60
- package/recipes/time-item-recipe.d.ts +1 -1
- package/recipes/time-item-recipe.mjs +9 -5
- package/recipes/timeline-accordion-slot-recipe.d.ts +28 -0
- package/recipes/timeline-accordion-slot-recipe.mjs +56 -0
- package/recipes/timeline-document-slot-recipe.d.ts +28 -0
- package/recipes/timeline-document-slot-recipe.mjs +57 -0
- package/recipes/timeline-log-slot-recipe.d.ts +28 -0
- package/recipes/timeline-log-slot-recipe.mjs +52 -0
- package/recipes/timeline-separator-slot-recipe.d.ts +28 -0
- package/recipes/timeline-separator-slot-recipe.mjs +40 -0
- package/recipes/timeline-slot-recipe.d.ts +28 -0
- package/recipes/timeline-slot-recipe.mjs +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.0.10-dev.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0a7c9ee: Update styled system
|
|
8
|
+
- b1d4400: - Added new recipe
|
|
9
|
+
- 51da4f8: Update styled system
|
|
10
|
+
|
|
11
|
+
## 0.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- bc8cb14: - Added date picker time item theme.
|
|
16
|
+
|
|
3
17
|
## 0.0.9-dev.0
|
|
4
18
|
|
|
5
19
|
### 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 AccordionSlotRecipeVariant {
|
|
6
|
+
isClickable: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AccordionSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof AccordionSlotRecipeVariant]: Array<AccordionSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type AccordionSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof AccordionSlotRecipeVariant]?: ConditionalValue<AccordionSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AccordionSlotRecipeRecipe {
|
|
18
|
+
__type: AccordionSlotRecipeVariantProps
|
|
19
|
+
(props?: AccordionSlotRecipeVariantProps): Pretty<Record<"header" | "item" | "panel", string>>
|
|
20
|
+
raw: (props?: AccordionSlotRecipeVariantProps) => AccordionSlotRecipeVariantProps
|
|
21
|
+
variantMap: AccordionSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof AccordionSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends AccordionSlotRecipeVariantProps>(props: Props): [AccordionSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AccordionSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AccordionSlotRecipeVariantProps) => AccordionSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const accordionSlotRecipe: AccordionSlotRecipeRecipe
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const accordionSlotRecipeDefaultVariants = {
|
|
5
|
+
"isClickable": true
|
|
6
|
+
}
|
|
7
|
+
const accordionSlotRecipeCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const accordionSlotRecipeSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"header",
|
|
12
|
+
"accordion__header"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"item",
|
|
16
|
+
"accordion__item"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"panel",
|
|
20
|
+
"accordion__panel"
|
|
21
|
+
]
|
|
22
|
+
]
|
|
23
|
+
const accordionSlotRecipeSlotFns = /* @__PURE__ */ accordionSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, accordionSlotRecipeDefaultVariants, getSlotCompoundVariant(accordionSlotRecipeCompoundVariants, slotName))])
|
|
24
|
+
|
|
25
|
+
const accordionSlotRecipeFn = memo((props = {}) => {
|
|
26
|
+
return Object.fromEntries(accordionSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const accordionSlotRecipeVariantKeys = [
|
|
30
|
+
"isClickable"
|
|
31
|
+
]
|
|
32
|
+
const getVariantProps = (variants) => ({ ...accordionSlotRecipeDefaultVariants, ...compact(variants) })
|
|
33
|
+
|
|
34
|
+
export const accordionSlotRecipe = /* @__PURE__ */ Object.assign(accordionSlotRecipeFn, {
|
|
35
|
+
__recipe__: false,
|
|
36
|
+
__name__: 'accordionSlotRecipe',
|
|
37
|
+
raw: (props) => props,
|
|
38
|
+
variantKeys: accordionSlotRecipeVariantKeys,
|
|
39
|
+
variantMap: {
|
|
40
|
+
"isClickable": [
|
|
41
|
+
"true",
|
|
42
|
+
"false"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
splitVariantProps(props) {
|
|
46
|
+
return splitProps(props, accordionSlotRecipeVariantKeys)
|
|
47
|
+
},
|
|
48
|
+
getVariantProps
|
|
49
|
+
})
|
|
@@ -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 AutocompleteSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AutocompleteSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof AutocompleteSlotRecipeVariant]: Array<AutocompleteSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type AutocompleteSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof AutocompleteSlotRecipeVariant]?: ConditionalValue<AutocompleteSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AutocompleteSlotRecipeRecipe {
|
|
18
|
+
__type: AutocompleteSlotRecipeVariantProps
|
|
19
|
+
(props?: AutocompleteSlotRecipeVariantProps): Pretty<Record<"groupText" | "popoverContent" | "buttonAction" | "emptyText" | "contentLoading", string>>
|
|
20
|
+
raw: (props?: AutocompleteSlotRecipeVariantProps) => AutocompleteSlotRecipeVariantProps
|
|
21
|
+
variantMap: AutocompleteSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof AutocompleteSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends AutocompleteSlotRecipeVariantProps>(props: Props): [AutocompleteSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AutocompleteSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AutocompleteSlotRecipeVariantProps) => AutocompleteSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const autocompleteSlotRecipe: AutocompleteSlotRecipeRecipe
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const autocompleteSlotRecipeDefaultVariants = {}
|
|
5
|
+
const autocompleteSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const autocompleteSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"groupText",
|
|
10
|
+
"autocomplete__groupText"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"popoverContent",
|
|
14
|
+
"autocomplete__popoverContent"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"buttonAction",
|
|
18
|
+
"autocomplete__buttonAction"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"emptyText",
|
|
22
|
+
"autocomplete__emptyText"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"contentLoading",
|
|
26
|
+
"autocomplete__contentLoading"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const autocompleteSlotRecipeSlotFns = /* @__PURE__ */ autocompleteSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, autocompleteSlotRecipeDefaultVariants, getSlotCompoundVariant(autocompleteSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const autocompleteSlotRecipeFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(autocompleteSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const autocompleteSlotRecipeVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...autocompleteSlotRecipeDefaultVariants, ...compact(variants) })
|
|
37
|
+
|
|
38
|
+
export const autocompleteSlotRecipe = /* @__PURE__ */ Object.assign(autocompleteSlotRecipeFn, {
|
|
39
|
+
__recipe__: false,
|
|
40
|
+
__name__: 'autocompleteSlotRecipe',
|
|
41
|
+
raw: (props) => props,
|
|
42
|
+
variantKeys: autocompleteSlotRecipeVariantKeys,
|
|
43
|
+
variantMap: {},
|
|
44
|
+
splitVariantProps(props) {
|
|
45
|
+
return splitProps(props, autocompleteSlotRecipeVariantKeys)
|
|
46
|
+
},
|
|
47
|
+
getVariantProps
|
|
48
|
+
})
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs'
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const datePickerSlotRecipeDefaultVariants = {}
|
|
5
5
|
const datePickerSlotRecipeCompoundVariants = []
|
|
6
6
|
|
|
7
7
|
const datePickerSlotRecipeSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
slotKey,
|
|
16
|
-
datePickerSlotRecipeDefaultVariants,
|
|
17
|
-
getSlotCompoundVariant(datePickerSlotRecipeCompoundVariants, slotName)
|
|
18
|
-
)
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"datepicker__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"popoverContent",
|
|
14
|
+
"datepicker__popoverContent"
|
|
19
15
|
]
|
|
20
|
-
|
|
16
|
+
]
|
|
17
|
+
const datePickerSlotRecipeSlotFns = /* @__PURE__ */ datePickerSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, datePickerSlotRecipeDefaultVariants, getSlotCompoundVariant(datePickerSlotRecipeCompoundVariants, slotName))])
|
|
21
18
|
|
|
22
19
|
const datePickerSlotRecipeFn = memo((props = {}) => {
|
|
23
|
-
return Object.fromEntries(
|
|
24
|
-
datePickerSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)])
|
|
25
|
-
)
|
|
20
|
+
return Object.fromEntries(datePickerSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
26
21
|
})
|
|
27
22
|
|
|
28
|
-
const datePickerSlotRecipeVariantKeys = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})
|
|
23
|
+
const datePickerSlotRecipeVariantKeys = [
|
|
24
|
+
"variant"
|
|
25
|
+
]
|
|
26
|
+
const getVariantProps = (variants) => ({ ...datePickerSlotRecipeDefaultVariants, ...compact(variants) })
|
|
33
27
|
|
|
34
28
|
export const datePickerSlotRecipe = /* @__PURE__ */ Object.assign(datePickerSlotRecipeFn, {
|
|
35
29
|
__recipe__: false,
|
|
@@ -37,10 +31,13 @@ export const datePickerSlotRecipe = /* @__PURE__ */ Object.assign(datePickerSlot
|
|
|
37
31
|
raw: (props) => props,
|
|
38
32
|
variantKeys: datePickerSlotRecipeVariantKeys,
|
|
39
33
|
variantMap: {
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
"variant": [
|
|
35
|
+
"date",
|
|
36
|
+
"time"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
42
39
|
splitVariantProps(props) {
|
|
43
40
|
return splitProps(props, datePickerSlotRecipeVariantKeys)
|
|
44
41
|
},
|
|
45
42
|
getVariantProps
|
|
46
|
-
})
|
|
43
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export * from './date-item-recipe';
|
|
|
27
27
|
export * from './month-item-recipe';
|
|
28
28
|
export * from './year-item-recipe';
|
|
29
29
|
export * from './time-item-recipe';
|
|
30
|
-
export * from './accordion';
|
|
30
|
+
export * from './accordion-slot-recipe';
|
|
31
31
|
export * from './checkbox-slot-recipe';
|
|
32
32
|
export * from './radio-slot-recipe';
|
|
33
33
|
export * from './shared-slot-recipe';
|
|
@@ -58,4 +58,10 @@ export * from './table-month-slot-recipe';
|
|
|
58
58
|
export * from './table-year-slot-recipe';
|
|
59
59
|
export * from './pinbar-slot-recipe';
|
|
60
60
|
export * from './carousel-slot-recipe';
|
|
61
|
-
export * from './chart-slot-recipe';
|
|
61
|
+
export * from './chart-slot-recipe';
|
|
62
|
+
export * from './autocomplete-slot-recipe';
|
|
63
|
+
export * from './timeline-slot-recipe';
|
|
64
|
+
export * from './timeline-document-slot-recipe';
|
|
65
|
+
export * from './timeline-log-slot-recipe';
|
|
66
|
+
export * from './timeline-separator-slot-recipe';
|
|
67
|
+
export * from './timeline-accordion-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -1,60 +1,66 @@
|
|
|
1
|
-
export * from './button-recipe.mjs'
|
|
2
|
-
export * from './button-group-recipe.mjs'
|
|
3
|
-
export * from './text-recipe.mjs'
|
|
4
|
-
export * from './icon-recipe.mjs'
|
|
5
|
-
export * from './spinner-recipe.mjs'
|
|
6
|
-
export * from './popover-content-recipe.mjs'
|
|
7
|
-
export * from './popover-list-recipe.mjs'
|
|
8
|
-
export * from './popover-list-item-recipe.mjs'
|
|
9
|
-
export * from './badge-recipe.mjs'
|
|
10
|
-
export * from './textarea-recipe.mjs'
|
|
11
|
-
export * from './tooltip-recipe.mjs'
|
|
12
|
-
export * from './tab-list-recipe.mjs'
|
|
13
|
-
export * from './tab-recipe.mjs'
|
|
14
|
-
export * from './selected-border-recipe.mjs'
|
|
15
|
-
export * from './table-recipe.mjs'
|
|
16
|
-
export * from './table-container-recipe.mjs'
|
|
17
|
-
export * from './divider-recipe.mjs'
|
|
18
|
-
export * from './banner-title-recipe.mjs'
|
|
19
|
-
export * from './banner-description-recipe.mjs'
|
|
20
|
-
export * from './banner-link-recipe.mjs'
|
|
21
|
-
export * from './banner-close-button-recipe.mjs'
|
|
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'
|
|
28
|
-
export * from './time-item-recipe.mjs'
|
|
29
|
-
export * from './accordion.mjs'
|
|
30
|
-
export * from './checkbox-slot-recipe.mjs'
|
|
31
|
-
export * from './radio-slot-recipe.mjs'
|
|
32
|
-
export * from './shared-slot-recipe.mjs'
|
|
33
|
-
export * from './progress-slot-recipe.mjs'
|
|
34
|
-
export * from './toggle-slot-recipe.mjs'
|
|
35
|
-
export * from './tag-slot-recipe.mjs'
|
|
36
|
-
export * from './input-slot-recipe.mjs'
|
|
37
|
-
export * from './input-group-slot-recipe.mjs'
|
|
38
|
-
export * from './input-addon-slot-recipe.mjs'
|
|
39
|
-
export * from './avatar-slot-recipe.mjs'
|
|
40
|
-
export * from './avatar-group-slot-recipe.mjs'
|
|
41
|
-
export * from './select-slot-recipe.mjs'
|
|
42
|
-
export * from './form-control-slot-recipe.mjs'
|
|
43
|
-
export * from './input-tag-slot-recipe.mjs'
|
|
44
|
-
export * from './modal-slot-recipe.mjs'
|
|
45
|
-
export * from './upload-slot-recipe.mjs'
|
|
46
|
-
export * from './upload-list-slot-recipe.mjs'
|
|
47
|
-
export * from './dropzone-slot-recipe.mjs'
|
|
48
|
-
export * from './banner-slot-recipe.mjs'
|
|
49
|
-
export * from './banner-icon-slot-recipe.mjs'
|
|
50
|
-
export * from './segmented-control-slot-recipe.mjs'
|
|
51
|
-
export * from './toast-slot-recipe.mjs'
|
|
52
|
-
export * from './broadcast-slot-recipe.mjs'
|
|
53
|
-
export * from './rich-text-editor-slot-recipe.mjs'
|
|
54
|
-
export * from './date-picker-slot-recipe.mjs'
|
|
55
|
-
export * from './table-date-slot-recipe.mjs'
|
|
56
|
-
export * from './table-month-slot-recipe.mjs'
|
|
57
|
-
export * from './table-year-slot-recipe.mjs'
|
|
58
|
-
export * from './pinbar-slot-recipe.mjs'
|
|
59
|
-
export * from './carousel-slot-recipe.mjs'
|
|
60
|
-
export * from './chart-slot-recipe.mjs'
|
|
1
|
+
export * from './button-recipe.mjs';
|
|
2
|
+
export * from './button-group-recipe.mjs';
|
|
3
|
+
export * from './text-recipe.mjs';
|
|
4
|
+
export * from './icon-recipe.mjs';
|
|
5
|
+
export * from './spinner-recipe.mjs';
|
|
6
|
+
export * from './popover-content-recipe.mjs';
|
|
7
|
+
export * from './popover-list-recipe.mjs';
|
|
8
|
+
export * from './popover-list-item-recipe.mjs';
|
|
9
|
+
export * from './badge-recipe.mjs';
|
|
10
|
+
export * from './textarea-recipe.mjs';
|
|
11
|
+
export * from './tooltip-recipe.mjs';
|
|
12
|
+
export * from './tab-list-recipe.mjs';
|
|
13
|
+
export * from './tab-recipe.mjs';
|
|
14
|
+
export * from './selected-border-recipe.mjs';
|
|
15
|
+
export * from './table-recipe.mjs';
|
|
16
|
+
export * from './table-container-recipe.mjs';
|
|
17
|
+
export * from './divider-recipe.mjs';
|
|
18
|
+
export * from './banner-title-recipe.mjs';
|
|
19
|
+
export * from './banner-description-recipe.mjs';
|
|
20
|
+
export * from './banner-link-recipe.mjs';
|
|
21
|
+
export * from './banner-close-button-recipe.mjs';
|
|
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';
|
|
28
|
+
export * from './time-item-recipe.mjs';
|
|
29
|
+
export * from './accordion-slot-recipe.mjs';
|
|
30
|
+
export * from './checkbox-slot-recipe.mjs';
|
|
31
|
+
export * from './radio-slot-recipe.mjs';
|
|
32
|
+
export * from './shared-slot-recipe.mjs';
|
|
33
|
+
export * from './progress-slot-recipe.mjs';
|
|
34
|
+
export * from './toggle-slot-recipe.mjs';
|
|
35
|
+
export * from './tag-slot-recipe.mjs';
|
|
36
|
+
export * from './input-slot-recipe.mjs';
|
|
37
|
+
export * from './input-group-slot-recipe.mjs';
|
|
38
|
+
export * from './input-addon-slot-recipe.mjs';
|
|
39
|
+
export * from './avatar-slot-recipe.mjs';
|
|
40
|
+
export * from './avatar-group-slot-recipe.mjs';
|
|
41
|
+
export * from './select-slot-recipe.mjs';
|
|
42
|
+
export * from './form-control-slot-recipe.mjs';
|
|
43
|
+
export * from './input-tag-slot-recipe.mjs';
|
|
44
|
+
export * from './modal-slot-recipe.mjs';
|
|
45
|
+
export * from './upload-slot-recipe.mjs';
|
|
46
|
+
export * from './upload-list-slot-recipe.mjs';
|
|
47
|
+
export * from './dropzone-slot-recipe.mjs';
|
|
48
|
+
export * from './banner-slot-recipe.mjs';
|
|
49
|
+
export * from './banner-icon-slot-recipe.mjs';
|
|
50
|
+
export * from './segmented-control-slot-recipe.mjs';
|
|
51
|
+
export * from './toast-slot-recipe.mjs';
|
|
52
|
+
export * from './broadcast-slot-recipe.mjs';
|
|
53
|
+
export * from './rich-text-editor-slot-recipe.mjs';
|
|
54
|
+
export * from './date-picker-slot-recipe.mjs';
|
|
55
|
+
export * from './table-date-slot-recipe.mjs';
|
|
56
|
+
export * from './table-month-slot-recipe.mjs';
|
|
57
|
+
export * from './table-year-slot-recipe.mjs';
|
|
58
|
+
export * from './pinbar-slot-recipe.mjs';
|
|
59
|
+
export * from './carousel-slot-recipe.mjs';
|
|
60
|
+
export * from './chart-slot-recipe.mjs';
|
|
61
|
+
export * from './autocomplete-slot-recipe.mjs';
|
|
62
|
+
export * from './timeline-slot-recipe.mjs';
|
|
63
|
+
export * from './timeline-document-slot-recipe.mjs';
|
|
64
|
+
export * from './timeline-log-slot-recipe.mjs';
|
|
65
|
+
export * from './timeline-separator-slot-recipe.mjs';
|
|
66
|
+
export * from './timeline-accordion-slot-recipe.mjs';
|
|
@@ -3,7 +3,7 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface TimeItemRecipeVariant {
|
|
6
|
-
status: "disabled" | "default" | "selected"
|
|
6
|
+
status: "disabled" | "default" | "selected"
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
type TimeItemRecipeVariantMap = {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs'
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs'
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const timeItemRecipeFn = /* @__PURE__ */ createRecipe('timeItem', {}, [])
|
|
5
5
|
|
|
6
6
|
const timeItemRecipeVariantMap = {
|
|
7
|
-
status: [
|
|
7
|
+
"status": [
|
|
8
|
+
"disabled",
|
|
9
|
+
"default",
|
|
10
|
+
"selected"
|
|
11
|
+
]
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
const timeItemRecipeVariantKeys = Object.keys(timeItemRecipeVariantMap)
|
|
@@ -22,5 +26,5 @@ export const timeItemRecipe = /* @__PURE__ */ Object.assign(memo(timeItemRecipeF
|
|
|
22
26
|
splitVariantProps(props) {
|
|
23
27
|
return splitProps(props, timeItemRecipeVariantKeys)
|
|
24
28
|
},
|
|
25
|
-
getVariantProps: timeItemRecipeFn.getVariantProps
|
|
26
|
-
})
|
|
29
|
+
getVariantProps: timeItemRecipeFn.getVariantProps,
|
|
30
|
+
})
|
|
@@ -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 TimelineAccordionSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimelineAccordionSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimelineAccordionSlotRecipeVariant]: Array<TimelineAccordionSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimelineAccordionSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimelineAccordionSlotRecipeVariant]?: ConditionalValue<TimelineAccordionSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimelineAccordionSlotRecipeRecipe {
|
|
18
|
+
__type: TimelineAccordionSlotRecipeVariantProps
|
|
19
|
+
(props?: TimelineAccordionSlotRecipeVariantProps): Pretty<Record<"body" | "separator" | "icon" | "topConnector" | "bottomConnector" | "title" | "label", string>>
|
|
20
|
+
raw: (props?: TimelineAccordionSlotRecipeVariantProps) => TimelineAccordionSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimelineAccordionSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimelineAccordionSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimelineAccordionSlotRecipeVariantProps>(props: Props): [TimelineAccordionSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimelineAccordionSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimelineAccordionSlotRecipeVariantProps) => TimelineAccordionSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timelineAccordionSlotRecipe: TimelineAccordionSlotRecipeRecipe
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timelineAccordionSlotRecipeDefaultVariants = {}
|
|
5
|
+
const timelineAccordionSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const timelineAccordionSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"body",
|
|
10
|
+
"timelineAccordion__body"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"separator",
|
|
14
|
+
"timelineAccordion__separator"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"icon",
|
|
18
|
+
"timelineAccordion__icon"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"topConnector",
|
|
22
|
+
"timelineAccordion__topConnector"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"bottomConnector",
|
|
26
|
+
"timelineAccordion__bottomConnector"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"title",
|
|
30
|
+
"timelineAccordion__title"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"label",
|
|
34
|
+
"timelineAccordion__label"
|
|
35
|
+
]
|
|
36
|
+
]
|
|
37
|
+
const timelineAccordionSlotRecipeSlotFns = /* @__PURE__ */ timelineAccordionSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timelineAccordionSlotRecipeDefaultVariants, getSlotCompoundVariant(timelineAccordionSlotRecipeCompoundVariants, slotName))])
|
|
38
|
+
|
|
39
|
+
const timelineAccordionSlotRecipeFn = memo((props = {}) => {
|
|
40
|
+
return Object.fromEntries(timelineAccordionSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
const timelineAccordionSlotRecipeVariantKeys = []
|
|
44
|
+
const getVariantProps = (variants) => ({ ...timelineAccordionSlotRecipeDefaultVariants, ...compact(variants) })
|
|
45
|
+
|
|
46
|
+
export const timelineAccordionSlotRecipe = /* @__PURE__ */ Object.assign(timelineAccordionSlotRecipeFn, {
|
|
47
|
+
__recipe__: false,
|
|
48
|
+
__name__: 'timelineAccordionSlotRecipe',
|
|
49
|
+
raw: (props) => props,
|
|
50
|
+
variantKeys: timelineAccordionSlotRecipeVariantKeys,
|
|
51
|
+
variantMap: {},
|
|
52
|
+
splitVariantProps(props) {
|
|
53
|
+
return splitProps(props, timelineAccordionSlotRecipeVariantKeys)
|
|
54
|
+
},
|
|
55
|
+
getVariantProps
|
|
56
|
+
})
|
|
@@ -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 TimelineDocumentSlotRecipeVariant {
|
|
6
|
+
icon: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimelineDocumentSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimelineDocumentSlotRecipeVariant]: Array<TimelineDocumentSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimelineDocumentSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimelineDocumentSlotRecipeVariant]?: ConditionalValue<TimelineDocumentSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimelineDocumentSlotRecipeRecipe {
|
|
18
|
+
__type: TimelineDocumentSlotRecipeVariantProps
|
|
19
|
+
(props?: TimelineDocumentSlotRecipeVariantProps): Pretty<Record<"root" | "content" | "title" | "description" | "fileSize", string>>
|
|
20
|
+
raw: (props?: TimelineDocumentSlotRecipeVariantProps) => TimelineDocumentSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimelineDocumentSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimelineDocumentSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimelineDocumentSlotRecipeVariantProps>(props: Props): [TimelineDocumentSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimelineDocumentSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimelineDocumentSlotRecipeVariantProps) => TimelineDocumentSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timelineDocumentSlotRecipe: TimelineDocumentSlotRecipeRecipe
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timelineDocumentSlotRecipeDefaultVariants = {
|
|
5
|
+
"icon": false
|
|
6
|
+
}
|
|
7
|
+
const timelineDocumentSlotRecipeCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const timelineDocumentSlotRecipeSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"timelineDocument__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"content",
|
|
16
|
+
"timelineDocument__content"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"title",
|
|
20
|
+
"timelineDocument__title"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"description",
|
|
24
|
+
"timelineDocument__description"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"fileSize",
|
|
28
|
+
"timelineDocument__fileSize"
|
|
29
|
+
]
|
|
30
|
+
]
|
|
31
|
+
const timelineDocumentSlotRecipeSlotFns = /* @__PURE__ */ timelineDocumentSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timelineDocumentSlotRecipeDefaultVariants, getSlotCompoundVariant(timelineDocumentSlotRecipeCompoundVariants, slotName))])
|
|
32
|
+
|
|
33
|
+
const timelineDocumentSlotRecipeFn = memo((props = {}) => {
|
|
34
|
+
return Object.fromEntries(timelineDocumentSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const timelineDocumentSlotRecipeVariantKeys = [
|
|
38
|
+
"icon"
|
|
39
|
+
]
|
|
40
|
+
const getVariantProps = (variants) => ({ ...timelineDocumentSlotRecipeDefaultVariants, ...compact(variants) })
|
|
41
|
+
|
|
42
|
+
export const timelineDocumentSlotRecipe = /* @__PURE__ */ Object.assign(timelineDocumentSlotRecipeFn, {
|
|
43
|
+
__recipe__: false,
|
|
44
|
+
__name__: 'timelineDocumentSlotRecipe',
|
|
45
|
+
raw: (props) => props,
|
|
46
|
+
variantKeys: timelineDocumentSlotRecipeVariantKeys,
|
|
47
|
+
variantMap: {
|
|
48
|
+
"icon": [
|
|
49
|
+
"true",
|
|
50
|
+
"false"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
splitVariantProps(props) {
|
|
54
|
+
return splitProps(props, timelineDocumentSlotRecipeVariantKeys)
|
|
55
|
+
},
|
|
56
|
+
getVariantProps
|
|
57
|
+
})
|
|
@@ -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 TimelineLogSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimelineLogSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimelineLogSlotRecipeVariant]: Array<TimelineLogSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimelineLogSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimelineLogSlotRecipeVariant]?: ConditionalValue<TimelineLogSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimelineLogSlotRecipeRecipe {
|
|
18
|
+
__type: TimelineLogSlotRecipeVariantProps
|
|
19
|
+
(props?: TimelineLogSlotRecipeVariantProps): Pretty<Record<"root" | "log" | "logText" | "logIcon" | "content" | "logItem", string>>
|
|
20
|
+
raw: (props?: TimelineLogSlotRecipeVariantProps) => TimelineLogSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimelineLogSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimelineLogSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimelineLogSlotRecipeVariantProps>(props: Props): [TimelineLogSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimelineLogSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimelineLogSlotRecipeVariantProps) => TimelineLogSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timelineLogSlotRecipe: TimelineLogSlotRecipeRecipe
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timelineLogSlotRecipeDefaultVariants = {}
|
|
5
|
+
const timelineLogSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const timelineLogSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"timelineLog__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"log",
|
|
14
|
+
"timelineLog__log"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"logText",
|
|
18
|
+
"timelineLog__logText"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"logIcon",
|
|
22
|
+
"timelineLog__logIcon"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"content",
|
|
26
|
+
"timelineLog__content"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"logItem",
|
|
30
|
+
"timelineLog__logItem"
|
|
31
|
+
]
|
|
32
|
+
]
|
|
33
|
+
const timelineLogSlotRecipeSlotFns = /* @__PURE__ */ timelineLogSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timelineLogSlotRecipeDefaultVariants, getSlotCompoundVariant(timelineLogSlotRecipeCompoundVariants, slotName))])
|
|
34
|
+
|
|
35
|
+
const timelineLogSlotRecipeFn = memo((props = {}) => {
|
|
36
|
+
return Object.fromEntries(timelineLogSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const timelineLogSlotRecipeVariantKeys = []
|
|
40
|
+
const getVariantProps = (variants) => ({ ...timelineLogSlotRecipeDefaultVariants, ...compact(variants) })
|
|
41
|
+
|
|
42
|
+
export const timelineLogSlotRecipe = /* @__PURE__ */ Object.assign(timelineLogSlotRecipeFn, {
|
|
43
|
+
__recipe__: false,
|
|
44
|
+
__name__: 'timelineLogSlotRecipe',
|
|
45
|
+
raw: (props) => props,
|
|
46
|
+
variantKeys: timelineLogSlotRecipeVariantKeys,
|
|
47
|
+
variantMap: {},
|
|
48
|
+
splitVariantProps(props) {
|
|
49
|
+
return splitProps(props, timelineLogSlotRecipeVariantKeys)
|
|
50
|
+
},
|
|
51
|
+
getVariantProps
|
|
52
|
+
})
|
|
@@ -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 TimelineSeparatorSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimelineSeparatorSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimelineSeparatorSlotRecipeVariant]: Array<TimelineSeparatorSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimelineSeparatorSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimelineSeparatorSlotRecipeVariant]?: ConditionalValue<TimelineSeparatorSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimelineSeparatorSlotRecipeRecipe {
|
|
18
|
+
__type: TimelineSeparatorSlotRecipeVariantProps
|
|
19
|
+
(props?: TimelineSeparatorSlotRecipeVariantProps): Pretty<Record<"root" | "topConnector" | "bottomConnector", string>>
|
|
20
|
+
raw: (props?: TimelineSeparatorSlotRecipeVariantProps) => TimelineSeparatorSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimelineSeparatorSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimelineSeparatorSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimelineSeparatorSlotRecipeVariantProps>(props: Props): [TimelineSeparatorSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimelineSeparatorSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimelineSeparatorSlotRecipeVariantProps) => TimelineSeparatorSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timelineSeparatorSlotRecipe: TimelineSeparatorSlotRecipeRecipe
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timelineSeparatorSlotRecipeDefaultVariants = {}
|
|
5
|
+
const timelineSeparatorSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const timelineSeparatorSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"timelineSeparetor__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"topConnector",
|
|
14
|
+
"timelineSeparetor__topConnector"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"bottomConnector",
|
|
18
|
+
"timelineSeparetor__bottomConnector"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const timelineSeparatorSlotRecipeSlotFns = /* @__PURE__ */ timelineSeparatorSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timelineSeparatorSlotRecipeDefaultVariants, getSlotCompoundVariant(timelineSeparatorSlotRecipeCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const timelineSeparatorSlotRecipeFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(timelineSeparatorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const timelineSeparatorSlotRecipeVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...timelineSeparatorSlotRecipeDefaultVariants, ...compact(variants) })
|
|
29
|
+
|
|
30
|
+
export const timelineSeparatorSlotRecipe = /* @__PURE__ */ Object.assign(timelineSeparatorSlotRecipeFn, {
|
|
31
|
+
__recipe__: false,
|
|
32
|
+
__name__: 'timelineSeparatorSlotRecipe',
|
|
33
|
+
raw: (props) => props,
|
|
34
|
+
variantKeys: timelineSeparatorSlotRecipeVariantKeys,
|
|
35
|
+
variantMap: {},
|
|
36
|
+
splitVariantProps(props) {
|
|
37
|
+
return splitProps(props, timelineSeparatorSlotRecipeVariantKeys)
|
|
38
|
+
},
|
|
39
|
+
getVariantProps
|
|
40
|
+
})
|
|
@@ -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 TimelineSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TimelineSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof TimelineSlotRecipeVariant]: Array<TimelineSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TimelineSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof TimelineSlotRecipeVariant]?: ConditionalValue<TimelineSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TimelineSlotRecipeRecipe {
|
|
18
|
+
__type: TimelineSlotRecipeVariantProps
|
|
19
|
+
(props?: TimelineSlotRecipeVariantProps): Pretty<Record<"root" | "body" | "caption" | "content" | "item", string>>
|
|
20
|
+
raw: (props?: TimelineSlotRecipeVariantProps) => TimelineSlotRecipeVariantProps
|
|
21
|
+
variantMap: TimelineSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TimelineSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TimelineSlotRecipeVariantProps>(props: Props): [TimelineSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TimelineSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TimelineSlotRecipeVariantProps) => TimelineSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const timelineSlotRecipe: TimelineSlotRecipeRecipe
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const timelineSlotRecipeDefaultVariants = {}
|
|
5
|
+
const timelineSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const timelineSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"timeline__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"body",
|
|
14
|
+
"timeline__body"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"caption",
|
|
18
|
+
"timeline__caption"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"content",
|
|
22
|
+
"timeline__content"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"item",
|
|
26
|
+
"timeline__item"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const timelineSlotRecipeSlotFns = /* @__PURE__ */ timelineSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, timelineSlotRecipeDefaultVariants, getSlotCompoundVariant(timelineSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const timelineSlotRecipeFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(timelineSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const timelineSlotRecipeVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...timelineSlotRecipeDefaultVariants, ...compact(variants) })
|
|
37
|
+
|
|
38
|
+
export const timelineSlotRecipe = /* @__PURE__ */ Object.assign(timelineSlotRecipeFn, {
|
|
39
|
+
__recipe__: false,
|
|
40
|
+
__name__: 'timelineSlotRecipe',
|
|
41
|
+
raw: (props) => props,
|
|
42
|
+
variantKeys: timelineSlotRecipeVariantKeys,
|
|
43
|
+
variantMap: {},
|
|
44
|
+
splitVariantProps(props) {
|
|
45
|
+
return splitProps(props, timelineSlotRecipeVariantKeys)
|
|
46
|
+
},
|
|
47
|
+
getVariantProps
|
|
48
|
+
})
|