@stokelp/styled-system 2.35.0 → 2.37.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.35.0",
3
+ "version": "2.37.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -56,12 +56,22 @@
56
56
  "background]___[value:primary.200]___[cond:_hover",
57
57
  "background]___[value:primary.100]___[cond:_hover",
58
58
  "paddingBottom]___[value:space-24",
59
+ "background]___[value:success.500",
60
+ "borderRadius]___[value:full",
61
+ "background]___[value:black/10",
62
+ "color]___[value:secondary.500",
63
+ "background]___[value:decorative.yellow.mid",
64
+ "pointerEvents]___[value:none",
65
+ "background]___[value:decorative.blue.mid",
66
+ "background]___[value:decorative.green.mid",
67
+ "background]___[value:secondary.100",
68
+ "alignItems]___[value:flex-start",
69
+ "gap]___[value:space-0",
70
+ "flexDirection]___[value:column",
59
71
  "display]___[value:grid",
60
72
  "gridTemplateColumns]___[value:repeat(auto-fit, minmax(300px, 1fr))",
61
73
  "gap]___[value:10px",
62
- "alignItems]___[value:flex-start",
63
74
  "gap]___[value:0",
64
- "flexDirection]___[value:column",
65
75
  "alignItems]___[value:stretch",
66
76
  "gap]___[value:space-16",
67
77
  "borderColor]___[value:primary.100",
@@ -76,7 +86,6 @@
76
86
  "padding]___[value:space-16",
77
87
  "marginTop]___[value:100",
78
88
  "color]___[value:primary.500",
79
- "color]___[value:secondary.500",
80
89
  "color]___[value:success.500",
81
90
  "color]___[value:warning.500",
82
91
  "borderRadius]___[value:radius-24",
@@ -119,7 +128,8 @@
119
128
  "size]___[value:lg]___[recipe:iconButton"
120
129
  ],
121
130
  "avatar": [
122
- "size]___[value:md]___[recipe:avatar"
131
+ "size]___[value:md]___[recipe:avatar",
132
+ "size]___[value:sm]___[recipe:avatar"
123
133
  ],
124
134
  "checkbox": [
125
135
  "size]___[value:md]___[recipe:checkbox"
@@ -129,9 +139,9 @@
129
139
  ],
130
140
  "text": [
131
141
  "size]___[value:md]___[recipe:text",
142
+ "bold]___[value:true]___[recipe:text",
132
143
  "size]___[value:lg]___[recipe:text",
133
- "size]___[value:sm]___[recipe:text",
134
- "bold]___[value:true]___[recipe:text"
144
+ "size]___[value:sm]___[recipe:text"
135
145
  ],
136
146
  "input": [
137
147
  "size]___[value:md]___[recipe:input"
@@ -174,6 +184,9 @@
174
184
  ],
175
185
  "collapsible": [],
176
186
  "productCardCatalog": [],
187
+ "icon": [
188
+ "size]___[value:md]___[recipe:icon"
189
+ ],
177
190
  "accordion": [
178
191
  "size]___[value:md]___[recipe:accordion"
179
192
  ],
@@ -194,8 +207,8 @@
194
207
  "drawer": [
195
208
  "variant]___[value:right]___[recipe:drawer"
196
209
  ],
197
- "icon": [
198
- "size]___[value:md]___[recipe:icon"
210
+ "flag": [
211
+ "shape]___[value:rounded]___[recipe:flag"
199
212
  ],
200
213
  "illustration": [
201
214
  "pattern]___[value:neutral]___[recipe:illustration"
@@ -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 FlagVariant {
6
+ /**
7
+ * @default "rounded"
8
+ */
9
+ shape: "rectangle" | "rounded" | "circle" | "square"
10
+ }
11
+
12
+ type FlagVariantMap = {
13
+ [key in keyof FlagVariant]: Array<FlagVariant[key]>
14
+ }
15
+
16
+ export type FlagVariantProps = {
17
+ [key in keyof FlagVariant]?: ConditionalValue<FlagVariant[key]> | undefined
18
+ }
19
+
20
+ export interface FlagRecipe {
21
+ __type: FlagVariantProps
22
+ (props?: FlagVariantProps): string
23
+ raw: (props?: FlagVariantProps) => FlagVariantProps
24
+ variantMap: FlagVariantMap
25
+ variantKeys: Array<keyof FlagVariant>
26
+ splitVariantProps<Props extends FlagVariantProps>(props: Props): [FlagVariantProps, Pretty<DistributiveOmit<Props, keyof FlagVariantProps>>]
27
+ getVariantProps: (props?: FlagVariantProps) => FlagVariantProps
28
+ }
29
+
30
+
31
+ export declare const flag: FlagRecipe
@@ -0,0 +1,33 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const flagFn = /* @__PURE__ */ createRecipe('flag', {
5
+ "shape": "rounded"
6
+ }, [])
7
+
8
+ const flagVariantMap = {
9
+ "shape": [
10
+ "rectangle",
11
+ "rounded",
12
+ "circle",
13
+ "square"
14
+ ]
15
+ }
16
+
17
+ const flagVariantKeys = Object.keys(flagVariantMap)
18
+
19
+ export const flag = /* @__PURE__ */ Object.assign(memo(flagFn.recipeFn), {
20
+ __recipe__: true,
21
+ __name__: 'flag',
22
+ __getCompoundVariantCss__: flagFn.__getCompoundVariantCss__,
23
+ raw: (props) => props,
24
+ variantKeys: flagVariantKeys,
25
+ variantMap: flagVariantMap,
26
+ merge(recipe) {
27
+ return mergeRecipes(this, recipe)
28
+ },
29
+ splitVariantProps(props) {
30
+ return splitProps(props, flagVariantKeys)
31
+ },
32
+ getVariantProps: flagFn.getVariantProps,
33
+ })
@@ -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 './flag';
20
21
  export * from './avatar-group';
21
22
  export * from './drawer';
22
23
  export * from './radio-button-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 './flag.mjs';
19
20
  export * from './avatar-group.mjs';
20
21
  export * from './drawer.mjs';
21
22
  export * from './radio-button-group.mjs';
@@ -16,7 +16,7 @@ export type ProductCardCatalogVariantProps = {
16
16
 
17
17
  export interface ProductCardCatalogRecipe {
18
18
  __type: ProductCardCatalogVariantProps
19
- (props?: ProductCardCatalogVariantProps): Pretty<Record<"root" | "title" | "image" | "content" | "description" | "highlight", string>>
19
+ (props?: ProductCardCatalogVariantProps): Pretty<Record<"root" | "title" | "image" | "imageContainer" | "content" | "description" | "highlight" | "tag" | "badgeList" | "badge" | "shortLivedTag", string>>
20
20
  raw: (props?: ProductCardCatalogVariantProps) => ProductCardCatalogVariantProps
21
21
  variantMap: ProductCardCatalogVariantMap
22
22
  variantKeys: Array<keyof ProductCardCatalogVariant>
@@ -17,6 +17,10 @@ const productCardCatalogSlotNames = [
17
17
  "image",
18
18
  "product-card-catalog__image"
19
19
  ],
20
+ [
21
+ "imageContainer",
22
+ "product-card-catalog__imageContainer"
23
+ ],
20
24
  [
21
25
  "content",
22
26
  "product-card-catalog__content"
@@ -28,6 +32,22 @@ const productCardCatalogSlotNames = [
28
32
  [
29
33
  "highlight",
30
34
  "product-card-catalog__highlight"
35
+ ],
36
+ [
37
+ "tag",
38
+ "product-card-catalog__tag"
39
+ ],
40
+ [
41
+ "badgeList",
42
+ "product-card-catalog__badgeList"
43
+ ],
44
+ [
45
+ "badge",
46
+ "product-card-catalog__badge"
47
+ ],
48
+ [
49
+ "shortLivedTag",
50
+ "product-card-catalog__shortLivedTag"
31
51
  ]
32
52
  ]
33
53
  const productCardCatalogSlotFns = /* @__PURE__ */ productCardCatalogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productCardCatalogDefaultVariants, getSlotCompoundVariant(productCardCatalogCompoundVariants, slotName))])
@@ -146,7 +146,7 @@ export interface UtilityValues {
146
146
  transitionDuration: Tokens["durations"];
147
147
  transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
148
148
  animation: Tokens["animations"];
149
- animationName: "blob" | "bounce" | "fade-in" | "fade-out" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-top-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-top-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin";
149
+ animationName: "blob" | "bounce" | "fade-in" | "fade-out" | "slide-from-top" | "slide-from-bottom" | "slide-from-left" | "slide-from-right" | "slide-to-top" | "slide-to-bottom" | "slide-to-left" | "slide-to-right" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-top-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-top-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin";
150
150
  animationTimingFunction: Tokens["easings"];
151
151
  animationDuration: Tokens["durations"];
152
152
  animationDelay: Tokens["durations"];