@total_onion/onion-library 2.0.158 → 2.0.159

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.
@@ -0,0 +1,9 @@
1
+ {# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
2
+ {% if fields.show_on_desktop or fields.show_on_tablet_portrait or fields.show_on_mobile %}
3
+ {% set display = displaytype ? displaytype : 'block' %}
4
+ {% set showOnDesktop = '--display-desktop: ' ~ (fields.show_on_desktop ? display : 'none') ~ ';' %}
5
+ {% set showOnPortrait = '--display-portrait: ' ~ (fields.show_on_tablet_portrait ? display : 'none') ~ ';' %}
6
+ {% set showOnMobile = '--display-mobile: ' ~ (fields.show_on_mobile ? display : 'none') ~ ';' %}
7
+ {% set showHide = showOnDesktop ~ showOnPortrait ~ showOnMobile %}
8
+ {{showHide}}
9
+ {% endif %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.158",
3
+ "version": "2.0.159",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {