@gem-sdk/components 2.0.0-dev.583 → 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.
@@ -211,7 +211,7 @@ const ArticleListSettings = [
211
211
  ],
212
212
  devices: {
213
213
  desktop: {
214
- default: '24px'
214
+ default: '16px'
215
215
  }
216
216
  }
217
217
  },
@@ -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-flex-1 gp-cursor-pointer gp-py-2 gp-px-4 gp-whitespace-nowrap';
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.left p,
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
- label: 'Select item',
20
- type: 'input:stepper',
21
- default: 1,
22
- placeholder: 'Tab index'
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:unit',
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: 'position == "top" && labelWidth != "100%"',
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-edit',
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-edit',
212
+ iconName: 'polaris-status-active',
212
213
  fixedValue: 'Enabled',
213
214
  popoverLabel: {
214
215
  en: 'Tabs active state'
@@ -209,7 +209,7 @@ const ArticleListSettings = [
209
209
  ],
210
210
  devices: {
211
211
  desktop: {
212
- default: '24px'
212
+ default: '16px'
213
213
  }
214
214
  }
215
215
  },
@@ -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-flex-1 gp-cursor-pointer gp-py-2 gp-px-4 gp-whitespace-nowrap';
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.left p,
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
- label: 'Select item',
18
- type: 'input:stepper',
19
- default: 1,
20
- placeholder: 'Tab index'
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:unit',
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: 'position == "top" && labelWidth != "100%"',
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-edit',
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-edit',
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.583",
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.575",
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"