@stokelp/styled-system 1.32.0 → 1.34.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": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -43,6 +43,9 @@
43
43
  "justifyContent]___[value:center",
44
44
  "flex]___[value:0 0 auto",
45
45
  "borderRadius]___[value:9999px",
46
+ "display]___[value:grid",
47
+ "gridTemplateColumns]___[value:repeat(auto-fit, minmax(300px, 1fr))",
48
+ "gap]___[value:10px",
46
49
  "alignItems]___[value:flex-start",
47
50
  "gap]___[value:0",
48
51
  "flexDirection]___[value:column",
@@ -51,9 +54,7 @@
51
54
  "borderColor]___[value:primary.100",
52
55
  "marginBlock]___[value:space-24",
53
56
  "width]___[value:100%",
54
- "display]___[value:grid",
55
57
  "gridTemplateColumns]___[value:repeat(3, 1fr)",
56
- "gap]___[value:10px",
57
58
  "width]___[value:400",
58
59
  "gap]___[value:space-32",
59
60
  "gap]___[value:space-8",
@@ -131,6 +132,7 @@
131
132
  "severity]___[value:warning]___[recipe:tag",
132
133
  "severity]___[value:error]___[recipe:tag"
133
134
  ],
135
+ "productCardCatalog": [],
134
136
  "heading": [
135
137
  "size]___[value:h2]___[recipe:heading"
136
138
  ],
@@ -30,4 +30,5 @@ export * from './alert';
30
30
  export * from './table';
31
31
  export * from './breadcrumb';
32
32
  export * from './popover';
33
- export * from './pagination';
33
+ export * from './pagination';
34
+ export * from './product-card-catalog';
package/recipes/index.mjs CHANGED
@@ -29,4 +29,5 @@ export * from './alert.mjs';
29
29
  export * from './table.mjs';
30
30
  export * from './breadcrumb.mjs';
31
31
  export * from './popover.mjs';
32
- export * from './pagination.mjs';
32
+ export * from './pagination.mjs';
33
+ export * from './product-card-catalog.mjs';
@@ -0,0 +1,32 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ProductCardCatalogVariant {
6
+
7
+ }
8
+
9
+ type ProductCardCatalogVariantMap = {
10
+ [key in keyof ProductCardCatalogVariant]: Array<ProductCardCatalogVariant[key]>
11
+ }
12
+
13
+ export type ProductCardCatalogVariantProps = {
14
+ [key in keyof ProductCardCatalogVariant]?: ConditionalValue<ProductCardCatalogVariant[key]> | undefined
15
+ }
16
+
17
+ export interface ProductCardCatalogRecipe {
18
+ __type: ProductCardCatalogVariantProps
19
+ (props?: ProductCardCatalogVariantProps): Pretty<Record<"root" | "title" | "image" | "content" | "description" | "highlight", string>>
20
+ raw: (props?: ProductCardCatalogVariantProps) => ProductCardCatalogVariantProps
21
+ variantMap: ProductCardCatalogVariantMap
22
+ variantKeys: Array<keyof ProductCardCatalogVariant>
23
+ splitVariantProps<Props extends ProductCardCatalogVariantProps>(props: Props): [ProductCardCatalogVariantProps, Pretty<DistributiveOmit<Props, keyof ProductCardCatalogVariantProps>>]
24
+ getVariantProps: (props?: ProductCardCatalogVariantProps) => ProductCardCatalogVariantProps
25
+ }
26
+
27
+ /**
28
+ * The styles for the ProductCardCatalog component
29
+
30
+
31
+ */
32
+ export declare const productCardCatalog: ProductCardCatalogRecipe
@@ -0,0 +1,52 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const productCardCatalogDefaultVariants = {}
5
+ const productCardCatalogCompoundVariants = []
6
+
7
+ const productCardCatalogSlotNames = [
8
+ [
9
+ "root",
10
+ "product-card-catalog__root"
11
+ ],
12
+ [
13
+ "title",
14
+ "product-card-catalog__title"
15
+ ],
16
+ [
17
+ "image",
18
+ "product-card-catalog__image"
19
+ ],
20
+ [
21
+ "content",
22
+ "product-card-catalog__content"
23
+ ],
24
+ [
25
+ "description",
26
+ "product-card-catalog__description"
27
+ ],
28
+ [
29
+ "highlight",
30
+ "product-card-catalog__highlight"
31
+ ]
32
+ ]
33
+ const productCardCatalogSlotFns = /* @__PURE__ */ productCardCatalogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productCardCatalogDefaultVariants, getSlotCompoundVariant(productCardCatalogCompoundVariants, slotName))])
34
+
35
+ const productCardCatalogFn = memo((props = {}) => {
36
+ return Object.fromEntries(productCardCatalogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
37
+ })
38
+
39
+ const productCardCatalogVariantKeys = []
40
+ const getVariantProps = (variants) => ({ ...productCardCatalogDefaultVariants, ...compact(variants) })
41
+
42
+ export const productCardCatalog = /* @__PURE__ */ Object.assign(productCardCatalogFn, {
43
+ __recipe__: false,
44
+ __name__: 'productCardCatalog',
45
+ raw: (props) => props,
46
+ variantKeys: productCardCatalogVariantKeys,
47
+ variantMap: {},
48
+ splitVariantProps(props) {
49
+ return splitProps(props, productCardCatalogVariantKeys)
50
+ },
51
+ getVariantProps
52
+ })