native-document 1.0.230 → 1.0.232

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": "native-document",
3
- "version": "1.0.230",
3
+ "version": "1.0.232",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -150,7 +150,7 @@ export const ICON_ROBOT = 'robot';
150
150
 
151
151
  // -- Location -----------------------------------------------------------------
152
152
  export const ICON_MAP = 'map';
153
- export const ICON_MAP_PIN = 'mapMin';
153
+ export const ICON_MAP_PIN = 'mapPin';
154
154
  export const ICON_COMPASS = 'compass';
155
155
  export const ICON_GLOBAL = 'global';
156
156
  export const ICON_LOCATION = 'location';
@@ -6,7 +6,7 @@ import ForEachArrayCache from './for-each-array-cache';
6
6
 
7
7
  const CREATE_AND_CACHE_ACTIONS = new Set(['clear', 'push', 'unshift', 'replace']);
8
8
 
9
- const SELF_RENDER = (item) => item;
9
+ const SELF_RENDER = (item) => item.toNdElement();
10
10
 
11
11
  /**
12
12
  * Renders items from an ObservableArray with optimized array-specific updates.
@@ -1,4 +1,4 @@
1
- import { Li, Div, Span, ForEachArray, ShowIf, Switch } from '../../../../core/elements';
1
+ import {Li, Div, Span, ForEachArray, ShowIf, Switch, Ul} from '../../../../core/elements';
2
2
 
3
3
  import './list-group.css';
4
4
 
@@ -21,9 +21,9 @@ export default function ListGroupRender($desc, instance) {
21
21
  }
22
22
 
23
23
  if ($desc.collapsable && $desc.collapsed) {
24
- content.push(ShowIf($desc.collapsed, () => Div({ class: 'list-group-items' }, ForEachArray($desc.items))));
24
+ content.push(ShowIf($desc.collapsed, () => Ul({ class: 'list-group-items' }, ForEachArray($desc.items))));
25
25
  } else {
26
- content.push(Div({ class: 'list-group-items' }, ForEachArray($desc.items)));
26
+ content.push(Ul({ class: 'list-group-items' }, ForEachArray($desc.items)));
27
27
  }
28
28
 
29
29
  return Li(instance.resolveProps(), content);