@stokelp/styled-system 2.83.1 → 2.84.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/package.json +1 -1
- package/panda.buildinfo.json +4 -0
- package/recipes/avatar.d.ts +4 -0
- package/recipes/avatar.mjs +8 -2
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"truncate]___[value:true",
|
|
60
60
|
"color]___[value:primary.900",
|
|
61
61
|
"color]___[value:primary.500",
|
|
62
|
+
"border]___[value:solid 1px",
|
|
63
|
+
"borderColor]___[value:grey.100",
|
|
62
64
|
"stroke]___[value:grey.100",
|
|
63
65
|
"fill]___[value:primary.500",
|
|
64
66
|
"padding]___[value:space-8",
|
|
@@ -141,6 +143,8 @@
|
|
|
141
143
|
],
|
|
142
144
|
"avatar": [
|
|
143
145
|
"size]___[value:md]___[recipe:avatar",
|
|
146
|
+
"hasBorder]___[value:false]___[recipe:avatar",
|
|
147
|
+
"hasBorder]___[value:true]___[recipe:avatar",
|
|
144
148
|
"size]___[value:sm]___[recipe:avatar",
|
|
145
149
|
"size]___[value:lg]___[recipe:avatar"
|
|
146
150
|
],
|
package/recipes/avatar.d.ts
CHANGED
package/recipes/avatar.mjs
CHANGED
|
@@ -2,7 +2,8 @@ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mj
|
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const avatarDefaultVariants = {
|
|
5
|
-
"size": "md"
|
|
5
|
+
"size": "md",
|
|
6
|
+
"hasBorder": false
|
|
6
7
|
}
|
|
7
8
|
const avatarCompoundVariants = []
|
|
8
9
|
|
|
@@ -27,7 +28,8 @@ const avatarFn = memo((props = {}) => {
|
|
|
27
28
|
})
|
|
28
29
|
|
|
29
30
|
const avatarVariantKeys = [
|
|
30
|
-
"size"
|
|
31
|
+
"size",
|
|
32
|
+
"hasBorder"
|
|
31
33
|
]
|
|
32
34
|
const getVariantProps = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) })
|
|
33
35
|
|
|
@@ -41,6 +43,10 @@ export const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
|
|
|
41
43
|
"sm",
|
|
42
44
|
"md",
|
|
43
45
|
"lg"
|
|
46
|
+
],
|
|
47
|
+
"hasBorder": [
|
|
48
|
+
"true",
|
|
49
|
+
"false"
|
|
44
50
|
]
|
|
45
51
|
},
|
|
46
52
|
splitVariantProps(props) {
|