@stokelp/styled-system 2.32.1 → 2.33.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.32.1",
3
+ "version": "2.33.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -50,12 +50,6 @@
50
50
  "flexDirection]___[value:row",
51
51
  "width]___[value:full",
52
52
  "width]___[value:fit-content !important",
53
- "transitionProperty]___[value:opacity",
54
- "transitionDuration]___[value:fast",
55
- "opacity]___[value:0",
56
- "visibility]___[value:hidden",
57
- "opacity]___[value:1]___[cond:_groupHover",
58
- "visibility]___[value:visible]___[cond:_groupHover",
59
53
  "justifyContent]___[value:center",
60
54
  "flex]___[value:0 0 auto",
61
55
  "borderRadius]___[value:9999px",
@@ -124,6 +118,9 @@
124
118
  "variant]___[value:primary]___[recipe:iconButton",
125
119
  "size]___[value:lg]___[recipe:iconButton"
126
120
  ],
121
+ "avatar": [
122
+ "size]___[value:md]___[recipe:avatar"
123
+ ],
127
124
  "checkbox": [
128
125
  "size]___[value:md]___[recipe:checkbox"
129
126
  ],
@@ -181,8 +178,12 @@
181
178
  "size]___[value:md]___[recipe:accordion"
182
179
  ],
183
180
  "actionCard": [],
184
- "avatar": [
185
- "size]___[value:md]___[recipe:avatar"
181
+ "avatarGroup": [
182
+ "size]___[value:md]___[recipe:avatarGroup"
183
+ ],
184
+ "chip": [
185
+ "size]___[value:md]___[recipe:chip",
186
+ "colorScheme]___[value:secondary]___[recipe:chip"
186
187
  ],
187
188
  "breadcrumb": [],
188
189
  "combobox": [
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface AvatarGroupVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "sm" | "md" | "lg"
10
+ }
11
+
12
+ type AvatarGroupVariantMap = {
13
+ [key in keyof AvatarGroupVariant]: Array<AvatarGroupVariant[key]>
14
+ }
15
+
16
+ export type AvatarGroupVariantProps = {
17
+ [key in keyof AvatarGroupVariant]?: ConditionalValue<AvatarGroupVariant[key]> | undefined
18
+ }
19
+
20
+ export interface AvatarGroupRecipe {
21
+ __type: AvatarGroupVariantProps
22
+ (props?: AvatarGroupVariantProps): string
23
+ raw: (props?: AvatarGroupVariantProps) => AvatarGroupVariantProps
24
+ variantMap: AvatarGroupVariantMap
25
+ variantKeys: Array<keyof AvatarGroupVariant>
26
+ splitVariantProps<Props extends AvatarGroupVariantProps>(props: Props): [AvatarGroupVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarGroupVariantProps>>]
27
+ getVariantProps: (props?: AvatarGroupVariantProps) => AvatarGroupVariantProps
28
+ }
29
+
30
+
31
+ export declare const avatarGroup: AvatarGroupRecipe
@@ -0,0 +1,32 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const avatarGroupFn = /* @__PURE__ */ createRecipe('avatar-group', {
5
+ "size": "md"
6
+ }, [])
7
+
8
+ const avatarGroupVariantMap = {
9
+ "size": [
10
+ "sm",
11
+ "md",
12
+ "lg"
13
+ ]
14
+ }
15
+
16
+ const avatarGroupVariantKeys = Object.keys(avatarGroupVariantMap)
17
+
18
+ export const avatarGroup = /* @__PURE__ */ Object.assign(memo(avatarGroupFn.recipeFn), {
19
+ __recipe__: true,
20
+ __name__: 'avatarGroup',
21
+ __getCompoundVariantCss__: avatarGroupFn.__getCompoundVariantCss__,
22
+ raw: (props) => props,
23
+ variantKeys: avatarGroupVariantKeys,
24
+ variantMap: avatarGroupVariantMap,
25
+ merge(recipe) {
26
+ return mergeRecipes(this, recipe)
27
+ },
28
+ splitVariantProps(props) {
29
+ return splitProps(props, avatarGroupVariantKeys)
30
+ },
31
+ getVariantProps: avatarGroupFn.getVariantProps,
32
+ })
@@ -17,6 +17,7 @@ export * from './illustration';
17
17
  export * from './button-filter';
18
18
  export * from './phone-number-input';
19
19
  export * from './icon';
20
+ export * from './avatar-group';
20
21
  export * from './drawer';
21
22
  export * from './radio-button-group';
22
23
  export * from './radio-group';
package/recipes/index.mjs CHANGED
@@ -16,6 +16,7 @@ export * from './illustration.mjs';
16
16
  export * from './button-filter.mjs';
17
17
  export * from './phone-number-input.mjs';
18
18
  export * from './icon.mjs';
19
+ export * from './avatar-group.mjs';
19
20
  export * from './drawer.mjs';
20
21
  export * from './radio-button-group.mjs';
21
22
  export * from './radio-group.mjs';