@gem-sdk/components 2.0.0-dev.623 → 2.0.0-dev.624

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.
@@ -12,15 +12,14 @@ const getPaginatorStyle = (isActive, customStyle, activeColor)=>({
12
12
  } : {}
13
13
  });
14
14
  const getCustomStyle = (setting)=>{
15
- const { typo, layout, typographyPaginator, itemSpacing, buttonSizeNumber, buttonShape } = setting ?? {};
15
+ const { typo, layout, typographyPaginator, itemSpacing, buttonSizeNumber, buttonShape, normalColor } = setting ?? {};
16
16
  const appendTypoStyle = core.composeTypographyStyle(typo, typographyPaginator);
17
- const normalColor = typo?.attrs?.color;
18
17
  let customStyle = core.composeMemo(()=>{
19
18
  return core.removeNullUndefined({
20
19
  ...appendTypoStyle,
21
20
  ...core.makeStyle({
22
- ml: `${itemSpacing}px`,
23
- mr: `${itemSpacing}px`,
21
+ ml: itemSpacing,
22
+ mr: itemSpacing,
24
23
  bc: core.getGlobalColorCSSProp(normalColor),
25
24
  c: core.getGlobalColorCSSProp(normalColor)
26
25
  })
@@ -39,7 +39,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
39
39
  ...classes.getPaginatorClass()
40
40
  });
41
41
  const stylePaginator = system.createStyle({
42
- ...core.makeStyleResponsive('ta', align)
42
+ ...core.makeStyleResponsive('ta', align),
43
+ ...styleSetting.customStyle
43
44
  });
44
45
  const stateData = system.createStateOrContext({
45
46
  setting,
@@ -63,10 +63,9 @@ const CollectionPaginatorSettings = [
63
63
  units: [
64
64
  'px'
65
65
  ],
66
- default: 12,
67
- min: 0,
66
+ step: 1,
68
67
  max: 40,
69
- ignoreMax: true
68
+ default: '12px'
70
69
  },
71
70
  {
72
71
  id: 'text',
@@ -10,15 +10,14 @@ const getPaginatorStyle = (isActive, customStyle, activeColor)=>({
10
10
  } : {}
11
11
  });
12
12
  const getCustomStyle = (setting)=>{
13
- const { typo, layout, typographyPaginator, itemSpacing, buttonSizeNumber, buttonShape } = setting ?? {};
13
+ const { typo, layout, typographyPaginator, itemSpacing, buttonSizeNumber, buttonShape, normalColor } = setting ?? {};
14
14
  const appendTypoStyle = composeTypographyStyle(typo, typographyPaginator);
15
- const normalColor = typo?.attrs?.color;
16
15
  let customStyle = composeMemo(()=>{
17
16
  return removeNullUndefined({
18
17
  ...appendTypoStyle,
19
18
  ...makeStyle({
20
- ml: `${itemSpacing}px`,
21
- mr: `${itemSpacing}px`,
19
+ ml: itemSpacing,
20
+ mr: itemSpacing,
22
21
  bc: getGlobalColorCSSProp(normalColor),
23
22
  c: getGlobalColorCSSProp(normalColor)
24
23
  })
@@ -35,7 +35,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
35
35
  ...getPaginatorClass()
36
36
  });
37
37
  const stylePaginator = createStyle({
38
- ...makeStyleResponsive('ta', align)
38
+ ...makeStyleResponsive('ta', align),
39
+ ...styleSetting.customStyle
39
40
  });
40
41
  const stateData = createStateOrContext({
41
42
  setting,
@@ -61,10 +61,9 @@ const CollectionPaginatorSettings = [
61
61
  units: [
62
62
  'px'
63
63
  ],
64
- default: 12,
65
- min: 0,
64
+ step: 1,
66
65
  max: 40,
67
- ignoreMax: true
66
+ default: '12px'
68
67
  },
69
68
  {
70
69
  id: 'text',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.623",
3
+ "version": "2.0.0-dev.624",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",