@stokelp/styled-system 2.73.0 → 2.75.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 +16 -7
- package/recipes/chat-document-message.d.ts +32 -0
- package/recipes/chat-document-message.mjs +24 -0
- package/recipes/chat-message.d.ts +39 -0
- package/recipes/chat-message.mjs +36 -0
- package/recipes/chat.d.ts +32 -0
- package/recipes/chat.mjs +44 -0
- package/recipes/index.d.ts +4 -1
- package/recipes/index.mjs +4 -1
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
"flexDirection]___[value:row",
|
|
58
58
|
"width]___[value:full",
|
|
59
59
|
"truncate]___[value:true",
|
|
60
|
+
"color]___[value:primary.900",
|
|
61
|
+
"color]___[value:primary.500",
|
|
60
62
|
"padding]___[value:space-8",
|
|
61
63
|
"textAlign]___[value:center",
|
|
62
64
|
"width]___[value:100%",
|
|
@@ -97,7 +99,6 @@
|
|
|
97
99
|
"padding]___[value:space-16",
|
|
98
100
|
"marginTop]___[value:100",
|
|
99
101
|
"marginTop]___[value:space-16",
|
|
100
|
-
"color]___[value:primary.500",
|
|
101
102
|
"color]___[value:warning.500",
|
|
102
103
|
"borderRadius]___[value:radius-24",
|
|
103
104
|
"height]___[value:200",
|
|
@@ -140,12 +141,6 @@
|
|
|
140
141
|
"size]___[value:sm]___[recipe:avatar",
|
|
141
142
|
"size]___[value:lg]___[recipe:avatar"
|
|
142
143
|
],
|
|
143
|
-
"checkbox": [
|
|
144
|
-
"size]___[value:md]___[recipe:checkbox"
|
|
145
|
-
],
|
|
146
|
-
"checkboxCard": [
|
|
147
|
-
"size]___[value:md]___[recipe:checkboxCard"
|
|
148
|
-
],
|
|
149
144
|
"text": [
|
|
150
145
|
"size]___[value:md]___[recipe:text",
|
|
151
146
|
"bold]___[value:true]___[recipe:text",
|
|
@@ -154,6 +149,12 @@
|
|
|
154
149
|
"italic]___[value:true]___[recipe:text",
|
|
155
150
|
"underline]___[value:true]___[recipe:text"
|
|
156
151
|
],
|
|
152
|
+
"checkbox": [
|
|
153
|
+
"size]___[value:md]___[recipe:checkbox"
|
|
154
|
+
],
|
|
155
|
+
"checkboxCard": [
|
|
156
|
+
"size]___[value:md]___[recipe:checkboxCard"
|
|
157
|
+
],
|
|
157
158
|
"input": [
|
|
158
159
|
"size]___[value:md]___[recipe:input"
|
|
159
160
|
],
|
|
@@ -319,12 +320,20 @@
|
|
|
319
320
|
"colorScheme]___[value:error]___[recipe:tabsChip",
|
|
320
321
|
"colorScheme]___[value:grey]___[recipe:tabsChip"
|
|
321
322
|
],
|
|
323
|
+
"chat": [],
|
|
322
324
|
"datepicker": [],
|
|
323
325
|
"formHelperText": [],
|
|
324
326
|
"phoneNumberInput": [
|
|
325
327
|
"size]___[value:md]___[recipe:phoneNumberInput"
|
|
326
328
|
],
|
|
327
329
|
"buttonFilter": [],
|
|
330
|
+
"chatMessage": [
|
|
331
|
+
"side]___[value:left]___[recipe:chatMessage",
|
|
332
|
+
"variant]___[value:primary]___[recipe:chatMessage",
|
|
333
|
+
"side]___[value:right]___[recipe:chatMessage",
|
|
334
|
+
"variant]___[value:secondary]___[recipe:chatMessage"
|
|
335
|
+
],
|
|
336
|
+
"chatDocumentMessage": [],
|
|
328
337
|
"selectLanguage": [
|
|
329
338
|
"variant]___[value:default]___[recipe:selectLanguage",
|
|
330
339
|
"variant]___[value:compact]___[recipe:selectLanguage"
|
|
@@ -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 ChatDocumentMessageVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ChatDocumentMessageVariantMap = {
|
|
10
|
+
[key in keyof ChatDocumentMessageVariant]: Array<ChatDocumentMessageVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ChatDocumentMessageVariantProps = {
|
|
14
|
+
[key in keyof ChatDocumentMessageVariant]?: ConditionalValue<ChatDocumentMessageVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ChatDocumentMessageRecipe {
|
|
18
|
+
__type: ChatDocumentMessageVariantProps
|
|
19
|
+
(props?: ChatDocumentMessageVariantProps): string
|
|
20
|
+
raw: (props?: ChatDocumentMessageVariantProps) => ChatDocumentMessageVariantProps
|
|
21
|
+
variantMap: ChatDocumentMessageVariantMap
|
|
22
|
+
variantKeys: Array<keyof ChatDocumentMessageVariant>
|
|
23
|
+
splitVariantProps<Props extends ChatDocumentMessageVariantProps>(props: Props): [ChatDocumentMessageVariantProps, Pretty<DistributiveOmit<Props, keyof ChatDocumentMessageVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ChatDocumentMessageVariantProps) => ChatDocumentMessageVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the Chat document message component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
32
|
+
export declare const chatDocumentMessage: ChatDocumentMessageRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const chatDocumentMessageFn = /* @__PURE__ */ createRecipe('chat-document-message', {}, [])
|
|
5
|
+
|
|
6
|
+
const chatDocumentMessageVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const chatDocumentMessageVariantKeys = Object.keys(chatDocumentMessageVariantMap)
|
|
9
|
+
|
|
10
|
+
export const chatDocumentMessage = /* @__PURE__ */ Object.assign(memo(chatDocumentMessageFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'chatDocumentMessage',
|
|
13
|
+
__getCompoundVariantCss__: chatDocumentMessageFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: chatDocumentMessageVariantKeys,
|
|
16
|
+
variantMap: chatDocumentMessageVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, chatDocumentMessageVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: chatDocumentMessageFn.getVariantProps,
|
|
24
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface ChatMessageVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "left"
|
|
8
|
+
*/
|
|
9
|
+
side: "left" | "right"
|
|
10
|
+
/**
|
|
11
|
+
* @default "primary"
|
|
12
|
+
*/
|
|
13
|
+
variant: "primary" | "secondary"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type ChatMessageVariantMap = {
|
|
17
|
+
[key in keyof ChatMessageVariant]: Array<ChatMessageVariant[key]>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ChatMessageVariantProps = {
|
|
21
|
+
[key in keyof ChatMessageVariant]?: ConditionalValue<ChatMessageVariant[key]> | undefined
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ChatMessageRecipe {
|
|
25
|
+
__type: ChatMessageVariantProps
|
|
26
|
+
(props?: ChatMessageVariantProps): string
|
|
27
|
+
raw: (props?: ChatMessageVariantProps) => ChatMessageVariantProps
|
|
28
|
+
variantMap: ChatMessageVariantMap
|
|
29
|
+
variantKeys: Array<keyof ChatMessageVariant>
|
|
30
|
+
splitVariantProps<Props extends ChatMessageVariantProps>(props: Props): [ChatMessageVariantProps, Pretty<DistributiveOmit<Props, keyof ChatMessageVariantProps>>]
|
|
31
|
+
getVariantProps: (props?: ChatMessageVariantProps) => ChatMessageVariantProps
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The styles for the Chat message component
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
*/
|
|
39
|
+
export declare const chatMessage: ChatMessageRecipe
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const chatMessageFn = /* @__PURE__ */ createRecipe('chat-message', {
|
|
5
|
+
"side": "left",
|
|
6
|
+
"variant": "primary"
|
|
7
|
+
}, [])
|
|
8
|
+
|
|
9
|
+
const chatMessageVariantMap = {
|
|
10
|
+
"side": [
|
|
11
|
+
"left",
|
|
12
|
+
"right"
|
|
13
|
+
],
|
|
14
|
+
"variant": [
|
|
15
|
+
"primary",
|
|
16
|
+
"secondary"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const chatMessageVariantKeys = Object.keys(chatMessageVariantMap)
|
|
21
|
+
|
|
22
|
+
export const chatMessage = /* @__PURE__ */ Object.assign(memo(chatMessageFn.recipeFn), {
|
|
23
|
+
__recipe__: true,
|
|
24
|
+
__name__: 'chatMessage',
|
|
25
|
+
__getCompoundVariantCss__: chatMessageFn.__getCompoundVariantCss__,
|
|
26
|
+
raw: (props) => props,
|
|
27
|
+
variantKeys: chatMessageVariantKeys,
|
|
28
|
+
variantMap: chatMessageVariantMap,
|
|
29
|
+
merge(recipe) {
|
|
30
|
+
return mergeRecipes(this, recipe)
|
|
31
|
+
},
|
|
32
|
+
splitVariantProps(props) {
|
|
33
|
+
return splitProps(props, chatMessageVariantKeys)
|
|
34
|
+
},
|
|
35
|
+
getVariantProps: chatMessageFn.getVariantProps,
|
|
36
|
+
})
|
|
@@ -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 ChatVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ChatVariantMap = {
|
|
10
|
+
[key in keyof ChatVariant]: Array<ChatVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ChatVariantProps = {
|
|
14
|
+
[key in keyof ChatVariant]?: ConditionalValue<ChatVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ChatRecipe {
|
|
18
|
+
__type: ChatVariantProps
|
|
19
|
+
(props?: ChatVariantProps): Pretty<Record<"root" | "message-container" | "message" | "document-message", string>>
|
|
20
|
+
raw: (props?: ChatVariantProps) => ChatVariantProps
|
|
21
|
+
variantMap: ChatVariantMap
|
|
22
|
+
variantKeys: Array<keyof ChatVariant>
|
|
23
|
+
splitVariantProps<Props extends ChatVariantProps>(props: Props): [ChatVariantProps, Pretty<DistributiveOmit<Props, keyof ChatVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ChatVariantProps) => ChatVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the Chat component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
32
|
+
export declare const chat: ChatRecipe
|
package/recipes/chat.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const chatDefaultVariants = {}
|
|
5
|
+
const chatCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const chatSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"chat__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"message-container",
|
|
14
|
+
"chat__message-container"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"message",
|
|
18
|
+
"chat__message"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"document-message",
|
|
22
|
+
"chat__document-message"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const chatSlotFns = /* @__PURE__ */ chatSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, chatDefaultVariants, getSlotCompoundVariant(chatCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const chatFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(chatSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const chatVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...chatDefaultVariants, ...compact(variants) })
|
|
33
|
+
|
|
34
|
+
export const chat = /* @__PURE__ */ Object.assign(chatFn, {
|
|
35
|
+
__recipe__: false,
|
|
36
|
+
__name__: 'chat',
|
|
37
|
+
raw: (props) => props,
|
|
38
|
+
variantKeys: chatVariantKeys,
|
|
39
|
+
variantMap: {},
|
|
40
|
+
splitVariantProps(props) {
|
|
41
|
+
return splitProps(props, chatVariantKeys)
|
|
42
|
+
},
|
|
43
|
+
getVariantProps
|
|
44
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from './flag';
|
|
|
21
21
|
export * from './avatar-group';
|
|
22
22
|
export * from './tabs-chip';
|
|
23
23
|
export * from './checkbox-group';
|
|
24
|
+
export * from './chat-message';
|
|
25
|
+
export * from './chat-document-message';
|
|
24
26
|
export * from './drawer';
|
|
25
27
|
export * from './radio-button-group';
|
|
26
28
|
export * from './radio-group';
|
|
@@ -52,4 +54,5 @@ export * from './dialog';
|
|
|
52
54
|
export * from './app-navigation-language-select';
|
|
53
55
|
export * from './avatar';
|
|
54
56
|
export * from './menu';
|
|
55
|
-
export * from './price-tag';
|
|
57
|
+
export * from './price-tag';
|
|
58
|
+
export * from './chat';
|
package/recipes/index.mjs
CHANGED
|
@@ -20,6 +20,8 @@ export * from './flag.mjs';
|
|
|
20
20
|
export * from './avatar-group.mjs';
|
|
21
21
|
export * from './tabs-chip.mjs';
|
|
22
22
|
export * from './checkbox-group.mjs';
|
|
23
|
+
export * from './chat-message.mjs';
|
|
24
|
+
export * from './chat-document-message.mjs';
|
|
23
25
|
export * from './drawer.mjs';
|
|
24
26
|
export * from './radio-button-group.mjs';
|
|
25
27
|
export * from './radio-group.mjs';
|
|
@@ -51,4 +53,5 @@ export * from './dialog.mjs';
|
|
|
51
53
|
export * from './app-navigation-language-select.mjs';
|
|
52
54
|
export * from './avatar.mjs';
|
|
53
55
|
export * from './menu.mjs';
|
|
54
|
-
export * from './price-tag.mjs';
|
|
56
|
+
export * from './price-tag.mjs';
|
|
57
|
+
export * from './chat.mjs';
|