@mekari/pixel3-styled-system 0.1.3-dev.6 → 0.1.4-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 +23 -0
- package/package.json +1 -1
- package/recipes/index.d.ts +2 -1
- package/recipes/index.mjs +2 -1
- package/recipes/rating-slot-recipe.d.ts +28 -0
- package/recipes/rating-slot-recipe.mjs +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.1.4-dev.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4b9a620: Generate new styled
|
|
8
|
+
|
|
9
|
+
## 0.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 122e45f: Generated new styled
|
|
14
|
+
- 28f1adb: - Update divider recipe.
|
|
15
|
+
- c9305e7: generated new styled
|
|
16
|
+
- a41b9fe: - Update table recipe.
|
|
17
|
+
- 6e300fa: Generate new styled
|
|
18
|
+
- 9778db5: Generate new styled
|
|
19
|
+
- df08983: Generate new styled
|
|
20
|
+
- 7b100db: Fix visual disabled state
|
|
21
|
+
- 92bb674: Generate new style
|
|
22
|
+
- 2e5ab6f: Generate new styled
|
|
23
|
+
- 147a21a: - Update divider recipe.
|
|
24
|
+
- 2536cae: generate new styled
|
|
25
|
+
|
|
3
26
|
## 0.1.3-dev.6
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/package.json
CHANGED
package/recipes/index.d.ts
CHANGED
|
@@ -74,4 +74,5 @@ export * from './slider-slot-recipe';
|
|
|
74
74
|
export * from './tour-slot-recipe';
|
|
75
75
|
export * from './airene-button-slot-recipe';
|
|
76
76
|
export * from './airene-input-slot-recipe';
|
|
77
|
-
export * from './airene-bubble-slot-recipe';
|
|
77
|
+
export * from './airene-bubble-slot-recipe';
|
|
78
|
+
export * from './rating-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -73,4 +73,5 @@ export * from './slider-slot-recipe.mjs';
|
|
|
73
73
|
export * from './tour-slot-recipe.mjs';
|
|
74
74
|
export * from './airene-button-slot-recipe.mjs';
|
|
75
75
|
export * from './airene-input-slot-recipe.mjs';
|
|
76
|
-
export * from './airene-bubble-slot-recipe.mjs';
|
|
76
|
+
export * from './airene-bubble-slot-recipe.mjs';
|
|
77
|
+
export * from './rating-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 RatingSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type RatingSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof RatingSlotRecipeVariant]: Array<RatingSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type RatingSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof RatingSlotRecipeVariant]?: ConditionalValue<RatingSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RatingSlotRecipeRecipe {
|
|
18
|
+
__type: RatingSlotRecipeVariantProps
|
|
19
|
+
(props?: RatingSlotRecipeVariantProps): Pretty<Record<"root" | "wrapper" | "value" | "backgroundIconWrapper" | "activeIconWrapper", string>>
|
|
20
|
+
raw: (props?: RatingSlotRecipeVariantProps) => RatingSlotRecipeVariantProps
|
|
21
|
+
variantMap: RatingSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof RatingSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends RatingSlotRecipeVariantProps>(props: Props): [RatingSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RatingSlotRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RatingSlotRecipeVariantProps) => RatingSlotRecipeVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const ratingSlotRecipe: RatingSlotRecipeRecipe
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const ratingSlotRecipeDefaultVariants = {}
|
|
5
|
+
const ratingSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const ratingSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"rating__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"wrapper",
|
|
14
|
+
"rating__wrapper"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"value",
|
|
18
|
+
"rating__value"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"backgroundIconWrapper",
|
|
22
|
+
"rating__backgroundIconWrapper"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"activeIconWrapper",
|
|
26
|
+
"rating__activeIconWrapper"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const ratingSlotRecipeSlotFns = /* @__PURE__ */ ratingSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, ratingSlotRecipeDefaultVariants, getSlotCompoundVariant(ratingSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const ratingSlotRecipeFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(ratingSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const ratingSlotRecipeVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...ratingSlotRecipeDefaultVariants, ...compact(variants) })
|
|
37
|
+
|
|
38
|
+
export const ratingSlotRecipe = /* @__PURE__ */ Object.assign(ratingSlotRecipeFn, {
|
|
39
|
+
__recipe__: false,
|
|
40
|
+
__name__: 'ratingSlotRecipe',
|
|
41
|
+
raw: (props) => props,
|
|
42
|
+
variantKeys: ratingSlotRecipeVariantKeys,
|
|
43
|
+
variantMap: {},
|
|
44
|
+
splitVariantProps(props) {
|
|
45
|
+
return splitProps(props, ratingSlotRecipeVariantKeys)
|
|
46
|
+
},
|
|
47
|
+
getVariantProps
|
|
48
|
+
})
|