@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.cjs
CHANGED
|
@@ -1348,71 +1348,6 @@ var require_structureddatacapture_r4 = __commonJS({
|
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
1350
|
|
|
1351
|
-
// ../../node_modules/style-to-js/cjs/utilities.js
|
|
1352
|
-
var require_utilities = __commonJS({
|
|
1353
|
-
"../../node_modules/style-to-js/cjs/utilities.js"(exports2) {
|
|
1354
|
-
"use strict";
|
|
1355
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1356
|
-
exports2.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
|
-
exports2.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"(exports2) {
|
|
1393
|
-
"use strict";
|
|
1394
|
-
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
1395
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1396
|
-
};
|
|
1397
|
-
Object.defineProperty(exports2, "__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
|
-
exports2.default = StyleToJS;
|
|
1413
|
-
}
|
|
1414
|
-
});
|
|
1415
|
-
|
|
1416
1351
|
// ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
|
|
1417
1352
|
var require_react_is_production_min = __commonJS({
|
|
1418
1353
|
"../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
@@ -8681,7 +8616,7 @@ var import_react4 = require("react");
|
|
|
8681
8616
|
var import_react3 = require("react");
|
|
8682
8617
|
var import_react_markdown = __toESM(require("react-markdown"), 1);
|
|
8683
8618
|
var import_fhir_sdc_helpers6 = __toESM(require_structureddatacapture_r4(), 1);
|
|
8684
|
-
var import_style_to_js = __toESM(
|
|
8619
|
+
var import_style_to_js = __toESM(require("style-to-js"), 1);
|
|
8685
8620
|
|
|
8686
8621
|
// src/hooks/useParseXhtml.tsx
|
|
8687
8622
|
var import_react2 = require("react");
|