This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ArrayItemType<T extends unknown[]> = T extends unknown[] | |
? T extends (infer U)[] | |
? U | |
: never | |
: never; | |
type Entries<T> = { | |
[K in keyof T]: [K, T[K]]; | |
}[keyof T][]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createVar, style } from '@vanilla-extract/css'; | |
import { calc } from '@vanilla-extract/css-utils'; | |
export const gridColumnCount = createVar(); | |
export const gridItemMinWidth = createVar(); | |
export const gridLayoutGapX = createVar(); | |
export const gridLayoutGapY = createVar(); | |
export const gapCount = createVar(); | |
export const totalGapWidth = createVar(); | |
export const gridItemMaxWidth = createVar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AudioPrimitiveContext = React.createContext<InterpreterFrom< | |
typeof audioMachine | |
> | null>(null); | |
export const AudioPrimitiveProvider = ({ | |
children, | |
}: { | |
children?: React.ReactNode; | |
}) => { | |
const [machine] = React.useState(() => { |
OlderNewer