@stokelp/styled-system 2.14.0 → 2.16.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.14.0",
3
+ "version": "2.16.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -49,6 +49,8 @@
49
49
  "justifyContent]___[value:center",
50
50
  "flex]___[value:0 0 auto",
51
51
  "borderRadius]___[value:9999px",
52
+ "background]___[value:primary.200]___[cond:_hover",
53
+ "background]___[value:primary.100]___[cond:_hover",
52
54
  "paddingBottom]___[value:space-24",
53
55
  "display]___[value:grid",
54
56
  "gridTemplateColumns]___[value:repeat(auto-fit, minmax(300px, 1fr))",
@@ -100,7 +102,9 @@
100
102
  "color]___[value:grey.100",
101
103
  "textStyle]___[value:body.lg",
102
104
  "textStyle]___[value:body.md",
103
- "textStyle]___[value:body.sm"
105
+ "textStyle]___[value:body.sm",
106
+ "borderRadius]___[value:3px]___[cond:& > svg",
107
+ "width]___[value:full"
104
108
  ],
105
109
  "recipes": {
106
110
  "iconButton": [
@@ -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 AppNavigationLanguageSelectVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
10
+ }
11
+
12
+ type AppNavigationLanguageSelectVariantMap = {
13
+ [key in keyof AppNavigationLanguageSelectVariant]: Array<AppNavigationLanguageSelectVariant[key]>
14
+ }
15
+
16
+ export type AppNavigationLanguageSelectVariantProps = {
17
+ [key in keyof AppNavigationLanguageSelectVariant]?: ConditionalValue<AppNavigationLanguageSelectVariant[key]> | undefined
18
+ }
19
+
20
+ export interface AppNavigationLanguageSelectRecipe {
21
+ __type: AppNavigationLanguageSelectVariantProps
22
+ (props?: AppNavigationLanguageSelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText", string>>
23
+ raw: (props?: AppNavigationLanguageSelectVariantProps) => AppNavigationLanguageSelectVariantProps
24
+ variantMap: AppNavigationLanguageSelectVariantMap
25
+ variantKeys: Array<keyof AppNavigationLanguageSelectVariant>
26
+ splitVariantProps<Props extends AppNavigationLanguageSelectVariantProps>(props: Props): [AppNavigationLanguageSelectVariantProps, Pretty<DistributiveOmit<Props, keyof AppNavigationLanguageSelectVariantProps>>]
27
+ getVariantProps: (props?: AppNavigationLanguageSelectVariantProps) => AppNavigationLanguageSelectVariantProps
28
+ }
29
+
30
+
31
+ export declare const appNavigationLanguageSelect: AppNavigationLanguageSelectRecipe
@@ -0,0 +1,96 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const appNavigationLanguageSelectDefaultVariants = {
5
+ "size": "md"
6
+ }
7
+ const appNavigationLanguageSelectCompoundVariants = []
8
+
9
+ const appNavigationLanguageSelectSlotNames = [
10
+ [
11
+ "label",
12
+ "app-navigation-language-select__label"
13
+ ],
14
+ [
15
+ "positioner",
16
+ "app-navigation-language-select__positioner"
17
+ ],
18
+ [
19
+ "trigger",
20
+ "app-navigation-language-select__trigger"
21
+ ],
22
+ [
23
+ "indicator",
24
+ "app-navigation-language-select__indicator"
25
+ ],
26
+ [
27
+ "clearTrigger",
28
+ "app-navigation-language-select__clearTrigger"
29
+ ],
30
+ [
31
+ "item",
32
+ "app-navigation-language-select__item"
33
+ ],
34
+ [
35
+ "itemText",
36
+ "app-navigation-language-select__itemText"
37
+ ],
38
+ [
39
+ "itemIndicator",
40
+ "app-navigation-language-select__itemIndicator"
41
+ ],
42
+ [
43
+ "itemGroup",
44
+ "app-navigation-language-select__itemGroup"
45
+ ],
46
+ [
47
+ "itemGroupLabel",
48
+ "app-navigation-language-select__itemGroupLabel"
49
+ ],
50
+ [
51
+ "list",
52
+ "app-navigation-language-select__list"
53
+ ],
54
+ [
55
+ "content",
56
+ "app-navigation-language-select__content"
57
+ ],
58
+ [
59
+ "root",
60
+ "app-navigation-language-select__root"
61
+ ],
62
+ [
63
+ "control",
64
+ "app-navigation-language-select__control"
65
+ ],
66
+ [
67
+ "valueText",
68
+ "app-navigation-language-select__valueText"
69
+ ]
70
+ ]
71
+ const appNavigationLanguageSelectSlotFns = /* @__PURE__ */ appNavigationLanguageSelectSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, appNavigationLanguageSelectDefaultVariants, getSlotCompoundVariant(appNavigationLanguageSelectCompoundVariants, slotName))])
72
+
73
+ const appNavigationLanguageSelectFn = memo((props = {}) => {
74
+ return Object.fromEntries(appNavigationLanguageSelectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
75
+ })
76
+
77
+ const appNavigationLanguageSelectVariantKeys = [
78
+ "size"
79
+ ]
80
+ const getVariantProps = (variants) => ({ ...appNavigationLanguageSelectDefaultVariants, ...compact(variants) })
81
+
82
+ export const appNavigationLanguageSelect = /* @__PURE__ */ Object.assign(appNavigationLanguageSelectFn, {
83
+ __recipe__: false,
84
+ __name__: 'appNavigationLanguageSelect',
85
+ raw: (props) => props,
86
+ variantKeys: appNavigationLanguageSelectVariantKeys,
87
+ variantMap: {
88
+ "size": [
89
+ "md"
90
+ ]
91
+ },
92
+ splitVariantProps(props) {
93
+ return splitProps(props, appNavigationLanguageSelectVariantKeys)
94
+ },
95
+ getVariantProps
96
+ })
@@ -6,7 +6,7 @@ interface AppNavigationVariant {
6
6
  /**
7
7
  * @default "prod"
8
8
  */
9
- variant: "prod" | "staging" | "dev"
9
+ variant: "prod" | "staging" | "dev" | "neutral"
10
10
  }
11
11
 
12
12
  type AppNavigationVariantMap = {
@@ -64,7 +64,8 @@ export const appNavigation = /* @__PURE__ */ Object.assign(appNavigationFn, {
64
64
  "variant": [
65
65
  "prod",
66
66
  "staging",
67
- "dev"
67
+ "dev",
68
+ "neutral"
68
69
  ]
69
70
  },
70
71
  splitVariantProps(props) {
@@ -43,4 +43,5 @@ export * from './checkbox-card';
43
43
  export * from './combobox';
44
44
  export * from './collapsible';
45
45
  export * from './app-navigation';
46
- export * from './dialog';
46
+ export * from './dialog';
47
+ export * from './app-navigation-language-select';
package/recipes/index.mjs CHANGED
@@ -42,4 +42,5 @@ export * from './checkbox-card.mjs';
42
42
  export * from './combobox.mjs';
43
43
  export * from './collapsible.mjs';
44
44
  export * from './app-navigation.mjs';
45
- export * from './dialog.mjs';
45
+ export * from './dialog.mjs';
46
+ export * from './app-navigation-language-select.mjs';