@dmsi/wedgekit-react 0.0.4 → 0.0.6
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/{chunk-25Y2OMTD.js → chunk-6ZY524ID.js} +8 -4
- package/dist/{chunk-UGXT677T.js → chunk-BWRHL2AG.js} +4 -2
- package/dist/{chunk-VFWFORJJ.js → chunk-DKKYR6DS.js} +1 -0
- package/dist/{chunk-TBHTISFW.js → chunk-GTCSRHPF.js} +1 -1
- package/dist/chunk-I2UVVKQI.js +12 -0
- package/dist/{chunk-CABAANHQ.js → chunk-L4UM372R.js} +5 -1
- package/dist/chunk-Q3FKEKIN.js +23 -0
- package/dist/{chunk-YD462QK7.js → chunk-TAW5ZZ4Z.js} +4 -4
- package/dist/{chunk-UEN5BURK.js → chunk-TRUPPHBQ.js} +14 -11
- package/dist/{chunk-2B7WUAOV.js → chunk-TU55CHXU.js} +4 -2
- package/dist/{chunk-PMQOPIJZ.js → chunk-U42SKNR6.js} +45 -16
- package/dist/{chunk-SPQH4CSJ.js → chunk-XUIPGYP5.js} +11 -3
- package/dist/components/Checkbox.cjs +1 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/DataGrid.cjs +145 -17
- package/dist/components/DataGrid.js +138 -19
- package/dist/components/DataGridCell.cjs +4 -2
- package/dist/components/DataGridCell.js +4 -4
- package/dist/components/DateInput.cjs +4 -2
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangeInput.cjs +4 -2
- package/dist/components/DateRangeInput.js +1 -1
- package/dist/components/FilterGroup.cjs +559 -31
- package/dist/components/FilterGroup.js +21 -3
- package/dist/components/Input.cjs +4 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/MainBar.cjs +2 -1
- package/dist/components/MainBar.js +2 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/MobileDataGrid.cjs +658 -0
- package/dist/components/MobileDataGrid.js +125 -0
- package/dist/components/Modal.cjs +147 -52
- package/dist/components/Modal.js +80 -30
- package/dist/components/ModalButtons.cjs +7 -3
- package/dist/components/ModalButtons.js +1 -1
- package/dist/components/ModalContent.cjs +25 -2
- package/dist/components/ModalContent.js +1 -1
- package/dist/components/ModalHeader.cjs +11 -3
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/ModalScrim.cjs +5 -6
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/Notification.cjs +137 -26
- package/dist/components/Notification.js +29 -16
- package/dist/components/Password.cjs +4 -2
- package/dist/components/Password.js +1 -1
- package/dist/components/Search.cjs +4 -2
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.cjs +15 -7
- package/dist/components/Select.js +2 -2
- package/dist/components/SideMenuGroup.cjs +45 -16
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +45 -16
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/Stack.cjs +45 -16
- package/dist/components/Stack.js +1 -1
- package/dist/components/Stepper.cjs +4 -2
- package/dist/components/Stepper.js +1 -1
- package/dist/components/Surface.cjs +4 -4
- package/dist/components/Surface.js +36 -3
- package/dist/components/Swatch.cjs +971 -22
- package/dist/components/Swatch.js +928 -7
- package/dist/components/Theme.js +3 -9
- package/dist/components/Time.cjs +150 -91
- package/dist/components/Time.js +48 -60
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/fonts.css +2 -0
- package/dist/index.css +371 -19
- package/package.json +1 -1
- package/src/brand.css +16 -1
- package/src/components/Checkbox.tsx +1 -0
- package/src/components/DataGrid.tsx +132 -3
- package/src/components/FilterGroup.tsx +25 -2
- package/src/components/Input.tsx +4 -1
- package/src/components/MainBar.tsx +2 -1
- package/src/components/Menu.tsx +11 -4
- package/src/components/MobileDataGrid.tsx +135 -0
- package/src/components/Modal.tsx +73 -13
- package/src/components/ModalButtons.tsx +26 -17
- package/src/components/ModalContent.tsx +20 -2
- package/src/components/ModalHeader.tsx +24 -13
- package/src/components/ModalScrim.tsx +4 -3
- package/src/components/Notification.tsx +21 -14
- package/src/components/Select.tsx +7 -9
- package/src/components/Stack.tsx +85 -20
- package/src/components/Surface.tsx +4 -5
- package/src/components/Swatch.tsx +779 -6
- package/src/components/Time.tsx +51 -70
- package/src/components/Toast.tsx +1 -1
- package/src/darkmode.css +18 -3
- package/src/fonts.css +2 -0
- package/src/index.css +23 -3
- package/dist/acc.css +0 -3
- package/dist/agility.css +0 -7
- package/dist/chunk-22YZ6LFN.js +0 -322
- package/dist/chunk-27OSC5OM.js +0 -68
- package/dist/chunk-2EHJFFX4.js +0 -124
- package/dist/chunk-2GC2SPSS.js +0 -130
- package/dist/chunk-2KLCMD2M.js +0 -106
- package/dist/chunk-2TLQVCQQ.js +0 -130
- package/dist/chunk-2Y6GPKXR.js +0 -263
- package/dist/chunk-322ATVWD.js +0 -298
- package/dist/chunk-35DCQU2F.js +0 -127
- package/dist/chunk-3B7FAEF7.js +0 -38
- package/dist/chunk-3FLOLZYP.js +0 -21
- package/dist/chunk-3IZWY2C7.js +0 -221
- package/dist/chunk-3NGYDV56.js +0 -38
- package/dist/chunk-3NLKVKFR.js +0 -72
- package/dist/chunk-3R7YVBRL.js +0 -135
- package/dist/chunk-3RDFNEVD.js +0 -91
- package/dist/chunk-3TPGMRVY.js +0 -123
- package/dist/chunk-42X2EOOI.js +0 -129
- package/dist/chunk-47GJZWOH.js +0 -103
- package/dist/chunk-4BUU5MTT.js +0 -263
- package/dist/chunk-4IZG2UCW.js +0 -31
- package/dist/chunk-4M7CJVTZ.js +0 -136
- package/dist/chunk-4NZBVXM3.js +0 -53
- package/dist/chunk-4S4WZ3MQ.js +0 -103
- package/dist/chunk-4SV7MJMP.js +0 -340
- package/dist/chunk-4TH2SUHQ.js +0 -145
- package/dist/chunk-56ORPWGF.js +0 -148
- package/dist/chunk-5HIUW5CM.js +0 -128
- package/dist/chunk-5K3U4IUW.js +0 -34
- package/dist/chunk-5KOZKEEM.js +0 -91
- package/dist/chunk-5OIRPFRD.js +0 -114
- package/dist/chunk-5QW5SJNW.js +0 -31
- package/dist/chunk-5QZO37QK.js +0 -263
- package/dist/chunk-5ROMJJRK.js +0 -135
- package/dist/chunk-5VHYVTZI.js +0 -123
- package/dist/chunk-6277DY3K.js +0 -437
- package/dist/chunk-6C5NOV6D.js +0 -263
- package/dist/chunk-6CDVHKTS.js +0 -103
- package/dist/chunk-6E4OJA7E.js +0 -263
- package/dist/chunk-6GBZFWQ4.js +0 -105
- package/dist/chunk-6GGLA6DI.js +0 -263
- package/dist/chunk-6HKVN4QK.js +0 -340
- package/dist/chunk-6HLJFPGY.js +0 -284
- package/dist/chunk-6KUUK27D.js +0 -31
- package/dist/chunk-6Q5NNY5V.js +0 -135
- package/dist/chunk-6VAZR5GK.js +0 -122
- package/dist/chunk-6XDXJ3Z3.js +0 -131
- package/dist/chunk-6XIXUFSA.js +0 -114
- package/dist/chunk-7CG4GVU7.js +0 -21
- package/dist/chunk-7DNCGSXK.js +0 -284
- package/dist/chunk-7GFGBJCU.js +0 -287
- package/dist/chunk-7VA3AERB.js +0 -31
- package/dist/chunk-7YJLGGIR.js +0 -83
- package/dist/chunk-7ZCBQXHR.js +0 -272
- package/dist/chunk-A4BGWCF6.js +0 -221
- package/dist/chunk-A6RDEIAN.js +0 -254
- package/dist/chunk-AE7SZPWF.js +0 -121
- package/dist/chunk-AEQYZFXI.js +0 -50
- package/dist/chunk-AFEIB2Y7.js +0 -213
- package/dist/chunk-AGQML5BM.js +0 -340
- package/dist/chunk-AHBE63RV.js +0 -263
- package/dist/chunk-AHHXD4EH.js +0 -31
- package/dist/chunk-AILPQXDY.js +0 -47
- package/dist/chunk-AKTL6JU5.js +0 -25
- package/dist/chunk-AMZFEIAM.js +0 -114
- package/dist/chunk-ANI7PKSV.js +0 -38
- package/dist/chunk-AO6WGDPJ.js +0 -105
- package/dist/chunk-ASDN5OZ3.js +0 -318
- package/dist/chunk-ASSOOV4N.js +0 -53
- package/dist/chunk-AWSUZLRR.js +0 -79
- package/dist/chunk-B6A3BOGW.js +0 -31
- package/dist/chunk-B6NMINKX.js +0 -72
- package/dist/chunk-B7UOXS2S.js +0 -221
- package/dist/chunk-BDN7SDV5.js +0 -31
- package/dist/chunk-BDPJYJD2.js +0 -218
- package/dist/chunk-BDYWCYRG.js +0 -263
- package/dist/chunk-BENTHNAQ.js +0 -51
- package/dist/chunk-BGPBLXQ5.js +0 -131
- package/dist/chunk-BKC5DNOX.js +0 -162
- package/dist/chunk-BMGYSXYW.js +0 -50
- package/dist/chunk-BNOE4DGB.js +0 -79
- package/dist/chunk-BQMI4NKT.js +0 -103
- package/dist/chunk-BSBXTPTA.js +0 -84
- package/dist/chunk-BYNATA7V.js +0 -114
- package/dist/chunk-BZFVPEG3.js +0 -98
- package/dist/chunk-C2GYWE4S.js +0 -263
- package/dist/chunk-C5NNFQ4B.js +0 -114
- package/dist/chunk-C7ALJGJG.js +0 -322
- package/dist/chunk-C7S6DKZ6.js +0 -31
- package/dist/chunk-CA4BW655.js +0 -50
- package/dist/chunk-CELC37U6.js +0 -38
- package/dist/chunk-CIWOBFZ4.js +0 -340
- package/dist/chunk-CKB4S3O3.js +0 -284
- package/dist/chunk-CL6RYGIT.js +0 -263
- package/dist/chunk-CLB4OQS5.js +0 -84
- package/dist/chunk-CMBMFSP4.js +0 -340
- package/dist/chunk-CTHHLBRT.js +0 -90
- package/dist/chunk-DDQ4KWHW.js +0 -74
- package/dist/chunk-DHWXCPF2.js +0 -56
- package/dist/chunk-DV3IMUO6.js +0 -50
- package/dist/chunk-DZHPNWUL.js +0 -70
- package/dist/chunk-DZLUR2I7.js +0 -34
- package/dist/chunk-E7H6GJIB.js +0 -31
- package/dist/chunk-EAJ37R7R.js +0 -31
- package/dist/chunk-EDMIKY4Q.js +0 -50
- package/dist/chunk-EE4GUGFX.js +0 -31
- package/dist/chunk-EHCD3FVZ.js +0 -50
- package/dist/chunk-EHOMG5B4.js +0 -31
- package/dist/chunk-EM7ODK2O.js +0 -53
- package/dist/chunk-ER3HQRPL.js +0 -105
- package/dist/chunk-ER6TD3DA.js +0 -30
- package/dist/chunk-ESK7AT3B.js +0 -38
- package/dist/chunk-ETWMDEUU.js +0 -114
- package/dist/chunk-EWX2EDF5.js +0 -236
- package/dist/chunk-EXJKOP3Y.js +0 -236
- package/dist/chunk-F2YQE6G5.js +0 -145
- package/dist/chunk-F3U3RHIB.js +0 -131
- package/dist/chunk-F433MJII.js +0 -91
- package/dist/chunk-F4JE6AD2.js +0 -160
- package/dist/chunk-FCYGYC7R.js +0 -30
- package/dist/chunk-FEEMBYZR.js +0 -98
- package/dist/chunk-FKQ63FLW.js +0 -91
- package/dist/chunk-FNFDOS7L.js +0 -263
- package/dist/chunk-FNLYAP3I.js +0 -135
- package/dist/chunk-FQVCRL3Z.js +0 -145
- package/dist/chunk-FZ6I2KRT.js +0 -263
- package/dist/chunk-FZLYFJ53.js +0 -26
- package/dist/chunk-G3AYBQ2Y.js +0 -221
- package/dist/chunk-G4V7WZAV.js +0 -72
- package/dist/chunk-GDAY5XPY.js +0 -47
- package/dist/chunk-GELM4Z36.js +0 -263
- package/dist/chunk-GGR5UY3Q.js +0 -83
- package/dist/chunk-GK556OXV.js +0 -263
- package/dist/chunk-GOB3NB3Q.js +0 -130
- package/dist/chunk-GPIG2QUB.js +0 -437
- package/dist/chunk-GV63QYC5.js +0 -130
- package/dist/chunk-GWNDXZUZ.js +0 -263
- package/dist/chunk-H3INEB6H.js +0 -296
- package/dist/chunk-H3VQYL46.js +0 -50
- package/dist/chunk-H53EBFHV.js +0 -114
- package/dist/chunk-HBD6NLMB.js +0 -51
- package/dist/chunk-HBTQFVPW.js +0 -121
- package/dist/chunk-HCDYAZGJ.js +0 -91
- package/dist/chunk-HE3XKR3P.js +0 -130
- package/dist/chunk-HK3NQMPY.js +0 -51
- package/dist/chunk-HK54SJNM.js +0 -103
- package/dist/chunk-HL2IYNCS.js +0 -50
- package/dist/chunk-I5A3SU35.js +0 -282
- package/dist/chunk-I5HKQSF2.js +0 -59
- package/dist/chunk-I7LXSGQA.js +0 -10
- package/dist/chunk-IDAZ53A4.js +0 -261
- package/dist/chunk-II6HWGH6.js +0 -295
- package/dist/chunk-IIDPTJCI.js +0 -31
- package/dist/chunk-IJ6AAL4W.js +0 -59
- package/dist/chunk-IKZQIIV3.js +0 -123
- package/dist/chunk-ISKELMPI.js +0 -67
- package/dist/chunk-IWUZ6NSN.js +0 -218
- package/dist/chunk-IYDKL3OH.js +0 -130
- package/dist/chunk-IZ75D7KD.js +0 -30
- package/dist/chunk-JCLVMFRY.js +0 -122
- package/dist/chunk-JDHZQIFC.js +0 -135
- package/dist/chunk-JFMZU3WS.js +0 -123
- package/dist/chunk-JI54AM6E.js +0 -105
- package/dist/chunk-JM4DMO5V.js +0 -91
- package/dist/chunk-JNLDVEK3.js +0 -221
- package/dist/chunk-JU3RVFK5.js +0 -114
- package/dist/chunk-JU4PINK3.js +0 -282
- package/dist/chunk-K2YPB4SV.js +0 -38
- package/dist/chunk-K5EXR7F7.js +0 -253
- package/dist/chunk-K7CWFWAA.js +0 -263
- package/dist/chunk-KGCFZ3ZY.js +0 -263
- package/dist/chunk-KJEU2OLC.js +0 -263
- package/dist/chunk-KNZWZVWO.js +0 -50
- package/dist/chunk-KVQDUSDT.js +0 -33
- package/dist/chunk-KXFCVFX7.js +0 -50
- package/dist/chunk-KXWYWY7O.js +0 -135
- package/dist/chunk-KYJFCVGO.js +0 -53
- package/dist/chunk-L4SK5HYC.js +0 -114
- package/dist/chunk-L5OMTPWT.js +0 -130
- package/dist/chunk-LBL6VQ5F.js +0 -51
- package/dist/chunk-LCJKAY5H.js +0 -122
- package/dist/chunk-LEPHUIU3.js +0 -263
- package/dist/chunk-LFNCUQNK.js +0 -103
- package/dist/chunk-LIQIMUDD.js +0 -270
- package/dist/chunk-LJ2W2FEG.js +0 -134
- package/dist/chunk-LJGUNBDS.js +0 -238
- package/dist/chunk-LK6UNOMX.js +0 -24
- package/dist/chunk-LQLPGMGP.js +0 -238
- package/dist/chunk-LRNZOITG.js +0 -318
- package/dist/chunk-LSDPH4GX.js +0 -38
- package/dist/chunk-LXYDGV6K.js +0 -437
- package/dist/chunk-MFNBBTWX.js +0 -177
- package/dist/chunk-MGJ3GO6Z.js +0 -284
- package/dist/chunk-MIMYQH75.js +0 -91
- package/dist/chunk-MKIVQLZW.js +0 -122
- package/dist/chunk-MLQQU3ZN.js +0 -31
- package/dist/chunk-MLTOT73W.js +0 -38
- package/dist/chunk-MM2YBW7A.js +0 -31
- package/dist/chunk-MMHTKJ7Z.js +0 -50
- package/dist/chunk-MNZUBPVB.js +0 -263
- package/dist/chunk-MRXJRTKP.js +0 -62
- package/dist/chunk-MSM2B2VT.js +0 -106
- package/dist/chunk-MTJDLHR6.js +0 -218
- package/dist/chunk-MU4ZBPUT.js +0 -263
- package/dist/chunk-MUQHKNFV.js +0 -158
- package/dist/chunk-N2XNU5PP.js +0 -91
- package/dist/chunk-N4NGR36H.js +0 -263
- package/dist/chunk-NA4H2JQX.js +0 -145
- package/dist/chunk-NBV3Y6UB.js +0 -315
- package/dist/chunk-NEBYCDGE.js +0 -284
- package/dist/chunk-NS2KPONF.js +0 -263
- package/dist/chunk-O2KOOPL4.js +0 -148
- package/dist/chunk-OEIQDS7X.js +0 -50
- package/dist/chunk-OJ4PX3ZG.js +0 -59
- package/dist/chunk-OOIM4AHV.js +0 -106
- package/dist/chunk-OQ2SDHRA.js +0 -267
- package/dist/chunk-OQAOAEH5.js +0 -114
- package/dist/chunk-OQWOF5CI.js +0 -322
- package/dist/chunk-ORW5CX24.js +0 -316
- package/dist/chunk-OUHI4UBN.js +0 -38
- package/dist/chunk-OULD24TE.js +0 -98
- package/dist/chunk-P66A67NV.js +0 -30
- package/dist/chunk-PC5JSEHD.js +0 -269
- package/dist/chunk-PLCJ56FF.js +0 -72
- package/dist/chunk-PMNRGAPH.js +0 -191
- package/dist/chunk-PPU6PK34.js +0 -263
- package/dist/chunk-PQEWSSM5.js +0 -31
- package/dist/chunk-PY6MF2II.js +0 -51
- package/dist/chunk-QBXVAKCM.js +0 -59
- package/dist/chunk-QDAFX66E.js +0 -55
- package/dist/chunk-QEXYUSGH.js +0 -201
- package/dist/chunk-QFEYPU44.js +0 -91
- package/dist/chunk-QJWVR7FR.js +0 -387
- package/dist/chunk-QKKRKHFR.js +0 -38
- package/dist/chunk-QKQ4M6UK.js +0 -263
- package/dist/chunk-QTKPVQAY.js +0 -66
- package/dist/chunk-R3IEEDQ6.js +0 -284
- package/dist/chunk-R4UZI5WE.js +0 -171
- package/dist/chunk-RBXILAST.js +0 -437
- package/dist/chunk-RENGWIST.js +0 -263
- package/dist/chunk-REZ33AJK.js +0 -172
- package/dist/chunk-RGI3V47F.js +0 -216
- package/dist/chunk-RMIQDOJV.js +0 -287
- package/dist/chunk-ROYYCT4A.js +0 -31
- package/dist/chunk-RWVJ2YAO.js +0 -131
- package/dist/chunk-RZLSOKZB.js +0 -123
- package/dist/chunk-S3POCSOH.js +0 -31
- package/dist/chunk-S4IHG5J6.js +0 -54
- package/dist/chunk-SHQVFIVR.js +0 -122
- package/dist/chunk-SPV52UKB.js +0 -50
- package/dist/chunk-SSBZHFHQ.js +0 -123
- package/dist/chunk-STVC6SBJ.js +0 -91
- package/dist/chunk-T23U4LBM.js +0 -148
- package/dist/chunk-TC5ACZ3X.js +0 -263
- package/dist/chunk-TD5JMMNX.js +0 -72
- package/dist/chunk-TDEEN7O7.js +0 -50
- package/dist/chunk-TKRAU33B.js +0 -53
- package/dist/chunk-TMLPJ27P.js +0 -126
- package/dist/chunk-TTKSTVEF.js +0 -41
- package/dist/chunk-TVYKK7ZX.js +0 -123
- package/dist/chunk-TZCA2T5D.js +0 -282
- package/dist/chunk-U2CMWI75.js +0 -250
- package/dist/chunk-UA7N4NQJ.js +0 -30
- package/dist/chunk-ULCNZZBV.js +0 -38
- package/dist/chunk-UO4T3RQ7.js +0 -62
- package/dist/chunk-US3SPKKB.js +0 -266
- package/dist/chunk-UUNHTQDU.js +0 -79
- package/dist/chunk-UUZXVVJY.js +0 -161
- package/dist/chunk-UZJMB6V7.js +0 -26
- package/dist/chunk-V3HXUE6V.js +0 -221
- package/dist/chunk-V6UMVJGA.js +0 -53
- package/dist/chunk-V7C6DTJ6.js +0 -72
- package/dist/chunk-VHWB6H64.js +0 -75
- package/dist/chunk-VI62SXXU.js +0 -284
- package/dist/chunk-VK3FB67Z.js +0 -31
- package/dist/chunk-VKC7QT46.js +0 -83
- package/dist/chunk-VVTY2NT4.js +0 -105
- package/dist/chunk-VWEOVI4O.js +0 -123
- package/dist/chunk-WOCMJF6O.js +0 -221
- package/dist/chunk-WPDU5H5L.js +0 -114
- package/dist/chunk-WQMFGEAF.js +0 -235
- package/dist/chunk-WTAZ6P6T.js +0 -263
- package/dist/chunk-WUJFEG3H.js +0 -118
- package/dist/chunk-WUTFZGXS.js +0 -50
- package/dist/chunk-X65IBJJM.js +0 -436
- package/dist/chunk-XATMLZOP.js +0 -263
- package/dist/chunk-XFCRKJRI.js +0 -261
- package/dist/chunk-XGKHSZ6E.js +0 -38
- package/dist/chunk-XJAQVF2E.js +0 -83
- package/dist/chunk-XQX7HSL5.js +0 -38
- package/dist/chunk-XTP3ODBD.js +0 -56
- package/dist/chunk-XWF3ZJCZ.js +0 -97
- package/dist/chunk-XX3GHFG5.js +0 -121
- package/dist/chunk-XZ6AMNDQ.js +0 -290
- package/dist/chunk-Y2LOHSZL.js +0 -72
- package/dist/chunk-Y66VCVZZ.js +0 -122
- package/dist/chunk-YELD6VJI.js +0 -68
- package/dist/chunk-YHPZ5T3W.js +0 -91
- package/dist/chunk-YJV7JCIC.js +0 -38
- package/dist/chunk-YMZUZ5HX.js +0 -263
- package/dist/chunk-YN7MUHAZ.js +0 -218
- package/dist/chunk-YOCKCBUA.js +0 -72
- package/dist/chunk-YPFUW2PT.js +0 -306
- package/dist/chunk-YRLRIQNP.js +0 -284
- package/dist/chunk-YRTR6KJN.js +0 -210
- package/dist/chunk-YSSJHCRC.js +0 -221
- package/dist/chunk-YWLJJNJY.js +0 -259
- package/dist/chunk-YYRH2SGW.js +0 -114
- package/dist/chunk-YZRIJ4AP.js +0 -263
- package/dist/chunk-Z64CLA4J.js +0 -53
- package/dist/chunk-ZCFOYW2U.js +0 -296
- package/dist/chunk-ZEYZVUG5.js +0 -53
- package/dist/chunk-ZHRZMJA3.js +0 -31
- package/dist/chunk-ZJQAMKIP.js +0 -113
- package/dist/chunk-ZRQZOT6X.js +0 -141
- package/dist/chunk-ZUTAZW53.js +0 -306
- package/dist/chunk-ZVJ2T3DC.js +0 -79
- package/dist/chunk-ZWJZHUKU.js +0 -50
- package/dist/chunk-ZXQKFHBO.js +0 -221
- package/dist/components/Calendar.cjs +0 -219
- package/dist/components/Calendar.js +0 -10
- package/dist/components/CalendarRange.stories.cjs +0 -1
- package/dist/components/CalendarRange.stories.js +0 -0
- package/dist/components/Display1.cjs +0 -223
- package/dist/components/Display1.js +0 -8
- package/dist/components/Display2.cjs +0 -220
- package/dist/components/Display2.js +0 -46
- package/dist/components/Heading1.cjs +0 -223
- package/dist/components/Heading1.js +0 -49
- package/dist/components/Heading2.cjs +0 -223
- package/dist/components/Heading2.js +0 -8
- package/dist/components/Heading3.cjs +0 -223
- package/dist/components/Heading3.js +0 -8
- package/dist/icons-light-QXLRBPC4.woff2 +0 -0
- package/dist/icons-normal-MJATZ73K.woff2 +0 -0
- package/dist/millwork.css +0 -4
package/dist/chunk-LIQIMUDD.js
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Label
|
|
3
|
-
} from "./chunk-S4IHG5J6.js";
|
|
4
|
-
import {
|
|
5
|
-
Icon
|
|
6
|
-
} from "./chunk-DZLUR2I7.js";
|
|
7
|
-
import {
|
|
8
|
-
baseTransition,
|
|
9
|
-
componentGap,
|
|
10
|
-
componentPaddingMinusBorder,
|
|
11
|
-
componentPaddingXUsingComponentGap,
|
|
12
|
-
typography
|
|
13
|
-
} from "./chunk-6XDXJ3Z3.js";
|
|
14
|
-
import {
|
|
15
|
-
__objRest,
|
|
16
|
-
__spreadProps,
|
|
17
|
-
__spreadValues
|
|
18
|
-
} from "./chunk-ORMEWXMH.js";
|
|
19
|
-
|
|
20
|
-
// src/components/Input.tsx
|
|
21
|
-
import clsx from "clsx";
|
|
22
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
-
var inputBaseClass = clsx(
|
|
24
|
-
"w-full",
|
|
25
|
-
"flex flex-row items-center",
|
|
26
|
-
"rounded-base border border-border-primary-normal bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
|
|
27
|
-
componentGap,
|
|
28
|
-
baseTransition,
|
|
29
|
-
"outline-transparent outline-2",
|
|
30
|
-
componentPaddingMinusBorder
|
|
31
|
-
);
|
|
32
|
-
var inputFocusClass = clsx(
|
|
33
|
-
"focus-within:border-transparent focus-within:outline-border-primary-focus"
|
|
34
|
-
);
|
|
35
|
-
var inputDisabledClass = clsx(
|
|
36
|
-
"has-disabled:bg-background-action-secondary-disabled"
|
|
37
|
-
);
|
|
38
|
-
var inputReadOnlyClass = clsx(
|
|
39
|
-
"has-[input:not(:disabled):read-only]:outline-none has-[input:not(:disabled):read-only]:bg-transparent has-[input:not(:disabled):read-only]:border-transparent has-[input:not(:disabled):read-only]:pl-0"
|
|
40
|
-
);
|
|
41
|
-
var inputInvalidClass = clsx(
|
|
42
|
-
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
43
|
-
);
|
|
44
|
-
var InputBase = (_a) => {
|
|
45
|
-
var _b = _a, {
|
|
46
|
-
before,
|
|
47
|
-
after,
|
|
48
|
-
type,
|
|
49
|
-
label,
|
|
50
|
-
error,
|
|
51
|
-
className,
|
|
52
|
-
align = "left",
|
|
53
|
-
caption,
|
|
54
|
-
required,
|
|
55
|
-
wrapperClassName,
|
|
56
|
-
inputContainerRef
|
|
57
|
-
} = _b, props = __objRest(_b, [
|
|
58
|
-
"before",
|
|
59
|
-
"after",
|
|
60
|
-
"type",
|
|
61
|
-
"label",
|
|
62
|
-
"error",
|
|
63
|
-
"className",
|
|
64
|
-
"align",
|
|
65
|
-
"caption",
|
|
66
|
-
"required",
|
|
67
|
-
"wrapperClassName",
|
|
68
|
-
"inputContainerRef"
|
|
69
|
-
]);
|
|
70
|
-
const attributes = {
|
|
71
|
-
"data-error": error || null
|
|
72
|
-
};
|
|
73
|
-
return /* @__PURE__ */ jsxs(
|
|
74
|
-
"label",
|
|
75
|
-
{
|
|
76
|
-
ref: inputContainerRef,
|
|
77
|
-
className: clsx(
|
|
78
|
-
"w-full flex flex-col",
|
|
79
|
-
"block",
|
|
80
|
-
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
81
|
-
!props.disabled && "has-[[data-error]]:text-text-primary-error",
|
|
82
|
-
componentGap
|
|
83
|
-
),
|
|
84
|
-
children: [
|
|
85
|
-
label && /* @__PURE__ */ jsxs("div", { className: clsx("flex items-center", componentGap), children: [
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
Label,
|
|
88
|
-
{
|
|
89
|
-
colorClassName: "text-inherit",
|
|
90
|
-
className: clsx(
|
|
91
|
-
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
92
|
-
),
|
|
93
|
-
children: label
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
required && /* @__PURE__ */ jsx(
|
|
97
|
-
"span",
|
|
98
|
-
{
|
|
99
|
-
className: clsx(typography.label, "text-text-critical-normal"),
|
|
100
|
-
children: "*"
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ jsxs(
|
|
105
|
-
"div",
|
|
106
|
-
{
|
|
107
|
-
className: clsx(
|
|
108
|
-
inputBaseClass,
|
|
109
|
-
!props.disabled && inputInvalidClass,
|
|
110
|
-
inputFocusClass,
|
|
111
|
-
inputDisabledClass,
|
|
112
|
-
inputReadOnlyClass,
|
|
113
|
-
wrapperClassName
|
|
114
|
-
),
|
|
115
|
-
children: [
|
|
116
|
-
before,
|
|
117
|
-
/* @__PURE__ */ jsx(
|
|
118
|
-
"input",
|
|
119
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
120
|
-
type,
|
|
121
|
-
required
|
|
122
|
-
}, props), attributes), {
|
|
123
|
-
id: props.id,
|
|
124
|
-
className: clsx(
|
|
125
|
-
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
126
|
-
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
127
|
-
"placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
|
|
128
|
-
align === "right" && "text-right",
|
|
129
|
-
align === "center" && "text-center",
|
|
130
|
-
componentPaddingXUsingComponentGap,
|
|
131
|
-
typography.paragraph,
|
|
132
|
-
className,
|
|
133
|
-
props.readOnly && !props.disabled && "!px-0"
|
|
134
|
-
)
|
|
135
|
-
})
|
|
136
|
-
),
|
|
137
|
-
after
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
caption
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
};
|
|
146
|
-
var Input = (_a) => {
|
|
147
|
-
var props = __objRest(_a, []);
|
|
148
|
-
return /* @__PURE__ */ jsx(InputBase, __spreadValues({}, props));
|
|
149
|
-
};
|
|
150
|
-
Input.displayName = "Input";
|
|
151
|
-
var Finder = (_a) => {
|
|
152
|
-
var props = __objRest(_a, []);
|
|
153
|
-
return /* @__PURE__ */ jsx(InputBase, __spreadProps(__spreadValues({}, props), { after: /* @__PURE__ */ jsx(Icon, { name: "search" }) }));
|
|
154
|
-
};
|
|
155
|
-
Finder.displayName = "Finder";
|
|
156
|
-
var Search = (_a) => {
|
|
157
|
-
var props = __objRest(_a, []);
|
|
158
|
-
var _a2;
|
|
159
|
-
return /* @__PURE__ */ jsx(
|
|
160
|
-
InputBase,
|
|
161
|
-
__spreadProps(__spreadValues({}, props), {
|
|
162
|
-
placeholder: (_a2 = props.placeholder) != null ? _a2 : "Search",
|
|
163
|
-
before: /* @__PURE__ */ jsx(Icon, { name: "search" }),
|
|
164
|
-
after: /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
165
|
-
})
|
|
166
|
-
);
|
|
167
|
-
};
|
|
168
|
-
Search.displayName = "Search";
|
|
169
|
-
var UOM = (_a) => {
|
|
170
|
-
var _b = _a, {
|
|
171
|
-
uom,
|
|
172
|
-
decimals
|
|
173
|
-
} = _b, props = __objRest(_b, [
|
|
174
|
-
"uom",
|
|
175
|
-
"decimals"
|
|
176
|
-
]);
|
|
177
|
-
const handleBlur = (e) => {
|
|
178
|
-
var _a2;
|
|
179
|
-
const formattedValue = formatDecimalValue(e.target.value, decimals);
|
|
180
|
-
e.target.value = formattedValue;
|
|
181
|
-
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
182
|
-
};
|
|
183
|
-
return /* @__PURE__ */ jsx(
|
|
184
|
-
InputBase,
|
|
185
|
-
__spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
|
|
186
|
-
type: "number",
|
|
187
|
-
align: "right",
|
|
188
|
-
after: /* @__PURE__ */ jsx("span", { className: "text-text-secondary-normal uppercase", children: uom }),
|
|
189
|
-
onBlur: handleBlur
|
|
190
|
-
})
|
|
191
|
-
);
|
|
192
|
-
};
|
|
193
|
-
UOM.displayName = "UOM";
|
|
194
|
-
var Currency = (_a) => {
|
|
195
|
-
var _b = _a, {
|
|
196
|
-
decimals
|
|
197
|
-
} = _b, props = __objRest(_b, [
|
|
198
|
-
"decimals"
|
|
199
|
-
]);
|
|
200
|
-
const handleBlur = (e) => {
|
|
201
|
-
var _a2;
|
|
202
|
-
const formattedValue = formatDecimalValue(e.target.value, decimals);
|
|
203
|
-
e.target.value = formattedValue;
|
|
204
|
-
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
205
|
-
};
|
|
206
|
-
return /* @__PURE__ */ jsx(
|
|
207
|
-
InputBase,
|
|
208
|
-
__spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
|
|
209
|
-
align: "right",
|
|
210
|
-
type: "number",
|
|
211
|
-
before: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "attach_money" }) }),
|
|
212
|
-
onBlur: handleBlur
|
|
213
|
-
})
|
|
214
|
-
);
|
|
215
|
-
};
|
|
216
|
-
Currency.displayName = "Currency";
|
|
217
|
-
var Percentage = (_a) => {
|
|
218
|
-
var _b = _a, {
|
|
219
|
-
decimals
|
|
220
|
-
} = _b, props = __objRest(_b, [
|
|
221
|
-
"decimals"
|
|
222
|
-
]);
|
|
223
|
-
const handleBlur = (e) => {
|
|
224
|
-
var _a2;
|
|
225
|
-
const formattedValue = formatDecimalValue(e.target.value, decimals);
|
|
226
|
-
e.target.value = formattedValue;
|
|
227
|
-
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
228
|
-
};
|
|
229
|
-
return /* @__PURE__ */ jsx(
|
|
230
|
-
InputBase,
|
|
231
|
-
__spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
|
|
232
|
-
align: "right",
|
|
233
|
-
type: "number",
|
|
234
|
-
after: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "percent" }) }),
|
|
235
|
-
onBlur: handleBlur
|
|
236
|
-
})
|
|
237
|
-
);
|
|
238
|
-
};
|
|
239
|
-
Percentage.displayName = "Percentage";
|
|
240
|
-
function getDecimalPlaceholder(decimals) {
|
|
241
|
-
if (!decimals || decimals <= 0) {
|
|
242
|
-
return {};
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
placeholder: `0.${"0".repeat(decimals)}`
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
function formatDecimalValue(value, decimals) {
|
|
249
|
-
if (!value || value === "") {
|
|
250
|
-
return "";
|
|
251
|
-
}
|
|
252
|
-
const numValue = typeof value === "string" ? parseFloat(value) : value;
|
|
253
|
-
if (isNaN(numValue)) {
|
|
254
|
-
return "";
|
|
255
|
-
}
|
|
256
|
-
if (!decimals || decimals <= 0) {
|
|
257
|
-
return String(Math.round(numValue));
|
|
258
|
-
}
|
|
259
|
-
return numValue.toFixed(decimals);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export {
|
|
263
|
-
InputBase,
|
|
264
|
-
Input,
|
|
265
|
-
Finder,
|
|
266
|
-
Search,
|
|
267
|
-
UOM,
|
|
268
|
-
Currency,
|
|
269
|
-
Percentage
|
|
270
|
-
};
|
package/dist/chunk-LJ2W2FEG.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
// src/classNames.ts
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
var typography = {
|
|
4
|
-
display1: clsx(
|
|
5
|
-
"font-sans font-semibold",
|
|
6
|
-
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
7
|
-
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
8
|
-
),
|
|
9
|
-
display2: clsx(
|
|
10
|
-
"font-sans font-bold",
|
|
11
|
-
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
12
|
-
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
13
|
-
),
|
|
14
|
-
heading1: clsx(
|
|
15
|
-
"font-sans font-semibold",
|
|
16
|
-
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
17
|
-
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
18
|
-
),
|
|
19
|
-
heading2: clsx(
|
|
20
|
-
"font-sans font-normal",
|
|
21
|
-
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
22
|
-
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
23
|
-
),
|
|
24
|
-
heading3: clsx(
|
|
25
|
-
"font-sans font-semibold",
|
|
26
|
-
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
27
|
-
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
28
|
-
),
|
|
29
|
-
subheader: clsx(
|
|
30
|
-
"font-sans font-semibold",
|
|
31
|
-
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
32
|
-
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
33
|
-
),
|
|
34
|
-
link: clsx(
|
|
35
|
-
"font-sans font-normal",
|
|
36
|
-
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
37
|
-
"leading-link-mobile desktop:leading-link-desktop"
|
|
38
|
-
),
|
|
39
|
-
buttonLabel: clsx(
|
|
40
|
-
"font-sans font-semibold",
|
|
41
|
-
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
42
|
-
"leading-label-mobile desktop:leading-label-desktop"
|
|
43
|
-
),
|
|
44
|
-
label: clsx(
|
|
45
|
-
"font-sans font-semibold",
|
|
46
|
-
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
47
|
-
"leading-label-mobile desktop:leading-label-desktop"
|
|
48
|
-
),
|
|
49
|
-
paragraph: clsx(
|
|
50
|
-
"font-sans font-normal",
|
|
51
|
-
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
52
|
-
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
53
|
-
),
|
|
54
|
-
caption: clsx(
|
|
55
|
-
"font-sans font-normal",
|
|
56
|
-
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
57
|
-
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
58
|
-
)
|
|
59
|
-
};
|
|
60
|
-
var baseTransition = clsx(
|
|
61
|
-
"transition-colors duration-100 ease-in-out"
|
|
62
|
-
);
|
|
63
|
-
var componentGap = clsx(
|
|
64
|
-
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
65
|
-
);
|
|
66
|
-
var paddingUsingComponentGap = clsx(
|
|
67
|
-
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
68
|
-
);
|
|
69
|
-
var paddingYUsingLayoutGroupGap = clsx(
|
|
70
|
-
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
71
|
-
);
|
|
72
|
-
var componentPadding = clsx(
|
|
73
|
-
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
74
|
-
);
|
|
75
|
-
var componentPaddingBottom = clsx(
|
|
76
|
-
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
77
|
-
);
|
|
78
|
-
var componentPaddingY = clsx(
|
|
79
|
-
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
80
|
-
);
|
|
81
|
-
var componentPaddingXUsingComponentGap = clsx(
|
|
82
|
-
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
83
|
-
);
|
|
84
|
-
var componentPaddingYUsingComponentGap = clsx(
|
|
85
|
-
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
86
|
-
);
|
|
87
|
-
var componentPaddingMinusBorder = clsx(
|
|
88
|
-
"p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
|
|
89
|
-
);
|
|
90
|
-
var componentPaddingMinus2pxBorder = clsx(
|
|
91
|
-
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
92
|
-
);
|
|
93
|
-
var layoutPaddingBottom = clsx(
|
|
94
|
-
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
95
|
-
);
|
|
96
|
-
var containerPaddingX = clsx(
|
|
97
|
-
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
98
|
-
);
|
|
99
|
-
var containerPaddingY = clsx(
|
|
100
|
-
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
101
|
-
);
|
|
102
|
-
var layoutGroupGapPaddingY = clsx(
|
|
103
|
-
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
104
|
-
);
|
|
105
|
-
var layoutGroupGap = clsx(
|
|
106
|
-
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
107
|
-
);
|
|
108
|
-
var layoutGap = clsx(
|
|
109
|
-
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
110
|
-
);
|
|
111
|
-
var gapUsingContainerPadding = clsx(
|
|
112
|
-
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
typography,
|
|
117
|
-
baseTransition,
|
|
118
|
-
componentGap,
|
|
119
|
-
paddingUsingComponentGap,
|
|
120
|
-
paddingYUsingLayoutGroupGap,
|
|
121
|
-
componentPadding,
|
|
122
|
-
componentPaddingBottom,
|
|
123
|
-
componentPaddingY,
|
|
124
|
-
componentPaddingXUsingComponentGap,
|
|
125
|
-
componentPaddingYUsingComponentGap,
|
|
126
|
-
componentPaddingMinusBorder,
|
|
127
|
-
componentPaddingMinus2pxBorder,
|
|
128
|
-
layoutPaddingBottom,
|
|
129
|
-
containerPaddingX,
|
|
130
|
-
layoutGroupGapPaddingY,
|
|
131
|
-
layoutGroupGap,
|
|
132
|
-
layoutGap,
|
|
133
|
-
gapUsingContainerPadding
|
|
134
|
-
};
|
package/dist/chunk-LJGUNBDS.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useMenuPosition,
|
|
3
|
-
useSubMenuSystem
|
|
4
|
-
} from "./chunk-MUQHKNFV.js";
|
|
5
|
-
import {
|
|
6
|
-
findDocumentRoot
|
|
7
|
-
} from "./chunk-3FLOLZYP.js";
|
|
8
|
-
import {
|
|
9
|
-
__objRest,
|
|
10
|
-
__spreadProps,
|
|
11
|
-
__spreadValues
|
|
12
|
-
} from "./chunk-ORMEWXMH.js";
|
|
13
|
-
|
|
14
|
-
// src/components/Menu.tsx
|
|
15
|
-
import clsx from "clsx";
|
|
16
|
-
import React, { useEffect, useRef, useState } from "react";
|
|
17
|
-
import { createPortal } from "react-dom";
|
|
18
|
-
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
var Menu = (_a) => {
|
|
20
|
-
var _b = _a, {
|
|
21
|
-
children,
|
|
22
|
-
className,
|
|
23
|
-
ref,
|
|
24
|
-
positionTo,
|
|
25
|
-
show,
|
|
26
|
-
setShow,
|
|
27
|
-
position = "bottom",
|
|
28
|
-
maxHeight: customMaxHeight,
|
|
29
|
-
noTopOffset = false
|
|
30
|
-
} = _b, props = __objRest(_b, [
|
|
31
|
-
"children",
|
|
32
|
-
"className",
|
|
33
|
-
"ref",
|
|
34
|
-
"positionTo",
|
|
35
|
-
"show",
|
|
36
|
-
"setShow",
|
|
37
|
-
"position",
|
|
38
|
-
"maxHeight",
|
|
39
|
-
"noTopOffset"
|
|
40
|
-
]);
|
|
41
|
-
const internalRef = useRef(null);
|
|
42
|
-
const actualRef = ref || internalRef;
|
|
43
|
-
const [maxHeight, setMaxHeight] = useState("180px");
|
|
44
|
-
const { menuPosition, updatePosition } = useMenuPosition(
|
|
45
|
-
positionTo,
|
|
46
|
-
position,
|
|
47
|
-
{
|
|
48
|
-
isOpen: show,
|
|
49
|
-
setIsOpen: setShow,
|
|
50
|
-
menuRef: internalRef,
|
|
51
|
-
noTopOffset
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
const subMenuSystem = useSubMenuSystem();
|
|
55
|
-
function hasDisplayName(type) {
|
|
56
|
-
return typeof type === "function" && Boolean(type.displayName);
|
|
57
|
-
}
|
|
58
|
-
const renderChildrenWithSubMenu = (children2, menuLevel = 0) => React.Children.map(children2, (child) => {
|
|
59
|
-
if (!React.isValidElement(child)) return child;
|
|
60
|
-
if (hasDisplayName(child.type) && child.type.displayName === "MenuOption") {
|
|
61
|
-
return React.cloneElement(child, {
|
|
62
|
-
subMenuSystem,
|
|
63
|
-
menuLevel
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
if (child.props && Object.prototype.hasOwnProperty.call(child.props, "children")) {
|
|
67
|
-
return React.cloneElement(child, {
|
|
68
|
-
children: renderChildrenWithSubMenu(child.props.children, menuLevel)
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
return child;
|
|
72
|
-
});
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
const raf = requestAnimationFrame(() => {
|
|
75
|
-
if (!actualRef || !actualRef.current || customMaxHeight) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (actualRef.current.childElementCount > 4) {
|
|
79
|
-
let accumulatedHeight = 0;
|
|
80
|
-
Array.from(actualRef.current.children).forEach((child, index) => {
|
|
81
|
-
if (index >= 5) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
accumulatedHeight += child.clientHeight;
|
|
85
|
-
});
|
|
86
|
-
accumulatedHeight = accumulatedHeight / 5 * 4.5;
|
|
87
|
-
setMaxHeight(`${accumulatedHeight}px`);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
return () => {
|
|
91
|
-
cancelAnimationFrame(raf);
|
|
92
|
-
};
|
|
93
|
-
}, [actualRef, customMaxHeight]);
|
|
94
|
-
useEffect(() => {
|
|
95
|
-
if (!show) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
initializeMenuFocus();
|
|
99
|
-
updatePosition();
|
|
100
|
-
}, [show, updatePosition]);
|
|
101
|
-
useEffect(() => {
|
|
102
|
-
if (!show || !setShow) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const handleEscapeKey = (event) => {
|
|
106
|
-
var _a2;
|
|
107
|
-
if (event.key !== "Escape") {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
setShow(false);
|
|
111
|
-
(_a2 = positionTo == null ? void 0 : positionTo.current) == null ? void 0 : _a2.focus();
|
|
112
|
-
};
|
|
113
|
-
document.addEventListener("keydown", handleEscapeKey);
|
|
114
|
-
return () => {
|
|
115
|
-
document.removeEventListener("keydown", handleEscapeKey);
|
|
116
|
-
};
|
|
117
|
-
}, [show, setShow, positionTo]);
|
|
118
|
-
return show && createPortal(
|
|
119
|
-
/* @__PURE__ */ jsx(
|
|
120
|
-
"div",
|
|
121
|
-
__spreadProps(__spreadValues({
|
|
122
|
-
ref: setRefs,
|
|
123
|
-
className: clsx(
|
|
124
|
-
"shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
|
|
125
|
-
"absolute",
|
|
126
|
-
"z-50",
|
|
127
|
-
className
|
|
128
|
-
)
|
|
129
|
-
}, props), {
|
|
130
|
-
style: __spreadValues(__spreadProps(__spreadValues({}, props.style), {
|
|
131
|
-
maxHeight: customMaxHeight || maxHeight
|
|
132
|
-
}), menuPosition),
|
|
133
|
-
onKeyDown: handleKeydown,
|
|
134
|
-
onMouseDown: stopPropagation,
|
|
135
|
-
onMouseUp: stopPropagation,
|
|
136
|
-
onTouchStart: stopPropagation,
|
|
137
|
-
onTouchEnd: stopPropagation,
|
|
138
|
-
tabIndex: -1,
|
|
139
|
-
children: renderChildrenWithSubMenu(children, 0)
|
|
140
|
-
})
|
|
141
|
-
),
|
|
142
|
-
findDocumentRoot(internalRef.current)
|
|
143
|
-
);
|
|
144
|
-
function handleKeydown(e) {
|
|
145
|
-
var _a2, _b2;
|
|
146
|
-
if (!internalRef.current) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (e.key !== "Escape") {
|
|
150
|
-
e.stopPropagation();
|
|
151
|
-
}
|
|
152
|
-
const menuOptions = Array.from(
|
|
153
|
-
internalRef.current.children
|
|
154
|
-
);
|
|
155
|
-
if (menuOptions.length === 0) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
let currentIndex = -1;
|
|
159
|
-
const focusedElement = document.activeElement;
|
|
160
|
-
for (let i = 0; i < menuOptions.length; i++) {
|
|
161
|
-
if (menuOptions[i] === focusedElement) {
|
|
162
|
-
currentIndex = i;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
switch (e.key) {
|
|
167
|
-
case "ArrowDown": {
|
|
168
|
-
e.preventDefault();
|
|
169
|
-
const nextIndex = currentIndex < menuOptions.length - 1 ? currentIndex + 1 : 0;
|
|
170
|
-
menuOptions[nextIndex].focus();
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case "ArrowUp": {
|
|
174
|
-
e.preventDefault();
|
|
175
|
-
const prevIndex = currentIndex > 0 ? currentIndex - 1 : menuOptions.length - 1;
|
|
176
|
-
menuOptions[prevIndex].focus();
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
case "Home":
|
|
180
|
-
e.preventDefault();
|
|
181
|
-
menuOptions[0].focus();
|
|
182
|
-
break;
|
|
183
|
-
case "End":
|
|
184
|
-
e.preventDefault();
|
|
185
|
-
menuOptions[menuOptions.length - 1].focus();
|
|
186
|
-
break;
|
|
187
|
-
case "Enter":
|
|
188
|
-
case " ":
|
|
189
|
-
case "ArrowRight":
|
|
190
|
-
e.preventDefault();
|
|
191
|
-
if (currentIndex >= 0) {
|
|
192
|
-
menuOptions[currentIndex].click();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "ArrowLeft":
|
|
196
|
-
e.preventDefault();
|
|
197
|
-
(_a2 = positionTo == null ? void 0 : positionTo.current) == null ? void 0 : _a2.click();
|
|
198
|
-
(_b2 = positionTo == null ? void 0 : positionTo.current) == null ? void 0 : _b2.focus();
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function initializeMenuFocus() {
|
|
203
|
-
var _a2, _b2, _c;
|
|
204
|
-
(_a2 = internalRef.current) == null ? void 0 : _a2.focus();
|
|
205
|
-
const selectedOption = (_b2 = internalRef.current) == null ? void 0 : _b2.querySelector(
|
|
206
|
-
"[data-selected]"
|
|
207
|
-
);
|
|
208
|
-
const targetElement = selectedOption || ((_c = internalRef.current) == null ? void 0 : _c.children[0]);
|
|
209
|
-
if (!targetElement) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
targetElement.scrollIntoView({
|
|
213
|
-
block: "nearest",
|
|
214
|
-
behavior: "instant"
|
|
215
|
-
});
|
|
216
|
-
requestAnimationFrame(() => {
|
|
217
|
-
targetElement.focus();
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function setRefs(node) {
|
|
221
|
-
internalRef.current = node;
|
|
222
|
-
if (ref) {
|
|
223
|
-
if (typeof ref === "function") {
|
|
224
|
-
ref(node);
|
|
225
|
-
} else {
|
|
226
|
-
ref.current = node;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function stopPropagation(e) {
|
|
231
|
-
e.stopPropagation();
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
Menu.displayName = "Menu";
|
|
235
|
-
|
|
236
|
-
export {
|
|
237
|
-
Menu
|
|
238
|
-
};
|
package/dist/chunk-LK6UNOMX.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// src/utils.ts
|
|
2
|
-
function findDocumentRoot(element) {
|
|
3
|
-
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
4
|
-
return null;
|
|
5
|
-
}
|
|
6
|
-
if (!element || !(element instanceof Node)) {
|
|
7
|
-
return window.document.body;
|
|
8
|
-
}
|
|
9
|
-
var currentElement = element;
|
|
10
|
-
while (currentElement && currentElement.parentNode) {
|
|
11
|
-
if (currentElement.parentNode === document) {
|
|
12
|
-
return document.body;
|
|
13
|
-
} else if (currentElement.parentNode instanceof DocumentFragment) {
|
|
14
|
-
return currentElement.parentNode;
|
|
15
|
-
} else {
|
|
16
|
-
currentElement = currentElement.parentNode;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return window.document.body;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
findDocumentRoot
|
|
24
|
-
};
|