@gem-sdk/components 2.0.0-dev.637 → 2.0.0-dev.639

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.
@@ -117,6 +117,21 @@ const config = {
117
117
  iconPosition: 'left'
118
118
  },
119
119
  styles: {
120
+ iconColor: {
121
+ normal: '#FFFFFF',
122
+ hover: '#FFFFFF',
123
+ active: '#FFFFFF'
124
+ },
125
+ textColor: {
126
+ normal: '#FFFFFF',
127
+ hover: '#FFFFFF',
128
+ active: '#FFFFFF'
129
+ },
130
+ color: {
131
+ normal: '#FFFFFF',
132
+ hover: '#FFFFFF',
133
+ active: '#FFFFFF'
134
+ },
120
135
  widthHeightSize: {
121
136
  desktop: {
122
137
  width: '600px'
@@ -189,13 +204,13 @@ const config = {
189
204
  active: ''
190
205
  },
191
206
  // iconColor: {
192
- // normal: '#EAEAEA',
207
+ // normal: '#FFFFFF',
193
208
  // },
194
209
  // textColor: {
195
- // normal: '#EAEAEA',
210
+ // normal: '#FFFFFF',
196
211
  // },
197
212
  // color: {
198
- // normal: '#EAEAEA',
213
+ // normal: '#FFFFFF',
199
214
  // },
200
215
  itemGap: '16px'
201
216
  },
@@ -15,7 +15,7 @@ var getStyle = require('./common/getStyle.js');
15
15
 
16
16
  const Countdown = (props)=>{
17
17
  const { setting, styles, builderProps, advanced } = props;
18
- const { labelTypo, numTypo, labelTypography, numTypography, enableNumberTextStyle, enableLabelTextStyle } = styles ?? {};
18
+ const { labelTypo, numTypo, labelTypography, numTypography, enableLabelTextStyle } = styles ?? {};
19
19
  const { weekLabel, dayLabel, hourLabel, minuteLabel, secondLabel, enableWeek, enableDay, enableHour, enableMinute, enableSecond, redirectUrl } = setting ?? {};
20
20
  const mode = core.useEditorMode();
21
21
  const { week, day, hour, minute, second, timeLeft, ref } = useCountDownTimer.default(setting, builderProps);
@@ -78,7 +78,7 @@ const Countdown = (props)=>{
78
78
  style: dateStyle,
79
79
  className: dateClasses(textLabel),
80
80
  children: [
81
- system.If(!!enableNumberTextStyle, /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
81
+ /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
82
82
  styles: {
83
83
  typography: numTypography,
84
84
  typo: numTypo
@@ -90,7 +90,7 @@ const Countdown = (props)=>{
90
90
  },
91
91
  className: textFrontClasses,
92
92
  style: textFrontStyle
93
- })),
93
+ }),
94
94
  system.If(!!enableLabelTextStyle, /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
95
95
  styles: {
96
96
  typography: labelTypography,
@@ -12,7 +12,7 @@ var getClasses = require('./common/getClasses.js');
12
12
 
13
13
  const Countdown = (props)=>{
14
14
  const { setting, styles, builderProps, advanced, pageContext } = props;
15
- const { labelTypo, numTypo, numTypography, labelTypography, enableNumberTextStyle, enableLabelTextStyle } = styles ?? {};
15
+ const { labelTypo, numTypo, numTypography, labelTypography, enableLabelTextStyle } = styles ?? {};
16
16
  const { weekLabel, dayLabel, hourLabel, minuteLabel, secondLabel, enableWeek, enableDay, enableHour, enableMinute, enableSecond, redirectUrl, translate } = setting ?? {};
17
17
  const hasLinkCover = !!redirectUrl?.link;
18
18
  const { urlData } = helpers.getInsertLinkData('', redirectUrl);
@@ -64,8 +64,7 @@ const Countdown = (props)=>{
64
64
  const textFrontLabel = '00';
65
65
  return core.template`
66
66
  <div style="${dateStyle}" class="${dateClasses(textLabel)}">
67
- ${system.If(!!enableNumberTextStyle, core.template`
68
- ${Text_liquid.default({
67
+ ${Text_liquid.default({
69
68
  styles: {
70
69
  typography: numTypography,
71
70
  typo: numTypo
@@ -87,7 +86,6 @@ const Countdown = (props)=>{
87
86
  uidInteraction: `${builderProps?.uid}-text`
88
87
  }
89
88
  })}
90
- `)}
91
89
  ${system.If(!!enableLabelTextStyle, core.template`
92
90
  ${Text_liquid.default({
93
91
  styles: {
@@ -19,7 +19,7 @@ const CountdownSettings = [
19
19
  id: 'behaviour',
20
20
  label: 'Type',
21
21
  type: 'select',
22
- default: 'evergreen',
22
+ default: 'standard',
23
23
  options: [
24
24
  {
25
25
  label: 'End at',
@@ -380,12 +380,6 @@ const CountdownSettings = [
380
380
  type: 'toggle',
381
381
  default: true
382
382
  },
383
- {
384
- id: 'enableNumberTextStyle',
385
- label: '',
386
- type: 'toggle',
387
- default: true
388
- },
389
383
  {
390
384
  id: 'textNumberGroup',
391
385
  label: 'Text Number',
@@ -576,7 +570,11 @@ const CountdownSettings = [
576
570
  label: 'Border Radius',
577
571
  default: {
578
572
  normal: {
579
- radiusType: 'none'
573
+ btrr: '8px',
574
+ bblr: '8px',
575
+ bbrr: '8px',
576
+ btlr: '8px',
577
+ radiusType: 'rounded'
580
578
  }
581
579
  },
582
580
  state: {
@@ -154,31 +154,6 @@ const SettingUIV2 = [
154
154
  }
155
155
  ]
156
156
  },
157
- {
158
- label: {
159
- en: 'Hover effect'
160
- },
161
- controls: [
162
- {
163
- label: {
164
- en: 'Border'
165
- },
166
- setting: {
167
- id: 'borderState',
168
- state: 'hover'
169
- }
170
- },
171
- {
172
- label: {
173
- en: 'Corner'
174
- },
175
- setting: {
176
- id: 'roundedState',
177
- state: 'hover'
178
- }
179
- }
180
- ]
181
- },
182
157
  {
183
158
  label: {
184
159
  en: 'Item style'
@@ -229,24 +204,14 @@ const SettingUIV2 = [
229
204
  ]
230
205
  },
231
206
  {
207
+ label: {
208
+ en: 'Time'
209
+ },
232
210
  controls: [
233
- {
234
- label: {
235
- en: 'Time'
236
- },
237
- setting: {
238
- id: 'enableNumberTextStyle'
239
- },
240
- options: {
241
- labelVariant: 'primary',
242
- toggleStyle: 'switch'
243
- }
244
- },
245
211
  {
246
212
  label: {
247
213
  en: 'Item style'
248
214
  },
249
- conditionDisplay: 'enableNumberTextStyle == true',
250
215
  type: 'combo',
251
216
  popoverLabel: {
252
217
  en: 'Time text style'
@@ -113,6 +113,21 @@ const config = {
113
113
  iconPosition: 'left'
114
114
  },
115
115
  styles: {
116
+ iconColor: {
117
+ normal: '#FFFFFF',
118
+ hover: '#FFFFFF',
119
+ active: '#FFFFFF'
120
+ },
121
+ textColor: {
122
+ normal: '#FFFFFF',
123
+ hover: '#FFFFFF',
124
+ active: '#FFFFFF'
125
+ },
126
+ color: {
127
+ normal: '#FFFFFF',
128
+ hover: '#FFFFFF',
129
+ active: '#FFFFFF'
130
+ },
116
131
  widthHeightSize: {
117
132
  desktop: {
118
133
  width: '600px'
@@ -185,13 +200,13 @@ const config = {
185
200
  active: ''
186
201
  },
187
202
  // iconColor: {
188
- // normal: '#EAEAEA',
203
+ // normal: '#FFFFFF',
189
204
  // },
190
205
  // textColor: {
191
- // normal: '#EAEAEA',
206
+ // normal: '#FFFFFF',
192
207
  // },
193
208
  // color: {
194
- // normal: '#EAEAEA',
209
+ // normal: '#FFFFFF',
195
210
  // },
196
211
  itemGap: '16px'
197
212
  },
@@ -11,7 +11,7 @@ import { getWrapperStyle, getContainStyle, getDateStyle, getTextFrontStyle, getT
11
11
 
12
12
  const Countdown = (props)=>{
13
13
  const { setting, styles, builderProps, advanced } = props;
14
- const { labelTypo, numTypo, labelTypography, numTypography, enableNumberTextStyle, enableLabelTextStyle } = styles ?? {};
14
+ const { labelTypo, numTypo, labelTypography, numTypography, enableLabelTextStyle } = styles ?? {};
15
15
  const { weekLabel, dayLabel, hourLabel, minuteLabel, secondLabel, enableWeek, enableDay, enableHour, enableMinute, enableSecond, redirectUrl } = setting ?? {};
16
16
  const mode = useEditorMode();
17
17
  const { week, day, hour, minute, second, timeLeft, ref } = useCountDownTimer(setting, builderProps);
@@ -74,7 +74,7 @@ const Countdown = (props)=>{
74
74
  style: dateStyle,
75
75
  className: dateClasses(textLabel),
76
76
  children: [
77
- If(!!enableNumberTextStyle, /*#__PURE__*/ jsx(Text, {
77
+ /*#__PURE__*/ jsx(Text, {
78
78
  styles: {
79
79
  typography: numTypography,
80
80
  typo: numTypo
@@ -86,7 +86,7 @@ const Countdown = (props)=>{
86
86
  },
87
87
  className: textFrontClasses,
88
88
  style: textFrontStyle
89
- })),
89
+ }),
90
90
  If(!!enableLabelTextStyle, /*#__PURE__*/ jsx(Text, {
91
91
  styles: {
92
92
  typography: labelTypography,
@@ -8,7 +8,7 @@ import { getTextFrontClasses, getWrapperClasses, getContentClasses, getLinkClass
8
8
 
9
9
  const Countdown = (props)=>{
10
10
  const { setting, styles, builderProps, advanced, pageContext } = props;
11
- const { labelTypo, numTypo, numTypography, labelTypography, enableNumberTextStyle, enableLabelTextStyle } = styles ?? {};
11
+ const { labelTypo, numTypo, numTypography, labelTypography, enableLabelTextStyle } = styles ?? {};
12
12
  const { weekLabel, dayLabel, hourLabel, minuteLabel, secondLabel, enableWeek, enableDay, enableHour, enableMinute, enableSecond, redirectUrl, translate } = setting ?? {};
13
13
  const hasLinkCover = !!redirectUrl?.link;
14
14
  const { urlData } = getInsertLinkData('', redirectUrl);
@@ -60,8 +60,7 @@ const Countdown = (props)=>{
60
60
  const textFrontLabel = '00';
61
61
  return template`
62
62
  <div style="${dateStyle}" class="${dateClasses(textLabel)}">
63
- ${If(!!enableNumberTextStyle, template`
64
- ${Text({
63
+ ${Text({
65
64
  styles: {
66
65
  typography: numTypography,
67
66
  typo: numTypo
@@ -83,7 +82,6 @@ const Countdown = (props)=>{
83
82
  uidInteraction: `${builderProps?.uid}-text`
84
83
  }
85
84
  })}
86
- `)}
87
85
  ${If(!!enableLabelTextStyle, template`
88
86
  ${Text({
89
87
  styles: {
@@ -17,7 +17,7 @@ const CountdownSettings = [
17
17
  id: 'behaviour',
18
18
  label: 'Type',
19
19
  type: 'select',
20
- default: 'evergreen',
20
+ default: 'standard',
21
21
  options: [
22
22
  {
23
23
  label: 'End at',
@@ -378,12 +378,6 @@ const CountdownSettings = [
378
378
  type: 'toggle',
379
379
  default: true
380
380
  },
381
- {
382
- id: 'enableNumberTextStyle',
383
- label: '',
384
- type: 'toggle',
385
- default: true
386
- },
387
381
  {
388
382
  id: 'textNumberGroup',
389
383
  label: 'Text Number',
@@ -574,7 +568,11 @@ const CountdownSettings = [
574
568
  label: 'Border Radius',
575
569
  default: {
576
570
  normal: {
577
- radiusType: 'none'
571
+ btrr: '8px',
572
+ bblr: '8px',
573
+ bbrr: '8px',
574
+ btlr: '8px',
575
+ radiusType: 'rounded'
578
576
  }
579
577
  },
580
578
  state: {
@@ -152,31 +152,6 @@ const SettingUIV2 = [
152
152
  }
153
153
  ]
154
154
  },
155
- {
156
- label: {
157
- en: 'Hover effect'
158
- },
159
- controls: [
160
- {
161
- label: {
162
- en: 'Border'
163
- },
164
- setting: {
165
- id: 'borderState',
166
- state: 'hover'
167
- }
168
- },
169
- {
170
- label: {
171
- en: 'Corner'
172
- },
173
- setting: {
174
- id: 'roundedState',
175
- state: 'hover'
176
- }
177
- }
178
- ]
179
- },
180
155
  {
181
156
  label: {
182
157
  en: 'Item style'
@@ -227,24 +202,14 @@ const SettingUIV2 = [
227
202
  ]
228
203
  },
229
204
  {
205
+ label: {
206
+ en: 'Time'
207
+ },
230
208
  controls: [
231
- {
232
- label: {
233
- en: 'Time'
234
- },
235
- setting: {
236
- id: 'enableNumberTextStyle'
237
- },
238
- options: {
239
- labelVariant: 'primary',
240
- toggleStyle: 'switch'
241
- }
242
- },
243
209
  {
244
210
  label: {
245
211
  en: 'Item style'
246
212
  },
247
- conditionDisplay: 'enableNumberTextStyle == true',
248
213
  type: 'combo',
249
214
  popoverLabel: {
250
215
  en: 'Time text style'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.637",
3
+ "version": "2.0.0-dev.639",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",