@stokelp/styled-system 2.32.2 → 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.2",
3
+ "version": "2.33.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -118,6 +118,9 @@
118
118
  "variant]___[value:primary]___[recipe:iconButton",
119
119
  "size]___[value:lg]___[recipe:iconButton"
120
120
  ],
121
+ "avatar": [
122
+ "size]___[value:md]___[recipe:avatar"
123
+ ],
121
124
  "checkbox": [
122
125
  "size]___[value:md]___[recipe:checkbox"
123
126
  ],
@@ -175,8 +178,12 @@
175
178
  "size]___[value:md]___[recipe:accordion"
176
179
  ],
177
180
  "actionCard": [],
178
- "avatar": [
179
- "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"
180
187
  ],
181
188
  "breadcrumb": [],
182
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';