basecoat-cli 0.3.7 → 0.3.9

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.
@@ -164,7 +164,7 @@
164
164
  {% endif %}
165
165
  >
166
166
  <span role="heading" id="{{ group_label_id }}">{{ item.label | safe }}</span>
167
- {{ render_command_items(item.items, item_id) if item.items }}
167
+ {{ render_command_items(item['items'], item_id) if item['items'] }}
168
168
  </div>
169
169
  {% elif item.type == "separator" %}
170
170
  <hr role="separator" />
@@ -183,7 +183,7 @@
183
183
  {% endif %}
184
184
  >
185
185
  {% if item.icon %}{{ item.icon | safe }}{% endif %}
186
- {{ item.content | safe if item.content else (item.label | safe) }}
186
+ {{ item.label | safe }}
187
187
  </a>
188
188
  {% else %}
189
189
  <div
@@ -198,7 +198,7 @@
198
198
  {% endif %}
199
199
  >
200
200
  {% if item.icon %}{{ item.icon | safe }}{% endif %}
201
- {{ item.content | safe if item.content else (item.label | safe) }}
201
+ {{ item.label | safe }}
202
202
  </div>
203
203
  {% endif %}
204
204
  {% endif %}
@@ -86,7 +86,7 @@
86
86
  {% endif %}
87
87
  >
88
88
  <div role="heading" id="{{ group_label_id }}">{{ item.label }}</div>
89
- {{ render_dropdown_items(item.items, item_id) if item.items }}
89
+ {{ render_dropdown_items(item['items'], item_id) if item['items'] }}
90
90
  </div>
91
91
  {% elif item.type == "separator" %}
92
92
  <hr role="separator" />
@@ -102,6 +102,7 @@
102
102
  {% endfor %}
103
103
  {% endif %}
104
104
  >
105
+ {% if item.icon %}{{ item.icon | safe }}{% endif %}
105
106
  {{ item.label | safe }}
106
107
  </a>
107
108
  {% else %}
@@ -114,9 +115,10 @@
114
115
  {% endfor %}
115
116
  {% endif %}
116
117
  >
118
+ {% if item.icon %}{{ item.icon | safe }}{% endif %}
117
119
  {{ item.label | safe }}
118
120
  </div>
119
121
  {% endif %}
120
122
  {% endif %}
121
123
  {% endfor %}
122
- {% endmacro %}
124
+ {% endmacro %}
@@ -33,7 +33,7 @@
33
33
  {% if items %}
34
34
  {% for item in items %}
35
35
  {% if item.type == "group" %}
36
- {% for sub_item in item.items %}
36
+ {% for sub_item in item['items'] %}
37
37
  {% if not first_option.item %}
38
38
  {% set first_option.item = sub_item %}
39
39
  {% endif %}
@@ -153,7 +153,7 @@
153
153
  {% endif %}
154
154
  >
155
155
  <div role="heading" id="{{ group_label_id }}">{{ item.label }}</div>
156
- {{ render_select_items(item.items, selected, item_id) if item.items }}
156
+ {{ render_select_items(item['items'], selected, item_id) if item['items'] }}
157
157
  </div>
158
158
  {% elif item.type == "separator" %}
159
159
  <hr role="separator" />
@@ -173,4 +173,4 @@
173
173
  </div>
174
174
  {% endif %}
175
175
  {% endfor %}
176
- {% endmacro %}
176
+ {% endmacro %}
@@ -183,7 +183,7 @@
183
183
  {% endif %}
184
184
  >
185
185
  {% if item.icon %}{{ item.icon | safe }}{% endif %}
186
- {{ item.content | safe if item.content else (item.label | safe) }}
186
+ {{ item.label | safe }}
187
187
  </a>
188
188
  {% else %}
189
189
  <div
@@ -198,7 +198,7 @@
198
198
  {% endif %}
199
199
  >
200
200
  {% if item.icon %}{{ item.icon | safe }}{% endif %}
201
- {{ item.content | safe if item.content else (item.label | safe) }}
201
+ {{ item.label | safe }}
202
202
  </div>
203
203
  {% endif %}
204
204
  {% endif %}
@@ -102,6 +102,7 @@
102
102
  {% endfor %}
103
103
  {% endif %}
104
104
  >
105
+ {% if item.icon %}{{ item.icon | safe }}{% endif %}
105
106
  {{ item.label | safe }}
106
107
  </a>
107
108
  {% else %}
@@ -114,9 +115,10 @@
114
115
  {% endfor %}
115
116
  {% endif %}
116
117
  >
118
+ {% if item.icon %}{{ item.icon | safe }}{% endif %}
117
119
  {{ item.label | safe }}
118
120
  </div>
119
121
  {% endif %}
120
122
  {% endif %}
121
123
  {% endfor %}
122
- {% endmacro %}
124
+ {% endmacro %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basecoat-cli",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Add Basecoat components to your project",
5
5
  "author": "hunvreus",
6
6
  "license": "MIT",