Skip to content

Commit

Permalink
Merge pull request #84 from gsoft-inc/feature/styled_system_fixes_int…
Browse files Browse the repository at this point in the history
…elissense

Fixed intellisence for border-radius, font-family and line-height in the styled system
  • Loading branch information
alexasselin008 authored Feb 15, 2024
2 parents 83e6417 + ba32d93 commit 2129ac5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/smart-terms-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@orbit-ui/transition-components": patch
"@workleap/orbiter-ui": patch
---

Fixed intellisence for border-radius, font-family and line-height in the styled system
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const SemanticSimpleMarginSpace = [
"inline-xl"
] as const;

export const SemanticComplexMarginSpace = [];
export const SemanticComplexMarginSpace = [] as const;

export const OrbiterColors = [
"coastal-25",
Expand Down Expand Up @@ -515,7 +515,7 @@ export const BorderRadiusAliases = [
"rounded-lg",
"pill",
"circle"
];
] as const;

export const BoxShadowScale = [
"none",
Expand All @@ -535,7 +535,7 @@ export const FontFamilyScale = [
"primary",
"secondary",
"tertiary"
];
] as const;

export const FontFamilyAliases = [
"heading-3xl",
Expand Down Expand Up @@ -571,7 +571,7 @@ export const FontFamilyAliases = [
"body-xs-underline",
"accent-lg",
"accent-sm"
];
] as const;

export const FontSizeScale = [
480,
Expand Down Expand Up @@ -712,7 +712,7 @@ export const LineHeightAliases = [
"body-xs-underline",
"accent-lg",
"accent-sm"
];
] as const;

function createValuesMapping<T extends readonly (string | number)[]>(values: T, template: (value: T[number]) => string) {
const mapping = {} as Record<T[number], string>;
Expand Down

0 comments on commit 2129ac5

Please sign in to comment.