@fluid-app/rep-widgets 0.1.16 → 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 -526
- 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-B7RFGTJB.js +0 -3
- package/dist/EmbedWidget-B7RFGTJB.js.map +0 -1
- package/dist/EmbedWidget-RETHBVTD.cjs +0 -16
- package/dist/EmbedWidget-RETHBVTD.cjs.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-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-SINQXEBL.js +0 -160
- package/dist/chunk-SINQXEBL.js.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-WTQNKZKV.cjs +0 -253
- package/dist/chunk-WTQNKZKV.cjs.map +0 -1
- package/dist/chunk-WWKBIVET.cjs +0 -163
- package/dist/chunk-WWKBIVET.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 -604
- package/dist/widgets/index.js +0 -55
- package/dist/widgets/index.js.map +0 -1
package/dist/chunk-HDUFHTQC.js
DELETED
|
@@ -1,1024 +0,0 @@
|
|
|
1
|
-
import { MediaRenderer } from './chunk-L3HN4J2Y.js';
|
|
2
|
-
import { ScrollArrows } from './chunk-YOJRRPOG.js';
|
|
3
|
-
import { getFontSizeField, getColorField, getPaddingField, getBorderRadiusField, getGapField, gapValues } from './chunk-6ZECDBGI.js';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
import DOMPurify from 'dompurify';
|
|
6
|
-
import { useRef } from 'react';
|
|
7
|
-
|
|
8
|
-
function FeaturedSection({
|
|
9
|
-
borderRadius,
|
|
10
|
-
titleSize,
|
|
11
|
-
featuredTitle,
|
|
12
|
-
featuredSubtitle,
|
|
13
|
-
featuredButtonText,
|
|
14
|
-
featuredButtonUrl,
|
|
15
|
-
featuredSubtitleColor,
|
|
16
|
-
featuredSubtitleSize,
|
|
17
|
-
asset
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
className: `relative h-full min-h-[300px] w-full overflow-hidden rounded-${borderRadius}`,
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 h-full w-full", children: /* @__PURE__ */ jsx(
|
|
25
|
-
MediaRenderer,
|
|
26
|
-
{
|
|
27
|
-
src: asset.url,
|
|
28
|
-
mediaType: asset.isVideo ? "video" : "image",
|
|
29
|
-
alt: featuredTitle || "Featured",
|
|
30
|
-
objectFit: "cover",
|
|
31
|
-
autoplay: asset.isVideo,
|
|
32
|
-
loop: asset.isVideo,
|
|
33
|
-
muted: asset.isVideo,
|
|
34
|
-
controls: false
|
|
35
|
-
}
|
|
36
|
-
) }),
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/40" }),
|
|
38
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col items-start justify-end p-8", children: [
|
|
39
|
-
featuredTitle && /* @__PURE__ */ jsx(
|
|
40
|
-
"h3",
|
|
41
|
-
{
|
|
42
|
-
className: `mb-2 font-bold text-white text-${titleSize === "md" ? "base" : titleSize}`,
|
|
43
|
-
children: featuredTitle
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
featuredSubtitle && /* @__PURE__ */ jsx(
|
|
47
|
-
"p",
|
|
48
|
-
{
|
|
49
|
-
className: `mb-4 text-${featuredSubtitleColor} text-${featuredSubtitleSize === "md" ? "base" : featuredSubtitleSize}`,
|
|
50
|
-
children: featuredSubtitle
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
featuredButtonText && /* @__PURE__ */ jsx(
|
|
54
|
-
"a",
|
|
55
|
-
{
|
|
56
|
-
href: featuredButtonUrl || "#",
|
|
57
|
-
className: `text-foreground bg-white px-6 py-2 font-medium transition-opacity hover:opacity-90 rounded-${borderRadius}`,
|
|
58
|
-
children: featuredButtonText
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] })
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
function getStringValue(value) {
|
|
67
|
-
if (!value) return "";
|
|
68
|
-
if (typeof value === "string") return value;
|
|
69
|
-
if (typeof value === "number") return String(value);
|
|
70
|
-
if (typeof value === "object" && value !== null) {
|
|
71
|
-
if ("body" in value) {
|
|
72
|
-
const body = value.body;
|
|
73
|
-
if (typeof body === "string") return body;
|
|
74
|
-
}
|
|
75
|
-
if ("text" in value) {
|
|
76
|
-
const text = value.text;
|
|
77
|
-
if (typeof text === "string") return text;
|
|
78
|
-
}
|
|
79
|
-
if ("value" in value) {
|
|
80
|
-
const val = value.value;
|
|
81
|
-
if (typeof val === "string") return val;
|
|
82
|
-
if (typeof val === "number") return String(val);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return "";
|
|
86
|
-
}
|
|
87
|
-
function stripParentheticalText(text) {
|
|
88
|
-
return text.replace(/\s*\([^)]*\)/g, "").trim();
|
|
89
|
-
}
|
|
90
|
-
function formatPrice(value) {
|
|
91
|
-
const str = getStringValue(value);
|
|
92
|
-
if (!str) return "";
|
|
93
|
-
return stripParentheticalText(str);
|
|
94
|
-
}
|
|
95
|
-
function ListItemCardContent({
|
|
96
|
-
item,
|
|
97
|
-
padding,
|
|
98
|
-
itemTitleColor,
|
|
99
|
-
itemTitleSize,
|
|
100
|
-
descriptionColor,
|
|
101
|
-
descriptionSize,
|
|
102
|
-
priceColor,
|
|
103
|
-
priceSize,
|
|
104
|
-
originalPriceColor,
|
|
105
|
-
metaTextColor,
|
|
106
|
-
metaTextSize,
|
|
107
|
-
showMetaText
|
|
108
|
-
}) {
|
|
109
|
-
return /* @__PURE__ */ jsxs("div", { className: `p-${padding}`, children: [
|
|
110
|
-
item.title && /* @__PURE__ */ jsx(
|
|
111
|
-
"h3",
|
|
112
|
-
{
|
|
113
|
-
className: `text-${itemTitleColor} text-${itemTitleSize === "md" ? "base" : itemTitleSize} mb-1 font-semibold`,
|
|
114
|
-
children: getStringValue(item.title)
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
item.description && /* @__PURE__ */ jsx(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
className: `text-${descriptionColor} text-${descriptionSize === "md" ? "base" : descriptionSize} mb-2 line-clamp-2 overflow-hidden`,
|
|
121
|
-
dangerouslySetInnerHTML: {
|
|
122
|
-
__html: DOMPurify.sanitize(item.description ?? "", {
|
|
123
|
-
ALLOWED_TAGS: [
|
|
124
|
-
"br",
|
|
125
|
-
"strong",
|
|
126
|
-
"em",
|
|
127
|
-
"b",
|
|
128
|
-
"i",
|
|
129
|
-
"ul",
|
|
130
|
-
"ol",
|
|
131
|
-
"li",
|
|
132
|
-
"p"
|
|
133
|
-
],
|
|
134
|
-
ALLOWED_ATTR: []
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
),
|
|
139
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
140
|
-
(item.display_price || item.price) && /* @__PURE__ */ jsx(
|
|
141
|
-
"span",
|
|
142
|
-
{
|
|
143
|
-
className: `text-${priceColor} text-${priceSize === "md" ? "base" : priceSize} font-bold`,
|
|
144
|
-
children: formatPrice(item.display_price || item.price)
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
item.originalPrice && /* @__PURE__ */ jsx(
|
|
148
|
-
"span",
|
|
149
|
-
{
|
|
150
|
-
className: `text-${originalPriceColor} text-${descriptionSize === "md" ? "base" : descriptionSize} line-through`,
|
|
151
|
-
children: formatPrice(item.originalPrice)
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
] }),
|
|
155
|
-
showMetaText && (item.qv || item.cv) && /* @__PURE__ */ jsxs(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
className: `mt-2 flex gap-3 text-${metaTextColor} text-${metaTextSize === "md" ? "base" : metaTextSize}`,
|
|
159
|
-
children: [
|
|
160
|
-
item.qv && /* @__PURE__ */ jsxs("span", { children: [
|
|
161
|
-
"QV: ",
|
|
162
|
-
getStringValue(item.qv)
|
|
163
|
-
] }),
|
|
164
|
-
item.cv && /* @__PURE__ */ jsxs("span", { children: [
|
|
165
|
-
"CV: ",
|
|
166
|
-
getStringValue(item.cv)
|
|
167
|
-
] })
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
)
|
|
171
|
-
] });
|
|
172
|
-
}
|
|
173
|
-
function DiscountBadge({ discount }) {
|
|
174
|
-
return /* @__PURE__ */ jsx("div", { className: "bg-destructive text-destructive-foreground absolute top-2 right-2 z-10 rounded-md px-2 py-1 text-xs font-bold", children: getStringValue(discount) });
|
|
175
|
-
}
|
|
176
|
-
function FavoriteButton({ className }) {
|
|
177
|
-
return /* @__PURE__ */ jsx(
|
|
178
|
-
"button",
|
|
179
|
-
{
|
|
180
|
-
className: className || "bg-background/80 hover:bg-background absolute top-2 left-2 z-10 rounded-full p-2 backdrop-blur-sm transition-colors",
|
|
181
|
-
children: /* @__PURE__ */ jsx(
|
|
182
|
-
"svg",
|
|
183
|
-
{
|
|
184
|
-
className: "text-muted-foreground h-5 w-5",
|
|
185
|
-
fill: "none",
|
|
186
|
-
stroke: "currentColor",
|
|
187
|
-
viewBox: "0 0 24 24",
|
|
188
|
-
children: /* @__PURE__ */ jsx(
|
|
189
|
-
"path",
|
|
190
|
-
{
|
|
191
|
-
strokeLinecap: "round",
|
|
192
|
-
strokeLinejoin: "round",
|
|
193
|
-
strokeWidth: 2,
|
|
194
|
-
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"
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
}
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
var getImageUrl = (item) => {
|
|
203
|
-
return item.imageUrl || item.image;
|
|
204
|
-
};
|
|
205
|
-
var getAspectRatioClass = (ratio) => {
|
|
206
|
-
const ratios = {
|
|
207
|
-
square: "aspect-square",
|
|
208
|
-
landscape: "aspect-video",
|
|
209
|
-
portrait: "aspect-[3/4]"
|
|
210
|
-
};
|
|
211
|
-
return ratios[ratio];
|
|
212
|
-
};
|
|
213
|
-
var getResponsiveGridClass = (columns) => {
|
|
214
|
-
const responsiveClasses = {
|
|
215
|
-
1: "grid-cols-2 @lg:grid-cols-1",
|
|
216
|
-
2: "grid-cols-2 @lg:grid-cols-2",
|
|
217
|
-
3: "grid-cols-2 @lg:grid-cols-3",
|
|
218
|
-
4: "grid-cols-2 @lg:grid-cols-4",
|
|
219
|
-
5: "grid-cols-2 @lg:grid-cols-5",
|
|
220
|
-
6: "grid-cols-2 @lg:grid-cols-6"
|
|
221
|
-
};
|
|
222
|
-
return responsiveClasses[columns] || "grid-cols-2 @lg:grid-cols-3";
|
|
223
|
-
};
|
|
224
|
-
function UnorderedList({
|
|
225
|
-
items,
|
|
226
|
-
columns,
|
|
227
|
-
gap,
|
|
228
|
-
borderRadius,
|
|
229
|
-
imageAspectRatio,
|
|
230
|
-
showBadge,
|
|
231
|
-
showFavorite,
|
|
232
|
-
padding,
|
|
233
|
-
itemTitleColor,
|
|
234
|
-
itemTitleSize,
|
|
235
|
-
descriptionColor,
|
|
236
|
-
descriptionSize,
|
|
237
|
-
priceColor,
|
|
238
|
-
priceSize,
|
|
239
|
-
originalPriceColor,
|
|
240
|
-
metaTextColor,
|
|
241
|
-
metaTextSize,
|
|
242
|
-
showMetaText
|
|
243
|
-
}) {
|
|
244
|
-
const gridClass = getResponsiveGridClass(columns);
|
|
245
|
-
return /* @__PURE__ */ jsx("div", { className: `grid ${gridClass} gap-${gapValues[gap]}`, children: items.map((item) => {
|
|
246
|
-
const imageUrl = getImageUrl(item);
|
|
247
|
-
const aspectRatioClass = getAspectRatioClass(imageAspectRatio);
|
|
248
|
-
return /* @__PURE__ */ jsxs(
|
|
249
|
-
"div",
|
|
250
|
-
{
|
|
251
|
-
className: `relative rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md`,
|
|
252
|
-
children: [
|
|
253
|
-
showBadge && item.discount && /* @__PURE__ */ jsx(DiscountBadge, { discount: item.discount }),
|
|
254
|
-
showFavorite && /* @__PURE__ */ jsx(FavoriteButton, {}),
|
|
255
|
-
imageUrl && /* @__PURE__ */ jsx("div", { className: `w-full ${aspectRatioClass} overflow-hidden`, children: /* @__PURE__ */ jsx(
|
|
256
|
-
"img",
|
|
257
|
-
{
|
|
258
|
-
src: imageUrl,
|
|
259
|
-
alt: item.title || "Product",
|
|
260
|
-
className: "h-full w-full object-cover"
|
|
261
|
-
}
|
|
262
|
-
) }),
|
|
263
|
-
/* @__PURE__ */ jsx(
|
|
264
|
-
ListItemCardContent,
|
|
265
|
-
{
|
|
266
|
-
item,
|
|
267
|
-
padding,
|
|
268
|
-
itemTitleColor,
|
|
269
|
-
itemTitleSize,
|
|
270
|
-
descriptionColor,
|
|
271
|
-
descriptionSize,
|
|
272
|
-
priceColor,
|
|
273
|
-
priceSize,
|
|
274
|
-
originalPriceColor,
|
|
275
|
-
metaTextColor,
|
|
276
|
-
metaTextSize,
|
|
277
|
-
showMetaText
|
|
278
|
-
}
|
|
279
|
-
)
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
item.id
|
|
283
|
-
);
|
|
284
|
-
}) });
|
|
285
|
-
}
|
|
286
|
-
var SCROLL_ITEM_WIDTH = 300;
|
|
287
|
-
var getImageUrl2 = (item) => {
|
|
288
|
-
return item.imageUrl || item.image;
|
|
289
|
-
};
|
|
290
|
-
var getAspectRatioClass2 = (ratio) => {
|
|
291
|
-
const ratios = {
|
|
292
|
-
square: "aspect-square",
|
|
293
|
-
landscape: "aspect-video",
|
|
294
|
-
portrait: "aspect-[3/4]"
|
|
295
|
-
};
|
|
296
|
-
return ratios[ratio];
|
|
297
|
-
};
|
|
298
|
-
var largeNumberSizes = {
|
|
299
|
-
xs: "8rem",
|
|
300
|
-
sm: "10rem",
|
|
301
|
-
md: "12rem",
|
|
302
|
-
lg: "14rem",
|
|
303
|
-
xl: "16rem",
|
|
304
|
-
"2xl": "20rem"
|
|
305
|
-
};
|
|
306
|
-
function OrderedList({
|
|
307
|
-
items,
|
|
308
|
-
scrollAxis,
|
|
309
|
-
gap,
|
|
310
|
-
borderRadius,
|
|
311
|
-
imageAspectRatio,
|
|
312
|
-
showBadge,
|
|
313
|
-
showFavorite,
|
|
314
|
-
padding,
|
|
315
|
-
itemTitleColor,
|
|
316
|
-
itemTitleSize,
|
|
317
|
-
descriptionColor,
|
|
318
|
-
descriptionSize,
|
|
319
|
-
priceColor,
|
|
320
|
-
priceSize,
|
|
321
|
-
originalPriceColor,
|
|
322
|
-
metaTextColor,
|
|
323
|
-
metaTextSize,
|
|
324
|
-
numberColor,
|
|
325
|
-
numberSize,
|
|
326
|
-
showMetaText
|
|
327
|
-
}) {
|
|
328
|
-
const scrollContainerRef = useRef(null);
|
|
329
|
-
const scrollByAmount = (direction) => {
|
|
330
|
-
const container = scrollContainerRef.current;
|
|
331
|
-
if (!container) return;
|
|
332
|
-
const computedGap = parseFloat(getComputedStyle(container).gap) || 0;
|
|
333
|
-
const scrollAmount = SCROLL_ITEM_WIDTH + computedGap;
|
|
334
|
-
container.scrollTo({
|
|
335
|
-
left: container.scrollLeft + (direction === "next" ? scrollAmount : -scrollAmount),
|
|
336
|
-
behavior: "smooth"
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
const contentProps = {
|
|
340
|
-
padding,
|
|
341
|
-
itemTitleColor,
|
|
342
|
-
itemTitleSize,
|
|
343
|
-
descriptionColor,
|
|
344
|
-
descriptionSize,
|
|
345
|
-
priceColor,
|
|
346
|
-
priceSize,
|
|
347
|
-
originalPriceColor,
|
|
348
|
-
metaTextColor,
|
|
349
|
-
metaTextSize,
|
|
350
|
-
showMetaText
|
|
351
|
-
};
|
|
352
|
-
if (scrollAxis === "horizontal") {
|
|
353
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
354
|
-
/* @__PURE__ */ jsx(
|
|
355
|
-
"div",
|
|
356
|
-
{
|
|
357
|
-
ref: scrollContainerRef,
|
|
358
|
-
className: `flex gap-${gapValues[gap]} scrollbar-hide overflow-x-auto overflow-y-hidden scroll-smooth`,
|
|
359
|
-
children: items.map((item, index) => {
|
|
360
|
-
const imageUrl = getImageUrl2(item);
|
|
361
|
-
const aspectRatioClass = getAspectRatioClass2(imageAspectRatio);
|
|
362
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative w-[300px] flex-shrink-0", children: [
|
|
363
|
-
/* @__PURE__ */ jsx(
|
|
364
|
-
"div",
|
|
365
|
-
{
|
|
366
|
-
className: `absolute top-0 left-0 text-${numberColor} z-0 leading-none font-bold opacity-20`,
|
|
367
|
-
style: { fontSize: largeNumberSizes[numberSize] },
|
|
368
|
-
children: index + 1
|
|
369
|
-
}
|
|
370
|
-
),
|
|
371
|
-
/* @__PURE__ */ jsxs(
|
|
372
|
-
"div",
|
|
373
|
-
{
|
|
374
|
-
className: `relative z-10 ml-20 rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md`,
|
|
375
|
-
children: [
|
|
376
|
-
showBadge && item.discount && /* @__PURE__ */ jsx(DiscountBadge, { discount: item.discount }),
|
|
377
|
-
showFavorite && /* @__PURE__ */ jsx(FavoriteButton, {}),
|
|
378
|
-
imageUrl && /* @__PURE__ */ jsx(
|
|
379
|
-
"div",
|
|
380
|
-
{
|
|
381
|
-
className: `w-full ${aspectRatioClass} overflow-hidden`,
|
|
382
|
-
children: /* @__PURE__ */ jsx(
|
|
383
|
-
"img",
|
|
384
|
-
{
|
|
385
|
-
src: imageUrl,
|
|
386
|
-
alt: item.title || "Product",
|
|
387
|
-
className: "h-full w-full object-cover"
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
),
|
|
392
|
-
/* @__PURE__ */ jsx(ListItemCardContent, { item, ...contentProps })
|
|
393
|
-
]
|
|
394
|
-
}
|
|
395
|
-
)
|
|
396
|
-
] }, item.id);
|
|
397
|
-
})
|
|
398
|
-
}
|
|
399
|
-
),
|
|
400
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 top-1/2 z-20 flex w-full -translate-y-1/2 items-center justify-between px-8", children: /* @__PURE__ */ jsx(
|
|
401
|
-
ScrollArrows,
|
|
402
|
-
{
|
|
403
|
-
onPrevious: () => scrollByAmount("prev"),
|
|
404
|
-
onNext: () => scrollByAmount("next")
|
|
405
|
-
}
|
|
406
|
-
) })
|
|
407
|
-
] });
|
|
408
|
-
}
|
|
409
|
-
if (scrollAxis === "vertical") {
|
|
410
|
-
return /* @__PURE__ */ jsx("div", { className: `flex flex-col gap-${gapValues[gap]}`, children: items.map((item, index) => {
|
|
411
|
-
const imageUrl = getImageUrl2(item);
|
|
412
|
-
return /* @__PURE__ */ jsxs(
|
|
413
|
-
"div",
|
|
414
|
-
{
|
|
415
|
-
className: `relative flex gap-${gapValues[gap]} rounded-${borderRadius} bg-background overflow-hidden shadow-sm transition-shadow hover:shadow-md ${`p-${padding}`}`,
|
|
416
|
-
children: [
|
|
417
|
-
/* @__PURE__ */ jsx(
|
|
418
|
-
"div",
|
|
419
|
-
{
|
|
420
|
-
className: `flex-shrink-0 text-${numberColor} text-${numberSize === "md" ? "base" : numberSize} flex w-16 items-center justify-center font-bold`,
|
|
421
|
-
children: index + 1
|
|
422
|
-
}
|
|
423
|
-
),
|
|
424
|
-
imageUrl && /* @__PURE__ */ jsx("div", { className: "h-24 w-24 flex-shrink-0 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
|
|
425
|
-
"img",
|
|
426
|
-
{
|
|
427
|
-
src: imageUrl,
|
|
428
|
-
alt: item.title || "Product",
|
|
429
|
-
className: "h-full w-full object-cover"
|
|
430
|
-
}
|
|
431
|
-
) }),
|
|
432
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx(ListItemCardContent, { item, ...contentProps }) }),
|
|
433
|
-
showBadge && item.discount && /* @__PURE__ */ jsx("div", { className: "bg-destructive text-destructive-foreground absolute top-2 right-2 rounded-md px-2 py-1 text-xs font-bold", children: getStringValue(item.discount) }),
|
|
434
|
-
showFavorite && /* @__PURE__ */ jsx(FavoriteButton, { className: "bg-background/80 hover:bg-background absolute top-2 right-12 rounded-full p-2 backdrop-blur-sm transition-colors" })
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
|
-
item.id
|
|
438
|
-
);
|
|
439
|
-
}) });
|
|
440
|
-
}
|
|
441
|
-
return null;
|
|
442
|
-
}
|
|
443
|
-
var DEFAULT_ITEMS = [];
|
|
444
|
-
function getFeaturedAssetUrl(value) {
|
|
445
|
-
if (!value) return void 0;
|
|
446
|
-
if (typeof value === "string") {
|
|
447
|
-
const isVideo = /\.(mp4|webm|ogg|mov)$/i.test(value);
|
|
448
|
-
return { url: value, isVideo };
|
|
449
|
-
}
|
|
450
|
-
if (typeof value === "object") {
|
|
451
|
-
const videoUrl = value.videoUrl || value.video_url || value.url;
|
|
452
|
-
if (videoUrl && /\.(mp4|webm|ogg|mov)$/i.test(videoUrl)) {
|
|
453
|
-
return { url: videoUrl, isVideo: true };
|
|
454
|
-
}
|
|
455
|
-
const imageUrl = value.imageUrl || value.image_url || value.url;
|
|
456
|
-
if (imageUrl) {
|
|
457
|
-
return { url: imageUrl, isVideo: false };
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return void 0;
|
|
461
|
-
}
|
|
462
|
-
function ListWidget({
|
|
463
|
-
listType = "unordered",
|
|
464
|
-
scrollAxis = "horizontal",
|
|
465
|
-
titleEnabled = true,
|
|
466
|
-
title,
|
|
467
|
-
items = DEFAULT_ITEMS,
|
|
468
|
-
titleColor = "foreground",
|
|
469
|
-
titleSize = "lg",
|
|
470
|
-
itemTitleColor = "foreground",
|
|
471
|
-
itemTitleSize = "sm",
|
|
472
|
-
descriptionColor = "foreground",
|
|
473
|
-
descriptionSize = "sm",
|
|
474
|
-
priceColor = "foreground",
|
|
475
|
-
priceSize = "md",
|
|
476
|
-
originalPriceColor = "muted",
|
|
477
|
-
metaTextColor = "muted",
|
|
478
|
-
metaTextSize = "xs",
|
|
479
|
-
numberColor = "primary",
|
|
480
|
-
numberSize = "2xl",
|
|
481
|
-
borderRadius = "md",
|
|
482
|
-
padding = 4,
|
|
483
|
-
gap = "md",
|
|
484
|
-
columns = 3,
|
|
485
|
-
imageAspectRatio = "square",
|
|
486
|
-
background = { type: "solid", color: "background" },
|
|
487
|
-
showBadge = true,
|
|
488
|
-
showFavorite = true,
|
|
489
|
-
showMetaText = true,
|
|
490
|
-
maxItems = 12,
|
|
491
|
-
showFeaturedSection = false,
|
|
492
|
-
featuredAsset,
|
|
493
|
-
featuredTitle,
|
|
494
|
-
featuredSubtitle,
|
|
495
|
-
featuredButtonText,
|
|
496
|
-
featuredButtonUrl,
|
|
497
|
-
featuredSubtitleColor = "background",
|
|
498
|
-
featuredSubtitleSize = "md",
|
|
499
|
-
className,
|
|
500
|
-
...props
|
|
501
|
-
}) {
|
|
502
|
-
const displayItems = maxItems ? items.slice(0, maxItems) : items;
|
|
503
|
-
const hasItems = displayItems.length > 0;
|
|
504
|
-
const itemStyleProps = {
|
|
505
|
-
padding,
|
|
506
|
-
itemTitleColor,
|
|
507
|
-
itemTitleSize,
|
|
508
|
-
descriptionColor,
|
|
509
|
-
descriptionSize,
|
|
510
|
-
priceColor,
|
|
511
|
-
priceSize,
|
|
512
|
-
originalPriceColor,
|
|
513
|
-
metaTextColor,
|
|
514
|
-
metaTextSize,
|
|
515
|
-
showMetaText,
|
|
516
|
-
showBadge,
|
|
517
|
-
showFavorite,
|
|
518
|
-
borderRadius,
|
|
519
|
-
imageAspectRatio,
|
|
520
|
-
gap
|
|
521
|
-
};
|
|
522
|
-
const hasFeaturedAsset = getFeaturedAssetUrl(featuredAsset);
|
|
523
|
-
const shouldShowFeaturedSection = showFeaturedSection && hasFeaturedAsset;
|
|
524
|
-
const backgroundColor = background.color || "background";
|
|
525
|
-
const backgroundImage = (background.resource?.image_url || background.resource?.imageUrl) && background.type === "image" ? `url(${background.resource.image_url || background.resource.imageUrl})` : "none";
|
|
526
|
-
return /* @__PURE__ */ jsxs(
|
|
527
|
-
"div",
|
|
528
|
-
{
|
|
529
|
-
className: `@container bg-${backgroundColor} ${className}`,
|
|
530
|
-
style: { backgroundImage },
|
|
531
|
-
...props,
|
|
532
|
-
children: [
|
|
533
|
-
titleEnabled && title && /* @__PURE__ */ jsx(
|
|
534
|
-
"h2",
|
|
535
|
-
{
|
|
536
|
-
className: `text-${titleColor} text-${titleSize === "md" ? "base" : titleSize} mb-6 font-bold`,
|
|
537
|
-
children: title
|
|
538
|
-
}
|
|
539
|
-
),
|
|
540
|
-
!hasItems ? /* @__PURE__ */ jsx("div", { className: "border-border bg-muted flex items-center justify-center rounded-md border-2 border-dashed py-12 text-center", children: /* @__PURE__ */ jsx("p", { className: "text-muted", children: "No items to display" }) }) : shouldShowFeaturedSection ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 @lg:flex-row @lg:gap-6", children: [
|
|
541
|
-
/* @__PURE__ */ jsx("div", { className: "w-full @lg:w-[45%]", children: /* @__PURE__ */ jsx(
|
|
542
|
-
FeaturedSection,
|
|
543
|
-
{
|
|
544
|
-
borderRadius,
|
|
545
|
-
titleSize,
|
|
546
|
-
featuredTitle,
|
|
547
|
-
featuredSubtitle,
|
|
548
|
-
featuredButtonText,
|
|
549
|
-
featuredButtonUrl,
|
|
550
|
-
featuredSubtitleColor,
|
|
551
|
-
featuredSubtitleSize,
|
|
552
|
-
asset: hasFeaturedAsset
|
|
553
|
-
}
|
|
554
|
-
) }),
|
|
555
|
-
/* @__PURE__ */ jsx("div", { className: "w-full @lg:w-[55%]", children: listType === "unordered" ? /* @__PURE__ */ jsx(
|
|
556
|
-
UnorderedList,
|
|
557
|
-
{
|
|
558
|
-
items: displayItems,
|
|
559
|
-
columns,
|
|
560
|
-
...itemStyleProps
|
|
561
|
-
}
|
|
562
|
-
) : /* @__PURE__ */ jsx(
|
|
563
|
-
OrderedList,
|
|
564
|
-
{
|
|
565
|
-
items: displayItems,
|
|
566
|
-
scrollAxis,
|
|
567
|
-
numberColor,
|
|
568
|
-
numberSize,
|
|
569
|
-
...itemStyleProps
|
|
570
|
-
}
|
|
571
|
-
) })
|
|
572
|
-
] }) : listType === "unordered" ? /* @__PURE__ */ jsx(
|
|
573
|
-
UnorderedList,
|
|
574
|
-
{
|
|
575
|
-
items: displayItems,
|
|
576
|
-
columns,
|
|
577
|
-
...itemStyleProps
|
|
578
|
-
}
|
|
579
|
-
) : /* @__PURE__ */ jsx(
|
|
580
|
-
OrderedList,
|
|
581
|
-
{
|
|
582
|
-
items: displayItems,
|
|
583
|
-
scrollAxis,
|
|
584
|
-
numberColor,
|
|
585
|
-
numberSize,
|
|
586
|
-
...itemStyleProps
|
|
587
|
-
}
|
|
588
|
-
)
|
|
589
|
-
]
|
|
590
|
-
}
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
var listWidgetPropertySchema = {
|
|
594
|
-
widgetType: "ListWidget",
|
|
595
|
-
displayName: "List",
|
|
596
|
-
tabsConfig: [
|
|
597
|
-
{ id: "styling", label: "Styling" },
|
|
598
|
-
{ id: "data", label: "Data" }
|
|
599
|
-
],
|
|
600
|
-
dataSourceTargetProps: ["items"],
|
|
601
|
-
fields: [
|
|
602
|
-
// Styling tab - Title group
|
|
603
|
-
{
|
|
604
|
-
key: "titleEnabled",
|
|
605
|
-
label: "Widget Title",
|
|
606
|
-
type: "boolean",
|
|
607
|
-
description: "Enable the title displayed above the list",
|
|
608
|
-
defaultValue: true,
|
|
609
|
-
tab: "styling",
|
|
610
|
-
group: "Title"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
key: "title",
|
|
614
|
-
label: "Title",
|
|
615
|
-
type: "text",
|
|
616
|
-
description: "Header text for the list",
|
|
617
|
-
defaultValue: "List",
|
|
618
|
-
tab: "styling",
|
|
619
|
-
group: "Title",
|
|
620
|
-
requiresKeyToBeTrue: "titleEnabled"
|
|
621
|
-
},
|
|
622
|
-
getFontSizeField({
|
|
623
|
-
key: "titleSize",
|
|
624
|
-
label: "Title Font Size",
|
|
625
|
-
description: "Size of the list title",
|
|
626
|
-
defaultValue: "xl",
|
|
627
|
-
tab: "styling",
|
|
628
|
-
group: "Title",
|
|
629
|
-
requiresKeyToBeTrue: "titleEnabled"
|
|
630
|
-
}),
|
|
631
|
-
getColorField({
|
|
632
|
-
key: "titleColor",
|
|
633
|
-
label: "Title Color",
|
|
634
|
-
description: "Color for the list title",
|
|
635
|
-
defaultValue: "foreground",
|
|
636
|
-
tab: "styling",
|
|
637
|
-
group: "Title",
|
|
638
|
-
requiresKeyToBeTrue: "titleEnabled"
|
|
639
|
-
}),
|
|
640
|
-
// Styling tab - Design group
|
|
641
|
-
getPaddingField({
|
|
642
|
-
key: "padding",
|
|
643
|
-
label: "Padding",
|
|
644
|
-
description: "Padding inside the container",
|
|
645
|
-
defaultValue: 4,
|
|
646
|
-
tab: "styling",
|
|
647
|
-
group: "Design"
|
|
648
|
-
}),
|
|
649
|
-
getBorderRadiusField({
|
|
650
|
-
key: "borderRadius",
|
|
651
|
-
label: "Border Radius",
|
|
652
|
-
description: "Rounded corners for the container and images",
|
|
653
|
-
defaultValue: "md",
|
|
654
|
-
tab: "styling",
|
|
655
|
-
group: "Design"
|
|
656
|
-
}),
|
|
657
|
-
getGapField({
|
|
658
|
-
key: "gap",
|
|
659
|
-
label: "Gap",
|
|
660
|
-
description: "Spacing between items",
|
|
661
|
-
defaultValue: "md",
|
|
662
|
-
tab: "styling",
|
|
663
|
-
group: "Design"
|
|
664
|
-
}),
|
|
665
|
-
{
|
|
666
|
-
type: "background",
|
|
667
|
-
defaultValue: "background",
|
|
668
|
-
key: "background",
|
|
669
|
-
label: "Background",
|
|
670
|
-
description: "Background color or image for the widget",
|
|
671
|
-
tab: "styling",
|
|
672
|
-
group: "Design"
|
|
673
|
-
},
|
|
674
|
-
// Styling tab - List Configuration group
|
|
675
|
-
{
|
|
676
|
-
key: "listType",
|
|
677
|
-
label: "List Type",
|
|
678
|
-
type: "select",
|
|
679
|
-
description: "Type of list layout",
|
|
680
|
-
defaultValue: "unordered",
|
|
681
|
-
options: [
|
|
682
|
-
{ label: "Unordered (Grid)", value: "unordered" },
|
|
683
|
-
{ label: "Ordered (Numbered)", value: "ordered" }
|
|
684
|
-
],
|
|
685
|
-
tab: "styling",
|
|
686
|
-
group: "List Configuration"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
key: "maxItems",
|
|
690
|
-
label: "Max Items",
|
|
691
|
-
type: "number",
|
|
692
|
-
description: "Maximum number of items to display",
|
|
693
|
-
min: 1,
|
|
694
|
-
max: 100,
|
|
695
|
-
step: 1,
|
|
696
|
-
defaultValue: 12,
|
|
697
|
-
tab: "styling",
|
|
698
|
-
group: "List Configuration"
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
key: "imageAspectRatio",
|
|
702
|
-
label: "Image Aspect Ratio",
|
|
703
|
-
type: "buttonGroup",
|
|
704
|
-
description: "Aspect ratio for item images",
|
|
705
|
-
defaultValue: "square",
|
|
706
|
-
options: [
|
|
707
|
-
{ label: "Square", value: "square" },
|
|
708
|
-
{ label: "Landscape", value: "landscape" },
|
|
709
|
-
{ label: "Portrait", value: "portrait" }
|
|
710
|
-
],
|
|
711
|
-
tab: "styling",
|
|
712
|
-
group: "List Configuration"
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
key: "showBadge",
|
|
716
|
-
label: "Show Discount Badge",
|
|
717
|
-
type: "boolean",
|
|
718
|
-
description: "Display discount badge on images",
|
|
719
|
-
defaultValue: true,
|
|
720
|
-
tab: "styling",
|
|
721
|
-
group: "List Configuration"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
key: "showFavorite",
|
|
725
|
-
label: "Show Favorite Icon",
|
|
726
|
-
type: "boolean",
|
|
727
|
-
description: "Display favorite/heart icon on images",
|
|
728
|
-
defaultValue: true,
|
|
729
|
-
tab: "styling",
|
|
730
|
-
group: "List Configuration"
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
key: "showMetaText",
|
|
734
|
-
label: "Show QV/CV Text",
|
|
735
|
-
type: "boolean",
|
|
736
|
-
description: "Display QV and CV values",
|
|
737
|
-
defaultValue: true,
|
|
738
|
-
tab: "styling",
|
|
739
|
-
group: "List Configuration"
|
|
740
|
-
},
|
|
741
|
-
// Styling tab - Unordered List Configuration
|
|
742
|
-
{
|
|
743
|
-
key: "columns",
|
|
744
|
-
label: "Grid Columns",
|
|
745
|
-
type: "number",
|
|
746
|
-
description: "Number of columns in the grid (unordered list only)",
|
|
747
|
-
min: 1,
|
|
748
|
-
max: 6,
|
|
749
|
-
step: 1,
|
|
750
|
-
defaultValue: 3,
|
|
751
|
-
tab: "styling",
|
|
752
|
-
group: "Unordered List Configuration",
|
|
753
|
-
requiresKeyValue: { key: "listType", value: "unordered" }
|
|
754
|
-
},
|
|
755
|
-
// Styling tab - Ordered List Configuration
|
|
756
|
-
{
|
|
757
|
-
key: "scrollAxis",
|
|
758
|
-
label: "Scroll Direction",
|
|
759
|
-
type: "select",
|
|
760
|
-
description: "Direction for ordered list scrolling",
|
|
761
|
-
defaultValue: "horizontal",
|
|
762
|
-
options: [
|
|
763
|
-
{ label: "Horizontal", value: "horizontal" },
|
|
764
|
-
{ label: "Vertical", value: "vertical" }
|
|
765
|
-
],
|
|
766
|
-
tab: "styling",
|
|
767
|
-
group: "Ordered List Configuration",
|
|
768
|
-
requiresKeyValue: { key: "listType", value: "ordered" }
|
|
769
|
-
},
|
|
770
|
-
getColorField({
|
|
771
|
-
key: "numberColor",
|
|
772
|
-
label: "Number Color",
|
|
773
|
-
description: "Color for ordered list numbers",
|
|
774
|
-
defaultValue: "primary",
|
|
775
|
-
tab: "styling",
|
|
776
|
-
group: "Ordered List Configuration",
|
|
777
|
-
requiresKeyValue: { key: "listType", value: "ordered" }
|
|
778
|
-
}),
|
|
779
|
-
getFontSizeField({
|
|
780
|
-
key: "numberSize",
|
|
781
|
-
label: "Number Font Size",
|
|
782
|
-
description: "Size of ordered list numbers",
|
|
783
|
-
defaultValue: "2xl",
|
|
784
|
-
tab: "styling",
|
|
785
|
-
group: "Ordered List Configuration",
|
|
786
|
-
requiresKeyValue: { key: "listType", value: "ordered" }
|
|
787
|
-
}),
|
|
788
|
-
// Styling tab - Item Styling group
|
|
789
|
-
getColorField({
|
|
790
|
-
key: "itemTitleColor",
|
|
791
|
-
label: "Item Title Color",
|
|
792
|
-
description: "Color for item titles",
|
|
793
|
-
defaultValue: "foreground",
|
|
794
|
-
tab: "styling",
|
|
795
|
-
group: "Item Styling"
|
|
796
|
-
}),
|
|
797
|
-
getFontSizeField({
|
|
798
|
-
key: "itemTitleSize",
|
|
799
|
-
label: "Item Title Font Size",
|
|
800
|
-
description: "Size of item titles",
|
|
801
|
-
defaultValue: "sm",
|
|
802
|
-
tab: "styling",
|
|
803
|
-
group: "Item Styling"
|
|
804
|
-
}),
|
|
805
|
-
{
|
|
806
|
-
key: "separator2",
|
|
807
|
-
type: "separator",
|
|
808
|
-
label: "Separator",
|
|
809
|
-
tab: "styling",
|
|
810
|
-
group: "Item Styling"
|
|
811
|
-
},
|
|
812
|
-
getColorField({
|
|
813
|
-
key: "descriptionColor",
|
|
814
|
-
label: "Description Color",
|
|
815
|
-
description: "Color for descriptions",
|
|
816
|
-
defaultValue: "foreground",
|
|
817
|
-
tab: "styling",
|
|
818
|
-
group: "Item Styling"
|
|
819
|
-
}),
|
|
820
|
-
getFontSizeField({
|
|
821
|
-
key: "descriptionSize",
|
|
822
|
-
label: "Description Font Size",
|
|
823
|
-
description: "Size of descriptions",
|
|
824
|
-
defaultValue: "sm",
|
|
825
|
-
tab: "styling",
|
|
826
|
-
group: "Item Styling"
|
|
827
|
-
}),
|
|
828
|
-
{
|
|
829
|
-
key: "separator3",
|
|
830
|
-
type: "separator",
|
|
831
|
-
label: "Separator",
|
|
832
|
-
tab: "styling",
|
|
833
|
-
group: "Item Styling"
|
|
834
|
-
},
|
|
835
|
-
getColorField({
|
|
836
|
-
key: "priceColor",
|
|
837
|
-
label: "Price Color",
|
|
838
|
-
description: "Color for prices",
|
|
839
|
-
defaultValue: "foreground",
|
|
840
|
-
tab: "styling",
|
|
841
|
-
group: "Item Styling"
|
|
842
|
-
}),
|
|
843
|
-
getFontSizeField({
|
|
844
|
-
key: "priceSize",
|
|
845
|
-
label: "Price Font Size",
|
|
846
|
-
description: "Size of prices",
|
|
847
|
-
defaultValue: "md",
|
|
848
|
-
tab: "styling",
|
|
849
|
-
group: "Item Styling"
|
|
850
|
-
}),
|
|
851
|
-
getColorField({
|
|
852
|
-
key: "originalPriceColor",
|
|
853
|
-
label: "Original Price Color",
|
|
854
|
-
description: "Color for crossed-out original prices",
|
|
855
|
-
defaultValue: "foreground",
|
|
856
|
-
tab: "styling",
|
|
857
|
-
group: "Item Styling"
|
|
858
|
-
}),
|
|
859
|
-
{
|
|
860
|
-
key: "separator4",
|
|
861
|
-
type: "separator",
|
|
862
|
-
label: "Separator",
|
|
863
|
-
tab: "styling",
|
|
864
|
-
group: "Item Styling"
|
|
865
|
-
},
|
|
866
|
-
getColorField({
|
|
867
|
-
key: "metaTextColor",
|
|
868
|
-
label: "Meta Text Color",
|
|
869
|
-
description: "Color for QV/CV text",
|
|
870
|
-
defaultValue: "foreground",
|
|
871
|
-
tab: "styling",
|
|
872
|
-
group: "Item Styling"
|
|
873
|
-
}),
|
|
874
|
-
getFontSizeField({
|
|
875
|
-
key: "metaTextSize",
|
|
876
|
-
label: "Meta Text Font Size",
|
|
877
|
-
description: "Size of QV/CV text",
|
|
878
|
-
defaultValue: "xs",
|
|
879
|
-
tab: "styling",
|
|
880
|
-
group: "Item Styling"
|
|
881
|
-
}),
|
|
882
|
-
// Styling tab - Featured Section group
|
|
883
|
-
{
|
|
884
|
-
key: "showFeaturedSection",
|
|
885
|
-
label: "Show Featured Section",
|
|
886
|
-
type: "boolean",
|
|
887
|
-
description: "Display a featured content section",
|
|
888
|
-
defaultValue: false,
|
|
889
|
-
tab: "styling",
|
|
890
|
-
group: "Featured Section"
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
key: "featuredAsset",
|
|
894
|
-
label: "Featured Asset",
|
|
895
|
-
type: "resource",
|
|
896
|
-
description: "Select a single image or video resource for the featured section",
|
|
897
|
-
tab: "styling",
|
|
898
|
-
group: "Featured Section",
|
|
899
|
-
allowedTypes: ["Medium"],
|
|
900
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
key: "featuredTitle",
|
|
904
|
-
label: "Featured Title",
|
|
905
|
-
type: "text",
|
|
906
|
-
description: "Title for featured section",
|
|
907
|
-
tab: "styling",
|
|
908
|
-
group: "Featured Section",
|
|
909
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
key: "featuredSubtitle",
|
|
913
|
-
label: "Featured Subtitle",
|
|
914
|
-
type: "text",
|
|
915
|
-
description: "Subtitle for featured section",
|
|
916
|
-
tab: "styling",
|
|
917
|
-
group: "Featured Section",
|
|
918
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
key: "featuredButtonText",
|
|
922
|
-
label: "Featured Button Text",
|
|
923
|
-
type: "text",
|
|
924
|
-
description: "Text for featured section button",
|
|
925
|
-
tab: "styling",
|
|
926
|
-
group: "Featured Section",
|
|
927
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
key: "featuredButtonUrl",
|
|
931
|
-
label: "Featured Button URL",
|
|
932
|
-
type: "text",
|
|
933
|
-
description: "URL for featured section button",
|
|
934
|
-
tab: "styling",
|
|
935
|
-
group: "Featured Section",
|
|
936
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
937
|
-
},
|
|
938
|
-
getColorField({
|
|
939
|
-
key: "featuredSubtitleColor",
|
|
940
|
-
label: "Featured Subtitle Color",
|
|
941
|
-
description: "Color for featured subtitle",
|
|
942
|
-
defaultValue: "background",
|
|
943
|
-
tab: "styling",
|
|
944
|
-
group: "Featured Section",
|
|
945
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
946
|
-
}),
|
|
947
|
-
getFontSizeField({
|
|
948
|
-
key: "featuredSubtitleSize",
|
|
949
|
-
label: "Featured Subtitle Font Size",
|
|
950
|
-
description: "Size of featured subtitle",
|
|
951
|
-
defaultValue: "md",
|
|
952
|
-
tab: "styling",
|
|
953
|
-
group: "Featured Section",
|
|
954
|
-
requiresKeyToBeTrue: "showFeaturedSection"
|
|
955
|
-
}),
|
|
956
|
-
// Data tab - Data Configuration
|
|
957
|
-
{
|
|
958
|
-
key: "dataSource",
|
|
959
|
-
label: "Data Source",
|
|
960
|
-
type: "dataSource",
|
|
961
|
-
description: "",
|
|
962
|
-
tab: "data",
|
|
963
|
-
group: "Data Configuration"
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
itemConfigSchema: {
|
|
967
|
-
description: "Configure settings for this list item",
|
|
968
|
-
fields: [
|
|
969
|
-
{
|
|
970
|
-
key: "title",
|
|
971
|
-
label: "Custom Title",
|
|
972
|
-
type: "text",
|
|
973
|
-
description: "Override the item's title"
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
key: "description",
|
|
977
|
-
label: "Custom Description",
|
|
978
|
-
type: "textarea",
|
|
979
|
-
description: "Override the item's description",
|
|
980
|
-
rows: 3
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
key: "price",
|
|
984
|
-
label: "Price",
|
|
985
|
-
type: "text",
|
|
986
|
-
description: "Current price"
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
key: "originalPrice",
|
|
990
|
-
label: "Original Price",
|
|
991
|
-
type: "text",
|
|
992
|
-
description: "Original price (will be crossed out)"
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
key: "discount",
|
|
996
|
-
label: "Discount Badge",
|
|
997
|
-
type: "text",
|
|
998
|
-
description: "Discount text (e.g., '40% Off')"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
key: "qv",
|
|
1002
|
-
label: "QV Value",
|
|
1003
|
-
type: "text",
|
|
1004
|
-
description: "Qualifying Volume value"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
key: "cv",
|
|
1008
|
-
label: "CV Value",
|
|
1009
|
-
type: "text",
|
|
1010
|
-
description: "Commission Volume value"
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
key: "image",
|
|
1014
|
-
label: "Image URL",
|
|
1015
|
-
type: "text",
|
|
1016
|
-
description: "Custom image URL for this item"
|
|
1017
|
-
}
|
|
1018
|
-
]
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
export { ListWidget, listWidgetPropertySchema };
|
|
1023
|
-
//# sourceMappingURL=chunk-HDUFHTQC.js.map
|
|
1024
|
-
//# sourceMappingURL=chunk-HDUFHTQC.js.map
|