@stokelp/styled-system 2.74.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "2.74.0",
3
+ "version": "2.75.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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
  ],
@@ -239,8 +240,8 @@
239
240
  "severity]___[value:none]___[recipe:button",
240
241
  "variant]___[value:primary]___[recipe:button",
241
242
  "variant]___[value:secondary]___[recipe:button",
242
- "size]___[value:sm]___[recipe:button",
243
243
  "size]___[value:md]___[recipe:button",
244
+ "size]___[value:sm]___[recipe:button",
244
245
  "severity]___[value:danger]___[recipe:button",
245
246
  "severity]___[value:success]___[recipe:button"
246
247
  ],
@@ -332,6 +333,7 @@
332
333
  "side]___[value:right]___[recipe:chatMessage",
333
334
  "variant]___[value:secondary]___[recipe:chatMessage"
334
335
  ],
336
+ "chatDocumentMessage": [],
335
337
  "selectLanguage": [
336
338
  "variant]___[value:default]___[recipe:selectLanguage",
337
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
+ })
@@ -32,7 +32,7 @@ export interface ChatMessageRecipe {
32
32
  }
33
33
 
34
34
  /**
35
- * The styles for the Chat component
35
+ * The styles for the Chat message component
36
36
 
37
37
 
38
38
  */
package/recipes/chat.d.ts CHANGED
@@ -16,7 +16,7 @@ export type ChatVariantProps = {
16
16
 
17
17
  export interface ChatRecipe {
18
18
  __type: ChatVariantProps
19
- (props?: ChatVariantProps): Pretty<Record<"root" | "message-container" | "message", string>>
19
+ (props?: ChatVariantProps): Pretty<Record<"root" | "message-container" | "message" | "document-message", string>>
20
20
  raw: (props?: ChatVariantProps) => ChatVariantProps
21
21
  variantMap: ChatVariantMap
22
22
  variantKeys: Array<keyof ChatVariant>
package/recipes/chat.mjs CHANGED
@@ -16,6 +16,10 @@ const chatSlotNames = [
16
16
  [
17
17
  "message",
18
18
  "chat__message"
19
+ ],
20
+ [
21
+ "document-message",
22
+ "chat__document-message"
19
23
  ]
20
24
  ]
21
25
  const chatSlotFns = /* @__PURE__ */ chatSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, chatDefaultVariants, getSlotCompoundVariant(chatCompoundVariants, slotName))])
@@ -22,6 +22,7 @@ export * from './avatar-group';
22
22
  export * from './tabs-chip';
23
23
  export * from './checkbox-group';
24
24
  export * from './chat-message';
25
+ export * from './chat-document-message';
25
26
  export * from './drawer';
26
27
  export * from './radio-button-group';
27
28
  export * from './radio-group';
package/recipes/index.mjs CHANGED
@@ -21,6 +21,7 @@ export * from './avatar-group.mjs';
21
21
  export * from './tabs-chip.mjs';
22
22
  export * from './checkbox-group.mjs';
23
23
  export * from './chat-message.mjs';
24
+ export * from './chat-document-message.mjs';
24
25
  export * from './drawer.mjs';
25
26
  export * from './radio-button-group.mjs';
26
27
  export * from './radio-group.mjs';