@stokelp/styled-system 2.83.1 → 2.84.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "2.83.1",
3
+ "version": "2.84.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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
  ],
@@ -7,6 +7,10 @@ interface AvatarVariant {
7
7
  * @default "md"
8
8
  */
9
9
  size: "sm" | "md" | "lg"
10
+ /**
11
+ * @default false
12
+ */
13
+ hasBorder: boolean
10
14
  }
11
15
 
12
16
  type AvatarVariantMap = {
@@ -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) {