@nadicodeai/design-system 12.1.94 → 12.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/logo-geometry.js +13 -10
package/package.json
CHANGED
|
@@ -155,16 +155,19 @@ const resolveAttributeValue = (value, paints) => {
|
|
|
155
155
|
return resolved;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
const resolveNode = (node, paints) =>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Object.
|
|
162
|
-
name,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
158
|
+
const resolveNode = (node, paints) => {
|
|
159
|
+
const resolved = {
|
|
160
|
+
element: node.element,
|
|
161
|
+
attributes: Object.fromEntries(
|
|
162
|
+
Object.entries(node.attributes).map(([name, value]) => [
|
|
163
|
+
name,
|
|
164
|
+
resolveAttributeValue(value, paints),
|
|
165
|
+
]),
|
|
166
|
+
),
|
|
167
|
+
};
|
|
168
|
+
if (node.children) resolved.children = node.children.map((child) => resolveNode(child, paints));
|
|
169
|
+
return resolved;
|
|
170
|
+
};
|
|
168
171
|
|
|
169
172
|
/** Resolve paint roles without choosing a UI framework. */
|
|
170
173
|
export const resolveLogoGeometry = (geometry, { paints }) => ({
|