@stokelp/styled-system 1.24.0 → 1.25.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": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -117,6 +117,7 @@
117
117
  "switchRecipe": [
118
118
  "size]___[value:md]___[recipe:switchRecipe"
119
119
  ],
120
+ "table": [],
120
121
  "tag": [
121
122
  "size]___[value:md]___[recipe:tag",
122
123
  "severity]___[value:neutral]___[recipe:tag",
@@ -139,7 +140,6 @@
139
140
  "radioGroup": [
140
141
  "size]___[value:md]___[recipe:radioGroup"
141
142
  ],
142
- "table": [],
143
143
  "tableGroupTitle": [
144
144
  "variant]___[value:primary]___[recipe:tableGroupTitle",
145
145
  "variant]___[value:secondary]___[recipe:tableGroupTitle"
@@ -16,7 +16,7 @@ export type TableVariantProps = {
16
16
 
17
17
  export interface TableRecipe {
18
18
  __type: TableVariantProps
19
- (props?: TableVariantProps): Pretty<Record<"root" | "thead" | "tbody" | "tr" | "th" | "td", string>>
19
+ (props?: TableVariantProps): Pretty<Record<"root" | "thead" | "tbody" | "tr" | "th" | "td" | "sortIndicatorRoot" | "sortIndicator", string>>
20
20
  raw: (props?: TableVariantProps) => TableVariantProps
21
21
  variantMap: TableVariantMap
22
22
  variantKeys: Array<keyof TableVariant>
package/recipes/table.mjs CHANGED
@@ -28,6 +28,14 @@ const tableSlotNames = [
28
28
  [
29
29
  "td",
30
30
  "table__td"
31
+ ],
32
+ [
33
+ "sortIndicatorRoot",
34
+ "table__sortIndicatorRoot"
35
+ ],
36
+ [
37
+ "sortIndicator",
38
+ "table__sortIndicator"
31
39
  ]
32
40
  ]
33
41
  const tableSlotFns = /* @__PURE__ */ tableSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tableDefaultVariants, getSlotCompoundVariant(tableCompoundVariants, slotName))])