@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261001103213 → 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.
@@ -517,7 +517,6 @@ var SwitchInput = (props) => {
517
517
  htmlFor: props.name,
518
518
  className: "inline-block text-sm font-semibold text-slate-800",
519
519
  children: [
520
- "//Add Required asterisk if the field is required",
521
520
  props.attributes.label,
522
521
  props?.attributes?.required && /* @__PURE__ */ jsx3("span", { className: "bg-error-weak", children: "*" })
523
522
  ]
package/dist/index.js CHANGED
@@ -4593,7 +4593,6 @@ var init_SwitchInput = __esm({
4593
4593
  htmlFor: props.name,
4594
4594
  className: "inline-block text-sm font-semibold text-slate-800",
4595
4595
  children: [
4596
- "//Add Required asterisk if the field is required",
4597
4596
  props.attributes.label,
4598
4597
  props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" })
4599
4598
  ]
@@ -7881,7 +7880,9 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
7881
7880
  var TextNode = (props) => {
7882
7881
  function cssStringToJson(cssString) {
7883
7882
  const styleObject = {};
7884
- 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);
7885
7886
  if (matches) {
7886
7887
  matches.forEach((match) => {
7887
7888
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
@@ -8262,7 +8263,9 @@ function getNestedProperty(obj, path) {
8262
8263
  var DatafieldNode = (props) => {
8263
8264
  function cssStringToJson(cssString) {
8264
8265
  const styleObject = {};
8265
- 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);
8266
8269
  if (matches) {
8267
8270
  matches.forEach((match) => {
8268
8271
  const parts = match.match(/([\w-]+)\s*:\s*([^;]+)\s*;/);
package/dist/index.mjs CHANGED
@@ -463,7 +463,7 @@ var ViewControl_default = ViewControl;
463
463
 
464
464
  // src/components/controls/edit/InputControl.tsx
465
465
  import dynamic7 from "next/dynamic";
466
- var InputControl = dynamic7(() => import("./InputControlClient-7TO2DC2P.mjs"), {
466
+ var InputControl = dynamic7(() => import("./InputControlClient-7CUK6ECL.mjs"), {
467
467
  ssr: false
468
468
  });
469
469
  var InputControl_default = InputControl;
@@ -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.20261001103213",
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",