@cntrl-site/sdk-nextjs 0.29.6 → 0.29.7

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.
Binary file
Binary file
@@ -35,20 +35,14 @@ const Section = ({ section, data, children }) => {
35
35
  if (SectionComponent)
36
36
  return (0, jsx_runtime_1.jsx)("div", { ref: sectionRef, children: (0, jsx_runtime_1.jsx)(SectionComponent, { data: data, children: children }) });
37
37
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: `section-${section.id}`, id: section.name, style: {
38
- backgroundColor: backgroundColor.toCss()
38
+ backgroundColor: backgroundColor.fmt('rgba')
39
39
  }, ref: sectionRef, children: children }), (0, jsx_runtime_1.jsx)(style_1.default, { id: id, children: `
40
40
  ${(0, sdk_1.getLayoutStyles)(layouts, [section.height], ([height]) => (`
41
41
  .section-${section.id} {
42
42
  height: ${getSectionHeight(height)};
43
43
  position: relative;
44
- --webkit-backface-visibility: hidden;
45
44
  }`))}
46
45
  ${getSectionVisibilityStyles()}
47
- @supports not (color: oklch(42% 0.3 90 / 1)) {
48
- .section-${section.id} {
49
- background-color: ${backgroundColor.fmt('rgba')};
50
- }
51
- }
52
46
  ` })] }));
53
47
  };
54
48
  exports.Section = Section;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "0.29.6",
3
+ "version": "0.29.7",
4
4
  "description": "SDK for Next.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -49,7 +49,7 @@ export const Section: FC<Props> = ({ section, data, children }) => {
49
49
  className={`section-${section.id}`}
50
50
  id={section.name}
51
51
  style={{
52
- backgroundColor: backgroundColor.toCss()
52
+ backgroundColor: backgroundColor.fmt('rgba')
53
53
  }}
54
54
  ref={sectionRef}
55
55
  >
@@ -61,16 +61,10 @@ export const Section: FC<Props> = ({ section, data, children }) => {
61
61
  .section-${section.id} {
62
62
  height: ${getSectionHeight(height)};
63
63
  position: relative;
64
- --webkit-backface-visibility: hidden;
65
64
  }`
66
65
  ))
67
66
  }
68
67
  ${getSectionVisibilityStyles()}
69
- @supports not (color: oklch(42% 0.3 90 / 1)) {
70
- .section-${section.id} {
71
- background-color: ${backgroundColor.fmt('rgba')};
72
- }
73
- }
74
68
  `}</JSXStyle>
75
69
  </>
76
70
  );