@stokelp/styled-system 2.55.0 → 2.57.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.55.0",
3
+ "version": "2.57.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -294,10 +294,13 @@
294
294
  "tableEmptyRow": [],
295
295
  "tableContainer": [],
296
296
  "tabs": [
297
- "variant]___[value:line]___[recipe:tabs"
297
+ "variant]___[value:line]___[recipe:tabs",
298
+ "lineVariant]___[value:primary]___[recipe:tabs",
299
+ "lineVariant]___[value:white]___[recipe:tabs"
298
300
  ],
299
301
  "tabsChip": [
300
302
  "colorScheme]___[value:neutral]___[recipe:tabsChip",
303
+ "colorScheme]___[value:info]___[recipe:tabsChip",
301
304
  "colorScheme]___[value:success]___[recipe:tabsChip",
302
305
  "colorScheme]___[value:warning]___[recipe:tabsChip",
303
306
  "colorScheme]___[value:error]___[recipe:tabsChip",
@@ -6,7 +6,7 @@ interface TabsChipVariant {
6
6
  /**
7
7
  * @default "neutral"
8
8
  */
9
- colorScheme: "neutral" | "success" | "warning" | "error" | "grey"
9
+ colorScheme: "neutral" | "info" | "success" | "warning" | "error" | "grey"
10
10
  }
11
11
 
12
12
  type TabsChipVariantMap = {
@@ -8,6 +8,7 @@ const tabsChipFn = /* @__PURE__ */ createRecipe('tabs-chip', {
8
8
  const tabsChipVariantMap = {
9
9
  "colorScheme": [
10
10
  "neutral",
11
+ "info",
11
12
  "success",
12
13
  "warning",
13
14
  "error",
package/recipes/tabs.d.ts CHANGED
@@ -4,6 +4,10 @@ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
4
 
5
5
  interface TabsVariant {
6
6
  /**
7
+ * @default "primary"
8
+ */
9
+ lineVariant: "primary" | "white"
10
+ /**
7
11
  * @default "line"
8
12
  */
9
13
  variant: "line"
package/recipes/tabs.mjs CHANGED
@@ -2,7 +2,8 @@ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mj
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const tabsDefaultVariants = {
5
- "variant": "line"
5
+ "variant": "line",
6
+ "lineVariant": "primary"
6
7
  }
7
8
  const tabsCompoundVariants = []
8
9
 
@@ -35,6 +36,7 @@ const tabsFn = memo((props = {}) => {
35
36
  })
36
37
 
37
38
  const tabsVariantKeys = [
39
+ "lineVariant",
38
40
  "variant"
39
41
  ]
40
42
  const getVariantProps = (variants) => ({ ...tabsDefaultVariants, ...compact(variants) })
@@ -45,6 +47,10 @@ export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
45
47
  raw: (props) => props,
46
48
  variantKeys: tabsVariantKeys,
47
49
  variantMap: {
50
+ "lineVariant": [
51
+ "primary",
52
+ "white"
53
+ ],
48
54
  "variant": [
49
55
  "line"
50
56
  ]