@stokelp/styled-system 2.15.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
package/panda.buildinfo.json
CHANGED
|
@@ -102,7 +102,9 @@
|
|
|
102
102
|
"color]___[value:grey.100",
|
|
103
103
|
"textStyle]___[value:body.lg",
|
|
104
104
|
"textStyle]___[value:body.md",
|
|
105
|
-
"textStyle]___[value:body.sm"
|
|
105
|
+
"textStyle]___[value:body.sm",
|
|
106
|
+
"borderRadius]___[value:3px]___[cond:& > svg",
|
|
107
|
+
"width]___[value:full"
|
|
106
108
|
],
|
|
107
109
|
"recipes": {
|
|
108
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
|
+
})
|
package/recipes/index.d.ts
CHANGED
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';
|