@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260402063318 → 0.8.1-dev.20260410073844
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 +42 -23
- package/dist/index.mjs +42 -23
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1341,7 +1341,7 @@ var MultilineTextInput = (props) => {
|
|
|
1341
1341
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "block mb-1", children: [
|
|
1342
1342
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1343
1343
|
" ",
|
|
1344
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "
|
|
1344
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1345
1345
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1346
1346
|
"textarea",
|
|
1347
1347
|
{
|
|
@@ -1388,7 +1388,7 @@ var LineTextInput = (props) => {
|
|
|
1388
1388
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react11.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("label", { className: "block", children: [
|
|
1389
1389
|
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
1390
1390
|
" ",
|
|
1391
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "
|
|
1391
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1392
1392
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1393
1393
|
"input",
|
|
1394
1394
|
{
|
|
@@ -1450,7 +1450,7 @@ var MoneyInput = (props) => {
|
|
|
1450
1450
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react12.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "block mb-1", children: [
|
|
1451
1451
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1452
1452
|
" ",
|
|
1453
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "
|
|
1453
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1454
1454
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1455
1455
|
"input",
|
|
1456
1456
|
{
|
|
@@ -1562,7 +1562,8 @@ var Select = (props) => {
|
|
|
1562
1562
|
const value = getSafeValue(props.value);
|
|
1563
1563
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "block", children: [
|
|
1564
1564
|
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
1565
|
-
|
|
1565
|
+
" ",
|
|
1566
|
+
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1566
1567
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1567
1568
|
"select",
|
|
1568
1569
|
{
|
|
@@ -1622,7 +1623,7 @@ var PercentageInput = (props) => {
|
|
|
1622
1623
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react14.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: "block mb-1", children: [
|
|
1623
1624
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
1624
1625
|
" ",
|
|
1625
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "
|
|
1626
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1626
1627
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1627
1628
|
"input",
|
|
1628
1629
|
{
|
|
@@ -1670,6 +1671,8 @@ var PhoneInput = (props) => {
|
|
|
1670
1671
|
}
|
|
1671
1672
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "block mb-1", children: [
|
|
1672
1673
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1674
|
+
" ",
|
|
1675
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1673
1676
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
|
|
1674
1677
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "px-3 text-gray-700", children: props.prefix }),
|
|
1675
1678
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
@@ -1723,7 +1726,7 @@ var NumberInput = (props) => {
|
|
|
1723
1726
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { className: "block", children: [
|
|
1724
1727
|
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
1725
1728
|
" ",
|
|
1726
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "
|
|
1729
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1727
1730
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1728
1731
|
"input",
|
|
1729
1732
|
{
|
|
@@ -1821,6 +1824,8 @@ var OtpInput = (props) => {
|
|
|
1821
1824
|
}
|
|
1822
1825
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
1823
1826
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1827
|
+
" ",
|
|
1828
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1824
1829
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1825
1830
|
"input",
|
|
1826
1831
|
{
|
|
@@ -1962,7 +1967,7 @@ var DateTimeInput = (props) => {
|
|
|
1962
1967
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
|
|
1963
1968
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1964
1969
|
" ",
|
|
1965
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "
|
|
1970
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1966
1971
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1967
1972
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1968
1973
|
"input",
|
|
@@ -2015,7 +2020,7 @@ var ColorInput = (props) => {
|
|
|
2015
2020
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block mb-1", children: [
|
|
2016
2021
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
2017
2022
|
" ",
|
|
2018
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "
|
|
2023
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2019
2024
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2020
2025
|
"input",
|
|
2021
2026
|
{
|
|
@@ -2108,9 +2113,12 @@ var SelectWithSearchInput = (props) => {
|
|
|
2108
2113
|
}
|
|
2109
2114
|
}, [highlightedIndex]);
|
|
2110
2115
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
|
|
2111
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.
|
|
2112
|
-
|
|
2113
|
-
|
|
2116
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { children: [
|
|
2117
|
+
props.attributes?.label,
|
|
2118
|
+
" ",
|
|
2119
|
+
" ",
|
|
2120
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2121
|
+
] }),
|
|
2114
2122
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
|
|
2115
2123
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2116
2124
|
"input",
|
|
@@ -2319,7 +2327,12 @@ var SelectWithSearchPanel = (props) => {
|
|
|
2319
2327
|
return formData;
|
|
2320
2328
|
}, []);
|
|
2321
2329
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative", children: [
|
|
2322
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.
|
|
2330
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
|
|
2331
|
+
props.attributes?.label,
|
|
2332
|
+
" ",
|
|
2333
|
+
" ",
|
|
2334
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2335
|
+
] }),
|
|
2323
2336
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2324
2337
|
"input",
|
|
2325
2338
|
{
|
|
@@ -2476,7 +2489,7 @@ var BooleanSelect = (props) => {
|
|
|
2476
2489
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react26.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { className: "block", children: [
|
|
2477
2490
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
2478
2491
|
" ",
|
|
2479
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "
|
|
2492
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2480
2493
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2481
2494
|
"select",
|
|
2482
2495
|
{
|
|
@@ -2539,7 +2552,7 @@ var EmailInput = (props) => {
|
|
|
2539
2552
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "block mb-1", children: [
|
|
2540
2553
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
2541
2554
|
" ",
|
|
2542
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "
|
|
2555
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2543
2556
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2544
2557
|
"input",
|
|
2545
2558
|
{
|
|
@@ -2578,7 +2591,8 @@ var TimeInput = (props) => {
|
|
|
2578
2591
|
};
|
|
2579
2592
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
|
|
2580
2593
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
2581
|
-
|
|
2594
|
+
" ",
|
|
2595
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2582
2596
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2583
2597
|
"input",
|
|
2584
2598
|
{
|
|
@@ -5128,10 +5142,12 @@ var parseMaybeNumber = (value) => {
|
|
|
5128
5142
|
};
|
|
5129
5143
|
var shouldRenderForDevice = (imageDevice, currentDevice) => {
|
|
5130
5144
|
if (!imageDevice) return true;
|
|
5131
|
-
|
|
5132
|
-
return false;
|
|
5145
|
+
return imageDevice === currentDevice;
|
|
5133
5146
|
};
|
|
5134
5147
|
var ImageGalleryNode = (props) => {
|
|
5148
|
+
console.log("Gallery Component Loaded");
|
|
5149
|
+
console.log("Current Device:", props.device);
|
|
5150
|
+
console.log("Gallery Images:", props.node.images);
|
|
5135
5151
|
const resolveImageUrl = (imageUrl) => {
|
|
5136
5152
|
if (!imageUrl) return "";
|
|
5137
5153
|
if (imageUrl.startsWith("http")) return imageUrl;
|
|
@@ -5143,19 +5159,22 @@ var ImageGalleryNode = (props) => {
|
|
|
5143
5159
|
if (!posterUrl) return void 0;
|
|
5144
5160
|
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
5145
5161
|
};
|
|
5146
|
-
const currentDevice = props.device;
|
|
5147
5162
|
const images = Array.isArray(props.node.images) ? props.node.images : [];
|
|
5148
|
-
const visibleImages = images.filter(
|
|
5149
|
-
(img) => shouldRenderForDevice(img.device, currentDevice)
|
|
5150
|
-
);
|
|
5151
|
-
if (visibleImages.length === 0) return null;
|
|
5152
5163
|
const FormatClass = {
|
|
5153
5164
|
center: "justify-center",
|
|
5154
5165
|
left: "justify-start",
|
|
5155
5166
|
right: "justify-end"
|
|
5156
5167
|
};
|
|
5157
5168
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
5158
|
-
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children:
|
|
5169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: images.map((img, idx) => {
|
|
5170
|
+
console.log("Checking Image:", img.imageUrl);
|
|
5171
|
+
console.log("Image Device:", img.device);
|
|
5172
|
+
console.log("Page Device:", props.device);
|
|
5173
|
+
if (!shouldRenderForDevice(img.device, props.device)) {
|
|
5174
|
+
console.log("\u274C Skipping Image (device mismatch)");
|
|
5175
|
+
return null;
|
|
5176
|
+
}
|
|
5177
|
+
console.log("\u2705 Rendering Image");
|
|
5159
5178
|
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
5160
5179
|
if (!imageUrl) return null;
|
|
5161
5180
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
package/dist/index.mjs
CHANGED
|
@@ -377,7 +377,7 @@ var MultilineTextInput = (props) => {
|
|
|
377
377
|
return /* @__PURE__ */ jsx10(React10.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block mb-1", children: [
|
|
378
378
|
/* @__PURE__ */ jsx10("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
379
379
|
" ",
|
|
380
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "
|
|
380
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "bg-error-weak", children: "*" }),
|
|
381
381
|
/* @__PURE__ */ jsx10(
|
|
382
382
|
"textarea",
|
|
383
383
|
{
|
|
@@ -424,7 +424,7 @@ var LineTextInput = (props) => {
|
|
|
424
424
|
return /* @__PURE__ */ jsx11(React11.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block", children: [
|
|
425
425
|
props?.attributes?.label && /* @__PURE__ */ jsx11("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
426
426
|
" ",
|
|
427
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "
|
|
427
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "bg-error-weak", children: "*" }),
|
|
428
428
|
/* @__PURE__ */ jsx11(
|
|
429
429
|
"input",
|
|
430
430
|
{
|
|
@@ -486,7 +486,7 @@ var MoneyInput = (props) => {
|
|
|
486
486
|
return /* @__PURE__ */ jsx12(React12.Fragment, { children: /* @__PURE__ */ jsxs8("label", { className: "block mb-1", children: [
|
|
487
487
|
/* @__PURE__ */ jsx12("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
488
488
|
" ",
|
|
489
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "
|
|
489
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "bg-error-weak", children: "*" }),
|
|
490
490
|
/* @__PURE__ */ jsx12(
|
|
491
491
|
"input",
|
|
492
492
|
{
|
|
@@ -598,7 +598,8 @@ var Select = (props) => {
|
|
|
598
598
|
const value = getSafeValue(props.value);
|
|
599
599
|
return /* @__PURE__ */ jsxs9("label", { className: "block", children: [
|
|
600
600
|
props.attributes?.label && /* @__PURE__ */ jsx13("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
601
|
-
|
|
601
|
+
" ",
|
|
602
|
+
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "bg-error-weak", children: "*" }),
|
|
602
603
|
/* @__PURE__ */ jsxs9(
|
|
603
604
|
"select",
|
|
604
605
|
{
|
|
@@ -658,7 +659,7 @@ var PercentageInput = (props) => {
|
|
|
658
659
|
return /* @__PURE__ */ jsx14(React14.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
|
|
659
660
|
/* @__PURE__ */ jsx14("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
660
661
|
" ",
|
|
661
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "
|
|
662
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "bg-error-weak", children: "*" }),
|
|
662
663
|
/* @__PURE__ */ jsx14(
|
|
663
664
|
"input",
|
|
664
665
|
{
|
|
@@ -706,6 +707,8 @@ var PhoneInput = (props) => {
|
|
|
706
707
|
}
|
|
707
708
|
return /* @__PURE__ */ jsx15(React15.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block mb-1", children: [
|
|
708
709
|
/* @__PURE__ */ jsx15("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
710
|
+
" ",
|
|
711
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx15("span", { className: "bg-error-weak", children: "*" }),
|
|
709
712
|
/* @__PURE__ */ jsxs11("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
|
|
710
713
|
/* @__PURE__ */ jsx15("span", { className: "px-3 text-gray-700", children: props.prefix }),
|
|
711
714
|
/* @__PURE__ */ jsx15(
|
|
@@ -759,7 +762,7 @@ var NumberInput = (props) => {
|
|
|
759
762
|
return /* @__PURE__ */ jsx16(React16.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "block", children: [
|
|
760
763
|
props?.attributes?.label && /* @__PURE__ */ jsx16("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
761
764
|
" ",
|
|
762
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "
|
|
765
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "bg-error-weak", children: "*" }),
|
|
763
766
|
/* @__PURE__ */ jsx16(
|
|
764
767
|
"input",
|
|
765
768
|
{
|
|
@@ -857,6 +860,8 @@ var OtpInput = (props) => {
|
|
|
857
860
|
}
|
|
858
861
|
return /* @__PURE__ */ jsx18(React18.Fragment, { children: /* @__PURE__ */ jsxs14("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
859
862
|
/* @__PURE__ */ jsx18("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
863
|
+
" ",
|
|
864
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx18("span", { className: "bg-error-weak", children: "*" }),
|
|
860
865
|
/* @__PURE__ */ jsx18(
|
|
861
866
|
"input",
|
|
862
867
|
{
|
|
@@ -998,7 +1003,7 @@ var DateTimeInput = (props) => {
|
|
|
998
1003
|
return /* @__PURE__ */ jsx19(React19.Fragment, { children: /* @__PURE__ */ jsxs15("label", { className: "block mb-1", children: [
|
|
999
1004
|
/* @__PURE__ */ jsx19("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1000
1005
|
" ",
|
|
1001
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "
|
|
1006
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "bg-error-weak", children: "*" }),
|
|
1002
1007
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
1003
1008
|
/* @__PURE__ */ jsx19(
|
|
1004
1009
|
"input",
|
|
@@ -1051,7 +1056,7 @@ var ColorInput = (props) => {
|
|
|
1051
1056
|
return /* @__PURE__ */ jsxs16("label", { className: "block mb-1", children: [
|
|
1052
1057
|
/* @__PURE__ */ jsx20("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
1053
1058
|
" ",
|
|
1054
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "
|
|
1059
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "bg-error-weak", children: "*" }),
|
|
1055
1060
|
/* @__PURE__ */ jsx20(
|
|
1056
1061
|
"input",
|
|
1057
1062
|
{
|
|
@@ -1144,9 +1149,12 @@ var SelectWithSearchInput = (props) => {
|
|
|
1144
1149
|
}
|
|
1145
1150
|
}, [highlightedIndex]);
|
|
1146
1151
|
return /* @__PURE__ */ jsxs17("div", { className: "relative", children: [
|
|
1147
|
-
/* @__PURE__ */
|
|
1148
|
-
|
|
1149
|
-
|
|
1152
|
+
/* @__PURE__ */ jsxs17("label", { children: [
|
|
1153
|
+
props.attributes?.label,
|
|
1154
|
+
" ",
|
|
1155
|
+
" ",
|
|
1156
|
+
props?.attributes?.required && /* @__PURE__ */ jsx21("span", { className: "bg-error-weak", children: "*" })
|
|
1157
|
+
] }),
|
|
1150
1158
|
/* @__PURE__ */ jsxs17("div", { className: "relative", children: [
|
|
1151
1159
|
/* @__PURE__ */ jsx21(
|
|
1152
1160
|
"input",
|
|
@@ -1359,7 +1367,12 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1359
1367
|
return formData;
|
|
1360
1368
|
}, []);
|
|
1361
1369
|
return /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
|
|
1362
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ jsxs18("label", { className: "text-sm mb-1 font-medium", children: [
|
|
1371
|
+
props.attributes?.label,
|
|
1372
|
+
" ",
|
|
1373
|
+
" ",
|
|
1374
|
+
props?.attributes?.required && /* @__PURE__ */ jsx22("span", { className: "bg-error-weak", children: "*" })
|
|
1375
|
+
] }),
|
|
1363
1376
|
/* @__PURE__ */ jsx22("div", { children: /* @__PURE__ */ jsx22(
|
|
1364
1377
|
"input",
|
|
1365
1378
|
{
|
|
@@ -1519,7 +1532,7 @@ var BooleanSelect = (props) => {
|
|
|
1519
1532
|
return /* @__PURE__ */ jsx23(React23.Fragment, { children: /* @__PURE__ */ jsxs19("label", { className: "block", children: [
|
|
1520
1533
|
/* @__PURE__ */ jsx23("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1521
1534
|
" ",
|
|
1522
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx23("span", { className: "
|
|
1535
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx23("span", { className: "bg-error-weak", children: "*" }),
|
|
1523
1536
|
/* @__PURE__ */ jsxs19(
|
|
1524
1537
|
"select",
|
|
1525
1538
|
{
|
|
@@ -1582,7 +1595,7 @@ var EmailInput = (props) => {
|
|
|
1582
1595
|
return /* @__PURE__ */ jsx24(React24.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block mb-1", children: [
|
|
1583
1596
|
/* @__PURE__ */ jsx24("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
1584
1597
|
" ",
|
|
1585
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx24("span", { className: "
|
|
1598
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx24("span", { className: "bg-error-weak", children: "*" }),
|
|
1586
1599
|
/* @__PURE__ */ jsx24(
|
|
1587
1600
|
"input",
|
|
1588
1601
|
{
|
|
@@ -1621,7 +1634,8 @@ var TimeInput = (props) => {
|
|
|
1621
1634
|
};
|
|
1622
1635
|
return /* @__PURE__ */ jsx25(React25.Fragment, { children: /* @__PURE__ */ jsxs21("label", { className: "block mb-1", children: [
|
|
1623
1636
|
/* @__PURE__ */ jsx25("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
1624
|
-
|
|
1637
|
+
" ",
|
|
1638
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "bg-error-weak", children: "*" }),
|
|
1625
1639
|
/* @__PURE__ */ jsx25("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx25(
|
|
1626
1640
|
"input",
|
|
1627
1641
|
{
|
|
@@ -4160,10 +4174,12 @@ var parseMaybeNumber = (value) => {
|
|
|
4160
4174
|
};
|
|
4161
4175
|
var shouldRenderForDevice = (imageDevice, currentDevice) => {
|
|
4162
4176
|
if (!imageDevice) return true;
|
|
4163
|
-
|
|
4164
|
-
return false;
|
|
4177
|
+
return imageDevice === currentDevice;
|
|
4165
4178
|
};
|
|
4166
4179
|
var ImageGalleryNode = (props) => {
|
|
4180
|
+
console.log("Gallery Component Loaded");
|
|
4181
|
+
console.log("Current Device:", props.device);
|
|
4182
|
+
console.log("Gallery Images:", props.node.images);
|
|
4167
4183
|
const resolveImageUrl = (imageUrl) => {
|
|
4168
4184
|
if (!imageUrl) return "";
|
|
4169
4185
|
if (imageUrl.startsWith("http")) return imageUrl;
|
|
@@ -4175,19 +4191,22 @@ var ImageGalleryNode = (props) => {
|
|
|
4175
4191
|
if (!posterUrl) return void 0;
|
|
4176
4192
|
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
4177
4193
|
};
|
|
4178
|
-
const currentDevice = props.device;
|
|
4179
4194
|
const images = Array.isArray(props.node.images) ? props.node.images : [];
|
|
4180
|
-
const visibleImages = images.filter(
|
|
4181
|
-
(img) => shouldRenderForDevice(img.device, currentDevice)
|
|
4182
|
-
);
|
|
4183
|
-
if (visibleImages.length === 0) return null;
|
|
4184
4195
|
const FormatClass = {
|
|
4185
4196
|
center: "justify-center",
|
|
4186
4197
|
left: "justify-start",
|
|
4187
4198
|
right: "justify-end"
|
|
4188
4199
|
};
|
|
4189
4200
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
4190
|
-
return /* @__PURE__ */ jsx58("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children:
|
|
4201
|
+
return /* @__PURE__ */ jsx58("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: images.map((img, idx) => {
|
|
4202
|
+
console.log("Checking Image:", img.imageUrl);
|
|
4203
|
+
console.log("Image Device:", img.device);
|
|
4204
|
+
console.log("Page Device:", props.device);
|
|
4205
|
+
if (!shouldRenderForDevice(img.device, props.device)) {
|
|
4206
|
+
console.log("\u274C Skipping Image (device mismatch)");
|
|
4207
|
+
return null;
|
|
4208
|
+
}
|
|
4209
|
+
console.log("\u2705 Rendering Image");
|
|
4191
4210
|
const imageUrl = resolveImageUrl(img.imageUrl);
|
|
4192
4211
|
if (!imageUrl) return null;
|
|
4193
4212
|
const posterUrl = resolvePosterUrl(img.posterUrl);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acoustte-digital-services/digitalstore-controls-dev",
|
|
3
|
-
"version": "0.8.1-dev.
|
|
3
|
+
"version": "0.8.1-dev.20260410073844",
|
|
4
4
|
"description": "Reusable React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": "^25.
|
|
25
|
+
"@types/node": "^25.6.0",
|
|
26
26
|
"@types/react": "^19",
|
|
27
27
|
"@types/react-dom": "^19",
|
|
28
28
|
"tsup": "^8.5.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"moment-timezone": "^0.6.1",
|
|
53
53
|
"ms": "^2.1.3",
|
|
54
54
|
"mz": "^2.7.0",
|
|
55
|
-
"next": "^15.5.
|
|
55
|
+
"next": "^15.5.15",
|
|
56
56
|
"object-assign": "^4.1.1",
|
|
57
57
|
"pathe": "^2.0.3",
|
|
58
58
|
"picocolors": "^1.1.1",
|