@fluid-app/rep-widgets 0.1.15 → 0.1.17
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/AlertWidget-CiMRJYmn.mjs +22 -0
- package/dist/AlertWidget-CiMRJYmn.mjs.map +1 -0
- package/dist/AlertWidget-DU_HP0EW.cjs +39 -0
- package/dist/AlertWidget-DU_HP0EW.cjs.map +1 -0
- package/dist/CalendarWidget-BI8sv5HJ.cjs +441 -0
- package/dist/CalendarWidget-BI8sv5HJ.cjs.map +1 -0
- package/dist/CalendarWidget-Dk8O2NRC.mjs +424 -0
- package/dist/CalendarWidget-Dk8O2NRC.mjs.map +1 -0
- package/dist/CarouselWidget-0RP-Rd1D.mjs +436 -0
- package/dist/CarouselWidget-0RP-Rd1D.mjs.map +1 -0
- package/dist/CarouselWidget-DLADgLPJ.cjs +453 -0
- package/dist/CarouselWidget-DLADgLPJ.cjs.map +1 -0
- package/dist/CatchUpWidget-CUnCumIf.mjs +247 -0
- package/dist/CatchUpWidget-CUnCumIf.mjs.map +1 -0
- package/dist/CatchUpWidget-DiqdwPvE.cjs +264 -0
- package/dist/CatchUpWidget-DiqdwPvE.cjs.map +1 -0
- package/dist/ChartWidget-DhAVW8w4.cjs +432 -0
- package/dist/ChartWidget-DhAVW8w4.cjs.map +1 -0
- package/dist/ChartWidget-DrF1e1sy.mjs +415 -0
- package/dist/ChartWidget-DrF1e1sy.mjs.map +1 -0
- package/dist/ContainerWidget-Cp0_vPZB.cjs +61 -0
- package/dist/ContainerWidget-Cp0_vPZB.cjs.map +1 -0
- package/dist/ContainerWidget-Xd231yys.mjs +44 -0
- package/dist/ContainerWidget-Xd231yys.mjs.map +1 -0
- package/dist/EmbedWidget-BQyYm50g.cjs +173 -0
- package/dist/EmbedWidget-BQyYm50g.cjs.map +1 -0
- package/dist/EmbedWidget-DQ2rCA4j.mjs +156 -0
- package/dist/EmbedWidget-DQ2rCA4j.mjs.map +1 -0
- package/dist/ImageWidget-DBBul7ca.mjs +150 -0
- package/dist/ImageWidget-DBBul7ca.mjs.map +1 -0
- package/dist/ImageWidget-DTwM7xCz.cjs +167 -0
- package/dist/ImageWidget-DTwM7xCz.cjs.map +1 -0
- package/dist/LayoutWidget-B1itwSsn.mjs +107 -0
- package/dist/LayoutWidget-B1itwSsn.mjs.map +1 -0
- package/dist/LayoutWidget-CWE_9JB5.cjs +124 -0
- package/dist/LayoutWidget-CWE_9JB5.cjs.map +1 -0
- package/dist/ListWidget-CxaLm0D5.cjs +919 -0
- package/dist/ListWidget-CxaLm0D5.cjs.map +1 -0
- package/dist/ListWidget-EXPlzfUE.mjs +901 -0
- package/dist/ListWidget-EXPlzfUE.mjs.map +1 -0
- package/dist/MediaRenderer-CcJvyOJ1.cjs +181 -0
- package/dist/MediaRenderer-CcJvyOJ1.cjs.map +1 -0
- package/dist/MediaRenderer-Uq90PZcY.mjs +163 -0
- package/dist/MediaRenderer-Uq90PZcY.mjs.map +1 -0
- package/dist/MySiteWidget-BTyb5AJM.mjs +262 -0
- package/dist/MySiteWidget-BTyb5AJM.mjs.map +1 -0
- package/dist/MySiteWidget-iRPl6b2F.cjs +279 -0
- package/dist/MySiteWidget-iRPl6b2F.cjs.map +1 -0
- package/dist/NestedWidget-CwyVsZ-f.mjs +330 -0
- package/dist/NestedWidget-CwyVsZ-f.mjs.map +1 -0
- package/dist/NestedWidget-DavPMVii.cjs +346 -0
- package/dist/NestedWidget-DavPMVii.cjs.map +1 -0
- package/dist/QuickShareWidget-BIOkquPG.cjs +262 -0
- package/dist/QuickShareWidget-BIOkquPG.cjs.map +1 -0
- package/dist/QuickShareWidget-BUbuTQFQ.mjs +245 -0
- package/dist/QuickShareWidget-BUbuTQFQ.mjs.map +1 -0
- package/dist/RecentActivityWidget-BgsjgQY5.cjs +408 -0
- package/dist/RecentActivityWidget-BgsjgQY5.cjs.map +1 -0
- package/dist/RecentActivityWidget-ComwTgR9.mjs +391 -0
- package/dist/RecentActivityWidget-ComwTgR9.mjs.map +1 -0
- package/dist/RegistryContext-6KXd4t6d.cjs +54 -0
- package/dist/RegistryContext-6KXd4t6d.cjs.map +1 -0
- package/dist/RegistryContext-CscXrsRa.mjs +36 -0
- package/dist/RegistryContext-CscXrsRa.mjs.map +1 -0
- package/dist/ScreenRenderer-BCd4Rsba.cjs +82 -0
- package/dist/ScreenRenderer-BCd4Rsba.cjs.map +1 -0
- package/dist/ScreenRenderer-CVJMpQ9A.mjs +76 -0
- package/dist/ScreenRenderer-CVJMpQ9A.mjs.map +1 -0
- package/dist/ScreenRendererContext-D62_Fazh.cjs +35 -0
- package/dist/ScreenRendererContext-D62_Fazh.cjs.map +1 -0
- package/dist/ScreenRendererContext-DaldtZnX.mjs +23 -0
- package/dist/ScreenRendererContext-DaldtZnX.mjs.map +1 -0
- package/dist/SpacerWidget-Bs18KYH9.mjs +43 -0
- package/dist/SpacerWidget-Bs18KYH9.mjs.map +1 -0
- package/dist/SpacerWidget-D-Foe9wG.cjs +60 -0
- package/dist/SpacerWidget-D-Foe9wG.cjs.map +1 -0
- package/dist/TableWidget-BeG92tkU.cjs +455 -0
- package/dist/TableWidget-BeG92tkU.cjs.map +1 -0
- package/dist/TableWidget-Cc4kQaOE.mjs +438 -0
- package/dist/TableWidget-Cc4kQaOE.mjs.map +1 -0
- package/dist/TextWidget-CQxOWNZK.mjs +129 -0
- package/dist/TextWidget-CQxOWNZK.mjs.map +1 -0
- package/dist/TextWidget-Cn7-yZGk.cjs +146 -0
- package/dist/TextWidget-Cn7-yZGk.cjs.map +1 -0
- package/dist/ToDoWidget--KBpHqbA.mjs +274 -0
- package/dist/ToDoWidget--KBpHqbA.mjs.map +1 -0
- package/dist/ToDoWidget-CK87BavM.cjs +291 -0
- package/dist/ToDoWidget-CK87BavM.cjs.map +1 -0
- package/dist/VideoWidget-DxuqyD5L.cjs +209 -0
- package/dist/VideoWidget-DxuqyD5L.cjs.map +1 -0
- package/dist/VideoWidget-uKkRf5pm.mjs +192 -0
- package/dist/VideoWidget-uKkRf5pm.mjs.map +1 -0
- package/dist/chunk-CZWwpsFl.cjs +43 -0
- package/dist/components/index.cjs +10 -13
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +8 -5
- package/dist/components/index.d.cts.map +1 -0
- package/dist/components/index.d.mts +11 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/components/index.mjs +11 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/contexts/index.cjs +8 -29
- package/dist/contexts/index.d.cts +20 -14
- package/dist/contexts/index.d.cts.map +1 -0
- package/dist/contexts/{index.d.ts → index.d.mts} +20 -14
- package/dist/contexts/index.d.mts.map +1 -0
- package/dist/contexts/index.mjs +3 -0
- package/dist/core/index.cjs +37 -41
- package/dist/core/index.d.cts +41 -27
- package/dist/core/index.d.cts.map +1 -0
- package/dist/core/index.d.mts +78 -0
- package/dist/core/index.d.mts.map +1 -0
- package/dist/core/index.mjs +4 -0
- package/dist/error-state-DErSxZwH.mjs +18 -0
- package/dist/error-state-DErSxZwH.mjs.map +1 -0
- package/dist/error-state-DSzVUtEl.cjs +24 -0
- package/dist/error-state-DSzVUtEl.cjs.map +1 -0
- package/dist/fields-C29fgJje.mjs +2 -0
- package/dist/fields-CzY84PV7.d.cts +2 -0
- package/dist/fields-Da4_7j4S.d.mts +2 -0
- package/dist/rolldown-runtime-wcPFST8Q.mjs +13 -0
- package/dist/scroll-arrows-BZIlsE_x.cjs +35 -0
- package/dist/scroll-arrows-BZIlsE_x.cjs.map +1 -0
- package/dist/scroll-arrows-BevCYRNT.mjs +29 -0
- package/dist/scroll-arrows-BevCYRNT.mjs.map +1 -0
- package/dist/ui/index.cjs +69 -45
- package/dist/ui/index.d.cts +12 -7
- package/dist/ui/index.d.cts.map +1 -0
- package/dist/ui/index.d.mts +15 -0
- package/dist/ui/index.d.mts.map +1 -0
- package/dist/ui/index.mjs +3 -0
- package/dist/widgets/index.cjs +88 -209
- package/dist/widgets/index.cjs.map +1 -1
- package/dist/widgets/index.d.cts +814 -524
- package/dist/widgets/index.d.cts.map +1 -0
- package/dist/widgets/index.d.mts +892 -0
- package/dist/widgets/index.d.mts.map +1 -0
- package/dist/widgets/index.mjs +46 -0
- package/dist/widgets/index.mjs.map +1 -0
- package/package.json +6 -6
- package/dist/AlertWidget-3Q4AK7PE.js +0 -5
- package/dist/AlertWidget-3Q4AK7PE.js.map +0 -1
- package/dist/AlertWidget-C3YMPF7Y.cjs +0 -18
- package/dist/AlertWidget-C3YMPF7Y.cjs.map +0 -1
- package/dist/CalendarWidget-RAB5VESS.cjs +0 -18
- package/dist/CalendarWidget-RAB5VESS.cjs.map +0 -1
- package/dist/CalendarWidget-SEYTR3AG.js +0 -5
- package/dist/CalendarWidget-SEYTR3AG.js.map +0 -1
- package/dist/CarouselWidget-5LFXRR7Y.js +0 -6
- package/dist/CarouselWidget-5LFXRR7Y.js.map +0 -1
- package/dist/CarouselWidget-G5UHRD6R.cjs +0 -19
- package/dist/CarouselWidget-G5UHRD6R.cjs.map +0 -1
- package/dist/CatchUpWidget-NEMYZ7L5.js +0 -5
- package/dist/CatchUpWidget-NEMYZ7L5.js.map +0 -1
- package/dist/CatchUpWidget-XBU2GPFS.cjs +0 -18
- package/dist/CatchUpWidget-XBU2GPFS.cjs.map +0 -1
- package/dist/ChartWidget-463QVROY.cjs +0 -17
- package/dist/ChartWidget-463QVROY.cjs.map +0 -1
- package/dist/ChartWidget-554S2GQF.js +0 -4
- package/dist/ChartWidget-554S2GQF.js.map +0 -1
- package/dist/ContainerWidget-IOXW77X7.cjs +0 -21
- package/dist/ContainerWidget-IOXW77X7.cjs.map +0 -1
- package/dist/ContainerWidget-OLQPEXDT.js +0 -8
- package/dist/ContainerWidget-OLQPEXDT.js.map +0 -1
- package/dist/EmbedWidget-HJH4Q5EH.cjs +0 -16
- package/dist/EmbedWidget-HJH4Q5EH.cjs.map +0 -1
- package/dist/EmbedWidget-JCTT47DQ.js +0 -3
- package/dist/EmbedWidget-JCTT47DQ.js.map +0 -1
- package/dist/ImageWidget-BA2V3DPL.js +0 -4
- package/dist/ImageWidget-BA2V3DPL.js.map +0 -1
- package/dist/ImageWidget-SBC7LK7A.cjs +0 -17
- package/dist/ImageWidget-SBC7LK7A.cjs.map +0 -1
- package/dist/LayoutWidget-F3BDSGDP.cjs +0 -20
- package/dist/LayoutWidget-F3BDSGDP.cjs.map +0 -1
- package/dist/LayoutWidget-MBUJVGKA.js +0 -7
- package/dist/LayoutWidget-MBUJVGKA.js.map +0 -1
- package/dist/ListWidget-4PKBMBAS.cjs +0 -19
- package/dist/ListWidget-4PKBMBAS.cjs.map +0 -1
- package/dist/ListWidget-6SZK6X3X.js +0 -6
- package/dist/ListWidget-6SZK6X3X.js.map +0 -1
- package/dist/MySiteWidget-D6NFECIP.cjs +0 -18
- package/dist/MySiteWidget-D6NFECIP.cjs.map +0 -1
- package/dist/MySiteWidget-YA4DUIG7.js +0 -5
- package/dist/MySiteWidget-YA4DUIG7.js.map +0 -1
- package/dist/NestedWidget-UDNHYTMZ.cjs +0 -19
- package/dist/NestedWidget-UDNHYTMZ.cjs.map +0 -1
- package/dist/NestedWidget-VCZ3JBQY.js +0 -6
- package/dist/NestedWidget-VCZ3JBQY.js.map +0 -1
- package/dist/QuickShareWidget-LNUEJICJ.cjs +0 -17
- package/dist/QuickShareWidget-LNUEJICJ.cjs.map +0 -1
- package/dist/QuickShareWidget-SOQEHDR7.js +0 -4
- package/dist/QuickShareWidget-SOQEHDR7.js.map +0 -1
- package/dist/RecentActivityWidget-HA5N4HCZ.cjs +0 -18
- package/dist/RecentActivityWidget-HA5N4HCZ.cjs.map +0 -1
- package/dist/RecentActivityWidget-TP32GKHT.js +0 -5
- package/dist/RecentActivityWidget-TP32GKHT.js.map +0 -1
- package/dist/SpacerWidget-DX7QRN54.cjs +0 -16
- package/dist/SpacerWidget-DX7QRN54.cjs.map +0 -1
- package/dist/SpacerWidget-H464T5YD.js +0 -3
- package/dist/SpacerWidget-H464T5YD.js.map +0 -1
- package/dist/TableWidget-D46CWY4M.cjs +0 -18
- package/dist/TableWidget-D46CWY4M.cjs.map +0 -1
- package/dist/TableWidget-P4C4ZI23.js +0 -5
- package/dist/TableWidget-P4C4ZI23.js.map +0 -1
- package/dist/TextWidget-GNUQBLDJ.js +0 -4
- package/dist/TextWidget-GNUQBLDJ.js.map +0 -1
- package/dist/TextWidget-PUZPMPOC.cjs +0 -17
- package/dist/TextWidget-PUZPMPOC.cjs.map +0 -1
- package/dist/ToDoWidget-AOAMWMN4.js +0 -5
- package/dist/ToDoWidget-AOAMWMN4.js.map +0 -1
- package/dist/ToDoWidget-L6TXR37G.cjs +0 -18
- package/dist/ToDoWidget-L6TXR37G.cjs.map +0 -1
- package/dist/VideoWidget-T6S2D4WS.cjs +0 -17
- package/dist/VideoWidget-T6S2D4WS.cjs.map +0 -1
- package/dist/VideoWidget-TI72FPLK.js +0 -4
- package/dist/VideoWidget-TI72FPLK.js.map +0 -1
- package/dist/chunk-22AKFT5D.cjs +0 -274
- package/dist/chunk-22AKFT5D.cjs.map +0 -1
- package/dist/chunk-2NPVYROG.js +0 -117
- package/dist/chunk-2NPVYROG.js.map +0 -1
- package/dist/chunk-3EGVZDJH.cjs +0 -448
- package/dist/chunk-3EGVZDJH.cjs.map +0 -1
- package/dist/chunk-4ODOZF7H.js +0 -192
- package/dist/chunk-4ODOZF7H.js.map +0 -1
- package/dist/chunk-4ZFOJT6H.js +0 -271
- package/dist/chunk-4ZFOJT6H.js.map +0 -1
- package/dist/chunk-57ZUEL25.js +0 -14
- package/dist/chunk-57ZUEL25.js.map +0 -1
- package/dist/chunk-5VJYKNCS.cjs +0 -195
- package/dist/chunk-5VJYKNCS.cjs.map +0 -1
- package/dist/chunk-6GF46P3S.js +0 -33
- package/dist/chunk-6GF46P3S.js.map +0 -1
- package/dist/chunk-6RNVWRDD.cjs +0 -179
- package/dist/chunk-6RNVWRDD.cjs.map +0 -1
- package/dist/chunk-6ZECDBGI.js +0 -3
- package/dist/chunk-6ZECDBGI.js.map +0 -1
- package/dist/chunk-AQO2AKU2.cjs +0 -35
- package/dist/chunk-AQO2AKU2.cjs.map +0 -1
- package/dist/chunk-D43XJWX3.js +0 -300
- package/dist/chunk-D43XJWX3.js.map +0 -1
- package/dist/chunk-E5ERYB7Q.js +0 -39
- package/dist/chunk-E5ERYB7Q.js.map +0 -1
- package/dist/chunk-EPTJJSHT.cjs +0 -500
- package/dist/chunk-EPTJJSHT.cjs.map +0 -1
- package/dist/chunk-FDAUWHSY.cjs +0 -268
- package/dist/chunk-FDAUWHSY.cjs.map +0 -1
- package/dist/chunk-FSLUSFJ2.cjs +0 -75
- package/dist/chunk-FSLUSFJ2.cjs.map +0 -1
- package/dist/chunk-GC4SZ75B.js +0 -47
- package/dist/chunk-GC4SZ75B.js.map +0 -1
- package/dist/chunk-HDUFHTQC.js +0 -1024
- package/dist/chunk-HDUFHTQC.js.map +0 -1
- package/dist/chunk-HOFHBVGL.js +0 -133
- package/dist/chunk-HOFHBVGL.js.map +0 -1
- package/dist/chunk-HREBEVS5.cjs +0 -42
- package/dist/chunk-HREBEVS5.cjs.map +0 -1
- package/dist/chunk-IF36TB2H.js +0 -459
- package/dist/chunk-IF36TB2H.js.map +0 -1
- package/dist/chunk-J6HCPXT5.cjs +0 -40
- package/dist/chunk-J6HCPXT5.cjs.map +0 -1
- package/dist/chunk-JIS2K5YR.js +0 -13
- package/dist/chunk-JIS2K5YR.js.map +0 -1
- package/dist/chunk-JYWKXNUO.cjs +0 -37
- package/dist/chunk-JYWKXNUO.cjs.map +0 -1
- package/dist/chunk-KYCPG2DN.cjs +0 -17
- package/dist/chunk-KYCPG2DN.cjs.map +0 -1
- package/dist/chunk-L3HN4J2Y.js +0 -175
- package/dist/chunk-L3HN4J2Y.js.map +0 -1
- package/dist/chunk-LZJVUYSQ.cjs +0 -462
- package/dist/chunk-LZJVUYSQ.cjs.map +0 -1
- package/dist/chunk-MXWFM5J2.js +0 -493
- package/dist/chunk-MXWFM5J2.js.map +0 -1
- package/dist/chunk-NPTCR22X.cjs +0 -1031
- package/dist/chunk-NPTCR22X.cjs.map +0 -1
- package/dist/chunk-P4VXS3BG.cjs +0 -464
- package/dist/chunk-P4VXS3BG.cjs.map +0 -1
- package/dist/chunk-P6AKK6TA.cjs +0 -382
- package/dist/chunk-P6AKK6TA.cjs.map +0 -1
- package/dist/chunk-PLXOZ5BH.cjs +0 -140
- package/dist/chunk-PLXOZ5BH.cjs.map +0 -1
- package/dist/chunk-Q5YXTDPX.cjs +0 -150
- package/dist/chunk-Q5YXTDPX.cjs.map +0 -1
- package/dist/chunk-QB6UW6DD.js +0 -250
- package/dist/chunk-QB6UW6DD.js.map +0 -1
- package/dist/chunk-QG2INAJC.js +0 -461
- package/dist/chunk-QG2INAJC.js.map +0 -1
- package/dist/chunk-QXIIJNQK.cjs +0 -15
- package/dist/chunk-QXIIJNQK.cjs.map +0 -1
- package/dist/chunk-RKDOQV4T.js +0 -73
- package/dist/chunk-RKDOQV4T.js.map +0 -1
- package/dist/chunk-ROLEPF3N.js +0 -399
- package/dist/chunk-ROLEPF3N.js.map +0 -1
- package/dist/chunk-RPNLSRUS.cjs +0 -120
- package/dist/chunk-RPNLSRUS.cjs.map +0 -1
- package/dist/chunk-SLGOKKU7.cjs +0 -402
- package/dist/chunk-SLGOKKU7.cjs.map +0 -1
- package/dist/chunk-U6ODF4YB.cjs +0 -303
- package/dist/chunk-U6ODF4YB.cjs.map +0 -1
- package/dist/chunk-UXFD52LT.js +0 -137
- package/dist/chunk-UXFD52LT.js.map +0 -1
- package/dist/chunk-UZ7TYGUO.js +0 -147
- package/dist/chunk-UZ7TYGUO.js.map +0 -1
- package/dist/chunk-UZF75XZJ.js +0 -379
- package/dist/chunk-UZF75XZJ.js.map +0 -1
- package/dist/chunk-VB5MPLLG.cjs +0 -136
- package/dist/chunk-VB5MPLLG.cjs.map +0 -1
- package/dist/chunk-WTQNKZKV.cjs +0 -253
- package/dist/chunk-WTQNKZKV.cjs.map +0 -1
- package/dist/chunk-YDLNXR7R.js +0 -265
- package/dist/chunk-YDLNXR7R.js.map +0 -1
- package/dist/chunk-YOJRRPOG.js +0 -33
- package/dist/chunk-YOJRRPOG.js.map +0 -1
- package/dist/chunk-YU5DAILW.cjs +0 -14
- package/dist/chunk-YU5DAILW.cjs.map +0 -1
- package/dist/chunk-YZATKTYO.cjs +0 -50
- package/dist/chunk-YZATKTYO.cjs.map +0 -1
- package/dist/chunk-ZLTPLVOF.js +0 -445
- package/dist/chunk-ZLTPLVOF.js.map +0 -1
- package/dist/chunk-ZWFK5UUU.js +0 -11
- package/dist/chunk-ZWFK5UUU.js.map +0 -1
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.js +0 -11
- package/dist/components/index.js.map +0 -1
- package/dist/contexts/index.cjs.map +0 -1
- package/dist/contexts/index.js +0 -4
- package/dist/contexts/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.ts +0 -64
- package/dist/core/index.js +0 -6
- package/dist/core/index.js.map +0 -1
- package/dist/ui/index.cjs.map +0 -1
- package/dist/ui/index.d.ts +0 -10
- package/dist/ui/index.js +0 -4
- package/dist/ui/index.js.map +0 -1
- package/dist/widgets/index.d.ts +0 -602
- package/dist/widgets/index.js +0 -55
- package/dist/widgets/index.js.map +0 -1
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CZWwpsFl.cjs");
|
|
2
|
+
const require_scroll_arrows = require("./scroll-arrows-BZIlsE_x.cjs");
|
|
3
|
+
const require_MediaRenderer = require("./MediaRenderer-CcJvyOJ1.cjs");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let dompurify = require("dompurify");
|
|
7
|
+
dompurify = require_chunk.__toESM(dompurify);
|
|
8
|
+
let _fluid_app_rep_core_registries = require("@fluid-app/rep-core/registries");
|
|
9
|
+
//#region src/widgets/list-widget/FeaturedSection.tsx
|
|
10
|
+
function FeaturedSection({ borderRadius, titleSize, featuredTitle, featuredSubtitle, featuredButtonText, featuredButtonUrl, featuredSubtitleColor, featuredSubtitleSize, asset }) {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
12
|
+
className: `relative h-full min-h-[300px] w-full overflow-hidden rounded-${borderRadius}`,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15
|
+
className: "absolute inset-0 h-full w-full",
|
|
16
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MediaRenderer.MediaRenderer, {
|
|
17
|
+
src: asset.url,
|
|
18
|
+
mediaType: asset.isVideo ? "video" : "image",
|
|
19
|
+
alt: featuredTitle || "Featured",
|
|
20
|
+
objectFit: "cover",
|
|
21
|
+
autoplay: asset.isVideo,
|
|
22
|
+
loop: asset.isVideo,
|
|
23
|
+
muted: asset.isVideo,
|
|
24
|
+
controls: false
|
|
25
|
+
})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-black/40" }),
|
|
28
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
29
|
+
className: "absolute inset-0 flex flex-col items-start justify-end p-8",
|
|
30
|
+
children: [
|
|
31
|
+
featuredTitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
32
|
+
className: `mb-2 font-bold text-white text-${titleSize === "md" ? "base" : titleSize}`,
|
|
33
|
+
children: featuredTitle
|
|
34
|
+
}),
|
|
35
|
+
featuredSubtitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
36
|
+
className: `mb-4 text-${featuredSubtitleColor} text-${featuredSubtitleSize === "md" ? "base" : featuredSubtitleSize}`,
|
|
37
|
+
children: featuredSubtitle
|
|
38
|
+
}),
|
|
39
|
+
featuredButtonText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
40
|
+
href: featuredButtonUrl || "#",
|
|
41
|
+
className: `text-foreground bg-white px-6 py-2 font-medium transition-opacity hover:opacity-90 rounded-${borderRadius}`,
|
|
42
|
+
children: featuredButtonText
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/widgets/list-widget/ListItemCard.tsx
|
|
51
|
+
function getStringValue(value) {
|
|
52
|
+
if (!value) return "";
|
|
53
|
+
if (typeof value === "string") return value;
|
|
54
|
+
if (typeof value === "number") return String(value);
|
|
55
|
+
if (typeof value === "object" && value !== null) {
|
|
56
|
+
if ("body" in value) {
|
|
57
|
+
const body = value.body;
|
|
58
|
+
if (typeof body === "string") return body;
|
|
59
|
+
}
|
|
60
|
+
if ("text" in value) {
|
|
61
|
+
const text = value.text;
|
|
62
|
+
if (typeof text === "string") return text;
|
|
63
|
+
}
|
|
64
|
+
if ("value" in value) {
|
|
65
|
+
const val = value.value;
|
|
66
|
+
if (typeof val === "string") return val;
|
|
67
|
+
if (typeof val === "number") return String(val);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return "";
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Strips parenthetical text like "(USD)" from price strings.
|
|
74
|
+
* Matches the shop page's stripParentheticalText pattern.
|
|
75
|
+
*/
|
|
76
|
+
function stripParentheticalText(text) {
|
|
77
|
+
return text.replace(/\s*\([^)]*\)/g, "").trim();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Formats a price for display. Follows the shop page pattern:
|
|
81
|
+
* prices arrive pre-formatted from the API via display_price
|
|
82
|
+
* (e.g. "$19.99", "€15.00 (EUR)") so we just extract the string
|
|
83
|
+
* and strip parenthetical suffixes.
|
|
84
|
+
*/
|
|
85
|
+
function formatPrice(value) {
|
|
86
|
+
const str = getStringValue(value);
|
|
87
|
+
if (!str) return "";
|
|
88
|
+
return stripParentheticalText(str);
|
|
89
|
+
}
|
|
90
|
+
function ListItemCardContent({ item, padding, itemTitleColor, itemTitleSize, descriptionColor, descriptionSize, priceColor, priceSize, originalPriceColor, metaTextColor, metaTextSize, showMetaText }) {
|
|
91
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
92
|
+
className: `p-${padding}`,
|
|
93
|
+
children: [
|
|
94
|
+
item.title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
95
|
+
className: `text-${itemTitleColor} text-${itemTitleSize === "md" ? "base" : itemTitleSize} mb-1 font-semibold`,
|
|
96
|
+
children: getStringValue(item.title)
|
|
97
|
+
}),
|
|
98
|
+
item.description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
99
|
+
className: `text-${descriptionColor} text-${descriptionSize === "md" ? "base" : descriptionSize} mb-2 line-clamp-2 overflow-hidden`,
|
|
100
|
+
dangerouslySetInnerHTML: { __html: dompurify.default.sanitize(item.description ?? "", {
|
|
101
|
+
ALLOWED_TAGS: [
|
|
102
|
+
"br",
|
|
103
|
+
"strong",
|
|
104
|
+
"em",
|
|
105
|
+
"b",
|
|
106
|
+
"i",
|
|
107
|
+
"ul",
|
|
108
|
+
"ol",
|
|
109
|
+
"li",
|
|
110
|
+
"p"
|
|
111
|
+
],
|
|
112
|
+
ALLOWED_ATTR: []
|
|
113
|
+
}) }
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
116
|
+
className: "flex items-center gap-2",
|
|
117
|
+
children: [(item.display_price || item.price) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
118
|
+
className: `text-${priceColor} text-${priceSize === "md" ? "base" : priceSize} font-bold`,
|
|
119
|
+
children: formatPrice(item.display_price || item.price)
|
|
120
|
+
}), item.originalPrice && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
121
|
+
className: `text-${originalPriceColor} text-${descriptionSize === "md" ? "base" : descriptionSize} line-through`,
|
|
122
|
+
children: formatPrice(item.originalPrice)
|
|
123
|
+
})]
|
|
124
|
+
}),
|
|
125
|
+
showMetaText && (item.qv || item.cv) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
126
|
+
className: `mt-2 flex gap-3 text-${metaTextColor} text-${metaTextSize === "md" ? "base" : metaTextSize}`,
|
|
127
|
+
children: [item.qv && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: ["QV: ", getStringValue(item.qv)] }), item.cv && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: ["CV: ", getStringValue(item.cv)] })]
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function DiscountBadge({ discount }) {
|
|
133
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
134
|
+
className: "bg-destructive text-destructive-foreground absolute top-2 right-2 z-10 rounded-md px-2 py-1 text-xs font-bold",
|
|
135
|
+
children: getStringValue(discount)
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function FavoriteButton({ className }) {
|
|
139
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140
|
+
className: className || "bg-background/80 hover:bg-background absolute top-2 left-2 z-10 rounded-full p-2 backdrop-blur-sm transition-colors",
|
|
141
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
142
|
+
className: "text-muted-foreground h-5 w-5",
|
|
143
|
+
fill: "none",
|
|
144
|
+
stroke: "currentColor",
|
|
145
|
+
viewBox: "0 0 24 24",
|
|
146
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
147
|
+
strokeLinecap: "round",
|
|
148
|
+
strokeLinejoin: "round",
|
|
149
|
+
strokeWidth: 2,
|
|
150
|
+
d: "M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
|
|
151
|
+
})
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/widgets/list-widget/UnorderedList.tsx
|
|
157
|
+
const getImageUrl$1 = (item) => {
|
|
158
|
+
return item.imageUrl || item.image;
|
|
159
|
+
};
|
|
160
|
+
const getAspectRatioClass$1 = (ratio) => {
|
|
161
|
+
return {
|
|
162
|
+
square: "aspect-square",
|
|
163
|
+
landscape: "aspect-video",
|
|
164
|
+
portrait: "aspect-[3/4]"
|
|
165
|
+
}[ratio];
|
|
166
|
+
};
|
|
167
|
+
const getResponsiveGridClass = (columns) => {
|
|
168
|
+
return {
|
|
169
|
+
1: "grid-cols-2 @lg:grid-cols-1",
|
|
170
|
+
2: "grid-cols-2 @lg:grid-cols-2",
|
|
171
|
+
3: "grid-cols-2 @lg:grid-cols-3",
|
|
172
|
+
4: "grid-cols-2 @lg:grid-cols-4",
|
|
173
|
+
5: "grid-cols-2 @lg:grid-cols-5",
|
|
174
|
+
6: "grid-cols-2 @lg:grid-cols-6"
|
|
175
|
+
}[columns] || "grid-cols-2 @lg:grid-cols-3";
|
|
176
|
+
};
|
|
177
|
+
function UnorderedList({ items, columns, gap, borderRadius, imageAspectRatio, showBadge, showFavorite, padding, itemTitleColor, itemTitleSize, descriptionColor, descriptionSize, priceColor, priceSize, originalPriceColor, metaTextColor, metaTextSize, showMetaText }) {
|
|
178
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
179
|
+
className: `grid ${getResponsiveGridClass(columns)} gap-${_fluid_app_rep_core_registries.gapValues[gap]}`,
|
|
180
|
+
children: items.map((item) => {
|
|
181
|
+
const imageUrl = getImageUrl$1(item);
|
|
182
|
+
const aspectRatioClass = getAspectRatioClass$1(imageAspectRatio);
|
|
183
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
184
|
+
className: `relative rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md`,
|
|
185
|
+
children: [
|
|
186
|
+
showBadge && item.discount && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DiscountBadge, { discount: item.discount }),
|
|
187
|
+
showFavorite && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FavoriteButton, {}),
|
|
188
|
+
imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
189
|
+
className: `w-full ${aspectRatioClass} overflow-hidden`,
|
|
190
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
191
|
+
src: imageUrl,
|
|
192
|
+
alt: item.title || "Product",
|
|
193
|
+
className: "h-full w-full object-cover"
|
|
194
|
+
})
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListItemCardContent, {
|
|
197
|
+
item,
|
|
198
|
+
padding,
|
|
199
|
+
itemTitleColor,
|
|
200
|
+
itemTitleSize,
|
|
201
|
+
descriptionColor,
|
|
202
|
+
descriptionSize,
|
|
203
|
+
priceColor,
|
|
204
|
+
priceSize,
|
|
205
|
+
originalPriceColor,
|
|
206
|
+
metaTextColor,
|
|
207
|
+
metaTextSize,
|
|
208
|
+
showMetaText
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
}, item.id);
|
|
212
|
+
})
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/widgets/list-widget/OrderedList.tsx
|
|
217
|
+
const SCROLL_ITEM_WIDTH = 300;
|
|
218
|
+
const getImageUrl = (item) => {
|
|
219
|
+
return item.imageUrl || item.image;
|
|
220
|
+
};
|
|
221
|
+
const getAspectRatioClass = (ratio) => {
|
|
222
|
+
return {
|
|
223
|
+
square: "aspect-square",
|
|
224
|
+
landscape: "aspect-video",
|
|
225
|
+
portrait: "aspect-[3/4]"
|
|
226
|
+
}[ratio];
|
|
227
|
+
};
|
|
228
|
+
const largeNumberSizes = {
|
|
229
|
+
xs: "8rem",
|
|
230
|
+
sm: "10rem",
|
|
231
|
+
md: "12rem",
|
|
232
|
+
lg: "14rem",
|
|
233
|
+
xl: "16rem",
|
|
234
|
+
"2xl": "20rem"
|
|
235
|
+
};
|
|
236
|
+
function OrderedList({ items, scrollAxis, gap, borderRadius, imageAspectRatio, showBadge, showFavorite, padding, itemTitleColor, itemTitleSize, descriptionColor, descriptionSize, priceColor, priceSize, originalPriceColor, metaTextColor, metaTextSize, numberColor, numberSize, showMetaText }) {
|
|
237
|
+
const scrollContainerRef = (0, react.useRef)(null);
|
|
238
|
+
const scrollByAmount = (direction) => {
|
|
239
|
+
const container = scrollContainerRef.current;
|
|
240
|
+
if (!container) return;
|
|
241
|
+
const scrollAmount = SCROLL_ITEM_WIDTH + (parseFloat(getComputedStyle(container).gap) || 0);
|
|
242
|
+
container.scrollTo({
|
|
243
|
+
left: container.scrollLeft + (direction === "next" ? scrollAmount : -scrollAmount),
|
|
244
|
+
behavior: "smooth"
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
const contentProps = {
|
|
248
|
+
padding,
|
|
249
|
+
itemTitleColor,
|
|
250
|
+
itemTitleSize,
|
|
251
|
+
descriptionColor,
|
|
252
|
+
descriptionSize,
|
|
253
|
+
priceColor,
|
|
254
|
+
priceSize,
|
|
255
|
+
originalPriceColor,
|
|
256
|
+
metaTextColor,
|
|
257
|
+
metaTextSize,
|
|
258
|
+
showMetaText
|
|
259
|
+
};
|
|
260
|
+
if (scrollAxis === "horizontal") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
261
|
+
className: "relative",
|
|
262
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
263
|
+
ref: scrollContainerRef,
|
|
264
|
+
className: `flex gap-${_fluid_app_rep_core_registries.gapValues[gap]} scrollbar-hide overflow-x-auto overflow-y-hidden scroll-smooth`,
|
|
265
|
+
children: items.map((item, index) => {
|
|
266
|
+
const imageUrl = getImageUrl(item);
|
|
267
|
+
const aspectRatioClass = getAspectRatioClass(imageAspectRatio);
|
|
268
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
269
|
+
className: "relative w-[300px] flex-shrink-0",
|
|
270
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
271
|
+
className: `absolute top-0 left-0 text-${numberColor} z-0 leading-none font-bold opacity-20`,
|
|
272
|
+
style: { fontSize: largeNumberSizes[numberSize] },
|
|
273
|
+
children: index + 1
|
|
274
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
275
|
+
className: `relative z-10 ml-20 rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md`,
|
|
276
|
+
children: [
|
|
277
|
+
showBadge && item.discount && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DiscountBadge, { discount: item.discount }),
|
|
278
|
+
showFavorite && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FavoriteButton, {}),
|
|
279
|
+
imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
280
|
+
className: `w-full ${aspectRatioClass} overflow-hidden`,
|
|
281
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
282
|
+
src: imageUrl,
|
|
283
|
+
alt: item.title || "Product",
|
|
284
|
+
className: "h-full w-full object-cover"
|
|
285
|
+
})
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListItemCardContent, {
|
|
288
|
+
item,
|
|
289
|
+
...contentProps
|
|
290
|
+
})
|
|
291
|
+
]
|
|
292
|
+
})]
|
|
293
|
+
}, item.id);
|
|
294
|
+
})
|
|
295
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
296
|
+
className: "absolute inset-x-0 top-1/2 z-20 flex w-full -translate-y-1/2 items-center justify-between px-8",
|
|
297
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_scroll_arrows.ScrollArrows, {
|
|
298
|
+
onPrevious: () => scrollByAmount("prev"),
|
|
299
|
+
onNext: () => scrollByAmount("next")
|
|
300
|
+
})
|
|
301
|
+
})]
|
|
302
|
+
});
|
|
303
|
+
if (scrollAxis === "vertical") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
304
|
+
className: `flex flex-col gap-${_fluid_app_rep_core_registries.gapValues[gap]}`,
|
|
305
|
+
children: items.map((item, index) => {
|
|
306
|
+
const imageUrl = getImageUrl(item);
|
|
307
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
308
|
+
className: `relative flex gap-${_fluid_app_rep_core_registries.gapValues[gap]} rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md ${`p-${padding}`}`,
|
|
309
|
+
children: [
|
|
310
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
311
|
+
className: `flex-shrink-0 text-${numberColor} text-${numberSize === "md" ? "base" : numberSize} flex w-16 items-center justify-center font-bold`,
|
|
312
|
+
children: index + 1
|
|
313
|
+
}),
|
|
314
|
+
imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
315
|
+
className: "h-24 w-24 flex-shrink-0 overflow-hidden rounded-md",
|
|
316
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
317
|
+
src: imageUrl,
|
|
318
|
+
alt: item.title || "Product",
|
|
319
|
+
className: "h-full w-full object-cover"
|
|
320
|
+
})
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
323
|
+
className: "flex-1",
|
|
324
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListItemCardContent, {
|
|
325
|
+
item,
|
|
326
|
+
...contentProps
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
showBadge && item.discount && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
330
|
+
className: "bg-destructive text-destructive-foreground absolute top-2 right-2 rounded-md px-2 py-1 text-xs font-bold",
|
|
331
|
+
children: getStringValue(item.discount)
|
|
332
|
+
}),
|
|
333
|
+
showFavorite && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FavoriteButton, { className: "bg-background/80 hover:bg-background absolute top-2 right-12 rounded-full p-2 backdrop-blur-sm transition-colors" })
|
|
334
|
+
]
|
|
335
|
+
}, item.id);
|
|
336
|
+
})
|
|
337
|
+
});
|
|
338
|
+
return null;
|
|
339
|
+
}
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/widgets/ListWidget.tsx
|
|
342
|
+
var ListWidget_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
343
|
+
ListWidget: () => ListWidget,
|
|
344
|
+
listWidgetPropertySchema: () => listWidgetPropertySchema
|
|
345
|
+
});
|
|
346
|
+
const DEFAULT_ITEMS = [];
|
|
347
|
+
function getFeaturedAssetUrl(value) {
|
|
348
|
+
if (!value) return void 0;
|
|
349
|
+
if (typeof value === "string") return {
|
|
350
|
+
url: value,
|
|
351
|
+
isVideo: /\.(mp4|webm|ogg|mov)$/i.test(value)
|
|
352
|
+
};
|
|
353
|
+
if (typeof value === "object") {
|
|
354
|
+
const videoUrl = value.videoUrl || value.video_url || value.url;
|
|
355
|
+
if (videoUrl && /\.(mp4|webm|ogg|mov)$/i.test(videoUrl)) return {
|
|
356
|
+
url: videoUrl,
|
|
357
|
+
isVideo: true
|
|
358
|
+
};
|
|
359
|
+
const imageUrl = value.imageUrl || value.image_url || value.url;
|
|
360
|
+
if (imageUrl) return {
|
|
361
|
+
url: imageUrl,
|
|
362
|
+
isVideo: false
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function ListWidget({ listType = "unordered", scrollAxis = "horizontal", titleEnabled = true, title, items = DEFAULT_ITEMS, titleColor = "foreground", titleSize = "lg", itemTitleColor = "foreground", itemTitleSize = "sm", descriptionColor = "foreground", descriptionSize = "sm", priceColor = "foreground", priceSize = "md", originalPriceColor = "muted", metaTextColor = "muted", metaTextSize = "xs", numberColor = "primary", numberSize = "2xl", borderRadius = "md", padding = 4, gap = "md", columns = 3, imageAspectRatio = "square", background = {
|
|
367
|
+
type: "solid",
|
|
368
|
+
color: "background"
|
|
369
|
+
}, showBadge = true, showFavorite = true, showMetaText = true, maxItems = 12, showFeaturedSection = false, featuredAsset, featuredTitle, featuredSubtitle, featuredButtonText, featuredButtonUrl, featuredSubtitleColor = "background", featuredSubtitleSize = "md", className, ...props }) {
|
|
370
|
+
const displayItems = maxItems ? items.slice(0, maxItems) : items;
|
|
371
|
+
const hasItems = displayItems.length > 0;
|
|
372
|
+
const itemStyleProps = {
|
|
373
|
+
padding,
|
|
374
|
+
itemTitleColor,
|
|
375
|
+
itemTitleSize,
|
|
376
|
+
descriptionColor,
|
|
377
|
+
descriptionSize,
|
|
378
|
+
priceColor,
|
|
379
|
+
priceSize,
|
|
380
|
+
originalPriceColor,
|
|
381
|
+
metaTextColor,
|
|
382
|
+
metaTextSize,
|
|
383
|
+
showMetaText,
|
|
384
|
+
showBadge,
|
|
385
|
+
showFavorite,
|
|
386
|
+
borderRadius,
|
|
387
|
+
imageAspectRatio,
|
|
388
|
+
gap
|
|
389
|
+
};
|
|
390
|
+
const hasFeaturedAsset = getFeaturedAssetUrl(featuredAsset);
|
|
391
|
+
const shouldShowFeaturedSection = showFeaturedSection && hasFeaturedAsset;
|
|
392
|
+
const backgroundColor = background.color || "background";
|
|
393
|
+
const backgroundImage = (background.resource?.image_url || background.resource?.imageUrl) && background.type === "image" ? `url(${background.resource.image_url || background.resource.imageUrl})` : "none";
|
|
394
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
395
|
+
className: `@container bg-${backgroundColor} ${className}`,
|
|
396
|
+
style: { backgroundImage },
|
|
397
|
+
...props,
|
|
398
|
+
children: [titleEnabled && title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
399
|
+
className: `text-${titleColor} text-${titleSize === "md" ? "base" : titleSize} mb-6 font-bold`,
|
|
400
|
+
children: title
|
|
401
|
+
}), !hasItems ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
402
|
+
className: "border-border bg-muted flex items-center justify-center rounded-md border-2 border-dashed py-12 text-center",
|
|
403
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
404
|
+
className: "text-muted",
|
|
405
|
+
children: "No items to display"
|
|
406
|
+
})
|
|
407
|
+
}) : shouldShowFeaturedSection ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
408
|
+
className: "flex flex-col gap-4 @lg:flex-row @lg:gap-6",
|
|
409
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
410
|
+
className: "w-full @lg:w-[45%]",
|
|
411
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FeaturedSection, {
|
|
412
|
+
borderRadius,
|
|
413
|
+
titleSize,
|
|
414
|
+
featuredTitle,
|
|
415
|
+
featuredSubtitle,
|
|
416
|
+
featuredButtonText,
|
|
417
|
+
featuredButtonUrl,
|
|
418
|
+
featuredSubtitleColor,
|
|
419
|
+
featuredSubtitleSize,
|
|
420
|
+
asset: hasFeaturedAsset
|
|
421
|
+
})
|
|
422
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
423
|
+
className: "w-full @lg:w-[55%]",
|
|
424
|
+
children: listType === "unordered" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnorderedList, {
|
|
425
|
+
items: displayItems,
|
|
426
|
+
columns,
|
|
427
|
+
...itemStyleProps
|
|
428
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrderedList, {
|
|
429
|
+
items: displayItems,
|
|
430
|
+
scrollAxis,
|
|
431
|
+
numberColor,
|
|
432
|
+
numberSize,
|
|
433
|
+
...itemStyleProps
|
|
434
|
+
})
|
|
435
|
+
})]
|
|
436
|
+
}) : listType === "unordered" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnorderedList, {
|
|
437
|
+
items: displayItems,
|
|
438
|
+
columns,
|
|
439
|
+
...itemStyleProps
|
|
440
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrderedList, {
|
|
441
|
+
items: displayItems,
|
|
442
|
+
scrollAxis,
|
|
443
|
+
numberColor,
|
|
444
|
+
numberSize,
|
|
445
|
+
...itemStyleProps
|
|
446
|
+
})]
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
const listWidgetPropertySchema = {
|
|
450
|
+
widgetType: "ListWidget",
|
|
451
|
+
displayName: "List",
|
|
452
|
+
tabsConfig: [{
|
|
453
|
+
id: "styling",
|
|
454
|
+
label: "Styling"
|
|
455
|
+
}, {
|
|
456
|
+
id: "data",
|
|
457
|
+
label: "Data"
|
|
458
|
+
}],
|
|
459
|
+
dataSourceTargetProps: ["items"],
|
|
460
|
+
fields: [
|
|
461
|
+
{
|
|
462
|
+
key: "titleEnabled",
|
|
463
|
+
label: "Widget Title",
|
|
464
|
+
type: "boolean",
|
|
465
|
+
description: "Enable the title displayed above the list",
|
|
466
|
+
defaultValue: true,
|
|
467
|
+
tab: "styling",
|
|
468
|
+
group: "Title"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
key: "title",
|
|
472
|
+
label: "Title",
|
|
473
|
+
type: "text",
|
|
474
|
+
description: "Header text for the list",
|
|
475
|
+
defaultValue: "List",
|
|
476
|
+
tab: "styling",
|
|
477
|
+
group: "Title",
|
|
478
|
+
requiresKeyToBeTrue: "titleEnabled"
|
|
479
|
+
},
|
|
480
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
481
|
+
key: "titleSize",
|
|
482
|
+
label: "Title Font Size",
|
|
483
|
+
description: "Size of the list title",
|
|
484
|
+
defaultValue: "xl",
|
|
485
|
+
tab: "styling",
|
|
486
|
+
group: "Title",
|
|
487
|
+
requiresKeyToBeTrue: "titleEnabled"
|
|
488
|
+
}),
|
|
489
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
490
|
+
key: "titleColor",
|
|
491
|
+
label: "Title Color",
|
|
492
|
+
description: "Color for the list title",
|
|
493
|
+
defaultValue: "foreground",
|
|
494
|
+
tab: "styling",
|
|
495
|
+
group: "Title",
|
|
496
|
+
requiresKeyToBeTrue: "titleEnabled"
|
|
497
|
+
}),
|
|
498
|
+
(0, _fluid_app_rep_core_registries.getPaddingField)({
|
|
499
|
+
key: "padding",
|
|
500
|
+
label: "Padding",
|
|
501
|
+
description: "Padding inside the container",
|
|
502
|
+
defaultValue: 4,
|
|
503
|
+
tab: "styling",
|
|
504
|
+
group: "Design"
|
|
505
|
+
}),
|
|
506
|
+
(0, _fluid_app_rep_core_registries.getBorderRadiusField)({
|
|
507
|
+
key: "borderRadius",
|
|
508
|
+
label: "Border Radius",
|
|
509
|
+
description: "Rounded corners for the container and images",
|
|
510
|
+
defaultValue: "md",
|
|
511
|
+
tab: "styling",
|
|
512
|
+
group: "Design"
|
|
513
|
+
}),
|
|
514
|
+
(0, _fluid_app_rep_core_registries.getGapField)({
|
|
515
|
+
key: "gap",
|
|
516
|
+
label: "Gap",
|
|
517
|
+
description: "Spacing between items",
|
|
518
|
+
defaultValue: "md",
|
|
519
|
+
tab: "styling",
|
|
520
|
+
group: "Design"
|
|
521
|
+
}),
|
|
522
|
+
{
|
|
523
|
+
type: "background",
|
|
524
|
+
defaultValue: "background",
|
|
525
|
+
key: "background",
|
|
526
|
+
label: "Background",
|
|
527
|
+
description: "Background color or image for the widget",
|
|
528
|
+
tab: "styling",
|
|
529
|
+
group: "Design"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
key: "listType",
|
|
533
|
+
label: "List Type",
|
|
534
|
+
type: "select",
|
|
535
|
+
description: "Type of list layout",
|
|
536
|
+
defaultValue: "unordered",
|
|
537
|
+
options: [{
|
|
538
|
+
label: "Unordered (Grid)",
|
|
539
|
+
value: "unordered"
|
|
540
|
+
}, {
|
|
541
|
+
label: "Ordered (Numbered)",
|
|
542
|
+
value: "ordered"
|
|
543
|
+
}],
|
|
544
|
+
tab: "styling",
|
|
545
|
+
group: "List Configuration"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
key: "maxItems",
|
|
549
|
+
label: "Max Items",
|
|
550
|
+
type: "number",
|
|
551
|
+
description: "Maximum number of items to display",
|
|
552
|
+
min: 1,
|
|
553
|
+
max: 100,
|
|
554
|
+
step: 1,
|
|
555
|
+
defaultValue: 12,
|
|
556
|
+
tab: "styling",
|
|
557
|
+
group: "List Configuration"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
key: "imageAspectRatio",
|
|
561
|
+
label: "Image Aspect Ratio",
|
|
562
|
+
type: "buttonGroup",
|
|
563
|
+
description: "Aspect ratio for item images",
|
|
564
|
+
defaultValue: "square",
|
|
565
|
+
options: [
|
|
566
|
+
{
|
|
567
|
+
label: "Square",
|
|
568
|
+
value: "square"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
label: "Landscape",
|
|
572
|
+
value: "landscape"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
label: "Portrait",
|
|
576
|
+
value: "portrait"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
tab: "styling",
|
|
580
|
+
group: "List Configuration"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
key: "showBadge",
|
|
584
|
+
label: "Show Discount Badge",
|
|
585
|
+
type: "boolean",
|
|
586
|
+
description: "Display discount badge on images",
|
|
587
|
+
defaultValue: true,
|
|
588
|
+
tab: "styling",
|
|
589
|
+
group: "List Configuration"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
key: "showFavorite",
|
|
593
|
+
label: "Show Favorite Icon",
|
|
594
|
+
type: "boolean",
|
|
595
|
+
description: "Display favorite/heart icon on images",
|
|
596
|
+
defaultValue: true,
|
|
597
|
+
tab: "styling",
|
|
598
|
+
group: "List Configuration"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
key: "showMetaText",
|
|
602
|
+
label: "Show QV/CV Text",
|
|
603
|
+
type: "boolean",
|
|
604
|
+
description: "Display QV and CV values",
|
|
605
|
+
defaultValue: true,
|
|
606
|
+
tab: "styling",
|
|
607
|
+
group: "List Configuration"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
key: "columns",
|
|
611
|
+
label: "Grid Columns",
|
|
612
|
+
type: "number",
|
|
613
|
+
description: "Number of columns in the grid (unordered list only)",
|
|
614
|
+
min: 1,
|
|
615
|
+
max: 6,
|
|
616
|
+
step: 1,
|
|
617
|
+
defaultValue: 3,
|
|
618
|
+
tab: "styling",
|
|
619
|
+
group: "Unordered List Configuration",
|
|
620
|
+
requiresKeyValue: {
|
|
621
|
+
key: "listType",
|
|
622
|
+
value: "unordered"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
key: "scrollAxis",
|
|
627
|
+
label: "Scroll Direction",
|
|
628
|
+
type: "select",
|
|
629
|
+
description: "Direction for ordered list scrolling",
|
|
630
|
+
defaultValue: "horizontal",
|
|
631
|
+
options: [{
|
|
632
|
+
label: "Horizontal",
|
|
633
|
+
value: "horizontal"
|
|
634
|
+
}, {
|
|
635
|
+
label: "Vertical",
|
|
636
|
+
value: "vertical"
|
|
637
|
+
}],
|
|
638
|
+
tab: "styling",
|
|
639
|
+
group: "Ordered List Configuration",
|
|
640
|
+
requiresKeyValue: {
|
|
641
|
+
key: "listType",
|
|
642
|
+
value: "ordered"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
646
|
+
key: "numberColor",
|
|
647
|
+
label: "Number Color",
|
|
648
|
+
description: "Color for ordered list numbers",
|
|
649
|
+
defaultValue: "primary",
|
|
650
|
+
tab: "styling",
|
|
651
|
+
group: "Ordered List Configuration",
|
|
652
|
+
requiresKeyValue: {
|
|
653
|
+
key: "listType",
|
|
654
|
+
value: "ordered"
|
|
655
|
+
}
|
|
656
|
+
}),
|
|
657
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
658
|
+
key: "numberSize",
|
|
659
|
+
label: "Number Font Size",
|
|
660
|
+
description: "Size of ordered list numbers",
|
|
661
|
+
defaultValue: "2xl",
|
|
662
|
+
tab: "styling",
|
|
663
|
+
group: "Ordered List Configuration",
|
|
664
|
+
requiresKeyValue: {
|
|
665
|
+
key: "listType",
|
|
666
|
+
value: "ordered"
|
|
667
|
+
}
|
|
668
|
+
}),
|
|
669
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
670
|
+
key: "itemTitleColor",
|
|
671
|
+
label: "Item Title Color",
|
|
672
|
+
description: "Color for item titles",
|
|
673
|
+
defaultValue: "foreground",
|
|
674
|
+
tab: "styling",
|
|
675
|
+
group: "Item Styling"
|
|
676
|
+
}),
|
|
677
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
678
|
+
key: "itemTitleSize",
|
|
679
|
+
label: "Item Title Font Size",
|
|
680
|
+
description: "Size of item titles",
|
|
681
|
+
defaultValue: "sm",
|
|
682
|
+
tab: "styling",
|
|
683
|
+
group: "Item Styling"
|
|
684
|
+
}),
|
|
685
|
+
{
|
|
686
|
+
key: "separator2",
|
|
687
|
+
type: "separator",
|
|
688
|
+
label: "Separator",
|
|
689
|
+
tab: "styling",
|
|
690
|
+
group: "Item Styling"
|
|
691
|
+
},
|
|
692
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
693
|
+
key: "descriptionColor",
|
|
694
|
+
label: "Description Color",
|
|
695
|
+
description: "Color for descriptions",
|
|
696
|
+
defaultValue: "foreground",
|
|
697
|
+
tab: "styling",
|
|
698
|
+
group: "Item Styling"
|
|
699
|
+
}),
|
|
700
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
701
|
+
key: "descriptionSize",
|
|
702
|
+
label: "Description Font Size",
|
|
703
|
+
description: "Size of descriptions",
|
|
704
|
+
defaultValue: "sm",
|
|
705
|
+
tab: "styling",
|
|
706
|
+
group: "Item Styling"
|
|
707
|
+
}),
|
|
708
|
+
{
|
|
709
|
+
key: "separator3",
|
|
710
|
+
type: "separator",
|
|
711
|
+
label: "Separator",
|
|
712
|
+
tab: "styling",
|
|
713
|
+
group: "Item Styling"
|
|
714
|
+
},
|
|
715
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
716
|
+
key: "priceColor",
|
|
717
|
+
label: "Price Color",
|
|
718
|
+
description: "Color for prices",
|
|
719
|
+
defaultValue: "foreground",
|
|
720
|
+
tab: "styling",
|
|
721
|
+
group: "Item Styling"
|
|
722
|
+
}),
|
|
723
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
724
|
+
key: "priceSize",
|
|
725
|
+
label: "Price Font Size",
|
|
726
|
+
description: "Size of prices",
|
|
727
|
+
defaultValue: "md",
|
|
728
|
+
tab: "styling",
|
|
729
|
+
group: "Item Styling"
|
|
730
|
+
}),
|
|
731
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
732
|
+
key: "originalPriceColor",
|
|
733
|
+
label: "Original Price Color",
|
|
734
|
+
description: "Color for crossed-out original prices",
|
|
735
|
+
defaultValue: "foreground",
|
|
736
|
+
tab: "styling",
|
|
737
|
+
group: "Item Styling"
|
|
738
|
+
}),
|
|
739
|
+
{
|
|
740
|
+
key: "separator4",
|
|
741
|
+
type: "separator",
|
|
742
|
+
label: "Separator",
|
|
743
|
+
tab: "styling",
|
|
744
|
+
group: "Item Styling"
|
|
745
|
+
},
|
|
746
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
747
|
+
key: "metaTextColor",
|
|
748
|
+
label: "Meta Text Color",
|
|
749
|
+
description: "Color for QV/CV text",
|
|
750
|
+
defaultValue: "foreground",
|
|
751
|
+
tab: "styling",
|
|
752
|
+
group: "Item Styling"
|
|
753
|
+
}),
|
|
754
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
755
|
+
key: "metaTextSize",
|
|
756
|
+
label: "Meta Text Font Size",
|
|
757
|
+
description: "Size of QV/CV text",
|
|
758
|
+
defaultValue: "xs",
|
|
759
|
+
tab: "styling",
|
|
760
|
+
group: "Item Styling"
|
|
761
|
+
}),
|
|
762
|
+
{
|
|
763
|
+
key: "showFeaturedSection",
|
|
764
|
+
label: "Show Featured Section",
|
|
765
|
+
type: "boolean",
|
|
766
|
+
description: "Display a featured content section",
|
|
767
|
+
defaultValue: false,
|
|
768
|
+
tab: "styling",
|
|
769
|
+
group: "Featured Section"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
key: "featuredAsset",
|
|
773
|
+
label: "Featured Asset",
|
|
774
|
+
type: "resource",
|
|
775
|
+
description: "Select a single image or video resource for the featured section",
|
|
776
|
+
tab: "styling",
|
|
777
|
+
group: "Featured Section",
|
|
778
|
+
allowedTypes: ["Medium"],
|
|
779
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
key: "featuredTitle",
|
|
783
|
+
label: "Featured Title",
|
|
784
|
+
type: "text",
|
|
785
|
+
description: "Title for featured section",
|
|
786
|
+
tab: "styling",
|
|
787
|
+
group: "Featured Section",
|
|
788
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
key: "featuredSubtitle",
|
|
792
|
+
label: "Featured Subtitle",
|
|
793
|
+
type: "text",
|
|
794
|
+
description: "Subtitle for featured section",
|
|
795
|
+
tab: "styling",
|
|
796
|
+
group: "Featured Section",
|
|
797
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
key: "featuredButtonText",
|
|
801
|
+
label: "Featured Button Text",
|
|
802
|
+
type: "text",
|
|
803
|
+
description: "Text for featured section button",
|
|
804
|
+
tab: "styling",
|
|
805
|
+
group: "Featured Section",
|
|
806
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
key: "featuredButtonUrl",
|
|
810
|
+
label: "Featured Button URL",
|
|
811
|
+
type: "text",
|
|
812
|
+
description: "URL for featured section button",
|
|
813
|
+
tab: "styling",
|
|
814
|
+
group: "Featured Section",
|
|
815
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
816
|
+
},
|
|
817
|
+
(0, _fluid_app_rep_core_registries.getColorField)({
|
|
818
|
+
key: "featuredSubtitleColor",
|
|
819
|
+
label: "Featured Subtitle Color",
|
|
820
|
+
description: "Color for featured subtitle",
|
|
821
|
+
defaultValue: "background",
|
|
822
|
+
tab: "styling",
|
|
823
|
+
group: "Featured Section",
|
|
824
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
825
|
+
}),
|
|
826
|
+
(0, _fluid_app_rep_core_registries.getFontSizeField)({
|
|
827
|
+
key: "featuredSubtitleSize",
|
|
828
|
+
label: "Featured Subtitle Font Size",
|
|
829
|
+
description: "Size of featured subtitle",
|
|
830
|
+
defaultValue: "md",
|
|
831
|
+
tab: "styling",
|
|
832
|
+
group: "Featured Section",
|
|
833
|
+
requiresKeyToBeTrue: "showFeaturedSection"
|
|
834
|
+
}),
|
|
835
|
+
{
|
|
836
|
+
key: "dataSource",
|
|
837
|
+
label: "Data Source",
|
|
838
|
+
type: "dataSource",
|
|
839
|
+
description: "",
|
|
840
|
+
tab: "data",
|
|
841
|
+
group: "Data Configuration"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
itemConfigSchema: {
|
|
845
|
+
description: "Configure settings for this list item",
|
|
846
|
+
fields: [
|
|
847
|
+
{
|
|
848
|
+
key: "title",
|
|
849
|
+
label: "Custom Title",
|
|
850
|
+
type: "text",
|
|
851
|
+
description: "Override the item's title"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
key: "description",
|
|
855
|
+
label: "Custom Description",
|
|
856
|
+
type: "textarea",
|
|
857
|
+
description: "Override the item's description",
|
|
858
|
+
rows: 3
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
key: "price",
|
|
862
|
+
label: "Price",
|
|
863
|
+
type: "text",
|
|
864
|
+
description: "Current price"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
key: "originalPrice",
|
|
868
|
+
label: "Original Price",
|
|
869
|
+
type: "text",
|
|
870
|
+
description: "Original price (will be crossed out)"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
key: "discount",
|
|
874
|
+
label: "Discount Badge",
|
|
875
|
+
type: "text",
|
|
876
|
+
description: "Discount text (e.g., '40% Off')"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
key: "qv",
|
|
880
|
+
label: "QV Value",
|
|
881
|
+
type: "text",
|
|
882
|
+
description: "Qualifying Volume value"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
key: "cv",
|
|
886
|
+
label: "CV Value",
|
|
887
|
+
type: "text",
|
|
888
|
+
description: "Commission Volume value"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
key: "image",
|
|
892
|
+
label: "Image URL",
|
|
893
|
+
type: "text",
|
|
894
|
+
description: "Custom image URL for this item"
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
//#endregion
|
|
900
|
+
Object.defineProperty(exports, "ListWidget", {
|
|
901
|
+
enumerable: true,
|
|
902
|
+
get: function() {
|
|
903
|
+
return ListWidget;
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
Object.defineProperty(exports, "ListWidget_exports", {
|
|
907
|
+
enumerable: true,
|
|
908
|
+
get: function() {
|
|
909
|
+
return ListWidget_exports;
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
Object.defineProperty(exports, "listWidgetPropertySchema", {
|
|
913
|
+
enumerable: true,
|
|
914
|
+
get: function() {
|
|
915
|
+
return listWidgetPropertySchema;
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
//# sourceMappingURL=ListWidget-CxaLm0D5.cjs.map
|