@gem-sdk/components 2.0.0-dev.582 → 2.0.0-dev.584
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/dist/cjs/article/setting/configs/ArticleList/settings.js +1 -1
- package/dist/cjs/carousel/setting/configs/settingV2.js +2 -3
- package/dist/cjs/carousel/setting/configs/uiV1.js +1 -1
- package/dist/cjs/carousel/setting/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/ProductList/ProductListCarouselItem.liquid.js +28 -0
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +4 -2
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +2 -2
- package/dist/cjs/tab/components/common/getClasses.js +3 -4
- package/dist/cjs/tab/components/common/getStyle.js +2 -1
- package/dist/cjs/tab/setting/configs/settings.js +17 -5
- package/dist/cjs/tab/setting/configs/uiV2.js +4 -3
- package/dist/esm/article/setting/configs/ArticleList/settings.js +1 -1
- package/dist/esm/carousel/setting/configs/settingV2.js +2 -3
- package/dist/esm/carousel/setting/configs/uiV1.js +1 -1
- package/dist/esm/carousel/setting/configs/uiV2.js +1 -1
- package/dist/esm/product/components/ProductList/ProductListCarouselItem.liquid.js +24 -0
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +3 -1
- package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +1 -1
- package/dist/esm/tab/components/common/getClasses.js +3 -4
- package/dist/esm/tab/components/common/getStyle.js +2 -1
- package/dist/esm/tab/setting/configs/settings.js +17 -5
- package/dist/esm/tab/setting/configs/uiV2.js +4 -3
- package/package.json +2 -2
- /package/dist/cjs/product/components/ProductList/{ProductListItem.liquid.js → ProductListGridItem.liquid.js} +0 -0
- /package/dist/esm/product/components/ProductList/{ProductListItem.liquid.js → ProductListGridItem.liquid.js} +0 -0
|
@@ -21,7 +21,7 @@ const CarouselSettingsV2Setting = [
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: 'sneakPeak',
|
|
24
|
-
label: 'Sneak
|
|
24
|
+
label: 'Sneak peek',
|
|
25
25
|
type: 'sneak-peak',
|
|
26
26
|
devices: {
|
|
27
27
|
desktop: {
|
|
@@ -249,8 +249,7 @@ const CarouselSettingsV2Setting = [
|
|
|
249
249
|
{
|
|
250
250
|
id: 'arrowCustom',
|
|
251
251
|
type: 'icon',
|
|
252
|
-
|
|
253
|
-
hideLabel: true,
|
|
252
|
+
isHideClear: true,
|
|
254
253
|
default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
255
254
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
|
|
256
255
|
</svg>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@gem-sdk/core');
|
|
6
|
+
var getClass = require('./common/getClass.js');
|
|
7
|
+
|
|
8
|
+
const ProductListItem = (props)=>{
|
|
9
|
+
const { pageContext, children } = props;
|
|
10
|
+
const { productItemClass, gpProductClass } = getClass.getClass(props);
|
|
11
|
+
return core.template /* liquid */ `
|
|
12
|
+
<gp-product
|
|
13
|
+
gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
|
|
14
|
+
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'
|
|
15
|
+
class="${gpProductClass}"
|
|
16
|
+
|
|
17
|
+
>
|
|
18
|
+
{%- form 'product', product, id: product_form_id, class: 'form contents ${productItemClass}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
|
19
|
+
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
20
|
+
<input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
|
|
21
|
+
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
22
|
+
${children}
|
|
23
|
+
{%- endform -%}
|
|
24
|
+
</gp-product>
|
|
25
|
+
`;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.default = ProductListItem;
|
|
@@ -9,7 +9,7 @@ var index = require('./common/index.js');
|
|
|
9
9
|
var getClass = require('./common/getClass.js');
|
|
10
10
|
var getStyle = require('./common/getStyle.js');
|
|
11
11
|
var helpers = require('../../../helpers.js');
|
|
12
|
-
var
|
|
12
|
+
var ProductListCarouselItem_liquid = require('./ProductListCarouselItem.liquid.js');
|
|
13
13
|
|
|
14
14
|
const ProductListCarouselLayout = (props)=>{
|
|
15
15
|
const { builderProps, advanced, productSrc, productListId } = props;
|
|
@@ -42,8 +42,10 @@ const ProductListCarouselLayout = (props)=>{
|
|
|
42
42
|
},
|
|
43
43
|
style: carouselItemStyle,
|
|
44
44
|
parentId: `product-list-carousel-${builderProps?.uid} gp-child-item-${builderProps?.uid}`,
|
|
45
|
+
parentStyle: carouselConfigStyle,
|
|
46
|
+
background: carouselConfigSetting?.background,
|
|
45
47
|
children: `
|
|
46
|
-
${
|
|
48
|
+
${ProductListCarouselItem_liquid.default({
|
|
47
49
|
...props
|
|
48
50
|
})}
|
|
49
51
|
`
|
|
@@ -6,7 +6,7 @@ var core = require('@gem-sdk/core');
|
|
|
6
6
|
var getStyle = require('./common/getStyle.js');
|
|
7
7
|
var getClass = require('./common/getClass.js');
|
|
8
8
|
var getAttr = require('./common/getAttr.js');
|
|
9
|
-
var
|
|
9
|
+
var ProductListGridItem_liquid = require('./ProductListGridItem.liquid.js');
|
|
10
10
|
var helpers = require('../../../helpers.js');
|
|
11
11
|
|
|
12
12
|
const ProductListGridLayout = (props)=>{
|
|
@@ -36,7 +36,7 @@ const ProductListGridLayout = (props)=>{
|
|
|
36
36
|
{%- assign count = count | plus: 1 -%}
|
|
37
37
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
38
38
|
{%- assign product_form_id = 'product-form-' | append: "${builderProps?.uid}" | append: product.id -%}
|
|
39
|
-
${
|
|
39
|
+
${ProductListGridItem_liquid.default({
|
|
40
40
|
...props
|
|
41
41
|
})}
|
|
42
42
|
{%- endif -%}
|
|
@@ -21,7 +21,7 @@ const getContainClasses = ({ setting })=>{
|
|
|
21
21
|
};
|
|
22
22
|
const getTabListClasses = ({ setting, ulClass })=>{
|
|
23
23
|
const { position } = setting ?? {};
|
|
24
|
-
let classList = 'gp-tab-header-list gp-flex gp-flex-wrap';
|
|
24
|
+
let classList = 'gp-tab-header-list gp-flex gp-flex-wrap gp-overflow-hidden ';
|
|
25
25
|
if (common.getUlClassByPositionResponsive(position)) classList += ` ${common.getUlClassByPositionResponsive(position)}`;
|
|
26
26
|
if (ulClass) classList += ` ${ulClass}`;
|
|
27
27
|
return {
|
|
@@ -30,7 +30,7 @@ const getTabListClasses = ({ setting, ulClass })=>{
|
|
|
30
30
|
};
|
|
31
31
|
const getItemClasses = ({ setting, isNotLiquid, isActive, currentDevice })=>{
|
|
32
32
|
const { labelBgColor, labelColor, position, enableActiveEffect } = setting ?? {};
|
|
33
|
-
let classList = 'gp-tab-item gp-navs-tab gp-flex gp-
|
|
33
|
+
let classList = 'gp-tab-item gp-navs-tab gp-flex gp-cursor-pointer gp-py-2 gp-px-4 gp-whitespace-nowrap';
|
|
34
34
|
if (isNotLiquid) {
|
|
35
35
|
if (isActive && enableActiveEffect) {
|
|
36
36
|
classList += ` ${core.getGlobalColorClass('bg', labelBgColor?.active)} ${core.getGlobalColorClass('text', labelColor?.active)}`;
|
|
@@ -52,8 +52,7 @@ const getTabParentListClasses = ()=>{
|
|
|
52
52
|
const getStyleTagClasses = ({ panelWidth, builderProps })=>{
|
|
53
53
|
let classList = '';
|
|
54
54
|
const layoutFullWidthResponsiveClass = common.makeStyleLayoutFullWidthResponsive(panelWidth, builderProps);
|
|
55
|
-
if (builderProps?.uid) classList += ` .${builderProps?.uid} .gp-tab-item
|
|
56
|
-
.${builderProps?.uid} .gp-tab-item.right p {
|
|
55
|
+
if (builderProps?.uid) classList += ` .${builderProps?.uid} .gp-tab-item p {
|
|
57
56
|
word-wrap: break-word;
|
|
58
57
|
white-space: break-spaces;
|
|
59
58
|
}`;
|
|
@@ -20,8 +20,9 @@ const getStyleWrapper = (setting, style)=>{
|
|
|
20
20
|
return helpers.filterTruthyStyles(composeStyles);
|
|
21
21
|
};
|
|
22
22
|
const getTabListStyle = (setting)=>{
|
|
23
|
-
const { position, panelFullWidth, panelWidth, labelWidth } = setting ?? {};
|
|
23
|
+
const { position, panelFullWidth, panelWidth, labelWidth, panelAlign } = setting ?? {};
|
|
24
24
|
const composeStyles = {
|
|
25
|
+
...core.makeStyleResponsive('jc', panelAlign),
|
|
25
26
|
...core.makeStyleResponsive('maxw', common.getStyleWidthByPositionResponsive({
|
|
26
27
|
position: position,
|
|
27
28
|
panelFullWidth: panelFullWidth,
|
|
@@ -16,10 +16,10 @@ const TabsSettings = [
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
id: 'activeKey',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
type: 'select-custom-options',
|
|
20
|
+
label: 'Order',
|
|
21
|
+
controlOption: 'childItem',
|
|
22
|
+
default: 0
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
id: 'translate',
|
|
@@ -91,11 +91,23 @@ const TabsSettings = [
|
|
|
91
91
|
{
|
|
92
92
|
id: 'panelWidth',
|
|
93
93
|
label: 'Width',
|
|
94
|
-
type: 'input
|
|
94
|
+
type: 'dropdown:input',
|
|
95
95
|
units: [
|
|
96
96
|
'px',
|
|
97
97
|
'%'
|
|
98
98
|
],
|
|
99
|
+
displayOptions: [
|
|
100
|
+
{
|
|
101
|
+
label: 'Fit content',
|
|
102
|
+
value: 'Auto',
|
|
103
|
+
showValue: true
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: 'Full',
|
|
107
|
+
value: '100%',
|
|
108
|
+
showValue: true
|
|
109
|
+
}
|
|
110
|
+
],
|
|
99
111
|
devices: {
|
|
100
112
|
desktop: {
|
|
101
113
|
default: 'Auto'
|
|
@@ -34,6 +34,7 @@ const SettingUIV2 = [
|
|
|
34
34
|
type: 'combo',
|
|
35
35
|
iconName: 'polaris-text-title',
|
|
36
36
|
getValueFromSettingID: 'labelTypoV2.type',
|
|
37
|
+
isTypoValue: true,
|
|
37
38
|
isHideClear: true,
|
|
38
39
|
controls: [
|
|
39
40
|
{
|
|
@@ -149,7 +150,7 @@ const SettingUIV2 = [
|
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
|
-
conditionDisplay: '
|
|
153
|
+
conditionDisplay: 'labelWidth != "100%"',
|
|
153
154
|
label: {
|
|
154
155
|
en: 'Tabs align'
|
|
155
156
|
},
|
|
@@ -162,7 +163,7 @@ const SettingUIV2 = [
|
|
|
162
163
|
en: 'Hover effect'
|
|
163
164
|
},
|
|
164
165
|
type: 'combo',
|
|
165
|
-
iconName: 'polaris-
|
|
166
|
+
iconName: 'polaris-check-hover',
|
|
166
167
|
fixedValue: 'Enabled',
|
|
167
168
|
setting: {
|
|
168
169
|
id: 'enableHoverEffect'
|
|
@@ -208,7 +209,7 @@ const SettingUIV2 = [
|
|
|
208
209
|
setting: {
|
|
209
210
|
id: 'enableActiveEffect'
|
|
210
211
|
},
|
|
211
|
-
iconName: 'polaris-
|
|
212
|
+
iconName: 'polaris-status-active',
|
|
212
213
|
fixedValue: 'Enabled',
|
|
213
214
|
popoverLabel: {
|
|
214
215
|
en: 'Tabs active state'
|
|
@@ -19,7 +19,7 @@ const CarouselSettingsV2Setting = [
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: 'sneakPeak',
|
|
22
|
-
label: 'Sneak
|
|
22
|
+
label: 'Sneak peek',
|
|
23
23
|
type: 'sneak-peak',
|
|
24
24
|
devices: {
|
|
25
25
|
desktop: {
|
|
@@ -247,8 +247,7 @@ const CarouselSettingsV2Setting = [
|
|
|
247
247
|
{
|
|
248
248
|
id: 'arrowCustom',
|
|
249
249
|
type: 'icon',
|
|
250
|
-
|
|
251
|
-
hideLabel: true,
|
|
250
|
+
isHideClear: true,
|
|
252
251
|
default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
253
252
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
|
|
254
253
|
</svg>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { template } from '@gem-sdk/core';
|
|
2
|
+
import { getClass } from './common/getClass.js';
|
|
3
|
+
|
|
4
|
+
const ProductListItem = (props)=>{
|
|
5
|
+
const { pageContext, children } = props;
|
|
6
|
+
const { productItemClass, gpProductClass } = getClass(props);
|
|
7
|
+
return template /* liquid */ `
|
|
8
|
+
<gp-product
|
|
9
|
+
gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
|
|
10
|
+
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'
|
|
11
|
+
class="${gpProductClass}"
|
|
12
|
+
|
|
13
|
+
>
|
|
14
|
+
{%- form 'product', product, id: product_form_id, class: 'form contents ${productItemClass}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
|
15
|
+
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
16
|
+
<input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
|
|
17
|
+
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
18
|
+
${children}
|
|
19
|
+
{%- endform -%}
|
|
20
|
+
</gp-product>
|
|
21
|
+
`;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { ProductListItem as default };
|
|
@@ -5,7 +5,7 @@ import { getData } from './common/index.js';
|
|
|
5
5
|
import { getClass } from './common/getClass.js';
|
|
6
6
|
import { getStyle } from './common/getStyle.js';
|
|
7
7
|
import { getStaticLocale } from '../../../helpers.js';
|
|
8
|
-
import ProductListItem from './
|
|
8
|
+
import ProductListItem from './ProductListCarouselItem.liquid.js';
|
|
9
9
|
|
|
10
10
|
const ProductListCarouselLayout = (props)=>{
|
|
11
11
|
const { builderProps, advanced, productSrc, productListId } = props;
|
|
@@ -38,6 +38,8 @@ const ProductListCarouselLayout = (props)=>{
|
|
|
38
38
|
},
|
|
39
39
|
style: carouselItemStyle,
|
|
40
40
|
parentId: `product-list-carousel-${builderProps?.uid} gp-child-item-${builderProps?.uid}`,
|
|
41
|
+
parentStyle: carouselConfigStyle,
|
|
42
|
+
background: carouselConfigSetting?.background,
|
|
41
43
|
children: `
|
|
42
44
|
${ProductListItem({
|
|
43
45
|
...props
|
|
@@ -2,7 +2,7 @@ import { template, RenderIf } from '@gem-sdk/core';
|
|
|
2
2
|
import { getStyle } from './common/getStyle.js';
|
|
3
3
|
import { getClass } from './common/getClass.js';
|
|
4
4
|
import { getAttr } from './common/getAttr.js';
|
|
5
|
-
import ProductListItem from './
|
|
5
|
+
import ProductListItem from './ProductListGridItem.liquid.js';
|
|
6
6
|
import { getStaticLocale } from '../../../helpers.js';
|
|
7
7
|
|
|
8
8
|
const ProductListGridLayout = (props)=>{
|
|
@@ -19,7 +19,7 @@ const getContainClasses = ({ setting })=>{
|
|
|
19
19
|
};
|
|
20
20
|
const getTabListClasses = ({ setting, ulClass })=>{
|
|
21
21
|
const { position } = setting ?? {};
|
|
22
|
-
let classList = 'gp-tab-header-list gp-flex gp-flex-wrap';
|
|
22
|
+
let classList = 'gp-tab-header-list gp-flex gp-flex-wrap gp-overflow-hidden ';
|
|
23
23
|
if (getUlClassByPositionResponsive(position)) classList += ` ${getUlClassByPositionResponsive(position)}`;
|
|
24
24
|
if (ulClass) classList += ` ${ulClass}`;
|
|
25
25
|
return {
|
|
@@ -28,7 +28,7 @@ const getTabListClasses = ({ setting, ulClass })=>{
|
|
|
28
28
|
};
|
|
29
29
|
const getItemClasses = ({ setting, isNotLiquid, isActive, currentDevice })=>{
|
|
30
30
|
const { labelBgColor, labelColor, position, enableActiveEffect } = setting ?? {};
|
|
31
|
-
let classList = 'gp-tab-item gp-navs-tab gp-flex gp-
|
|
31
|
+
let classList = 'gp-tab-item gp-navs-tab gp-flex gp-cursor-pointer gp-py-2 gp-px-4 gp-whitespace-nowrap';
|
|
32
32
|
if (isNotLiquid) {
|
|
33
33
|
if (isActive && enableActiveEffect) {
|
|
34
34
|
classList += ` ${getGlobalColorClass('bg', labelBgColor?.active)} ${getGlobalColorClass('text', labelColor?.active)}`;
|
|
@@ -50,8 +50,7 @@ const getTabParentListClasses = ()=>{
|
|
|
50
50
|
const getStyleTagClasses = ({ panelWidth, builderProps })=>{
|
|
51
51
|
let classList = '';
|
|
52
52
|
const layoutFullWidthResponsiveClass = makeStyleLayoutFullWidthResponsive(panelWidth, builderProps);
|
|
53
|
-
if (builderProps?.uid) classList += ` .${builderProps?.uid} .gp-tab-item
|
|
54
|
-
.${builderProps?.uid} .gp-tab-item.right p {
|
|
53
|
+
if (builderProps?.uid) classList += ` .${builderProps?.uid} .gp-tab-item p {
|
|
55
54
|
word-wrap: break-word;
|
|
56
55
|
white-space: break-spaces;
|
|
57
56
|
}`;
|
|
@@ -18,8 +18,9 @@ const getStyleWrapper = (setting, style)=>{
|
|
|
18
18
|
return filterTruthyStyles(composeStyles);
|
|
19
19
|
};
|
|
20
20
|
const getTabListStyle = (setting)=>{
|
|
21
|
-
const { position, panelFullWidth, panelWidth, labelWidth } = setting ?? {};
|
|
21
|
+
const { position, panelFullWidth, panelWidth, labelWidth, panelAlign } = setting ?? {};
|
|
22
22
|
const composeStyles = {
|
|
23
|
+
...makeStyleResponsive('jc', panelAlign),
|
|
23
24
|
...makeStyleResponsive('maxw', getStyleWidthByPositionResponsive({
|
|
24
25
|
position: position,
|
|
25
26
|
panelFullWidth: panelFullWidth,
|
|
@@ -14,10 +14,10 @@ const TabsSettings = [
|
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
id: 'activeKey',
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
type: 'select-custom-options',
|
|
18
|
+
label: 'Order',
|
|
19
|
+
controlOption: 'childItem',
|
|
20
|
+
default: 0
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: 'translate',
|
|
@@ -89,11 +89,23 @@ const TabsSettings = [
|
|
|
89
89
|
{
|
|
90
90
|
id: 'panelWidth',
|
|
91
91
|
label: 'Width',
|
|
92
|
-
type: 'input
|
|
92
|
+
type: 'dropdown:input',
|
|
93
93
|
units: [
|
|
94
94
|
'px',
|
|
95
95
|
'%'
|
|
96
96
|
],
|
|
97
|
+
displayOptions: [
|
|
98
|
+
{
|
|
99
|
+
label: 'Fit content',
|
|
100
|
+
value: 'Auto',
|
|
101
|
+
showValue: true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: 'Full',
|
|
105
|
+
value: '100%',
|
|
106
|
+
showValue: true
|
|
107
|
+
}
|
|
108
|
+
],
|
|
97
109
|
devices: {
|
|
98
110
|
desktop: {
|
|
99
111
|
default: 'Auto'
|
|
@@ -32,6 +32,7 @@ const SettingUIV2 = [
|
|
|
32
32
|
type: 'combo',
|
|
33
33
|
iconName: 'polaris-text-title',
|
|
34
34
|
getValueFromSettingID: 'labelTypoV2.type',
|
|
35
|
+
isTypoValue: true,
|
|
35
36
|
isHideClear: true,
|
|
36
37
|
controls: [
|
|
37
38
|
{
|
|
@@ -147,7 +148,7 @@ const SettingUIV2 = [
|
|
|
147
148
|
}
|
|
148
149
|
},
|
|
149
150
|
{
|
|
150
|
-
conditionDisplay: '
|
|
151
|
+
conditionDisplay: 'labelWidth != "100%"',
|
|
151
152
|
label: {
|
|
152
153
|
en: 'Tabs align'
|
|
153
154
|
},
|
|
@@ -160,7 +161,7 @@ const SettingUIV2 = [
|
|
|
160
161
|
en: 'Hover effect'
|
|
161
162
|
},
|
|
162
163
|
type: 'combo',
|
|
163
|
-
iconName: 'polaris-
|
|
164
|
+
iconName: 'polaris-check-hover',
|
|
164
165
|
fixedValue: 'Enabled',
|
|
165
166
|
setting: {
|
|
166
167
|
id: 'enableHoverEffect'
|
|
@@ -206,7 +207,7 @@ const SettingUIV2 = [
|
|
|
206
207
|
setting: {
|
|
207
208
|
id: 'enableActiveEffect'
|
|
208
209
|
},
|
|
209
|
-
iconName: 'polaris-
|
|
210
|
+
iconName: 'polaris-status-active',
|
|
210
211
|
fixedValue: 'Enabled',
|
|
211
212
|
popoverLabel: {
|
|
212
213
|
en: 'Tabs active state'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.584",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.584",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.571",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|
|
File without changes
|
|
File without changes
|