@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev5 → 1.0.0-alpha.42.dev7

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
@@ -21,12 +21,6 @@ var __spreadValues = (a, b) => {
21
21
  return a;
22
22
  };
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
25
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
26
- }) : x)(function(x) {
27
- if (typeof require !== "undefined") return require.apply(this, arguments);
28
- throw Error('Dynamic require of "' + x + '" is not supported');
29
- });
30
24
  var __objRest = (source, exclude) => {
31
25
  var target = {};
32
26
  for (var prop in source)
@@ -39,7 +33,7 @@ var __objRest = (source, exclude) => {
39
33
  }
40
34
  return target;
41
35
  };
42
- var __commonJS = (cb, mod) => function __require2() {
36
+ var __commonJS = (cb, mod) => function __require() {
43
37
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
44
38
  };
45
39
  var __copyProps = (to, from, except, desc) => {
@@ -1348,71 +1342,6 @@ var require_structureddatacapture_r4 = __commonJS({
1348
1342
  }
1349
1343
  });
1350
1344
 
1351
- // ../../node_modules/style-to-js/cjs/utilities.js
1352
- var require_utilities = __commonJS({
1353
- "../../node_modules/style-to-js/cjs/utilities.js"(exports) {
1354
- "use strict";
1355
- Object.defineProperty(exports, "__esModule", { value: true });
1356
- exports.camelCase = void 0;
1357
- var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
1358
- var HYPHEN_REGEX = /-([a-z])/g;
1359
- var NO_HYPHEN_REGEX = /^[^-]+$/;
1360
- var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
1361
- var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
1362
- var skipCamelCase = function(property) {
1363
- return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
1364
- };
1365
- var capitalize = function(match, character) {
1366
- return character.toUpperCase();
1367
- };
1368
- var trimHyphen = function(match, prefix) {
1369
- return "".concat(prefix, "-");
1370
- };
1371
- var camelCase = function(property, options) {
1372
- if (options === void 0) {
1373
- options = {};
1374
- }
1375
- if (skipCamelCase(property)) {
1376
- return property;
1377
- }
1378
- property = property.toLowerCase();
1379
- if (options.reactCompat) {
1380
- property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
1381
- } else {
1382
- property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
1383
- }
1384
- return property.replace(HYPHEN_REGEX, capitalize);
1385
- };
1386
- exports.camelCase = camelCase;
1387
- }
1388
- });
1389
-
1390
- // ../../node_modules/style-to-js/cjs/index.js
1391
- var require_cjs = __commonJS({
1392
- "../../node_modules/style-to-js/cjs/index.js"(exports) {
1393
- "use strict";
1394
- var __importDefault = exports && exports.__importDefault || function(mod) {
1395
- return mod && mod.__esModule ? mod : { "default": mod };
1396
- };
1397
- Object.defineProperty(exports, "__esModule", { value: true });
1398
- var style_to_object_1 = __importDefault(__require("style-to-object"));
1399
- var utilities_1 = require_utilities();
1400
- function StyleToJS(style, options) {
1401
- var output = {};
1402
- if (!style || typeof style !== "string") {
1403
- return output;
1404
- }
1405
- (0, style_to_object_1.default)(style, function(property, value) {
1406
- if (property && value) {
1407
- output[(0, utilities_1.camelCase)(property, options)] = value;
1408
- }
1409
- });
1410
- return output;
1411
- }
1412
- exports.default = StyleToJS;
1413
- }
1414
- });
1415
-
1416
1345
  // ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
1417
1346
  var require_react_is_production_min = __commonJS({
1418
1347
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
@@ -8615,7 +8544,7 @@ import { memo as memo2 } from "react";
8615
8544
  import { memo } from "react";
8616
8545
  import ReactMarkdown from "react-markdown";
8617
8546
  var import_fhir_sdc_helpers6 = __toESM(require_structureddatacapture_r4(), 1);
8618
- var import_style_to_js = __toESM(require_cjs(), 1);
8547
+ import { default as parseStyleToJs } from "style-to-js";
8619
8548
 
8620
8549
  // src/hooks/useParseXhtml.tsx
8621
8550
  import { useMemo } from "react";
@@ -8795,7 +8724,7 @@ var ItemTextSwitcher = memo(function ItemTextSwitcher2({
8795
8724
  }
8796
8725
  const stylesString = import_fhir_sdc_helpers6.structuredDataCapture.getStyle(qItem._text);
8797
8726
  if (stylesString) {
8798
- const styles = (0, import_style_to_js.default)(stylesString);
8727
+ const styles = parseStyleToJs(stylesString);
8799
8728
  return /* @__PURE__ */ jsx2("span", { style: styles, children: itemText });
8800
8729
  }
8801
8730
  return /* @__PURE__ */ jsx2("span", { children: itemText });