mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(system): dynamic variants on buildtime
This commit is contained in:
parent
e2146fbc51
commit
cb4a4c7302
@ -13,8 +13,7 @@ export const Default = () => (
|
||||
<Collapse.Item
|
||||
key="1"
|
||||
bgColor={{
|
||||
"@initial": "yellow600",
|
||||
"@xsMax": "blue600",
|
||||
"@xsMax": "accents0",
|
||||
}}
|
||||
title="Your files"
|
||||
>
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import type * as Stitches from "@stitches/react";
|
||||
|
||||
import {CssComponent} from "@stitches/react/types/styled-component";
|
||||
import type {TransformProps} from "@stitches/react/types/styled-component";
|
||||
|
||||
import {ThemeMap, Media, defaultTokens, defaultThemeMap} from "./common";
|
||||
import {theme} from "./stitches.config";
|
||||
@ -125,5 +124,5 @@ type TranformToVariants<V extends ComponentVariants> = {
|
||||
};
|
||||
|
||||
export type GeneratedVariantsProps<V extends ComponentVariants> = V extends ComponentVariants
|
||||
? Stitches.VariantProps<CssComponent<never, TranformToVariants<V>["variants"], Media>>
|
||||
? TransformProps<TranformToVariants<V>["variants"], Media>
|
||||
: never;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user