@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261003110136 → 0.8.1-dev.20261003121654

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.
package/dist/index.js CHANGED
@@ -7880,7 +7880,9 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
7880
7880
  var TextNode = (props) => {
7881
7881
  function cssStringToJson(cssString) {
7882
7882
  const styleObject = {};
7883
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
7883
+ if (!cssString || typeof cssString !== "string") return styleObject;
7884
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
7885
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
7884
7886
  if (matches) {
7885
7887
  matches.forEach((match) => {
7886
7888
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
@@ -8261,7 +8263,9 @@ function getNestedProperty(obj, path) {
8261
8263
  var DatafieldNode = (props) => {
8262
8264
  function cssStringToJson(cssString) {
8263
8265
  const styleObject = {};
8264
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
8266
+ if (!cssString || typeof cssString !== "string") return styleObject;
8267
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
8268
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
8265
8269
  if (matches) {
8266
8270
  matches.forEach((match) => {
8267
8271
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
package/dist/index.mjs CHANGED
@@ -479,7 +479,9 @@ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
479
479
  var TextNode = (props) => {
480
480
  function cssStringToJson(cssString) {
481
481
  const styleObject = {};
482
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
482
+ if (!cssString || typeof cssString !== "string") return styleObject;
483
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
484
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
483
485
  if (matches) {
484
486
  matches.forEach((match) => {
485
487
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
@@ -857,7 +859,9 @@ function getNestedProperty(obj, path) {
857
859
  var DatafieldNode = (props) => {
858
860
  function cssStringToJson(cssString) {
859
861
  const styleObject = {};
860
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
862
+ if (!cssString || typeof cssString !== "string") return styleObject;
863
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
864
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
861
865
  if (matches) {
862
866
  matches.forEach((match) => {
863
867
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
package/dist/server.js CHANGED
@@ -5058,7 +5058,9 @@ var import_jsx_runtime = require("react/jsx-runtime");
5058
5058
  var TextNode = (props) => {
5059
5059
  function cssStringToJson(cssString) {
5060
5060
  const styleObject = {};
5061
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
5061
+ if (!cssString || typeof cssString !== "string") return styleObject;
5062
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
5063
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
5062
5064
  if (matches) {
5063
5065
  matches.forEach((match) => {
5064
5066
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
@@ -5854,7 +5856,9 @@ function getNestedProperty(obj, path) {
5854
5856
  var DatafieldNode = (props) => {
5855
5857
  function cssStringToJson(cssString) {
5856
5858
  const styleObject = {};
5857
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
5859
+ if (!cssString || typeof cssString !== "string") return styleObject;
5860
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
5861
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
5858
5862
  if (matches) {
5859
5863
  matches.forEach((match) => {
5860
5864
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
package/dist/server.mjs CHANGED
@@ -22,7 +22,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
22
22
  var TextNode = (props) => {
23
23
  function cssStringToJson(cssString) {
24
24
  const styleObject = {};
25
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
25
+ if (!cssString || typeof cssString !== "string") return styleObject;
26
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
27
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
26
28
  if (matches) {
27
29
  matches.forEach((match) => {
28
30
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
@@ -813,7 +815,9 @@ function getNestedProperty(obj, path) {
813
815
  var DatafieldNode = (props) => {
814
816
  function cssStringToJson(cssString) {
815
817
  const styleObject = {};
816
- const matches = cssString?.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
818
+ if (!cssString || typeof cssString !== "string") return styleObject;
819
+ const normalized = cssString.trim().endsWith(";") ? cssString.trim() : `${cssString.trim()};`;
820
+ const matches = normalized.match(/([\w-]+)\s*:\s*([^;]+)\s*;/g);
817
821
  if (matches) {
818
822
  matches.forEach((match) => {
819
823
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20261003110136",
3
+ "version": "0.8.1-dev.20261003121654",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",