@gem-sdk/components 2.0.0-dev.388 → 2.0.0-dev.390

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.
@@ -52,11 +52,16 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles: styles$1, advance
52
52
  return core.template`
53
53
  {% for productBundle in productBundleItem %}
54
54
  ${system.Liquid(`
55
- {% assign attrs = productBundle | split: '($3)' %}
55
+ {% assign attrs = productBundle | split: '($3)' %}
56
56
  {% assign parsedAttrs = '' %}
57
57
  {% for attr in attrs %}
58
58
  {% assign attrParts = attr | split: '($:)' %}
59
- {% assign parsedAttrs = parsedAttrs | append: attrParts[0] | append: '=' | append: attrParts[2] | append: ' ' %}
59
+ {% assign attrKey = attrParts[0] %}
60
+ {% assign attrValue = attrParts[2] | strip %}
61
+
62
+ {% if attrValue != '' %}
63
+ {% assign parsedAttrs = parsedAttrs | append: attrKey | append: '=' | append: attrValue | append: ' ' %}
64
+ {% endif %}
60
65
  {% endfor %}
61
66
  `)}
62
67
  ${system.LiquidIf(`forloop.index0 == ${i}`, renderBundleItem('{{ parsedAttrs | strip }}', i))}
@@ -9,8 +9,8 @@ var Tabs$1 = require('./setting/Tabs.js');
9
9
  var TabItem$1 = require('./setting/TabItem.js');
10
10
 
11
11
  const tabSetting = {
12
- TabsSetting: Tabs$1.default,
13
- TabItemSetting: TabItem$1.default
12
+ Tabs: Tabs$1.default,
13
+ TabItem: TabItem$1.default
14
14
  };
15
15
 
16
16
  exports.tabSetting = tabSetting;
@@ -48,11 +48,16 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles, advanced, style }
48
48
  return template`
49
49
  {% for productBundle in productBundleItem %}
50
50
  ${Liquid(`
51
- {% assign attrs = productBundle | split: '($3)' %}
51
+ {% assign attrs = productBundle | split: '($3)' %}
52
52
  {% assign parsedAttrs = '' %}
53
53
  {% for attr in attrs %}
54
54
  {% assign attrParts = attr | split: '($:)' %}
55
- {% assign parsedAttrs = parsedAttrs | append: attrParts[0] | append: '=' | append: attrParts[2] | append: ' ' %}
55
+ {% assign attrKey = attrParts[0] %}
56
+ {% assign attrValue = attrParts[2] | strip %}
57
+
58
+ {% if attrValue != '' %}
59
+ {% assign parsedAttrs = parsedAttrs | append: attrKey | append: '=' | append: attrValue | append: ' ' %}
60
+ {% endif %}
56
61
  {% endfor %}
57
62
  `)}
58
63
  ${LiquidIf(`forloop.index0 == ${i}`, renderBundleItem('{{ parsedAttrs | strip }}', i))}
@@ -7,8 +7,8 @@ import config from './setting/Tabs.js';
7
7
  import config$1 from './setting/TabItem.js';
8
8
 
9
9
  const tabSetting = {
10
- TabsSetting: config,
11
- TabItemSetting: config$1
10
+ Tabs: config,
11
+ TabItem: config$1
12
12
  };
13
13
 
14
14
  export { tabSetting };
@@ -4155,8 +4155,8 @@ declare const Tabs$1: (props: TabsProps) => React.JSX.Element;
4155
4155
  declare const TabItem$1: React.FC<TabItemProps>;
4156
4156
 
4157
4157
  declare const tabSetting: {
4158
- TabsSetting: _gem_sdk_core.ComponentSetting<TabsProps>;
4159
- TabItemSetting: _gem_sdk_core.ComponentSetting<TabItemProps>;
4158
+ Tabs: _gem_sdk_core.ComponentSetting<TabsProps>;
4159
+ TabItem: _gem_sdk_core.ComponentSetting<TabItemProps>;
4160
4160
  };
4161
4161
 
4162
4162
  type MixedProps = BaseProps<{
@@ -7625,8 +7625,8 @@ declare const _default: {
7625
7625
  Video: _gem_sdk_core.ComponentSetting<VideoProps>;
7626
7626
  Textarea: _gem_sdk_core.ComponentSetting<TextareaProps>;
7627
7627
  Text: _gem_sdk_core.ComponentSetting<TextProps>;
7628
- TabsSetting: _gem_sdk_core.ComponentSetting<TabsProps>;
7629
- TabItemSetting: _gem_sdk_core.ComponentSetting<TabItemProps>;
7628
+ Tabs: _gem_sdk_core.ComponentSetting<TabsProps>;
7629
+ TabItem: _gem_sdk_core.ComponentSetting<TabItemProps>;
7630
7630
  Select: _gem_sdk_core.ComponentSetting<SelectProps>;
7631
7631
  Radio: _gem_sdk_core.ComponentSetting<RadioProps>;
7632
7632
  Product: _gem_sdk_core.ComponentSetting<ProductProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.388",
3
+ "version": "2.0.0-dev.390",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",