@mekari/pixel3-styled-system 0.0.5 → 0.0.6
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/index.d.ts +3 -1
- package/recipes/index.mjs +3 -1
- package/recipes/rich-text-editor-slot-recipe.d.ts +27 -0
- package/recipes/rich-text-editor-slot-recipe.mjs +38 -0
- package/recipes/rtestyle-provider-recipe.d.ts +27 -0
- package/recipes/rtestyle-provider-recipe.mjs +22 -0
- package/recipes/textarea-recipe.d.ts +1 -1
- package/recipes/textarea-recipe.mjs +1 -5
- package/recipes/typography-style-provider-recipe.d.ts +27 -0
- package/recipes/typography-style-provider-recipe.mjs +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bbb1341: - Added recipe for `MpRichTextEditor` and `MpRTEStyleProvider`
|
|
8
|
+
|
|
9
|
+
## 0.0.6-dev.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- bbb1341: - Added recipe for `MpRichTextEditor` and `MpRTEStyleProvider`
|
|
14
|
+
|
|
3
15
|
## 0.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
package/recipes/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './banner-title-recipe';
|
|
|
20
20
|
export * from './banner-description-recipe';
|
|
21
21
|
export * from './banner-link-recipe';
|
|
22
22
|
export * from './banner-close-button-recipe';
|
|
23
|
+
export * from './rtestyle-provider-recipe';
|
|
23
24
|
export * from './accordion';
|
|
24
25
|
export * from './checkbox-slot-recipe';
|
|
25
26
|
export * from './radio-slot-recipe';
|
|
@@ -43,4 +44,5 @@ export * from './banner-slot-recipe';
|
|
|
43
44
|
export * from './banner-icon-slot-recipe';
|
|
44
45
|
export * from './segmented-control-slot-recipe';
|
|
45
46
|
export * from './toast-slot-recipe';
|
|
46
|
-
export * from './broadcast-slot-recipe';
|
|
47
|
+
export * from './broadcast-slot-recipe';
|
|
48
|
+
export * from './rich-text-editor-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -19,6 +19,7 @@ export * from './banner-title-recipe.mjs';
|
|
|
19
19
|
export * from './banner-description-recipe.mjs';
|
|
20
20
|
export * from './banner-link-recipe.mjs';
|
|
21
21
|
export * from './banner-close-button-recipe.mjs';
|
|
22
|
+
export * from './rtestyle-provider-recipe.mjs';
|
|
22
23
|
export * from './accordion.mjs';
|
|
23
24
|
export * from './checkbox-slot-recipe.mjs';
|
|
24
25
|
export * from './radio-slot-recipe.mjs';
|
|
@@ -42,4 +43,5 @@ export * from './banner-slot-recipe.mjs';
|
|
|
42
43
|
export * from './banner-icon-slot-recipe.mjs';
|
|
43
44
|
export * from './segmented-control-slot-recipe.mjs';
|
|
44
45
|
export * from './toast-slot-recipe.mjs';
|
|
45
|
-
export * from './broadcast-slot-recipe.mjs';
|
|
46
|
+
export * from './broadcast-slot-recipe.mjs';
|
|
47
|
+
export * from './rich-text-editor-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 RichTextEditorSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type RichTextEditorSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof RichTextEditorSlotRecipeVariant]: Array<RichTextEditorSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type RichTextEditorSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof RichTextEditorSlotRecipeVariant]?: ConditionalValue<RichTextEditorSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RichTextEditorSlotRecipeRecipe {
|
|
18
|
+
__type: RichTextEditorSlotRecipeVariantProps
|
|
19
|
+
(props?: RichTextEditorSlotRecipeVariantProps): Pretty<Record<"root" | "toolbar" | "area", string>>
|
|
20
|
+
raw: (props?: RichTextEditorSlotRecipeVariantProps) => RichTextEditorSlotRecipeVariantProps
|
|
21
|
+
variantMap: RichTextEditorSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof RichTextEditorSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends RichTextEditorSlotRecipeVariantProps>(props: Props): [RichTextEditorSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RichTextEditorSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const richTextEditorSlotRecipe: RichTextEditorSlotRecipeRecipe
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const richTextEditorSlotRecipeDefaultVariants = {}
|
|
5
|
+
const richTextEditorSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const richTextEditorSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"rich-text-editor__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"toolbar",
|
|
14
|
+
"rich-text-editor__toolbar"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"area",
|
|
18
|
+
"rich-text-editor__area"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const richTextEditorSlotRecipeSlotFns = /* @__PURE__ */ richTextEditorSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, richTextEditorSlotRecipeDefaultVariants, getSlotCompoundVariant(richTextEditorSlotRecipeCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const richTextEditorSlotRecipeFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(richTextEditorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const richTextEditorSlotRecipeVariantKeys = []
|
|
28
|
+
|
|
29
|
+
export const richTextEditorSlotRecipe = /* @__PURE__ */ Object.assign(richTextEditorSlotRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'richTextEditorSlotRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
variantKeys: richTextEditorSlotRecipeVariantKeys,
|
|
34
|
+
variantMap: {},
|
|
35
|
+
splitVariantProps(props) {
|
|
36
|
+
return splitProps(props, richTextEditorSlotRecipeVariantKeys)
|
|
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 RTEStyleProviderRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type RTEStyleProviderRecipeVariantMap = {
|
|
10
|
+
[key in keyof RTEStyleProviderRecipeVariant]: Array<RTEStyleProviderRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type RTEStyleProviderRecipeVariantProps = {
|
|
14
|
+
[key in keyof RTEStyleProviderRecipeVariant]?: ConditionalValue<RTEStyleProviderRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RTEStyleProviderRecipeRecipe {
|
|
18
|
+
__type: RTEStyleProviderRecipeVariantProps
|
|
19
|
+
(props?: RTEStyleProviderRecipeVariantProps): string
|
|
20
|
+
raw: (props?: RTEStyleProviderRecipeVariantProps) => RTEStyleProviderRecipeVariantProps
|
|
21
|
+
variantMap: RTEStyleProviderRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof RTEStyleProviderRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends RTEStyleProviderRecipeVariantProps>(props: Props): [RTEStyleProviderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RTEStyleProviderRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const RTEStyleProviderRecipe: RTEStyleProviderRecipeRecipe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const RTEStyleProviderRecipeFn = /* @__PURE__ */ createRecipe('typography-style-provider', {}, [])
|
|
5
|
+
|
|
6
|
+
const RTEStyleProviderRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const RTEStyleProviderRecipeVariantKeys = Object.keys(RTEStyleProviderRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyleProviderRecipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'RTEStyleProviderRecipe',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: RTEStyleProviderRecipeVariantKeys,
|
|
15
|
+
variantMap: RTEStyleProviderRecipeVariantMap,
|
|
16
|
+
merge(recipe) {
|
|
17
|
+
return mergeRecipes(this, recipe)
|
|
18
|
+
},
|
|
19
|
+
splitVariantProps(props) {
|
|
20
|
+
return splitProps(props, RTEStyleProviderRecipeVariantKeys)
|
|
21
|
+
},
|
|
22
|
+
})
|
|
@@ -3,11 +3,7 @@ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
|
3
3
|
|
|
4
4
|
const textareaRecipeFn = /* @__PURE__ */ createRecipe('textarea', {}, [])
|
|
5
5
|
|
|
6
|
-
const textareaRecipeVariantMap = {
|
|
7
|
-
"isFullWidth": [
|
|
8
|
-
"true"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
6
|
+
const textareaRecipeVariantMap = {}
|
|
11
7
|
|
|
12
8
|
const textareaRecipeVariantKeys = Object.keys(textareaRecipeVariantMap)
|
|
13
9
|
|
|
@@ -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 TypographyStyleProviderRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TypographyStyleProviderRecipeVariantMap = {
|
|
10
|
+
[key in keyof TypographyStyleProviderRecipeVariant]: Array<TypographyStyleProviderRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type TypographyStyleProviderRecipeVariantProps = {
|
|
14
|
+
[key in keyof TypographyStyleProviderRecipeVariant]?: ConditionalValue<TypographyStyleProviderRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TypographyStyleProviderRecipeRecipe {
|
|
18
|
+
__type: TypographyStyleProviderRecipeVariantProps
|
|
19
|
+
(props?: TypographyStyleProviderRecipeVariantProps): string
|
|
20
|
+
raw: (props?: TypographyStyleProviderRecipeVariantProps) => TypographyStyleProviderRecipeVariantProps
|
|
21
|
+
variantMap: TypographyStyleProviderRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof TypographyStyleProviderRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends TypographyStyleProviderRecipeVariantProps>(props: Props): [TypographyStyleProviderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof TypographyStyleProviderRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const typographyStyleProviderRecipe: TypographyStyleProviderRecipeRecipe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const typographyStyleProviderRecipeFn = /* @__PURE__ */ createRecipe('typography-style-provider', {}, [])
|
|
5
|
+
|
|
6
|
+
const typographyStyleProviderRecipeVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const typographyStyleProviderRecipeVariantKeys = Object.keys(typographyStyleProviderRecipeVariantMap)
|
|
9
|
+
|
|
10
|
+
export const typographyStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(typographyStyleProviderRecipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'typographyStyleProviderRecipe',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: typographyStyleProviderRecipeVariantKeys,
|
|
15
|
+
variantMap: typographyStyleProviderRecipeVariantMap,
|
|
16
|
+
merge(recipe) {
|
|
17
|
+
return mergeRecipes(this, recipe)
|
|
18
|
+
},
|
|
19
|
+
splitVariantProps(props) {
|
|
20
|
+
return splitProps(props, typographyStyleProviderRecipeVariantKeys)
|
|
21
|
+
},
|
|
22
|
+
})
|