seppia 0.1.0 → 0.3.0
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/README.md +85 -60
- package/dist/blocks/ai-chat.cjs +19 -0
- package/dist/blocks/ai-chat.d.cts +1 -0
- package/dist/blocks/ai-chat.d.ts +1 -0
- package/dist/blocks/ai-chat.js +10 -0
- package/dist/blocks/app-shell.cjs +49 -0
- package/dist/blocks/app-shell.d.cts +1 -0
- package/dist/blocks/app-shell.d.ts +1 -0
- package/dist/blocks/app-shell.js +16 -0
- package/dist/blocks/auth.cjs +58 -0
- package/dist/blocks/auth.d.cts +1 -0
- package/dist/blocks/auth.d.ts +1 -0
- package/dist/blocks/auth.js +13 -0
- package/dist/blocks/dashboard.cjs +23 -0
- package/dist/blocks/dashboard.d.cts +1 -0
- package/dist/blocks/dashboard.d.ts +1 -0
- package/dist/blocks/dashboard.js +10 -0
- package/dist/blocks/data-table.cjs +29 -0
- package/dist/blocks/data-table.d.cts +1 -0
- package/dist/blocks/data-table.d.ts +1 -0
- package/dist/blocks/data-table.js +20 -0
- package/dist/blocks/forms.cjs +33 -0
- package/dist/blocks/forms.d.cts +1 -0
- package/dist/blocks/forms.d.ts +1 -0
- package/dist/blocks/forms.js +16 -0
- package/dist/blocks/kanban.cjs +16 -0
- package/dist/blocks/kanban.d.cts +1 -0
- package/dist/blocks/kanban.d.ts +1 -0
- package/dist/blocks/kanban.js +7 -0
- package/dist/blocks/modals.cjs +33 -0
- package/dist/blocks/modals.d.cts +1 -0
- package/dist/blocks/modals.d.ts +1 -0
- package/dist/blocks/modals.js +16 -0
- package/dist/blocks/notifications.cjs +37 -0
- package/dist/blocks/notifications.d.cts +1 -0
- package/dist/blocks/notifications.d.ts +1 -0
- package/dist/blocks/notifications.js +16 -0
- package/dist/blocks/permissions.cjs +21 -0
- package/dist/blocks/permissions.d.cts +1 -0
- package/dist/blocks/permissions.d.ts +1 -0
- package/dist/blocks/permissions.js +12 -0
- package/dist/blocks/scheduling.cjs +24 -0
- package/dist/blocks/scheduling.d.cts +1 -0
- package/dist/blocks/scheduling.d.ts +1 -0
- package/dist/blocks/scheduling.js +7 -0
- package/dist/chunk-22XE2ZSK.js +115 -0
- package/dist/{chunk-T7AMVHIB.js → chunk-2AS3PZ62.js} +10 -9
- package/dist/{chunk-VHXWP5OX.cjs → chunk-2DW7PF2P.cjs} +22 -21
- package/dist/chunk-2HMUVVUR.cjs +45 -0
- package/dist/chunk-2IBDXUBG.js +2 -0
- package/dist/chunk-2L7GUYB2.js +152 -0
- package/dist/{chunk-AFGJQET4.js → chunk-2MX7EYXA.js} +16 -15
- package/dist/chunk-2UB2HKMF.cjs +131 -0
- package/dist/chunk-2YB44UOW.js +2 -0
- package/dist/chunk-32OCNZWB.js +2 -0
- package/dist/chunk-3BC4NA2C.cjs +126 -0
- package/dist/chunk-3ENS37RT.cjs +373 -0
- package/dist/{chunk-4YGBUMQC.js → chunk-3FLWYYDS.js} +13 -12
- package/dist/{chunk-EUQ6BCML.cjs → chunk-3GGOAJIG.cjs} +16 -15
- package/dist/chunk-3HME5VXL.cjs +3 -0
- package/dist/chunk-3S3MBTXC.cjs +3 -0
- package/dist/chunk-3WWOK2IV.cjs +104 -0
- package/dist/{chunk-6EABLOB7.js → chunk-3YOPOWUB.js} +9 -8
- package/dist/chunk-3Z5M2WVW.cjs +3 -0
- package/dist/chunk-43N5QL6C.cjs +3 -0
- package/dist/{chunk-WGFJLFTP.js → chunk-4C7VKLTU.js} +8 -1
- package/dist/chunk-4GLMIQUX.js +275 -0
- package/dist/{chunk-XLZPYDNI.js → chunk-4MTRY6D2.js} +15 -14
- package/dist/{chunk-NN3HMY7H.cjs → chunk-4Q6LY3TN.cjs} +24 -25
- package/dist/chunk-4STGAE4T.js +2 -0
- package/dist/chunk-4YXWES4C.cjs +81 -0
- package/dist/{chunk-GJ6WO63L.js → chunk-54SA4YJ7.js} +14 -13
- package/dist/chunk-5A46EAUE.js +42 -0
- package/dist/chunk-5CKY3233.js +2 -0
- package/dist/{chunk-QPWVBVDC.cjs → chunk-5IGY4W4T.cjs} +20 -19
- package/dist/chunk-5KNKWEIE.cjs +564 -0
- package/dist/chunk-5OOVB2S5.cjs +244 -0
- package/dist/{chunk-6FF73V3S.js → chunk-64WDKM52.js} +8 -7
- package/dist/chunk-6CZIXWOU.js +2 -0
- package/dist/{chunk-CCDDQHCS.js → chunk-6HPGI7VU.js} +13 -12
- package/dist/chunk-6HZLPZ5A.js +146 -0
- package/dist/chunk-6IH2PZO5.js +122 -0
- package/dist/{chunk-UFU5S3LK.cjs → chunk-6JZYZDCV.cjs} +11 -10
- package/dist/{chunk-ZF5HY2K4.cjs → chunk-6K3RXUKZ.cjs} +17 -16
- package/dist/chunk-6MJYJC3V.cjs +3 -0
- package/dist/{chunk-IUSSIILO.cjs → chunk-6OA3BX3U.cjs} +40 -39
- package/dist/chunk-6PE3ZGPD.cjs +239 -0
- package/dist/chunk-6QQPGNNK.js +2 -0
- package/dist/{chunk-SDWRKTFC.cjs → chunk-6W3OO6DK.cjs} +10 -9
- package/dist/chunk-744QNW5E.js +77 -0
- package/dist/chunk-7DCJW7LC.cjs +146 -0
- package/dist/chunk-7OOBMBHB.js +34 -0
- package/dist/chunk-7PWTWLXL.cjs +3 -0
- package/dist/chunk-7RZVSATZ.js +83 -0
- package/dist/chunk-7S3BMPK6.js +262 -0
- package/dist/chunk-7V6SXPFO.cjs +164 -0
- package/dist/chunk-7WZL3ZII.js +124 -0
- package/dist/chunk-7XYHI3LD.cjs +3 -0
- package/dist/chunk-A2QD7OLJ.js +213 -0
- package/dist/chunk-A3M6ALHJ.js +2 -0
- package/dist/{chunk-JV6GJ3JJ.js → chunk-AEQ6DMPS.js} +21 -20
- package/dist/chunk-APFW2I3Q.js +38 -0
- package/dist/chunk-AXWQJPZL.js +222 -0
- package/dist/chunk-B3D6KWG3.cjs +11 -0
- package/dist/{chunk-7B2YEOYF.js → chunk-B5Z4XIIF.js} +4 -4
- package/dist/chunk-BQUUTWTZ.cjs +129 -0
- package/dist/chunk-BRHXMXA7.cjs +3 -0
- package/dist/chunk-CIMKUKAG.cjs +3 -0
- package/dist/{chunk-GP32TY6P.cjs → chunk-CM7W446Z.cjs} +37 -36
- package/dist/chunk-CQZU4EHR.cjs +263 -0
- package/dist/{chunk-SSARMSS3.cjs → chunk-DKTUKZ5A.cjs} +22 -21
- package/dist/{chunk-AG3OBSP5.cjs → chunk-DLS6YGNX.cjs} +16 -15
- package/dist/chunk-DO4CSXWD.js +2 -0
- package/dist/chunk-DQQLYUXT.cjs +36 -0
- package/dist/chunk-DU2E5QXZ.js +2 -0
- package/dist/chunk-E2IMDHN3.cjs +286 -0
- package/dist/chunk-EAIDRCQS.js +2 -0
- package/dist/{chunk-AHRXESD2.js → chunk-EAQYTXY7.js} +15 -14
- package/dist/chunk-ECJ6AOAB.js +542 -0
- package/dist/chunk-EJV27E62.cjs +3 -0
- package/dist/chunk-ESHVB27V.cjs +3 -0
- package/dist/chunk-FDFQRXGC.cjs +3 -0
- package/dist/chunk-FG53BXIR.js +2 -0
- package/dist/{chunk-EYO4XMKU.js → chunk-FLLU5FAE.js} +10 -34
- package/dist/{chunk-EOPY2VWT.cjs → chunk-FO7ZZP52.cjs} +17 -16
- package/dist/chunk-FVVH37UH.js +57 -0
- package/dist/chunk-FXCVPRHV.cjs +52 -0
- package/dist/chunk-FXQKHROS.cjs +3 -0
- package/dist/chunk-GASIBRAJ.js +650 -0
- package/dist/{chunk-PBMXL53R.cjs → chunk-GHC7MKBR.cjs} +0 -8
- package/dist/chunk-GK7BIWGS.cjs +149 -0
- package/dist/{chunk-DO5WEBTN.cjs → chunk-GROWBVU5.cjs} +12 -11
- package/dist/{chunk-RFCZJPGM.js → chunk-GSF7YUXO.js} +7 -6
- package/dist/{chunk-4IHNW52F.cjs → chunk-GTU6TD5Q.cjs} +19 -19
- package/dist/chunk-HN3FTZJN.cjs +3 -0
- package/dist/chunk-HNALBJPN.cjs +36 -0
- package/dist/chunk-HSZEON5G.js +351 -0
- package/dist/chunk-HV4PLJGS.js +2 -0
- package/dist/{chunk-66ITQTT2.js → chunk-HWHAD4OZ.js} +10 -9
- package/dist/{chunk-YDJMVDAJ.cjs → chunk-I2QUKJX7.cjs} +19 -18
- package/dist/chunk-I2RCFWV3.cjs +174 -0
- package/dist/chunk-I3GJQHNE.cjs +144 -0
- package/dist/{chunk-CPUW5LDN.cjs → chunk-I3HEEAHX.cjs} +5 -5
- package/dist/chunk-I4VXNHO7.cjs +115 -0
- package/dist/chunk-IA664Z6A.js +2 -0
- package/dist/chunk-IEI6INUF.js +2 -0
- package/dist/chunk-IJSWK5ST.cjs +3 -0
- package/dist/chunk-IPNKP4DH.cjs +297 -0
- package/dist/{chunk-3XIEBFVO.cjs → chunk-IT27FHWR.cjs} +14 -13
- package/dist/chunk-IUZBQ5G2.cjs +3 -0
- package/dist/chunk-J2JRWEOR.js +2 -0
- package/dist/chunk-JC6MXMQZ.cjs +109 -0
- package/dist/chunk-JD4NHZXF.js +2 -0
- package/dist/chunk-JGIKKJAS.cjs +16 -0
- package/dist/{chunk-NU5MGYFP.cjs → chunk-JUMI5UBA.cjs} +18 -42
- package/dist/chunk-JXPOKP66.js +2 -0
- package/dist/chunk-JZUEW7WR.js +2 -0
- package/dist/{chunk-F7UECO7G.js → chunk-K2CVKVIF.js} +15 -15
- package/dist/{chunk-RIBXHAKG.cjs → chunk-K6MCWJ35.cjs} +15 -14
- package/dist/chunk-K6X6O42N.js +9 -0
- package/dist/{chunk-76MEQHGW.js → chunk-KA24K3XP.js} +18 -17
- package/dist/chunk-KEISLNT6.cjs +3 -0
- package/dist/{chunk-5Z32CAHE.cjs → chunk-KLJ4DMH2.cjs} +22 -21
- package/dist/chunk-KO5DJXD4.js +2 -0
- package/dist/chunk-KVDIEAWQ.cjs +3 -0
- package/dist/{chunk-I525FOTN.cjs → chunk-KVFBDLSA.cjs} +23 -22
- package/dist/chunk-KVXARKY4.js +136 -0
- package/dist/chunk-KXCKL4P2.cjs +3 -0
- package/dist/chunk-KZKDZRZJ.cjs +3 -0
- package/dist/chunk-KZOXFNUE.cjs +44 -0
- package/dist/chunk-L5JDNZS3.cjs +299 -0
- package/dist/chunk-L5P5R7QQ.cjs +3 -0
- package/dist/chunk-L5YN6PRP.js +2 -0
- package/dist/{chunk-SMY24MVU.js → chunk-LD3DXOQ7.js} +1 -1
- package/dist/{chunk-QWYHH465.cjs → chunk-LRI6V2NK.cjs} +2 -2
- package/dist/{chunk-ZZYMYQU2.js → chunk-LVE2WXGB.js} +18 -17
- package/dist/chunk-M4U2IWVW.js +54 -0
- package/dist/chunk-MCK6WCG2.cjs +168 -0
- package/dist/{chunk-AJPI65BL.cjs → chunk-MCQYUABH.cjs} +20 -19
- package/dist/chunk-MFFNV55T.cjs +223 -0
- package/dist/chunk-MGUOCT7T.cjs +1047 -0
- package/dist/{chunk-M42F5QS5.cjs → chunk-MHIFGXVD.cjs} +10 -9
- package/dist/chunk-MHS4TQAK.cjs +77 -0
- package/dist/chunk-MK7U7I4G.js +2 -0
- package/dist/chunk-MNDB6QKQ.js +2 -0
- package/dist/chunk-MO5QNNWF.cjs +99 -0
- package/dist/chunk-MQR6Y7I3.cjs +3 -0
- package/dist/chunk-MVAFOPND.cjs +3 -0
- package/dist/chunk-MX54ZBNC.js +108 -0
- package/dist/{chunk-IAPRIVJO.js → chunk-MYTU26NE.js} +10 -9
- package/dist/chunk-N4KGLSBT.cjs +85 -0
- package/dist/chunk-N64ZJPCO.cjs +3 -0
- package/dist/chunk-NGKH2EEJ.cjs +326 -0
- package/dist/{chunk-PGEK6DFE.cjs → chunk-NIT46ZG7.cjs} +26 -25
- package/dist/{chunk-I2XZ2WMY.js → chunk-NJEGW6SX.js} +32 -31
- package/dist/{chunk-ZXKEYL6L.js → chunk-NJYCQEIR.js} +11 -10
- package/dist/chunk-NNDDH7H7.cjs +91 -0
- package/dist/chunk-NTKJSGK3.cjs +3 -0
- package/dist/chunk-NUQUDBTT.js +142 -0
- package/dist/chunk-NYRO7BWG.cjs +283 -0
- package/dist/chunk-OGVNBCOT.cjs +3 -0
- package/dist/{chunk-HQLB5Z37.cjs → chunk-OLWS65QZ.cjs} +22 -21
- package/dist/chunk-OO5T2XLL.js +13 -0
- package/dist/chunk-OYCYKMKG.js +2 -0
- package/dist/chunk-PDP4YT3H.js +61 -0
- package/dist/chunk-PIXN6IV7.js +2 -0
- package/dist/{chunk-DAO7YH2R.cjs → chunk-POKS6BSL.cjs} +13 -12
- package/dist/{chunk-Y3UCNSXF.js → chunk-PSMIDELA.js} +15 -14
- package/dist/chunk-PT736HBJ.js +27 -0
- package/dist/{chunk-HSXGQNQ6.js → chunk-PWKKLWBX.js} +10 -9
- package/dist/chunk-PWV4XF5I.js +198 -0
- package/dist/chunk-Q6ZVUGRJ.js +2 -0
- package/dist/chunk-Q7PT2DJ7.js +22 -0
- package/dist/chunk-QCUKTEYH.cjs +3 -0
- package/dist/{chunk-6LRDNOZX.cjs → chunk-QHFMQWSO.cjs} +9 -8
- package/dist/chunk-QNLWPVUI.cjs +149 -0
- package/dist/chunk-QVTEK35C.js +22 -0
- package/dist/chunk-QYR4WKJI.js +124 -0
- package/dist/chunk-R6MVKE2B.cjs +331 -0
- package/dist/chunk-R7T6GOUN.cjs +3 -0
- package/dist/chunk-RDU664LO.js +253 -0
- package/dist/{chunk-T533JPW5.js → chunk-RZNIXIJU.js} +18 -17
- package/dist/chunk-RZUCUWKB.js +104 -0
- package/dist/chunk-RZXU6H5L.js +202 -0
- package/dist/chunk-SELSORIZ.js +2 -0
- package/dist/chunk-SMK542RT.js +273 -0
- package/dist/{chunk-DUUDPN7C.cjs → chunk-SS6DGMZY.cjs} +15 -14
- package/dist/chunk-SVUVXYWK.cjs +225 -0
- package/dist/chunk-SVZT7RT3.js +2 -0
- package/dist/chunk-T4DK7EUO.js +93 -0
- package/dist/chunk-T7M6256W.cjs +3 -0
- package/dist/chunk-TBSUIWGD.cjs +3 -0
- package/dist/chunk-TH7GDZUC.js +2 -0
- package/dist/{chunk-5PAJS63K.cjs → chunk-TLP4LLIX.cjs} +18 -17
- package/dist/chunk-TTUJ3IQK.cjs +225 -0
- package/dist/chunk-TTVLRRPE.js +241 -0
- package/dist/chunk-TWAJYDMC.cjs +3 -0
- package/dist/chunk-U3X4QBY4.js +2 -0
- package/dist/chunk-U7MANZTW.cjs +3 -0
- package/dist/chunk-UCWS7WMQ.cjs +677 -0
- package/dist/{chunk-TVGVZSIA.js → chunk-UGDDUI2N.js} +9 -8
- package/dist/chunk-UORTZAPR.js +2 -0
- package/dist/chunk-UTYMDSOE.cjs +3 -0
- package/dist/chunk-UWQGY3GT.cjs +60 -0
- package/dist/{chunk-LYYMITLC.js → chunk-UZS7VXCA.js} +20 -21
- package/dist/chunk-VACQZKYM.cjs +44 -0
- package/dist/{chunk-UFUN2OKY.js → chunk-VDQ3DWO4.js} +1 -8
- package/dist/chunk-VKYDWRL2.cjs +3 -0
- package/dist/chunk-VRFYJ4BN.js +80 -0
- package/dist/{chunk-5ARTY5RT.cjs → chunk-W3VOEVRS.cjs} +8 -0
- package/dist/chunk-W7OZ3DOL.js +14 -0
- package/dist/{chunk-LYEOVFOQ.cjs → chunk-WG4KHU2E.cjs} +24 -23
- package/dist/chunk-WHM3QKTO.js +1012 -0
- package/dist/chunk-WINVYCMX.js +380 -0
- package/dist/{chunk-WVWVJSU2.cjs → chunk-WPTNMFHO.cjs} +18 -17
- package/dist/chunk-WVZMSS2Z.cjs +411 -0
- package/dist/chunk-WX7H4YUM.js +2 -0
- package/dist/chunk-X355AHLF.js +2 -0
- package/dist/chunk-X47PLMHL.js +304 -0
- package/dist/chunk-X7WVGTJK.js +2 -0
- package/dist/chunk-XL2A3RFS.js +202 -0
- package/dist/{chunk-LGBMJIY6.js → chunk-XQMLBUHW.js} +16 -15
- package/dist/chunk-XSTQSKRP.cjs +3 -0
- package/dist/chunk-Y36NEYSP.js +255 -0
- package/dist/chunk-Y3UDKEIY.cjs +3 -0
- package/dist/chunk-Y5PAW326.cjs +142 -0
- package/dist/{chunk-2Z4YKJMT.js → chunk-YEQVN7I3.js} +24 -23
- package/dist/chunk-YI6XXQMC.cjs +275 -0
- package/dist/{chunk-OCIKUJ3U.js → chunk-YJDQ3BQZ.js} +9 -8
- package/dist/{chunk-CGX6YCV6.js → chunk-YJR744JB.js} +12 -11
- package/dist/{chunk-7Y22U2ZF.js → chunk-YN2AVSEN.js} +33 -32
- package/dist/chunk-YNJA4HB2.js +307 -0
- package/dist/{chunk-WSL2OVTO.js → chunk-YRLEGHKB.js} +7 -6
- package/dist/{chunk-VDSMO63G.cjs → chunk-YTAX4ICP.cjs} +11 -10
- package/dist/chunk-YU7IOI63.js +2 -0
- package/dist/chunk-YUG4SGR5.js +68 -0
- package/dist/{chunk-VW32EE3I.js → chunk-YVGWCNLQ.js} +10 -9
- package/dist/chunk-Z6SMSENC.js +107 -0
- package/dist/{chunk-3NQ776G6.cjs → chunk-ZAQJBIYI.cjs} +19 -18
- package/dist/chunk-ZGKDMG7N.cjs +3 -0
- package/dist/{chunk-FGJDDSUJ.js → chunk-ZHGVBALA.js} +21 -20
- package/dist/chunk-ZIGUJXZM.js +2 -0
- package/dist/chunk-ZPYGXDFU.js +2 -0
- package/dist/{chunk-XUBFOAT4.js → chunk-ZSD56XUT.js} +17 -16
- package/dist/{chunk-2PABDSNH.cjs → chunk-ZX6JRBPY.cjs} +21 -20
- package/dist/components/accordion.cjs +8 -7
- package/dist/components/accordion.d.cts +1 -41
- package/dist/components/accordion.d.ts +1 -41
- package/dist/components/accordion.js +4 -3
- package/dist/components/ai.cjs +79 -0
- package/dist/components/ai.d.cts +1 -0
- package/dist/components/ai.d.ts +1 -0
- package/dist/components/ai.js +10 -0
- package/dist/components/alert.cjs +14 -0
- package/dist/components/alert.d.cts +1 -0
- package/dist/components/alert.d.ts +1 -0
- package/dist/components/alert.js +5 -0
- package/dist/components/avatar.cjs +21 -0
- package/dist/components/avatar.d.cts +1 -0
- package/dist/components/avatar.d.ts +1 -0
- package/dist/components/avatar.js +4 -0
- package/dist/components/badge.cjs +13 -0
- package/dist/components/badge.d.cts +1 -0
- package/dist/components/badge.d.ts +1 -0
- package/dist/components/badge.js +4 -0
- package/dist/components/bar-chart.cjs +17 -0
- package/dist/components/bar-chart.d.cts +1 -0
- package/dist/components/bar-chart.d.ts +1 -0
- package/dist/components/bar-chart.js +8 -0
- package/dist/components/breadcrumbs.cjs +17 -0
- package/dist/components/breadcrumbs.d.cts +1 -0
- package/dist/components/breadcrumbs.d.ts +1 -0
- package/dist/components/breadcrumbs.js +4 -0
- package/dist/components/button.cjs +18 -0
- package/dist/components/button.d.cts +1 -0
- package/dist/components/button.d.ts +1 -0
- package/dist/components/button.js +5 -0
- package/dist/components/calendar.cjs +6 -4
- package/dist/components/calendar.d.cts +1 -41
- package/dist/components/calendar.d.ts +1 -41
- package/dist/components/calendar.js +5 -3
- package/dist/components/card.cjs +25 -0
- package/dist/components/card.d.cts +1 -0
- package/dist/components/card.d.ts +1 -0
- package/dist/components/card.js +4 -0
- package/dist/components/chart.cjs +84 -0
- package/dist/components/chart.d.cts +1 -0
- package/dist/components/chart.d.ts +1 -0
- package/dist/components/chart.js +7 -0
- package/dist/components/checkbox.cjs +6 -4
- package/dist/components/checkbox.d.cts +1 -27
- package/dist/components/checkbox.d.ts +1 -27
- package/dist/components/checkbox.js +5 -3
- package/dist/components/chip-select.cjs +5 -4
- package/dist/components/chip-select.d.cts +1 -31
- package/dist/components/chip-select.d.ts +1 -31
- package/dist/components/chip-select.js +4 -3
- package/dist/components/clock.cjs +4 -3
- package/dist/components/clock.d.cts +1 -25
- package/dist/components/clock.d.ts +1 -25
- package/dist/components/clock.js +3 -2
- package/dist/components/color-picker.cjs +4 -3
- package/dist/components/color-picker.d.cts +1 -23
- package/dist/components/color-picker.d.ts +1 -23
- package/dist/components/color-picker.js +3 -2
- package/dist/components/command-palette.cjs +8 -7
- package/dist/components/command-palette.d.cts +1 -53
- package/dist/components/command-palette.d.ts +1 -53
- package/dist/components/command-palette.js +6 -5
- package/dist/components/date-picker.cjs +12 -8
- package/dist/components/date-picker.d.cts +1 -40
- package/dist/components/date-picker.d.ts +1 -40
- package/dist/components/date-picker.js +11 -7
- package/dist/components/dialog.cjs +23 -0
- package/dist/components/dialog.d.cts +1 -0
- package/dist/components/dialog.d.ts +1 -0
- package/dist/components/dialog.js +10 -0
- package/dist/components/donut-chart.cjs +21 -0
- package/dist/components/donut-chart.d.cts +1 -0
- package/dist/components/donut-chart.d.ts +1 -0
- package/dist/components/donut-chart.js +8 -0
- package/dist/components/drawer.cjs +7 -6
- package/dist/components/drawer.d.cts +1 -22
- package/dist/components/drawer.d.ts +1 -22
- package/dist/components/drawer.js +6 -5
- package/dist/components/empty-state.cjs +25 -0
- package/dist/components/empty-state.d.cts +1 -0
- package/dist/components/empty-state.d.ts +1 -0
- package/dist/components/empty-state.js +4 -0
- package/dist/components/floating-panel.cjs +5 -4
- package/dist/components/floating-panel.d.cts +1 -25
- package/dist/components/floating-panel.d.ts +1 -25
- package/dist/components/floating-panel.js +4 -3
- package/dist/components/heatmap.cjs +17 -0
- package/dist/components/heatmap.d.cts +1 -0
- package/dist/components/heatmap.d.ts +1 -0
- package/dist/components/heatmap.js +8 -0
- package/dist/components/hold-button.cjs +5 -4
- package/dist/components/hold-button.d.cts +1 -30
- package/dist/components/hold-button.d.ts +1 -30
- package/dist/components/hold-button.js +4 -3
- package/dist/components/knob.cjs +5 -4
- package/dist/components/knob.d.cts +1 -33
- package/dist/components/knob.d.ts +1 -33
- package/dist/components/knob.js +4 -3
- package/dist/components/line-chart.cjs +17 -0
- package/dist/components/line-chart.d.cts +1 -0
- package/dist/components/line-chart.d.ts +1 -0
- package/dist/components/line-chart.js +8 -0
- package/dist/components/magnetic-button.cjs +5 -4
- package/dist/components/magnetic-button.d.cts +1 -23
- package/dist/components/magnetic-button.d.ts +1 -23
- package/dist/components/magnetic-button.js +4 -3
- package/dist/components/mascots.cjs +33 -0
- package/dist/components/mascots.d.cts +1 -0
- package/dist/components/mascots.d.ts +1 -0
- package/dist/components/mascots.js +4 -0
- package/dist/components/menu.cjs +23 -0
- package/dist/components/menu.d.cts +1 -0
- package/dist/components/menu.d.ts +1 -0
- package/dist/components/menu.js +10 -0
- package/dist/components/morph-button.cjs +5 -4
- package/dist/components/morph-button.d.cts +1 -34
- package/dist/components/morph-button.d.ts +1 -34
- package/dist/components/morph-button.js +4 -3
- package/dist/components/morph-dialog.cjs +11 -10
- package/dist/components/morph-dialog.d.cts +1 -30
- package/dist/components/morph-dialog.d.ts +1 -30
- package/dist/components/morph-dialog.js +6 -5
- package/dist/components/number-field.cjs +5 -4
- package/dist/components/number-field.d.cts +1 -32
- package/dist/components/number-field.d.ts +1 -32
- package/dist/components/number-field.js +4 -3
- package/dist/components/pagination.cjs +19 -0
- package/dist/components/pagination.d.cts +1 -0
- package/dist/components/pagination.d.ts +1 -0
- package/dist/components/pagination.js +6 -0
- package/dist/components/pin-input.cjs +6 -4
- package/dist/components/pin-input.d.cts +1 -29
- package/dist/components/pin-input.d.ts +1 -29
- package/dist/components/pin-input.js +5 -3
- package/dist/components/popover.cjs +9 -6
- package/dist/components/popover.d.cts +1 -26
- package/dist/components/popover.d.ts +1 -26
- package/dist/components/popover.js +8 -5
- package/dist/components/progress.cjs +5 -4
- package/dist/components/progress.d.cts +1 -39
- package/dist/components/progress.d.ts +1 -39
- package/dist/components/progress.js +3 -2
- package/dist/components/radial-menu.cjs +6 -5
- package/dist/components/radial-menu.d.cts +1 -31
- package/dist/components/radial-menu.d.ts +1 -31
- package/dist/components/radial-menu.js +5 -4
- package/dist/components/radio-group.cjs +5 -4
- package/dist/components/radio-group.d.cts +1 -34
- package/dist/components/radio-group.d.ts +1 -34
- package/dist/components/radio-group.js +4 -3
- package/dist/components/resizable-panels.cjs +6 -5
- package/dist/components/resizable-panels.d.cts +1 -24
- package/dist/components/resizable-panels.d.ts +1 -24
- package/dist/components/resizable-panels.js +4 -3
- package/dist/components/segmented-control.cjs +6 -4
- package/dist/components/segmented-control.d.cts +1 -34
- package/dist/components/segmented-control.d.ts +1 -34
- package/dist/components/segmented-control.js +5 -3
- package/dist/components/select.cjs +20 -0
- package/dist/components/select.d.cts +1 -0
- package/dist/components/select.d.ts +1 -0
- package/dist/components/select.js +11 -0
- package/dist/components/skeleton.cjs +17 -0
- package/dist/components/skeleton.d.cts +1 -0
- package/dist/components/skeleton.d.ts +1 -0
- package/dist/components/skeleton.js +4 -0
- package/dist/components/slider.cjs +5 -4
- package/dist/components/slider.d.cts +1 -39
- package/dist/components/slider.d.ts +1 -39
- package/dist/components/slider.js +4 -3
- package/dist/components/sortable-list.cjs +5 -4
- package/dist/components/sortable-list.d.cts +1 -24
- package/dist/components/sortable-list.d.ts +1 -24
- package/dist/components/sortable-list.js +4 -3
- package/dist/components/sparkline.cjs +5 -4
- package/dist/components/sparkline.d.cts +1 -28
- package/dist/components/sparkline.d.ts +1 -28
- package/dist/components/sparkline.js +4 -3
- package/dist/components/stat.cjs +23 -0
- package/dist/components/stat.d.cts +1 -0
- package/dist/components/stat.d.ts +1 -0
- package/dist/components/stat.js +6 -0
- package/dist/components/stepper.cjs +14 -0
- package/dist/components/stepper.d.cts +1 -0
- package/dist/components/stepper.d.ts +1 -0
- package/dist/components/stepper.js +5 -0
- package/dist/components/swipe-confirm.cjs +5 -4
- package/dist/components/swipe-confirm.d.cts +1 -18
- package/dist/components/swipe-confirm.d.ts +1 -18
- package/dist/components/swipe-confirm.js +4 -3
- package/dist/components/switch.cjs +6 -4
- package/dist/components/switch.d.cts +1 -29
- package/dist/components/switch.d.ts +1 -29
- package/dist/components/switch.js +5 -3
- package/dist/components/tabs.cjs +9 -8
- package/dist/components/tabs.d.cts +1 -29
- package/dist/components/tabs.d.ts +1 -29
- package/dist/components/tabs.js +4 -3
- package/dist/components/tether.cjs +5 -4
- package/dist/components/tether.d.cts +1 -35
- package/dist/components/tether.d.ts +1 -35
- package/dist/components/tether.js +3 -2
- package/dist/components/text-field.cjs +31 -0
- package/dist/components/text-field.d.cts +1 -0
- package/dist/components/text-field.d.ts +1 -0
- package/dist/components/text-field.js +6 -0
- package/dist/components/theme-switch.cjs +5 -4
- package/dist/components/theme-switch.d.cts +1 -24
- package/dist/components/theme-switch.d.ts +1 -24
- package/dist/components/theme-switch.js +4 -3
- package/dist/components/toaster.cjs +7 -6
- package/dist/components/toaster.d.cts +1 -71
- package/dist/components/toaster.d.ts +1 -71
- package/dist/components/toaster.js +4 -3
- package/dist/components/tooltip.cjs +17 -0
- package/dist/components/tooltip.d.cts +1 -0
- package/dist/components/tooltip.d.ts +1 -0
- package/dist/components/tooltip.js +8 -0
- package/dist/components/wheel-picker.cjs +5 -4
- package/dist/components/wheel-picker.d.cts +1 -27
- package/dist/components/wheel-picker.d.ts +1 -27
- package/dist/components/wheel-picker.js +4 -3
- package/dist/css/accordion.css +1 -1
- package/dist/css/ai-chat.css +2 -0
- package/dist/css/ai.css +2 -0
- package/dist/css/alert.css +2 -0
- package/dist/css/app-shell.css +2 -0
- package/dist/css/auth.css +2 -0
- package/dist/css/avatar.css +2 -0
- package/dist/css/badge.css +2 -0
- package/dist/css/base.css +1 -1
- package/dist/css/breadcrumbs.css +2 -0
- package/dist/css/button.css +2 -0
- package/dist/css/calendar.css +1 -1
- package/dist/css/card.css +2 -0
- package/dist/css/chart.css +2 -0
- package/dist/css/checkbox.css +1 -1
- package/dist/css/chip-select.css +1 -1
- package/dist/css/clock.css +1 -1
- package/dist/css/color-picker.css +1 -1
- package/dist/css/command-palette.css +1 -1
- package/dist/css/dashboard.css +2 -0
- package/dist/css/data-table.css +2 -0
- package/dist/css/date-picker.css +1 -1
- package/dist/css/dialog.css +2 -0
- package/dist/css/drawer.css +1 -1
- package/dist/css/empty-state.css +2 -0
- package/dist/css/floating-panel.css +1 -1
- package/dist/css/forms.css +2 -0
- package/dist/css/hold-button.css +1 -1
- package/dist/css/kanban.css +2 -0
- package/dist/css/knob.css +1 -1
- package/dist/css/magnetic-button.css +1 -1
- package/dist/css/mascots.css +2 -0
- package/dist/css/menu.css +2 -0
- package/dist/css/modals.css +2 -0
- package/dist/css/morph-button.css +1 -1
- package/dist/css/morph-dialog.css +1 -1
- package/dist/css/notifications.css +2 -0
- package/dist/css/number-field.css +1 -1
- package/dist/css/pagination.css +2 -0
- package/dist/css/permissions.css +2 -0
- package/dist/css/pin-input.css +1 -1
- package/dist/css/popover.css +1 -1
- package/dist/css/progress.css +1 -1
- package/dist/css/radial-menu.css +1 -1
- package/dist/css/radio-group.css +1 -1
- package/dist/css/resizable-panels.css +1 -1
- package/dist/css/scheduling.css +2 -0
- package/dist/css/segmented-control.css +1 -1
- package/dist/css/select.css +2 -0
- package/dist/css/skeleton.css +2 -0
- package/dist/css/slider.css +1 -1
- package/dist/css/sortable-list.css +1 -1
- package/dist/css/sparkline.css +1 -1
- package/dist/css/stepper.css +2 -0
- package/dist/css/swipe-confirm.css +1 -1
- package/dist/css/switch.css +1 -1
- package/dist/css/tabs.css +1 -1
- package/dist/css/template-auth.css +2 -0
- package/dist/css/template-calendar.css +2 -0
- package/dist/css/template-crm.css +2 -0
- package/dist/css/template-dashboard.css +2 -0
- package/dist/css/template-orders.css +2 -0
- package/dist/css/template-settings.css +2 -0
- package/dist/css/template-shared.css +2 -0
- package/dist/css/tether.css +1 -1
- package/dist/css/text-field.css +2 -0
- package/dist/css/theme-switch.css +1 -1
- package/dist/css/toaster.css +1 -1
- package/dist/css/tooltip.css +2 -0
- package/dist/css/wheel-picker.css +1 -1
- package/dist/index.cjs +687 -108
- package/dist/index.d.cts +3141 -36
- package/dist/index.d.ts +3141 -36
- package/dist/index.js +120 -37
- package/dist/styles.css +1 -1
- package/dist/templates/auth.cjs +22 -0
- package/dist/templates/auth.d.cts +1 -0
- package/dist/templates/auth.d.ts +1 -0
- package/dist/templates/auth.js +13 -0
- package/dist/templates/calendar.cjs +40 -0
- package/dist/templates/calendar.d.cts +1 -0
- package/dist/templates/calendar.d.ts +1 -0
- package/dist/templates/calendar.js +31 -0
- package/dist/templates/crm.cjs +43 -0
- package/dist/templates/crm.d.cts +1 -0
- package/dist/templates/crm.d.ts +1 -0
- package/dist/templates/crm.js +34 -0
- package/dist/templates/dashboard.cjs +46 -0
- package/dist/templates/dashboard.d.cts +1 -0
- package/dist/templates/dashboard.d.ts +1 -0
- package/dist/templates/dashboard.js +37 -0
- package/dist/templates/orders.cjs +45 -0
- package/dist/templates/orders.d.cts +1 -0
- package/dist/templates/orders.d.ts +1 -0
- package/dist/templates/orders.js +36 -0
- package/dist/templates/settings.cjs +47 -0
- package/dist/templates/settings.d.cts +1 -0
- package/dist/templates/settings.d.ts +1 -0
- package/dist/templates/settings.js +38 -0
- package/package.json +122 -98
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkW3VOEVRS_cjs = require('./chunk-W3VOEVRS.cjs');
|
|
5
|
+
var chunkGHC7MKBR_cjs = require('./chunk-GHC7MKBR.cjs');
|
|
6
|
+
var chunkB3D6KWG3_cjs = require('./chunk-B3D6KWG3.cjs');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var react = require('motion/react');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -40,7 +41,7 @@ function SortableList({ items, onReorder, getKey, getLabel = (item) => getKey(it
|
|
|
40
41
|
const [moved] = next.splice(i, 1);
|
|
41
42
|
next.splice(j, 0, moved);
|
|
42
43
|
onReorder(next);
|
|
43
|
-
if (haptics)
|
|
44
|
+
if (haptics) chunkW3VOEVRS_cjs.haptic(4);
|
|
44
45
|
setAnnouncement(`${getLabel(moved)} moved to position ${j + 1} of ${items.length}.`);
|
|
45
46
|
};
|
|
46
47
|
const onKeyDown = (item, index) => (event) => {
|
|
@@ -81,7 +82,7 @@ function SortableList({ items, onReorder, getKey, getLabel = (item) => getKey(it
|
|
|
81
82
|
axis,
|
|
82
83
|
values: items,
|
|
83
84
|
onReorder,
|
|
84
|
-
className:
|
|
85
|
+
className: chunkB3D6KWG3_cjs.cx("sp-sortable", className),
|
|
85
86
|
"data-axis": axis,
|
|
86
87
|
"aria-describedby": `${listId}-hint`,
|
|
87
88
|
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -100,8 +101,8 @@ function SortableList({ items, onReorder, getKey, getLabel = (item) => getKey(it
|
|
|
100
101
|
))
|
|
101
102
|
}
|
|
102
103
|
),
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { id: `${listId}-hint`, className: "
|
|
104
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { id: `${listId}-hint`, className: "sp-sr-only", children: "Press space to lift an item, use the arrow keys to move it and space again to drop." }),
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sp-sr-only", "aria-live": "assertive", children: announcement })
|
|
105
106
|
] });
|
|
106
107
|
}
|
|
107
108
|
function SortableItem({
|
|
@@ -116,7 +117,7 @@ function SortableItem({
|
|
|
116
117
|
}) {
|
|
117
118
|
const controls = react.useDragControls();
|
|
118
119
|
const [dragging, setDragging] = React__namespace.useState(false);
|
|
119
|
-
const { t, reduced } =
|
|
120
|
+
const { t, reduced } = chunkGHC7MKBR_cjs.useMotionPreset();
|
|
120
121
|
const active = dragging || lifted;
|
|
121
122
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
122
123
|
react.Reorder.Item,
|
|
@@ -126,13 +127,13 @@ function SortableItem({
|
|
|
126
127
|
tabIndex: 0,
|
|
127
128
|
"aria-roledescription": "sortable item",
|
|
128
129
|
"aria-pressed": lifted || void 0,
|
|
129
|
-
className: "
|
|
130
|
+
className: "sp-sortable__item",
|
|
130
131
|
"data-active": active || void 0,
|
|
131
132
|
dragListener: !handle,
|
|
132
133
|
dragControls: controls,
|
|
133
134
|
onDragStart: () => {
|
|
134
135
|
setDragging(true);
|
|
135
|
-
if (haptics)
|
|
136
|
+
if (haptics) chunkW3VOEVRS_cjs.haptic(6);
|
|
136
137
|
},
|
|
137
138
|
onDragEnd: () => setDragging(false),
|
|
138
139
|
onKeyDown,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { AuthCard, VerifyCodeForm, ForgotPasswordForm, SignUpForm, SignInForm } from './chunk-WINVYCMX.js';
|
|
3
|
+
import { useMotionPreset } from './chunk-VDQ3DWO4.js';
|
|
4
|
+
import { cx } from './chunk-K6X6O42N.js';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { AnimatePresence, motion } from 'motion/react';
|
|
7
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function AuthTemplate({ mode, onModeChange, logo, productName = "your workspace", aside, quote, providers, onSignIn, onSignUp, onForgotPassword, onVerify, onResendCode, verifyDestination, terms, className }) {
|
|
10
|
+
const { reduced } = useMotionPreset();
|
|
11
|
+
const order = ["sign-in", "verify", "forgot", "sign-up"];
|
|
12
|
+
const prev = React.useRef(mode);
|
|
13
|
+
const dir = order.indexOf(mode) >= order.indexOf(prev.current) ? 1 : -1;
|
|
14
|
+
React.useEffect(() => {
|
|
15
|
+
prev.current = mode;
|
|
16
|
+
}, [mode]);
|
|
17
|
+
const link = (to, label) => /* @__PURE__ */ jsx("button", { type: "button", className: "sp-reset-button", onClick: () => onModeChange(to), children: label });
|
|
18
|
+
const screens = {
|
|
19
|
+
"sign-in": {
|
|
20
|
+
title: "Welcome back",
|
|
21
|
+
description: `Sign in to ${productName}.`,
|
|
22
|
+
body: /* @__PURE__ */ jsx(SignInForm, { onSubmit: onSignIn, providers, onForgotPassword: () => onModeChange("forgot") }),
|
|
23
|
+
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
+
"No account yet? ",
|
|
25
|
+
link("sign-up", "Create one")
|
|
26
|
+
] })
|
|
27
|
+
},
|
|
28
|
+
"sign-up": {
|
|
29
|
+
title: "Create your account",
|
|
30
|
+
description: "Free for 14 days. No card required.",
|
|
31
|
+
body: /* @__PURE__ */ jsx(SignUpForm, { onSubmit: onSignUp, providers, askCompany: true, terms }),
|
|
32
|
+
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
|
+
"Already have an account? ",
|
|
34
|
+
link("sign-in", "Sign in")
|
|
35
|
+
] })
|
|
36
|
+
},
|
|
37
|
+
forgot: {
|
|
38
|
+
title: "Reset your password",
|
|
39
|
+
description: "We\u2019ll email you a link to choose a new one.",
|
|
40
|
+
body: /* @__PURE__ */ jsx(ForgotPasswordForm, { onSubmit: onForgotPassword, onBack: () => onModeChange("sign-in") })
|
|
41
|
+
},
|
|
42
|
+
verify: {
|
|
43
|
+
title: "Check your authenticator",
|
|
44
|
+
description: "Enter the code to finish signing in.",
|
|
45
|
+
body: onVerify ? /* @__PURE__ */ jsx(VerifyCodeForm, { onVerify, onResend: onResendCode, destination: verifyDestination }) : null,
|
|
46
|
+
footer: /* @__PURE__ */ jsx(Fragment, { children: link("sign-in", "Use a different account") })
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const s = screens[mode];
|
|
50
|
+
return /* @__PURE__ */ jsxs("div", { className: cx("sp-tpl-auth", className), children: [
|
|
51
|
+
/* @__PURE__ */ jsx("div", { className: "sp-tpl-auth__form", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", initial: false, custom: dir, children: /* @__PURE__ */ jsx(
|
|
52
|
+
motion.div,
|
|
53
|
+
{
|
|
54
|
+
className: "sp-tpl-auth__screen",
|
|
55
|
+
initial: reduced ? { opacity: 0 } : { opacity: 0, x: dir * 24 },
|
|
56
|
+
animate: { opacity: 1, x: 0 },
|
|
57
|
+
exit: reduced ? { opacity: 0 } : { opacity: 0, x: dir * -24 },
|
|
58
|
+
transition: { type: "spring", visualDuration: 0.3, bounce: 0.04 },
|
|
59
|
+
children: /* @__PURE__ */ jsx(AuthCard, { logo, title: s.title, description: s.description, footer: s.footer, children: s.body })
|
|
60
|
+
},
|
|
61
|
+
mode
|
|
62
|
+
) }) }),
|
|
63
|
+
/* @__PURE__ */ jsx("aside", { className: "sp-tpl-auth__aside", "aria-hidden": !quote && !aside, children: aside ?? /* @__PURE__ */ jsx("div", { className: "sp-tpl-auth__pattern", children: quote && /* @__PURE__ */ jsxs("figure", { className: "sp-tpl-auth__quote", children: [
|
|
64
|
+
/* @__PURE__ */ jsxs("blockquote", { children: [
|
|
65
|
+
"\u201C",
|
|
66
|
+
quote.text,
|
|
67
|
+
"\u201D"
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ jsxs("figcaption", { children: [
|
|
70
|
+
/* @__PURE__ */ jsx("b", { children: quote.author }),
|
|
71
|
+
quote.role && /* @__PURE__ */ jsx("span", { children: quote.role })
|
|
72
|
+
] })
|
|
73
|
+
] }) }) })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { AuthTemplate };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkJC6MXMQZ_cjs = require('./chunk-JC6MXMQZ.cjs');
|
|
5
|
+
var chunkI3HEEAHX_cjs = require('./chunk-I3HEEAHX.cjs');
|
|
6
|
+
var chunkW3VOEVRS_cjs = require('./chunk-W3VOEVRS.cjs');
|
|
7
|
+
var chunkGHC7MKBR_cjs = require('./chunk-GHC7MKBR.cjs');
|
|
8
|
+
var chunkB3D6KWG3_cjs = require('./chunk-B3D6KWG3.cjs');
|
|
9
|
+
var React = require('react');
|
|
10
|
+
var react = require('motion/react');
|
|
11
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
12
|
+
|
|
13
|
+
function _interopNamespace(e) {
|
|
14
|
+
if (e && e.__esModule) return e;
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
Object.keys(e).forEach(function (k) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return e[k]; }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
|
+
|
|
33
|
+
var warmUntil = 0;
|
|
34
|
+
var lastAt = null;
|
|
35
|
+
function Tooltip({ content, shortcut, children, placement = "top", delay = 450, disabled, container, className }) {
|
|
36
|
+
const [open, setOpen] = React__namespace.useState(false);
|
|
37
|
+
const triggerRef = React__namespace.useRef(null);
|
|
38
|
+
const tipRef = React__namespace.useRef(null);
|
|
39
|
+
const timer = React__namespace.useRef(void 0);
|
|
40
|
+
const id = React__namespace.useId();
|
|
41
|
+
const { t, reduced } = chunkGHC7MKBR_cjs.useMotionPreset();
|
|
42
|
+
const { pos } = chunkJC6MXMQZ_cjs.useFloatingPosition(open, triggerRef, tipRef, placement, 7);
|
|
43
|
+
const x = react.useMotionValue(0);
|
|
44
|
+
const y = react.useMotionValue(0);
|
|
45
|
+
const glide = React__namespace.useRef(null);
|
|
46
|
+
const placed = React__namespace.useRef(false);
|
|
47
|
+
const posRef = React__namespace.useRef(pos);
|
|
48
|
+
posRef.current = pos;
|
|
49
|
+
const show = (immediate = false) => {
|
|
50
|
+
if (disabled) return;
|
|
51
|
+
clearTimeout(timer.current);
|
|
52
|
+
const warm = Date.now() < warmUntil;
|
|
53
|
+
glide.current = warm && !reduced ? lastAt : null;
|
|
54
|
+
if (immediate || warm) setOpen(true);
|
|
55
|
+
else timer.current = setTimeout(() => setOpen(true), delay);
|
|
56
|
+
};
|
|
57
|
+
const hide = () => {
|
|
58
|
+
clearTimeout(timer.current);
|
|
59
|
+
setOpen((was) => {
|
|
60
|
+
if (was) {
|
|
61
|
+
warmUntil = Date.now() + 400;
|
|
62
|
+
if (posRef.current) lastAt = { left: posRef.current.left, top: posRef.current.top };
|
|
63
|
+
}
|
|
64
|
+
return false;
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
React__namespace.useEffect(() => {
|
|
68
|
+
if (!open) {
|
|
69
|
+
placed.current = false;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (!pos || placed.current) return;
|
|
73
|
+
placed.current = true;
|
|
74
|
+
const from = glide.current;
|
|
75
|
+
const side0 = pos.side;
|
|
76
|
+
const spring = { type: "spring", stiffness: 520, damping: 38, mass: 0.7 };
|
|
77
|
+
if (from) {
|
|
78
|
+
x.set(from.left - pos.left);
|
|
79
|
+
y.set(from.top - pos.top);
|
|
80
|
+
} else {
|
|
81
|
+
const off = chunkJC6MXMQZ_cjs.enterFrom(side0, reduced ? 0 : 3);
|
|
82
|
+
x.set(off.x ?? 0);
|
|
83
|
+
y.set(off.y ?? 0);
|
|
84
|
+
}
|
|
85
|
+
void react.animate(x, 0, spring);
|
|
86
|
+
void react.animate(y, 0, spring);
|
|
87
|
+
}, [open, pos]);
|
|
88
|
+
React__namespace.useEffect(() => () => clearTimeout(timer.current), []);
|
|
89
|
+
React__namespace.useEffect(() => {
|
|
90
|
+
if (!open) return;
|
|
91
|
+
const onKey = (e) => e.key === "Escape" && hide();
|
|
92
|
+
document.addEventListener("keydown", onKey);
|
|
93
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
94
|
+
}, [open]);
|
|
95
|
+
const child = React__namespace.Children.only(children);
|
|
96
|
+
const p = child.props;
|
|
97
|
+
const trigger = React__namespace.cloneElement(child, {
|
|
98
|
+
ref: chunkW3VOEVRS_cjs.mergeRefs(triggerRef, chunkJC6MXMQZ_cjs.getElementRef(child)),
|
|
99
|
+
"aria-describedby": [p["aria-describedby"], open ? id : null].filter(Boolean).join(" ") || void 0,
|
|
100
|
+
onPointerEnter: (e) => {
|
|
101
|
+
p.onPointerEnter?.(e);
|
|
102
|
+
if (e.pointerType !== "touch") show();
|
|
103
|
+
},
|
|
104
|
+
onPointerLeave: (e) => {
|
|
105
|
+
p.onPointerLeave?.(e);
|
|
106
|
+
hide();
|
|
107
|
+
},
|
|
108
|
+
onPointerDown: (e) => {
|
|
109
|
+
p.onPointerDown?.(e);
|
|
110
|
+
hide();
|
|
111
|
+
},
|
|
112
|
+
onFocus: (e) => {
|
|
113
|
+
p.onFocus?.(e);
|
|
114
|
+
if (e.target.matches?.(":focus-visible")) show(true);
|
|
115
|
+
},
|
|
116
|
+
onBlur: (e) => {
|
|
117
|
+
p.onBlur?.(e);
|
|
118
|
+
hide();
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const side = pos?.side ?? placement.split("-")[0];
|
|
122
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
123
|
+
trigger,
|
|
124
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3HEEAHX_cjs.Portal, { container, anchor: triggerRef.current, children: /* @__PURE__ */ jsxRuntime.jsx(react.AnimatePresence, { children: open && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
125
|
+
react.motion.div,
|
|
126
|
+
{
|
|
127
|
+
ref: tipRef,
|
|
128
|
+
id,
|
|
129
|
+
role: "tooltip",
|
|
130
|
+
className: chunkB3D6KWG3_cjs.cx("sp-tooltip", className),
|
|
131
|
+
"data-side": side,
|
|
132
|
+
style: { top: pos?.top ?? -9999, left: pos?.left ?? -9999, transformOrigin: pos?.origin, visibility: pos ? "visible" : "hidden", pointerEvents: "none", x, y },
|
|
133
|
+
initial: { opacity: glide.current ? 0.7 : 0, scale: reduced || glide.current ? 1 : 0.96 },
|
|
134
|
+
animate: { opacity: 1, scale: 1 },
|
|
135
|
+
exit: { opacity: 0, transition: { duration: 0.08 } },
|
|
136
|
+
transition: t({ type: "spring", stiffness: 700, damping: 40, mass: 0.6 }),
|
|
137
|
+
children: [
|
|
138
|
+
content,
|
|
139
|
+
shortcut && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sp-tooltip__keys", "aria-label": `Shortcut ${shortcut}`, children: shortcut.split(/\s*\+\s*|\s+/).map((k, i) => /* @__PURE__ */ jsxRuntime.jsx("kbd", { children: k }, i)) })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
) }) })
|
|
143
|
+
] });
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useMotionPreset } from './chunk-VDQ3DWO4.js';
|
|
3
|
+
import { cx } from './chunk-K6X6O42N.js';
|
|
4
|
+
import { motion } from 'motion/react';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function Stepper({ steps, current, orientation = "horizontal", onStepClick, size = "md", className, ...rest }) {
|
|
8
|
+
const { t } = useMotionPreset();
|
|
9
|
+
return /* @__PURE__ */ jsx("ol", { ...rest, className: cx("sp-stepper", className), "data-orientation": orientation, "data-size": size, "aria-label": rest["aria-label"] ?? "Progress", children: steps.map((step, i) => {
|
|
10
|
+
const state = step.error ? "error" : i < current ? "complete" : i === current ? "current" : "upcoming";
|
|
11
|
+
const clickable = !!onStepClick && i < current;
|
|
12
|
+
const Marker = clickable ? "button" : "span";
|
|
13
|
+
return /* @__PURE__ */ jsxs("li", { className: "sp-stepper__step", "data-state": state, "aria-current": i === current ? "step" : void 0, children: [
|
|
14
|
+
/* @__PURE__ */ jsxs(
|
|
15
|
+
Marker,
|
|
16
|
+
{
|
|
17
|
+
...clickable ? { type: "button", onClick: () => onStepClick?.(i) } : {},
|
|
18
|
+
className: cx("sp-stepper__head", clickable && "sp-reset-button"),
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsx("span", { className: "sp-stepper__dot", "aria-hidden": true, children: state === "complete" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", width: "12", height: "12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx(motion.path, { d: "m3.5 8.3 2.9 2.8 6.1-6.2", initial: { pathLength: 0 }, animate: { pathLength: 1 }, transition: t({ duration: 0.28, ease: [0.22, 1, 0.36, 1] }) }) }) : state === "error" ? "!" : i + 1 }),
|
|
21
|
+
/* @__PURE__ */ jsxs("span", { className: "sp-stepper__text", children: [
|
|
22
|
+
/* @__PURE__ */ jsx("span", { className: "sp-stepper__label", children: step.label }),
|
|
23
|
+
step.description && /* @__PURE__ */ jsx("span", { className: "sp-stepper__desc", children: step.description })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ jsx("span", { className: "sp-sr-only", children: state === "complete" ? " (completed)" : state === "error" ? " (has errors)" : "" })
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
i < steps.length - 1 && /* @__PURE__ */ jsx("span", { className: "sp-stepper__line", "aria-hidden": true, children: /* @__PURE__ */ jsx(motion.span, { className: "sp-stepper__fill", initial: false, animate: { scaleX: orientation === "horizontal" ? i < current ? 1 : 0 : 1, scaleY: orientation === "vertical" ? i < current ? 1 : 0 : 1 }, transition: t({ type: "spring", visualDuration: 0.4, bounce: 0 }) }) })
|
|
30
|
+
] }, step.id);
|
|
31
|
+
}) });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Stepper };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useIsoLayoutEffect } from './chunk-4C7VKLTU.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
var PAD = 8;
|
|
6
|
+
var OPPOSITE = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
7
|
+
function computePosition(trigger, content, placement, offset, frame) {
|
|
8
|
+
const [side0, align = "center"] = placement.split("-");
|
|
9
|
+
const vw = frame.width;
|
|
10
|
+
const vh = frame.height;
|
|
11
|
+
const t = { left: trigger.left - frame.left, top: trigger.top - frame.top, right: trigger.right - frame.left, bottom: trigger.bottom - frame.top, width: trigger.width, height: trigger.height };
|
|
12
|
+
let side = side0;
|
|
13
|
+
const fits = (s) => s === "bottom" ? t.bottom + offset + content.height <= vh - PAD : s === "top" ? t.top - offset - content.height >= PAD : s === "right" ? t.right + offset + content.width <= vw - PAD : t.left - offset - content.width >= PAD;
|
|
14
|
+
if (!fits(side) && fits(OPPOSITE[side])) side = OPPOSITE[side];
|
|
15
|
+
let top = 0;
|
|
16
|
+
let left = 0;
|
|
17
|
+
if (side === "bottom" || side === "top") {
|
|
18
|
+
top = side === "bottom" ? t.bottom + offset : t.top - offset - content.height;
|
|
19
|
+
left = align === "start" ? t.left : align === "end" ? t.right - content.width : t.left + t.width / 2 - content.width / 2;
|
|
20
|
+
} else {
|
|
21
|
+
left = side === "right" ? t.right + offset : t.left - offset - content.width;
|
|
22
|
+
top = align === "start" ? t.top : align === "end" ? t.bottom - content.height : t.top + t.height / 2 - content.height / 2;
|
|
23
|
+
}
|
|
24
|
+
left = Math.min(Math.max(PAD, left), Math.max(PAD, vw - content.width - PAD));
|
|
25
|
+
top = Math.min(Math.max(PAD, top), Math.max(PAD, vh - content.height - PAD));
|
|
26
|
+
const ox = Math.min(Math.max(0, t.left + t.width / 2 - left), content.width);
|
|
27
|
+
const oy = Math.min(Math.max(0, t.top + t.height / 2 - top), content.height);
|
|
28
|
+
const origin = side === "bottom" ? `${ox}px 0px` : side === "top" ? `${ox}px ${content.height}px` : side === "right" ? `0px ${oy}px` : `${content.width}px ${oy}px`;
|
|
29
|
+
return { top, left, side, origin };
|
|
30
|
+
}
|
|
31
|
+
function useFloatingPosition(open, triggerRef, contentRef, placement, offset = 8) {
|
|
32
|
+
const [pos, setPos] = React.useState(null);
|
|
33
|
+
const update = React.useCallback(() => {
|
|
34
|
+
const trigger = triggerRef.current;
|
|
35
|
+
const el = contentRef.current;
|
|
36
|
+
if (!trigger || !el) return;
|
|
37
|
+
const frameEl = el.closest(".sp-portal");
|
|
38
|
+
const frame = frameEl?.getBoundingClientRect() ?? new DOMRect(0, 0, window.innerWidth, window.innerHeight);
|
|
39
|
+
const next = computePosition(trigger.getBoundingClientRect(), { width: el.offsetWidth, height: el.offsetHeight }, placement, offset, frame);
|
|
40
|
+
setPos((prev) => prev && prev.top === next.top && prev.left === next.left && prev.side === next.side && prev.origin === next.origin ? prev : next);
|
|
41
|
+
}, [placement, offset]);
|
|
42
|
+
useIsoLayoutEffect(() => {
|
|
43
|
+
if (!open) {
|
|
44
|
+
setPos(null);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
update();
|
|
48
|
+
const raf = requestAnimationFrame(update);
|
|
49
|
+
window.addEventListener("resize", update);
|
|
50
|
+
window.addEventListener("scroll", update, true);
|
|
51
|
+
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(update) : null;
|
|
52
|
+
if (contentRef.current) ro?.observe(contentRef.current);
|
|
53
|
+
return () => {
|
|
54
|
+
cancelAnimationFrame(raf);
|
|
55
|
+
window.removeEventListener("resize", update);
|
|
56
|
+
window.removeEventListener("scroll", update, true);
|
|
57
|
+
ro?.disconnect();
|
|
58
|
+
};
|
|
59
|
+
}, [open, update]);
|
|
60
|
+
return { pos, update };
|
|
61
|
+
}
|
|
62
|
+
function useOutsidePress(active, refs, onOutside) {
|
|
63
|
+
const cb = React.useRef(onOutside);
|
|
64
|
+
cb.current = onOutside;
|
|
65
|
+
React.useEffect(() => {
|
|
66
|
+
if (!active) return;
|
|
67
|
+
const onDown = (event) => {
|
|
68
|
+
const target = event.target;
|
|
69
|
+
if (refs.some((r) => r.current?.contains(target))) return;
|
|
70
|
+
cb.current();
|
|
71
|
+
};
|
|
72
|
+
document.addEventListener("pointerdown", onDown, true);
|
|
73
|
+
return () => document.removeEventListener("pointerdown", onDown, true);
|
|
74
|
+
}, [active]);
|
|
75
|
+
}
|
|
76
|
+
function enterFrom(side, distance) {
|
|
77
|
+
return side === "bottom" ? { y: -distance } : side === "top" ? { y: distance } : side === "right" ? { x: -distance } : { x: distance };
|
|
78
|
+
}
|
|
79
|
+
function getElementRef(element) {
|
|
80
|
+
return element.props.ref ?? element.ref;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { computePosition, enterFrom, getElementRef, useFloatingPosition, useOutsidePress };
|