@mekari/pixel3-styled-system 0.0.1 → 0.0.2
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 +6 -0
- package/jsx/aspect-ratio.d.ts +2 -2
- package/jsx/aspect-ratio.mjs +9 -7
- package/jsx/bleed.d.ts +2 -2
- package/jsx/bleed.mjs +10 -8
- package/jsx/box.d.ts +2 -2
- package/jsx/box.mjs +9 -7
- package/jsx/center.d.ts +2 -2
- package/jsx/center.mjs +9 -7
- package/jsx/circle.d.ts +2 -2
- package/jsx/circle.mjs +9 -7
- package/jsx/container.d.ts +2 -2
- package/jsx/container.mjs +9 -7
- package/jsx/divider.d.ts +2 -2
- package/jsx/divider.mjs +10 -8
- package/jsx/factory.d.ts +2 -2
- package/jsx/factory.mjs +9 -9
- package/jsx/flex.d.ts +2 -2
- package/jsx/flex.mjs +10 -8
- package/jsx/float.d.ts +2 -2
- package/jsx/float.mjs +10 -8
- package/jsx/grid-item.d.ts +2 -2
- package/jsx/grid-item.mjs +10 -8
- package/jsx/grid.d.ts +2 -2
- package/jsx/grid.mjs +10 -8
- package/jsx/hstack.d.ts +2 -2
- package/jsx/hstack.mjs +10 -8
- package/jsx/index.d.ts +1 -1
- package/jsx/link-box.d.ts +2 -2
- package/jsx/link-box.mjs +9 -7
- package/jsx/link-overlay.d.ts +2 -2
- package/jsx/link-overlay.mjs +9 -7
- package/jsx/spacer.d.ts +2 -2
- package/jsx/spacer.mjs +9 -7
- package/jsx/square.d.ts +2 -2
- package/jsx/square.mjs +9 -7
- package/jsx/stack.d.ts +2 -2
- package/jsx/stack.mjs +10 -8
- package/jsx/visually-hidden.d.ts +2 -2
- package/jsx/visually-hidden.mjs +9 -7
- package/jsx/vstack.d.ts +2 -2
- package/jsx/vstack.mjs +10 -8
- package/jsx/wrap.d.ts +2 -2
- package/jsx/wrap.mjs +10 -8
- package/package.json +1 -1
- package/recipes/banner-close-button-recipe.d.ts +27 -0
- package/recipes/banner-close-button-recipe.mjs +22 -0
- package/recipes/banner-description-recipe.d.ts +27 -0
- package/recipes/banner-description-recipe.mjs +22 -0
- package/recipes/banner-icon-recipe.d.ts +27 -0
- package/recipes/banner-icon-recipe.mjs +34 -0
- package/recipes/banner-icon-slot-recipe.d.ts +27 -0
- package/recipes/banner-icon-slot-recipe.mjs +34 -0
- package/recipes/banner-link-recipe.d.ts +27 -0
- package/recipes/banner-link-recipe.mjs +22 -0
- package/recipes/banner-recipe.d.ts +27 -0
- package/recipes/banner-recipe.mjs +31 -0
- package/recipes/banner-slot-recipe.d.ts +27 -0
- package/recipes/banner-slot-recipe.mjs +45 -0
- package/recipes/banner-title-recipe.d.ts +27 -0
- package/recipes/banner-title-recipe.mjs +22 -0
- package/recipes/dropzone-recipe.d.ts +27 -0
- package/recipes/dropzone-recipe.mjs +34 -0
- package/recipes/dropzone-slot-recipe.d.ts +27 -0
- package/recipes/dropzone-slot-recipe.mjs +70 -0
- package/recipes/index.d.ts +11 -1
- package/recipes/index.mjs +11 -1
- package/recipes/modal-slot-recipe.d.ts +27 -0
- package/recipes/modal-slot-recipe.mjs +75 -0
- package/recipes/tag-slot-recipe.mjs +9 -1
- package/recipes/upload-list-slot-recipe.d.ts +27 -0
- package/recipes/upload-list-slot-recipe.mjs +38 -0
- package/recipes/upload-slot-recipe.d.ts +27 -0
- package/recipes/upload-slot-recipe.mjs +34 -0
- package/tokens/index.css +16 -0
- package/tokens/index.mjs +108 -8
- package/tokens/tokens.d.ts +4 -4
- package/types/jsx.d.ts +9 -9
- package/types/prop-type.d.ts +1 -1
- package/types/static-css.d.ts +23 -17
|
@@ -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 BannerSlotRecipeVariant {
|
|
6
|
+
variant: "info" | "success" | "danger" | "warning"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type BannerSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof BannerSlotRecipeVariant]: Array<BannerSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type BannerSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof BannerSlotRecipeVariant]?: ConditionalValue<BannerSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface BannerSlotRecipeRecipe {
|
|
18
|
+
__type: BannerSlotRecipeVariantProps
|
|
19
|
+
(props?: BannerSlotRecipeVariantProps): Pretty<Record<"root" | "body", string>>
|
|
20
|
+
raw: (props?: BannerSlotRecipeVariantProps) => BannerSlotRecipeVariantProps
|
|
21
|
+
variantMap: BannerSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof BannerSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends BannerSlotRecipeVariantProps>(props: Props): [BannerSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BannerSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const bannerSlotRecipe: BannerSlotRecipeRecipe
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const bannerSlotRecipeDefaultVariants = {
|
|
5
|
+
"variant": "info"
|
|
6
|
+
}
|
|
7
|
+
const bannerSlotRecipeCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const bannerSlotRecipeSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"banner__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"body",
|
|
16
|
+
"banner__body"
|
|
17
|
+
]
|
|
18
|
+
]
|
|
19
|
+
const bannerSlotRecipeSlotFns = /* @__PURE__ */ bannerSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, bannerSlotRecipeDefaultVariants, getSlotCompoundVariant(bannerSlotRecipeCompoundVariants, slotName))])
|
|
20
|
+
|
|
21
|
+
const bannerSlotRecipeFn = (props = {}) => {
|
|
22
|
+
return Object.fromEntries(bannerSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const bannerSlotRecipeVariantKeys = [
|
|
26
|
+
"variant"
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
export const bannerSlotRecipe = /* @__PURE__ */ Object.assign(bannerSlotRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'bannerSlotRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
variantKeys: bannerSlotRecipeVariantKeys,
|
|
34
|
+
variantMap: {
|
|
35
|
+
"variant": [
|
|
36
|
+
"info",
|
|
37
|
+
"success",
|
|
38
|
+
"danger",
|
|
39
|
+
"warning"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
splitVariantProps(props) {
|
|
43
|
+
return splitProps(props, bannerSlotRecipeVariantKeys)
|
|
44
|
+
},
|
|
45
|
+
})
|
|
@@ -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 BannerTitleRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type BannerTitleRecipeVariantMap = {
|
|
10
|
+
[key in keyof BannerTitleRecipeVariant]: Array<BannerTitleRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type BannerTitleRecipeVariantProps = {
|
|
14
|
+
[key in keyof BannerTitleRecipeVariant]?: ConditionalValue<BannerTitleRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface BannerTitleRecipeRecipe {
|
|
18
|
+
__type: BannerTitleRecipeVariantProps
|
|
19
|
+
(props?: BannerTitleRecipeVariantProps): string
|
|
20
|
+
raw: (props?: BannerTitleRecipeVariantProps) => BannerTitleRecipeVariantProps
|
|
21
|
+
variantMap: BannerTitleRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof BannerTitleRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends BannerTitleRecipeVariantProps>(props: Props): [BannerTitleRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BannerTitleRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const bannerTitleRecipe: BannerTitleRecipeRecipe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const bannerTitleRecipeFn = /* @__PURE__ */ createRecipe('banner-title', {}, [])
|
|
5
|
+
|
|
6
|
+
const bannerTitleRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const bannerTitleRecipeVariantKeys = Object.keys(bannerTitleRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const bannerTitleRecipe = /* @__PURE__ */ Object.assign(bannerTitleRecipeFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'bannerTitleRecipe',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: bannerTitleRecipeVariantKeys,
|
|
15
|
+
variantMap: bannerTitleRecipeVariantMap,
|
|
16
|
+
merge(recipe) {
|
|
17
|
+
return mergeRecipes(this, recipe)
|
|
18
|
+
},
|
|
19
|
+
splitVariantProps(props) {
|
|
20
|
+
return splitProps(props, bannerTitleRecipeVariantKeys)
|
|
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 DropzoneRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DropzoneRecipeVariantMap = {
|
|
10
|
+
[key in keyof DropzoneRecipeVariant]: Array<DropzoneRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DropzoneRecipeVariantProps = {
|
|
14
|
+
[key in keyof DropzoneRecipeVariant]?: ConditionalValue<DropzoneRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DropzoneRecipeRecipe {
|
|
18
|
+
__type: DropzoneRecipeVariantProps
|
|
19
|
+
(props?: DropzoneRecipeVariantProps): Pretty<Record<"root" | "wrapper", string>>
|
|
20
|
+
raw: (props?: DropzoneRecipeVariantProps) => DropzoneRecipeVariantProps
|
|
21
|
+
variantMap: DropzoneRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DropzoneRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DropzoneRecipeVariantProps>(props: Props): [DropzoneRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DropzoneRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const dropzoneRecipe: DropzoneRecipeRecipe
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dropzoneRecipeDefaultVariants = {}
|
|
5
|
+
const dropzoneRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const dropzoneRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"dropzone__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"wrapper",
|
|
14
|
+
"dropzone__wrapper"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const dropzoneRecipeSlotFns = /* @__PURE__ */ dropzoneRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropzoneRecipeDefaultVariants, getSlotCompoundVariant(dropzoneRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const dropzoneRecipeFn = (props = {}) => {
|
|
20
|
+
return Object.fromEntries(dropzoneRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const dropzoneRecipeVariantKeys = []
|
|
24
|
+
|
|
25
|
+
export const dropzoneRecipe = /* @__PURE__ */ Object.assign(dropzoneRecipeFn, {
|
|
26
|
+
__recipe__: false,
|
|
27
|
+
__name__: 'dropzoneRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: dropzoneRecipeVariantKeys,
|
|
30
|
+
variantMap: {},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, dropzoneRecipeVariantKeys)
|
|
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 DropzoneSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DropzoneSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof DropzoneSlotRecipeVariant]: Array<DropzoneSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DropzoneSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof DropzoneSlotRecipeVariant]?: ConditionalValue<DropzoneSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DropzoneSlotRecipeRecipe {
|
|
18
|
+
__type: DropzoneSlotRecipeVariantProps
|
|
19
|
+
(props?: DropzoneSlotRecipeVariantProps): Pretty<Record<"root" | "wrapper" | "box" | "logoBox" | "productBox" | "avatarBox" | "overlayWrapper" | "overlay" | "preview" | "overlayPreview" | "clearButton", string>>
|
|
20
|
+
raw: (props?: DropzoneSlotRecipeVariantProps) => DropzoneSlotRecipeVariantProps
|
|
21
|
+
variantMap: DropzoneSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DropzoneSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DropzoneSlotRecipeVariantProps>(props: Props): [DropzoneSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DropzoneSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const dropzoneSlotRecipe: DropzoneSlotRecipeRecipe
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dropzoneSlotRecipeDefaultVariants = {}
|
|
5
|
+
const dropzoneSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const dropzoneSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"dropzone__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"wrapper",
|
|
14
|
+
"dropzone__wrapper"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"box",
|
|
18
|
+
"dropzone__box"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"logoBox",
|
|
22
|
+
"dropzone__logoBox"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"productBox",
|
|
26
|
+
"dropzone__productBox"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"avatarBox",
|
|
30
|
+
"dropzone__avatarBox"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"overlayWrapper",
|
|
34
|
+
"dropzone__overlayWrapper"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"overlay",
|
|
38
|
+
"dropzone__overlay"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"preview",
|
|
42
|
+
"dropzone__preview"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"overlayPreview",
|
|
46
|
+
"dropzone__overlayPreview"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"clearButton",
|
|
50
|
+
"dropzone__clearButton"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
const dropzoneSlotRecipeSlotFns = /* @__PURE__ */ dropzoneSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropzoneSlotRecipeDefaultVariants, getSlotCompoundVariant(dropzoneSlotRecipeCompoundVariants, slotName))])
|
|
54
|
+
|
|
55
|
+
const dropzoneSlotRecipeFn = (props = {}) => {
|
|
56
|
+
return Object.fromEntries(dropzoneSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const dropzoneSlotRecipeVariantKeys = []
|
|
60
|
+
|
|
61
|
+
export const dropzoneSlotRecipe = /* @__PURE__ */ Object.assign(dropzoneSlotRecipeFn, {
|
|
62
|
+
__recipe__: false,
|
|
63
|
+
__name__: 'dropzoneSlotRecipe',
|
|
64
|
+
raw: (props) => props,
|
|
65
|
+
variantKeys: dropzoneSlotRecipeVariantKeys,
|
|
66
|
+
variantMap: {},
|
|
67
|
+
splitVariantProps(props) {
|
|
68
|
+
return splitProps(props, dropzoneSlotRecipeVariantKeys)
|
|
69
|
+
},
|
|
70
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export * from './selected-border-recipe';
|
|
|
16
16
|
export * from './table-recipe';
|
|
17
17
|
export * from './table-container-recipe';
|
|
18
18
|
export * from './divider-recipe';
|
|
19
|
+
export * from './banner-title-recipe';
|
|
20
|
+
export * from './banner-description-recipe';
|
|
21
|
+
export * from './banner-link-recipe';
|
|
22
|
+
export * from './banner-close-button-recipe';
|
|
19
23
|
export * from './accordion';
|
|
20
24
|
export * from './checkbox-slot-recipe';
|
|
21
25
|
export * from './radio-slot-recipe';
|
|
@@ -30,4 +34,10 @@ export * from './avatar-slot-recipe';
|
|
|
30
34
|
export * from './avatar-group-slot-recipe';
|
|
31
35
|
export * from './select-slot-recipe';
|
|
32
36
|
export * from './form-control-slot-recipe';
|
|
33
|
-
export * from './input-tag-slot-recipe';
|
|
37
|
+
export * from './input-tag-slot-recipe';
|
|
38
|
+
export * from './modal-slot-recipe';
|
|
39
|
+
export * from './upload-slot-recipe';
|
|
40
|
+
export * from './upload-list-slot-recipe';
|
|
41
|
+
export * from './dropzone-slot-recipe';
|
|
42
|
+
export * from './banner-slot-recipe';
|
|
43
|
+
export * from './banner-icon-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -15,6 +15,10 @@ export * from './selected-border-recipe.mjs';
|
|
|
15
15
|
export * from './table-recipe.mjs';
|
|
16
16
|
export * from './table-container-recipe.mjs';
|
|
17
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';
|
|
18
22
|
export * from './accordion.mjs';
|
|
19
23
|
export * from './checkbox-slot-recipe.mjs';
|
|
20
24
|
export * from './radio-slot-recipe.mjs';
|
|
@@ -29,4 +33,10 @@ export * from './avatar-slot-recipe.mjs';
|
|
|
29
33
|
export * from './avatar-group-slot-recipe.mjs';
|
|
30
34
|
export * from './select-slot-recipe.mjs';
|
|
31
35
|
export * from './form-control-slot-recipe.mjs';
|
|
32
|
-
export * from './input-tag-slot-recipe.mjs';
|
|
36
|
+
export * from './input-tag-slot-recipe.mjs';
|
|
37
|
+
export * from './modal-slot-recipe.mjs';
|
|
38
|
+
export * from './upload-slot-recipe.mjs';
|
|
39
|
+
export * from './upload-list-slot-recipe.mjs';
|
|
40
|
+
export * from './dropzone-slot-recipe.mjs';
|
|
41
|
+
export * from './banner-slot-recipe.mjs';
|
|
42
|
+
export * from './banner-icon-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 ModalSlotRecipeVariant {
|
|
6
|
+
full: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ModalSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof ModalSlotRecipeVariant]: Array<ModalSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ModalSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof ModalSlotRecipeVariant]?: ConditionalValue<ModalSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ModalSlotRecipeRecipe {
|
|
18
|
+
__type: ModalSlotRecipeVariantProps
|
|
19
|
+
(props?: ModalSlotRecipeVariantProps): Pretty<Record<"root" | "rootChild" | "body" | "contentRoot" | "contentChild" | "header" | "footer" | "body" | "overlay" | "closeButton", string>>
|
|
20
|
+
raw: (props?: ModalSlotRecipeVariantProps) => ModalSlotRecipeVariantProps
|
|
21
|
+
variantMap: ModalSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof ModalSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends ModalSlotRecipeVariantProps>(props: Props): [ModalSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ModalSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The styles for the Modal component */
|
|
27
|
+
export declare const modalSlotRecipe: ModalSlotRecipeRecipe
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const modalSlotRecipeDefaultVariants = {
|
|
5
|
+
"full": false
|
|
6
|
+
}
|
|
7
|
+
const modalSlotRecipeCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const modalSlotRecipeSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"modal__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"rootChild",
|
|
16
|
+
"modal__rootChild"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"body",
|
|
20
|
+
"modal__body"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"contentRoot",
|
|
24
|
+
"modal__contentRoot"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"contentChild",
|
|
28
|
+
"modal__contentChild"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"header",
|
|
32
|
+
"modal__header"
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"footer",
|
|
36
|
+
"modal__footer"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"body",
|
|
40
|
+
"modal__body"
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"overlay",
|
|
44
|
+
"modal__overlay"
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"closeButton",
|
|
48
|
+
"modal__closeButton"
|
|
49
|
+
]
|
|
50
|
+
]
|
|
51
|
+
const modalSlotRecipeSlotFns = /* @__PURE__ */ modalSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, modalSlotRecipeDefaultVariants, getSlotCompoundVariant(modalSlotRecipeCompoundVariants, slotName))])
|
|
52
|
+
|
|
53
|
+
const modalSlotRecipeFn = (props = {}) => {
|
|
54
|
+
return Object.fromEntries(modalSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const modalSlotRecipeVariantKeys = [
|
|
58
|
+
"full"
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
export const modalSlotRecipe = /* @__PURE__ */ Object.assign(modalSlotRecipeFn, {
|
|
62
|
+
__recipe__: false,
|
|
63
|
+
__name__: 'modalSlotRecipe',
|
|
64
|
+
raw: (props) => props,
|
|
65
|
+
variantKeys: modalSlotRecipeVariantKeys,
|
|
66
|
+
variantMap: {
|
|
67
|
+
"full": [
|
|
68
|
+
"true",
|
|
69
|
+
"false"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
splitVariantProps(props) {
|
|
73
|
+
return splitProps(props, modalSlotRecipeVariantKeys)
|
|
74
|
+
},
|
|
75
|
+
})
|
|
@@ -6,11 +6,19 @@ const tagSlotRecipeDefaultVariants = {
|
|
|
6
6
|
"variant": "gray"
|
|
7
7
|
}
|
|
8
8
|
const tagSlotRecipeCompoundVariants = [
|
|
9
|
+
{
|
|
10
|
+
"variant": "gray",
|
|
11
|
+
"css": {
|
|
12
|
+
"close": {
|
|
13
|
+
"background": "linear-gradient(270deg, #EDF0F2 75%, rgba(237, 240, 242, 0) 111.54%)"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
9
17
|
{
|
|
10
18
|
"variant": "red",
|
|
11
19
|
"css": {
|
|
12
20
|
"close": {
|
|
13
|
-
"background": "linear-gradient(270deg, #FDECEE 75%, rgba(237, 240, 242, 0) 111.54%)
|
|
21
|
+
"background": "linear-gradient(270deg, #FDECEE 75%, rgba(237, 240, 242, 0) 111.54%)"
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
},
|
|
@@ -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 UploadListSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type UploadListSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof UploadListSlotRecipeVariant]: Array<UploadListSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type UploadListSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof UploadListSlotRecipeVariant]?: ConditionalValue<UploadListSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface UploadListSlotRecipeRecipe {
|
|
18
|
+
__type: UploadListSlotRecipeVariantProps
|
|
19
|
+
(props?: UploadListSlotRecipeVariantProps): Pretty<Record<"root" | "titleWrapper" | "actionWrapper", string>>
|
|
20
|
+
raw: (props?: UploadListSlotRecipeVariantProps) => UploadListSlotRecipeVariantProps
|
|
21
|
+
variantMap: UploadListSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof UploadListSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends UploadListSlotRecipeVariantProps>(props: Props): [UploadListSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof UploadListSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const uploadListSlotRecipe: UploadListSlotRecipeRecipe
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const uploadListSlotRecipeDefaultVariants = {}
|
|
5
|
+
const uploadListSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const uploadListSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"upload-list__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"titleWrapper",
|
|
14
|
+
"upload-list__titleWrapper"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"actionWrapper",
|
|
18
|
+
"upload-list__actionWrapper"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const uploadListSlotRecipeSlotFns = /* @__PURE__ */ uploadListSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, uploadListSlotRecipeDefaultVariants, getSlotCompoundVariant(uploadListSlotRecipeCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const uploadListSlotRecipeFn = (props = {}) => {
|
|
24
|
+
return Object.fromEntries(uploadListSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const uploadListSlotRecipeVariantKeys = []
|
|
28
|
+
|
|
29
|
+
export const uploadListSlotRecipe = /* @__PURE__ */ Object.assign(uploadListSlotRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'uploadListSlotRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
variantKeys: uploadListSlotRecipeVariantKeys,
|
|
34
|
+
variantMap: {},
|
|
35
|
+
splitVariantProps(props) {
|
|
36
|
+
return splitProps(props, uploadListSlotRecipeVariantKeys)
|
|
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 UploadSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type UploadSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof UploadSlotRecipeVariant]: Array<UploadSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type UploadSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof UploadSlotRecipeVariant]?: ConditionalValue<UploadSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface UploadSlotRecipeRecipe {
|
|
18
|
+
__type: UploadSlotRecipeVariantProps
|
|
19
|
+
(props?: UploadSlotRecipeVariantProps): Pretty<Record<"root" | "resetButton", string>>
|
|
20
|
+
raw: (props?: UploadSlotRecipeVariantProps) => UploadSlotRecipeVariantProps
|
|
21
|
+
variantMap: UploadSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof UploadSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends UploadSlotRecipeVariantProps>(props: Props): [UploadSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof UploadSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const uploadSlotRecipe: UploadSlotRecipeRecipe
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const uploadSlotRecipeDefaultVariants = {}
|
|
5
|
+
const uploadSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const uploadSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"upload__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"resetButton",
|
|
14
|
+
"upload__resetButton"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const uploadSlotRecipeSlotFns = /* @__PURE__ */ uploadSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, uploadSlotRecipeDefaultVariants, getSlotCompoundVariant(uploadSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const uploadSlotRecipeFn = (props = {}) => {
|
|
20
|
+
return Object.fromEntries(uploadSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const uploadSlotRecipeVariantKeys = []
|
|
24
|
+
|
|
25
|
+
export const uploadSlotRecipe = /* @__PURE__ */ Object.assign(uploadSlotRecipeFn, {
|
|
26
|
+
__recipe__: false,
|
|
27
|
+
__name__: 'uploadSlotRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: uploadSlotRecipeVariantKeys,
|
|
30
|
+
variantMap: {},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, uploadSlotRecipeVariantKeys)
|
|
33
|
+
},
|
|
34
|
+
})
|
package/tokens/index.css
CHANGED
|
@@ -142,6 +142,22 @@
|
|
|
142
142
|
--mp-sizes-7\.5: 1.875rem;
|
|
143
143
|
--mp-sizes-9\.5: 2.375rem;
|
|
144
144
|
--mp-sizes-full: 100%;
|
|
145
|
+
--mp-sizes-3xs: 14rem;
|
|
146
|
+
--mp-sizes-2xs: 16rem;
|
|
147
|
+
--mp-sizes-xs: 20rem;
|
|
148
|
+
--mp-sizes-2xl: 42rem;
|
|
149
|
+
--mp-sizes-3xl: 48rem;
|
|
150
|
+
--mp-sizes-4xl: 56rem;
|
|
151
|
+
--mp-sizes-5xl: 64rem;
|
|
152
|
+
--mp-sizes-6xl: 72rem;
|
|
153
|
+
--mp-sizes-sm: 24rem;
|
|
154
|
+
--mp-sizes-md: 28rem;
|
|
155
|
+
--mp-sizes-lg: 32rem;
|
|
156
|
+
--mp-sizes-xl: 36rem;
|
|
157
|
+
--mp-sizes-containers-sm: 640px;
|
|
158
|
+
--mp-sizes-containers-md: 768px;
|
|
159
|
+
--mp-sizes-containers-lg: 1024px;
|
|
160
|
+
--mp-sizes-containers-xl: 1280px;
|
|
145
161
|
--mp-sizes-breakpoint-sm: 22.5em;
|
|
146
162
|
--mp-sizes-breakpoint-md: 48em;
|
|
147
163
|
--mp-sizes-breakpoint-lg: 64em;
|