@stokelp/styled-system 2.47.1 → 2.48.1

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.47.1",
3
+ "version": "2.48.1",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -294,6 +294,13 @@
294
294
  "tabs": [
295
295
  "variant]___[value:line]___[recipe:tabs"
296
296
  ],
297
+ "tabsChip": [
298
+ "colorScheme]___[value:neutral]___[recipe:tabsChip",
299
+ "colorScheme]___[value:success]___[recipe:tabsChip",
300
+ "colorScheme]___[value:warning]___[recipe:tabsChip",
301
+ "colorScheme]___[value:error]___[recipe:tabsChip",
302
+ "colorScheme]___[value:grey]___[recipe:tabsChip"
303
+ ],
297
304
  "datepicker": [],
298
305
  "formHelperText": [],
299
306
  "phoneNumberInput": [
@@ -19,6 +19,7 @@ export * from './phone-number-input';
19
19
  export * from './icon';
20
20
  export * from './flag';
21
21
  export * from './avatar-group';
22
+ export * from './tabs-chip';
22
23
  export * from './drawer';
23
24
  export * from './radio-button-group';
24
25
  export * from './radio-group';
package/recipes/index.mjs CHANGED
@@ -18,6 +18,7 @@ export * from './phone-number-input.mjs';
18
18
  export * from './icon.mjs';
19
19
  export * from './flag.mjs';
20
20
  export * from './avatar-group.mjs';
21
+ export * from './tabs-chip.mjs';
21
22
  export * from './drawer.mjs';
22
23
  export * from './radio-button-group.mjs';
23
24
  export * from './radio-group.mjs';
@@ -0,0 +1,35 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface TabsChipVariant {
6
+ /**
7
+ * @default "neutral"
8
+ */
9
+ colorScheme: "neutral" | "success" | "warning" | "error" | "grey"
10
+ }
11
+
12
+ type TabsChipVariantMap = {
13
+ [key in keyof TabsChipVariant]: Array<TabsChipVariant[key]>
14
+ }
15
+
16
+ export type TabsChipVariantProps = {
17
+ [key in keyof TabsChipVariant]?: ConditionalValue<TabsChipVariant[key]> | undefined
18
+ }
19
+
20
+ export interface TabsChipRecipe {
21
+ __type: TabsChipVariantProps
22
+ (props?: TabsChipVariantProps): string
23
+ raw: (props?: TabsChipVariantProps) => TabsChipVariantProps
24
+ variantMap: TabsChipVariantMap
25
+ variantKeys: Array<keyof TabsChipVariant>
26
+ splitVariantProps<Props extends TabsChipVariantProps>(props: Props): [TabsChipVariantProps, Pretty<DistributiveOmit<Props, keyof TabsChipVariantProps>>]
27
+ getVariantProps: (props?: TabsChipVariantProps) => TabsChipVariantProps
28
+ }
29
+
30
+ /**
31
+ * The styles for the TabsChip component
32
+
33
+
34
+ */
35
+ export declare const tabsChip: TabsChipRecipe
@@ -0,0 +1,34 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const tabsChipFn = /* @__PURE__ */ createRecipe('tabs-chip', {
5
+ "colorScheme": "neutral"
6
+ }, [])
7
+
8
+ const tabsChipVariantMap = {
9
+ "colorScheme": [
10
+ "neutral",
11
+ "success",
12
+ "warning",
13
+ "error",
14
+ "grey"
15
+ ]
16
+ }
17
+
18
+ const tabsChipVariantKeys = Object.keys(tabsChipVariantMap)
19
+
20
+ export const tabsChip = /* @__PURE__ */ Object.assign(memo(tabsChipFn.recipeFn), {
21
+ __recipe__: true,
22
+ __name__: 'tabsChip',
23
+ __getCompoundVariantCss__: tabsChipFn.__getCompoundVariantCss__,
24
+ raw: (props) => props,
25
+ variantKeys: tabsChipVariantKeys,
26
+ variantMap: tabsChipVariantMap,
27
+ merge(recipe) {
28
+ return mergeRecipes(this, recipe)
29
+ },
30
+ splitVariantProps(props) {
31
+ return splitProps(props, tabsChipVariantKeys)
32
+ },
33
+ getVariantProps: tabsChipFn.getVariantProps,
34
+ })
package/recipes/tabs.d.ts CHANGED
@@ -19,7 +19,7 @@ export type TabsVariantProps = {
19
19
 
20
20
  export interface TabsRecipe {
21
21
  __type: TabsVariantProps
22
- (props?: TabsVariantProps): Pretty<Record<"root" | "list" | "trigger" | "content" | "indicator" | "chip", string>>
22
+ (props?: TabsVariantProps): Pretty<Record<"root" | "list" | "trigger" | "content" | "indicator", string>>
23
23
  raw: (props?: TabsVariantProps) => TabsVariantProps
24
24
  variantMap: TabsVariantMap
25
25
  variantKeys: Array<keyof TabsVariant>
package/recipes/tabs.mjs CHANGED
@@ -26,10 +26,6 @@ const tabsSlotNames = [
26
26
  [
27
27
  "indicator",
28
28
  "tabs__indicator"
29
- ],
30
- [
31
- "chip",
32
- "tabs__chip"
33
29
  ]
34
30
  ]
35
31
  const tabsSlotFns = /* @__PURE__ */ tabsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tabsDefaultVariants, getSlotCompoundVariant(tabsCompoundVariants, slotName))])