@awsui/theming-runtime
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -13,5 +13,5 @@ { | ||
"name": "@awsui/theming-runtime", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/aws/awsui-documentation" | ||
} |
@@ -6,1 +6,2 @@ export declare function cloneDeep<T>(obj: T): T; | ||
export declare const includes: (subject: string, searchString: string) => boolean; | ||
export declare function jsonToSass(json: Record<string, string | Record<string, string | Record<string, string>>>): string; |
@@ -25,1 +25,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
}; | ||
export function jsonToSass(json) { | ||
return "(\n ".concat(Object.keys(json) | ||
.map(function (key) { | ||
return "'".concat(key, "': ").concat(typeof json[key] === 'string' ? "\"".concat(json[key], "\"") : jsonToSass(json[key])); | ||
}) | ||
.join(',\n'), "\n )"); | ||
} |
Sorry, the diff of this file is not supported yet
61548
805