@stokelp/styled-system 2.98.0 → 2.100.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 +1 -1
- package/panda.buildinfo.json +64 -13
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
- package/recipes/mobile-navigation.d.ts +36 -0
- package/recipes/mobile-navigation.mjs +56 -0
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -76,6 +76,45 @@
|
|
|
76
76
|
"background]___[value:primary.200]___[cond:_hover",
|
|
77
77
|
"background]___[value:primary.100]___[cond:_hover",
|
|
78
78
|
"paddingBottom]___[value:space-24",
|
|
79
|
+
"color]___[value:white",
|
|
80
|
+
"flex]___[value:1",
|
|
81
|
+
"minWidth]___[value:0",
|
|
82
|
+
"fontSize]___[value:10px",
|
|
83
|
+
"opacity]___[value:0.8",
|
|
84
|
+
"fontSize]___[value:12px",
|
|
85
|
+
"color]___[value:grey.400",
|
|
86
|
+
"flexShrink]___[value:0",
|
|
87
|
+
"alignItems]___[value:flex-end",
|
|
88
|
+
"gap]___[value:space-2",
|
|
89
|
+
"flexDirection]___[value:column",
|
|
90
|
+
"alignItems]___[value:stretch",
|
|
91
|
+
"gap]___[value:space-12",
|
|
92
|
+
"padding]___[value:space-16",
|
|
93
|
+
"alignItems]___[value:flex-start",
|
|
94
|
+
"gap]___[value:space-4",
|
|
95
|
+
"gap]___[value:space-16",
|
|
96
|
+
"paddingInline]___[value:space-12",
|
|
97
|
+
"paddingBlock]___[value:space-8",
|
|
98
|
+
"borderRadius]___[value:radius-8",
|
|
99
|
+
"backgroundColor]___[value:grey.50",
|
|
100
|
+
"gap]___[value:8px",
|
|
101
|
+
"backgroundColor]___[value:white",
|
|
102
|
+
"justifyContent]___[value:space-between",
|
|
103
|
+
"paddingBlock]___[value:space-4",
|
|
104
|
+
"width]___[value:fit-content",
|
|
105
|
+
"width]___[value:140px",
|
|
106
|
+
"height]___[value:14px",
|
|
107
|
+
"width]___[value:70px",
|
|
108
|
+
"height]___[value:12px",
|
|
109
|
+
"width]___[value:size-20",
|
|
110
|
+
"height]___[value:size-20",
|
|
111
|
+
"width]___[value:100px",
|
|
112
|
+
"width]___[value:80px",
|
|
113
|
+
"width]___[value:60px",
|
|
114
|
+
"height]___[value:20px",
|
|
115
|
+
"width]___[value:size-24",
|
|
116
|
+
"height]___[value:size-24",
|
|
117
|
+
"width]___[value:120px",
|
|
79
118
|
"background]___[value:black/10",
|
|
80
119
|
"color]___[value:secondary.500",
|
|
81
120
|
"background]___[value:decorative.yellow.mid",
|
|
@@ -83,24 +122,17 @@
|
|
|
83
122
|
"background]___[value:decorative.blue.mid",
|
|
84
123
|
"background]___[value:decorative.green.mid",
|
|
85
124
|
"background]___[value:secondary.100",
|
|
86
|
-
"alignItems]___[value:flex-start",
|
|
87
125
|
"gap]___[value:space-0",
|
|
88
|
-
"flexDirection]___[value:column",
|
|
89
126
|
"display]___[value:grid",
|
|
90
127
|
"gridTemplateColumns]___[value:repeat(auto-fit, minmax(300px, 1fr))",
|
|
91
|
-
"gap]___[value:8px",
|
|
92
128
|
"gap]___[value:0",
|
|
93
|
-
"alignItems]___[value:stretch",
|
|
94
|
-
"gap]___[value:space-16",
|
|
95
129
|
"borderColor]___[value:primary.100",
|
|
96
130
|
"marginBlock]___[value:space-24",
|
|
97
131
|
"gridTemplateColumns]___[value:repeat(3, 1fr)",
|
|
98
132
|
"background]___[value:red.100",
|
|
99
133
|
"color]___[value:red.500",
|
|
100
134
|
"padding]___[value:space-4",
|
|
101
|
-
"gap]___[value:space-4",
|
|
102
135
|
"gap]___[value:space-32",
|
|
103
|
-
"padding]___[value:space-16",
|
|
104
136
|
"marginTop]___[value:100",
|
|
105
137
|
"marginTop]___[value:space-16",
|
|
106
138
|
"gridTemplateColumns]___[value:repeat(10, 21px)",
|
|
@@ -121,7 +153,20 @@
|
|
|
121
153
|
"textOverflow]___[value:ellipsis",
|
|
122
154
|
"whiteSpace]___[value:nowrap",
|
|
123
155
|
"overflow]___[value:hidden",
|
|
124
|
-
"gap]___[value:20"
|
|
156
|
+
"gap]___[value:20",
|
|
157
|
+
"cursor]___[value:pointer",
|
|
158
|
+
"backgroundColor]___[value:primary.300",
|
|
159
|
+
"paddingInline]___[value:space-16",
|
|
160
|
+
"paddingBlock]___[value:space-12",
|
|
161
|
+
"placeContent]___[value:center",
|
|
162
|
+
"backgroundColor]___[value:error.500",
|
|
163
|
+
"borderRadius]___[value:radius-16",
|
|
164
|
+
"background]___[value:linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",
|
|
165
|
+
"backgroundSize]___[value:200% 100%",
|
|
166
|
+
"animation]___[value:shimmer 1.5s infinite",
|
|
167
|
+
"borderRadius]___[value:radius-4",
|
|
168
|
+
"border]___[value:1px solid",
|
|
169
|
+
"backgroundColor]___[value:primary.100"
|
|
125
170
|
],
|
|
126
171
|
"recipes": {
|
|
127
172
|
"icon": [
|
|
@@ -185,12 +230,12 @@
|
|
|
185
230
|
"tag": [
|
|
186
231
|
"size]___[value:md]___[recipe:tag",
|
|
187
232
|
"severity]___[value:neutral]___[recipe:tag",
|
|
188
|
-
"
|
|
233
|
+
"size]___[value:sm]___[recipe:tag",
|
|
234
|
+
"severity]___[value:info]___[recipe:tag",
|
|
189
235
|
"severity]___[value:warning]___[recipe:tag",
|
|
236
|
+
"severity]___[value:success]___[recipe:tag",
|
|
190
237
|
"severity]___[value:error]___[recipe:tag",
|
|
191
|
-
"
|
|
192
|
-
"size]___[value:lg]___[recipe:tag",
|
|
193
|
-
"size]___[value:sm]___[recipe:tag"
|
|
238
|
+
"size]___[value:lg]___[recipe:tag"
|
|
194
239
|
],
|
|
195
240
|
"appNavigation": [
|
|
196
241
|
"variant]___[value:prod]___[recipe:appNavigation",
|
|
@@ -209,6 +254,12 @@
|
|
|
209
254
|
"size]___[value:h6]___[recipe:heading"
|
|
210
255
|
],
|
|
211
256
|
"collapsible": [],
|
|
257
|
+
"mobileNavigation": [
|
|
258
|
+
"variant]___[value:prod]___[recipe:mobileNavigation",
|
|
259
|
+
"variant]___[value:staging]___[recipe:mobileNavigation",
|
|
260
|
+
"variant]___[value:dev]___[recipe:mobileNavigation",
|
|
261
|
+
"variant]___[value:neutral]___[recipe:mobileNavigation"
|
|
262
|
+
],
|
|
212
263
|
"productCardCatalog": [],
|
|
213
264
|
"priceTag": [
|
|
214
265
|
"size]___[value:sm]___[recipe:priceTag",
|
|
@@ -227,8 +278,8 @@
|
|
|
227
278
|
"chip": [
|
|
228
279
|
"size]___[value:md]___[recipe:chip",
|
|
229
280
|
"colorScheme]___[value:secondary]___[recipe:chip",
|
|
230
|
-
"size]___[value:lg]___[recipe:chip",
|
|
231
281
|
"size]___[value:sm]___[recipe:chip",
|
|
282
|
+
"size]___[value:lg]___[recipe:chip",
|
|
232
283
|
"colorScheme]___[value:grey]___[recipe:chip",
|
|
233
284
|
"colorScheme]___[value:red]___[recipe:chip",
|
|
234
285
|
"colorScheme]___[value:yellow]___[recipe:chip",
|
package/recipes/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './checkbox-card';
|
|
|
52
52
|
export * from './combobox';
|
|
53
53
|
export * from './collapsible';
|
|
54
54
|
export * from './app-navigation';
|
|
55
|
+
export * from './mobile-navigation';
|
|
55
56
|
export * from './dialog';
|
|
56
57
|
export * from './app-navigation-language-select';
|
|
57
58
|
export * from './avatar';
|
package/recipes/index.mjs
CHANGED
|
@@ -51,6 +51,7 @@ export * from './checkbox-card.mjs';
|
|
|
51
51
|
export * from './combobox.mjs';
|
|
52
52
|
export * from './collapsible.mjs';
|
|
53
53
|
export * from './app-navigation.mjs';
|
|
54
|
+
export * from './mobile-navigation.mjs';
|
|
54
55
|
export * from './dialog.mjs';
|
|
55
56
|
export * from './app-navigation-language-select.mjs';
|
|
56
57
|
export * from './avatar.mjs';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface MobileNavigationVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "prod"
|
|
8
|
+
*/
|
|
9
|
+
variant: "prod" | "staging" | "dev" | "neutral"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type MobileNavigationVariantMap = {
|
|
13
|
+
[key in keyof MobileNavigationVariant]: Array<MobileNavigationVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type MobileNavigationSlot = "root" | "item" | "itemIcon" | "itemLabel"
|
|
17
|
+
|
|
18
|
+
export type MobileNavigationVariantProps = {
|
|
19
|
+
[key in keyof MobileNavigationVariant]?: ConditionalValue<MobileNavigationVariant[key]> | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface MobileNavigationRecipe {
|
|
23
|
+
__slot: MobileNavigationSlot
|
|
24
|
+
__type: MobileNavigationVariantProps
|
|
25
|
+
(props?: MobileNavigationVariantProps): Pretty<Record<MobileNavigationSlot, string>>
|
|
26
|
+
raw: (props?: MobileNavigationVariantProps) => MobileNavigationVariantProps
|
|
27
|
+
variantMap: MobileNavigationVariantMap
|
|
28
|
+
variantKeys: Array<keyof MobileNavigationVariant>
|
|
29
|
+
splitVariantProps<Props extends MobileNavigationVariantProps>(props: Props): [MobileNavigationVariantProps, Pretty<DistributiveOmit<Props, keyof MobileNavigationVariantProps>>]
|
|
30
|
+
getVariantProps: (props?: MobileNavigationVariantProps) => MobileNavigationVariantProps
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The styles for the MobileNavigation component
|
|
35
|
+
*/
|
|
36
|
+
export declare const mobileNavigation: MobileNavigationRecipe
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const mobileNavigationDefaultVariants = {
|
|
5
|
+
"variant": "prod"
|
|
6
|
+
}
|
|
7
|
+
const mobileNavigationCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const mobileNavigationSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"mobile-navigation__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"item",
|
|
16
|
+
"mobile-navigation__item"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"itemIcon",
|
|
20
|
+
"mobile-navigation__itemIcon"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"itemLabel",
|
|
24
|
+
"mobile-navigation__itemLabel"
|
|
25
|
+
]
|
|
26
|
+
]
|
|
27
|
+
const mobileNavigationSlotFns = /* @__PURE__ */ mobileNavigationSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, mobileNavigationDefaultVariants, getSlotCompoundVariant(mobileNavigationCompoundVariants, slotName))])
|
|
28
|
+
|
|
29
|
+
const mobileNavigationFn = memo((props = {}) => {
|
|
30
|
+
return Object.fromEntries(mobileNavigationSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const mobileNavigationVariantKeys = [
|
|
34
|
+
"variant"
|
|
35
|
+
]
|
|
36
|
+
const getVariantProps = (variants) => ({ ...mobileNavigationDefaultVariants, ...compact(variants) })
|
|
37
|
+
|
|
38
|
+
export const mobileNavigation = /* @__PURE__ */ Object.assign(mobileNavigationFn, {
|
|
39
|
+
__recipe__: false,
|
|
40
|
+
__name__: 'mobileNavigation',
|
|
41
|
+
raw: (props) => props,
|
|
42
|
+
classNameMap: {},
|
|
43
|
+
variantKeys: mobileNavigationVariantKeys,
|
|
44
|
+
variantMap: {
|
|
45
|
+
"variant": [
|
|
46
|
+
"prod",
|
|
47
|
+
"staging",
|
|
48
|
+
"dev",
|
|
49
|
+
"neutral"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
splitVariantProps(props) {
|
|
53
|
+
return splitProps(props, mobileNavigationVariantKeys)
|
|
54
|
+
},
|
|
55
|
+
getVariantProps
|
|
56
|
+
})
|