@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 776 B
Source Map (JSON)
{"version":3,"file":"transform.cjs","names":["result: Dict"],"sources":["../../../../src/core/css/transform.ts"],"sourcesContent":["import type { Dict } from \"../../utils\"\nimport type { CSSObject } from \"./index.types\"\nimport type { TransformOptions } from \"./utils\"\n\nexport function transform(value: any, { prev, properties }: TransformOptions) {\n const result: Dict = {}\n\n properties?.forEach((property) => {\n result.transform = [prev?.transform ?? \"\", `var(${property})`].join(\" \")\n result[property] = value\n })\n\n return result as CSSObject\n}\n"],"mappings":";;AAIA,SAAgB,UAAU,OAAY,EAAE,MAAM,cAAgC;CAC5E,MAAMA,SAAe,EAAE;AAEvB,aAAY,SAAS,aAAa;AAChC,SAAO,YAAY,CAAC,MAAM,aAAa,IAAI,OAAO,SAAS,GAAG,CAAC,KAAK,IAAI;AACxE,SAAO,YAAY;GACnB;AAEF,QAAO"}