@tecsinapse/cortex-react 1.12.0 → 1.12.1

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.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var clsx = require('clsx');
5
4
  var Button = require('../Button.js');
6
5
 
7
6
  const CarouselItem = ({ item }) => {
@@ -25,14 +24,21 @@ const CarouselItem = ({ item }) => {
25
24
  {
26
25
  className: "z-absolute absolute top-[50%] transform -translate-y-[50%] left-[10%] mx-deca max-w-[60%]"
27
26
  },
28
- /* @__PURE__ */ React.createElement("p", { className: clsx("text-h2 font-bold"), style: stylesTitle }, item.title.text),
29
27
  /* @__PURE__ */ React.createElement(
30
28
  "p",
31
29
  {
32
- className: "text-white text-h2 font-bold hidden lg:flex",
33
- style: stylesSubTitle
34
- },
35
- item.subtitle.text
30
+ className: "text-h2 font-bold",
31
+ style: stylesTitle,
32
+ dangerouslySetInnerHTML: { __html: item.title.text }
33
+ }
34
+ ),
35
+ /* @__PURE__ */ React.createElement(
36
+ "p",
37
+ {
38
+ className: "text-white text-h2 font-bold hidden lg:block",
39
+ style: stylesSubTitle,
40
+ dangerouslySetInnerHTML: { __html: item.subtitle.text }
41
+ }
36
42
  )
37
43
  ), item.button ? /* @__PURE__ */ React.createElement(
38
44
  "a",
@@ -1,5 +1,4 @@
1
1
  import React__default from 'react';
2
- import clsx from 'clsx';
3
2
  import { Button } from '../Button.js';
4
3
 
5
4
  const CarouselItem = ({ item }) => {
@@ -23,14 +22,21 @@ const CarouselItem = ({ item }) => {
23
22
  {
24
23
  className: "z-absolute absolute top-[50%] transform -translate-y-[50%] left-[10%] mx-deca max-w-[60%]"
25
24
  },
26
- /* @__PURE__ */ React__default.createElement("p", { className: clsx("text-h2 font-bold"), style: stylesTitle }, item.title.text),
27
25
  /* @__PURE__ */ React__default.createElement(
28
26
  "p",
29
27
  {
30
- className: "text-white text-h2 font-bold hidden lg:flex",
31
- style: stylesSubTitle
32
- },
33
- item.subtitle.text
28
+ className: "text-h2 font-bold",
29
+ style: stylesTitle,
30
+ dangerouslySetInnerHTML: { __html: item.title.text }
31
+ }
32
+ ),
33
+ /* @__PURE__ */ React__default.createElement(
34
+ "p",
35
+ {
36
+ className: "text-white text-h2 font-bold hidden lg:block",
37
+ style: stylesSubTitle,
38
+ dangerouslySetInnerHTML: { __html: item.subtitle.text }
39
+ }
34
40
  )
35
41
  ), item.button ? /* @__PURE__ */ React__default.createElement(
36
42
  "a",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -47,5 +47,5 @@
47
47
  "react-icons": ">=5.2.0",
48
48
  "tailwind": ">=3.3.0"
49
49
  },
50
- "gitHead": "05b09b49a5f172cb6057c2686cdfae80bafc0731"
50
+ "gitHead": "f17b9ef44a80c3364745dc7467ea1710a8b76d80"
51
51
  }