@stokelp/styled-system 2.117.2 → 2.119.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.117.2",
3
+ "version": "2.119.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -186,6 +186,7 @@
186
186
  "overflow]___[value:auto",
187
187
  "padding]___[value:space-64",
188
188
  "height]___[value:500",
189
+ "marginTop]___[value:space-24",
189
190
  "maxWidth]___[value:500",
190
191
  "textOverflow]___[value:ellipsis",
191
192
  "gap]___[value:20",
@@ -399,6 +400,7 @@
399
400
  "size]___[value:lg]___[recipe:statusTagSelect",
400
401
  "size]___[value:sm]___[recipe:statusTagSelect"
401
402
  ],
403
+ "steps": [],
402
404
  "tableGroupTitle": [
403
405
  "variant]___[value:primary]___[recipe:tableGroupTitle",
404
406
  "variant]___[value:secondary]___[recipe:tableGroupTitle",
@@ -33,6 +33,7 @@ export * from './form-label';
33
33
  export * from './checkbox';
34
34
  export * from './datepicker';
35
35
  export * from './tabs';
36
+ export * from './steps';
36
37
  export * from './tag';
37
38
  export * from './status-tag-select';
38
39
  export * from './select';
package/recipes/index.mjs CHANGED
@@ -32,6 +32,7 @@ export * from './form-label.mjs';
32
32
  export * from './checkbox.mjs';
33
33
  export * from './datepicker.mjs';
34
34
  export * from './tabs.mjs';
35
+ export * from './steps.mjs';
35
36
  export * from './tag.mjs';
36
37
  export * from './status-tag-select.mjs';
37
38
  export * from './select.mjs';
@@ -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 StepsVariant {
6
+
7
+ }
8
+
9
+ type StepsVariantMap = {
10
+ [key in keyof StepsVariant]: Array<StepsVariant[key]>
11
+ }
12
+
13
+ type StepsSlot = "root" | "list" | "item" | "trigger" | "indicator" | "separator" | "content" | "nextTrigger" | "prevTrigger" | "progress"
14
+
15
+ export type StepsVariantProps = {
16
+ [key in keyof StepsVariant]?: ConditionalValue<StepsVariant[key]> | undefined
17
+ }
18
+
19
+ export interface StepsRecipe {
20
+ __slot: StepsSlot
21
+ __type: StepsVariantProps
22
+ (props?: StepsVariantProps): Pretty<Record<StepsSlot, string>>
23
+ raw: (props?: StepsVariantProps) => StepsVariantProps
24
+ variantMap: StepsVariantMap
25
+ variantKeys: Array<keyof StepsVariant>
26
+ splitVariantProps<Props extends StepsVariantProps>(props: Props): [StepsVariantProps, Pretty<DistributiveOmit<Props, keyof StepsVariantProps>>]
27
+ getVariantProps: (props?: StepsVariantProps) => StepsVariantProps
28
+ }
29
+
30
+
31
+ export declare const steps: StepsRecipe
@@ -0,0 +1,69 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const stepsDefaultVariants = {}
5
+ const stepsCompoundVariants = []
6
+
7
+ const stepsSlotNames = [
8
+ [
9
+ "root",
10
+ "steps__root"
11
+ ],
12
+ [
13
+ "list",
14
+ "steps__list"
15
+ ],
16
+ [
17
+ "item",
18
+ "steps__item"
19
+ ],
20
+ [
21
+ "trigger",
22
+ "steps__trigger"
23
+ ],
24
+ [
25
+ "indicator",
26
+ "steps__indicator"
27
+ ],
28
+ [
29
+ "separator",
30
+ "steps__separator"
31
+ ],
32
+ [
33
+ "content",
34
+ "steps__content"
35
+ ],
36
+ [
37
+ "nextTrigger",
38
+ "steps__nextTrigger"
39
+ ],
40
+ [
41
+ "prevTrigger",
42
+ "steps__prevTrigger"
43
+ ],
44
+ [
45
+ "progress",
46
+ "steps__progress"
47
+ ]
48
+ ]
49
+ const stepsSlotFns = /* @__PURE__ */ stepsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, stepsDefaultVariants, getSlotCompoundVariant(stepsCompoundVariants, slotName))])
50
+
51
+ const stepsFn = memo((props = {}) => {
52
+ return Object.fromEntries(stepsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
53
+ })
54
+
55
+ const stepsVariantKeys = []
56
+ const getVariantProps = (variants) => ({ ...stepsDefaultVariants, ...compact(variants) })
57
+
58
+ export const steps = /* @__PURE__ */ Object.assign(stepsFn, {
59
+ __recipe__: false,
60
+ __name__: 'steps',
61
+ raw: (props) => props,
62
+ classNameMap: {},
63
+ variantKeys: stepsVariantKeys,
64
+ variantMap: {},
65
+ splitVariantProps(props) {
66
+ return splitProps(props, stepsVariantKeys)
67
+ },
68
+ getVariantProps
69
+ })