@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/design-system",
3
- "version": "12.1.94",
3
+ "version": "12.1.96",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -155,16 +155,19 @@ const resolveAttributeValue = (value, paints) => {
155
155
  return resolved;
156
156
  };
157
157
 
158
- const resolveNode = (node, paints) => ({
159
- element: node.element,
160
- attributes: Object.fromEntries(
161
- Object.entries(node.attributes).map(([name, value]) => [
162
- name,
163
- resolveAttributeValue(value, paints),
164
- ]),
165
- ),
166
- ...(node.children ? { children: node.children.map((child) => resolveNode(child, paints)) } : {}),
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 }) => ({