@robert.tools/atom-text 1.0.0 → 1.0.1

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": "@robert.tools/atom-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A component to provide text elements.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dist",
16
16
  "src/index.njk",
17
17
  "src/index.css"
18
- ],
18
+ ],
19
19
  "scripts": {
20
20
  "init": "robi init",
21
21
  "release": "robi release",
package/src/index.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 🏷️ typing module
3
- * @version 1.0.0
4
- * @date 2026-11-21
3
+ * @version 1.0.1
4
+ * @date 2026-11-29
5
5
  * @license MIT
6
6
  * @author Robert Willemelis <github.com/willi84>
7
7
  */
package/src/index.njk CHANGED
@@ -1,20 +1,21 @@
1
1
  {% set tag = params.tag or "span" %}
2
- {% set css_modifier = params.css or "" %}
3
- {% set css = "text--standard " ~ css_modifier %}
2
+ {% set css_base = params.css or "text--standard" %}
3
+ {% set css_modifier = params.css_modifier or "" %}
4
+ {% set css = (css_base ~ " " ~ css_modifier) | trim %}
4
5
 
5
6
  {% set text = (params.prefix or "") ~ params.text ~ (params.suffix or "") %}
6
7
 
7
8
  {% if params.text is defined %}
8
9
  {% if tag == 'span' %}
9
- <span class="{{css}}" data-search-mark data-component="text.atom">{{ text }}</span>
10
+ <span class="{{css}}" data-component="text.atom">{{ text }}</span>
10
11
  {% elif tag == 'h1' %}
11
- <h1 class="{{css}}" data-search-mark data-component="text.atom">{{ text }}</h1>
12
+ <h1 class="{{css}}" data-component="text.atom">{{ text }}</h1>
12
13
  {% elif tag == 'h2' %}
13
- <h2 class="{{css}}" data-search-mark data-component="text.atom">{{ text }}</h2>
14
+ <h2 class="{{css}}" data-component="text.atom">{{ text }}</h2>
14
15
  {% elif tag == 'h3' %}
15
- <h3 class="{{css}}" data-search-mark data-component="text.atom">{{ text }}</h3>
16
+ <h3 class="{{css}}" data-component="text.atom">{{ text }}</h3>
16
17
  {% elif tag == 'p' %}
17
- <p class="{{css}}" data-search-mark data-component="text.atom">{{ text }}</p>
18
+ <p class="{{css}}" data-component="text.atom">{{ text }}</p>
18
19
  {% else %}
19
20
  {{ text }}
20
21
  {% endif %}