@dmsi/wedgekit-react 0.0.5 → 0.0.7
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
|
@@ -64,7 +64,7 @@ __export(FilterGroup_exports, {
|
|
|
64
64
|
FilterGroupItem: () => FilterGroupItem
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(FilterGroup_exports);
|
|
67
|
-
var
|
|
67
|
+
var import_react3 = require("react");
|
|
68
68
|
|
|
69
69
|
// src/components/Label.tsx
|
|
70
70
|
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
@@ -394,6 +394,7 @@ var Checkbox = (_a) => {
|
|
|
394
394
|
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
395
395
|
Paragraph,
|
|
396
396
|
{
|
|
397
|
+
as: "span",
|
|
397
398
|
padded: true,
|
|
398
399
|
className: (0, import_clsx5.default)(
|
|
399
400
|
"text-nowrap",
|
|
@@ -642,7 +643,7 @@ var OptionPill = (_a) => {
|
|
|
642
643
|
OptionPill.displayName = "OptionPill";
|
|
643
644
|
|
|
644
645
|
// src/components/FilterGroup.tsx
|
|
645
|
-
var
|
|
646
|
+
var import_clsx10 = __toESM(require("clsx"), 1);
|
|
646
647
|
|
|
647
648
|
// src/components/Link.tsx
|
|
648
649
|
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
@@ -721,8 +722,521 @@ var Link = (_a) => {
|
|
|
721
722
|
};
|
|
722
723
|
Link.displayName = "Link";
|
|
723
724
|
|
|
724
|
-
// src/components/
|
|
725
|
+
// src/components/Search.tsx
|
|
726
|
+
var import_react2 = require("react");
|
|
727
|
+
|
|
728
|
+
// src/components/Input.tsx
|
|
729
|
+
var import_react = require("react");
|
|
730
|
+
var import_clsx9 = __toESM(require("clsx"), 1);
|
|
731
|
+
|
|
732
|
+
// src/utils/formatting.tsx
|
|
733
|
+
function getDecimalPlaceholder(decimals) {
|
|
734
|
+
if (!decimals || decimals <= 0) {
|
|
735
|
+
return {};
|
|
736
|
+
}
|
|
737
|
+
return {
|
|
738
|
+
placeholder: `0.${"0".repeat(decimals)}`
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
function formatDecimalValue(value, decimals) {
|
|
742
|
+
if (!value || value === "") {
|
|
743
|
+
return "";
|
|
744
|
+
}
|
|
745
|
+
const numValue = typeof value === "string" ? parseFloat(value) : value;
|
|
746
|
+
if (isNaN(numValue)) {
|
|
747
|
+
return "";
|
|
748
|
+
}
|
|
749
|
+
if (!decimals || decimals <= 0) {
|
|
750
|
+
return String(Math.round(numValue));
|
|
751
|
+
}
|
|
752
|
+
return numValue.toFixed(decimals);
|
|
753
|
+
}
|
|
754
|
+
function formatCurrencyDisplay(value) {
|
|
755
|
+
if (!value || value === "") {
|
|
756
|
+
return "";
|
|
757
|
+
}
|
|
758
|
+
const parts = value.split(".");
|
|
759
|
+
const integerPart = parts[0];
|
|
760
|
+
const decimalPart = parts[1];
|
|
761
|
+
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
762
|
+
return decimalPart !== void 0 ? `${formattedInteger}.${decimalPart}` : formattedInteger;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// src/components/Input.tsx
|
|
725
766
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
767
|
+
var InputBase = (_a) => {
|
|
768
|
+
var _b = _a, {
|
|
769
|
+
before,
|
|
770
|
+
after,
|
|
771
|
+
type,
|
|
772
|
+
label,
|
|
773
|
+
error,
|
|
774
|
+
className,
|
|
775
|
+
align = "left",
|
|
776
|
+
caption,
|
|
777
|
+
required,
|
|
778
|
+
selectOnFocus,
|
|
779
|
+
removeRoundness,
|
|
780
|
+
inputContainerRef,
|
|
781
|
+
removeBorder,
|
|
782
|
+
wrapperClassName,
|
|
783
|
+
focus
|
|
784
|
+
} = _b, props = __objRest(_b, [
|
|
785
|
+
"before",
|
|
786
|
+
"after",
|
|
787
|
+
"type",
|
|
788
|
+
"label",
|
|
789
|
+
"error",
|
|
790
|
+
"className",
|
|
791
|
+
"align",
|
|
792
|
+
"caption",
|
|
793
|
+
"required",
|
|
794
|
+
"selectOnFocus",
|
|
795
|
+
"removeRoundness",
|
|
796
|
+
"inputContainerRef",
|
|
797
|
+
"removeBorder",
|
|
798
|
+
"wrapperClassName",
|
|
799
|
+
"focus"
|
|
800
|
+
]);
|
|
801
|
+
const attributes = {
|
|
802
|
+
"data-error": error && !focus || null,
|
|
803
|
+
"data-focus": focus || null
|
|
804
|
+
};
|
|
805
|
+
const inputRef = (0, import_react.useRef)(null);
|
|
806
|
+
(0, import_react.useEffect)(() => {
|
|
807
|
+
var _a2;
|
|
808
|
+
const input = inputRef.current;
|
|
809
|
+
const focusHandler = () => {
|
|
810
|
+
input == null ? void 0 : input.select();
|
|
811
|
+
};
|
|
812
|
+
if (selectOnFocus) {
|
|
813
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.addEventListener("focus", focusHandler);
|
|
814
|
+
return () => {
|
|
815
|
+
input == null ? void 0 : input.removeEventListener("focus", focusHandler);
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
}, [selectOnFocus]);
|
|
819
|
+
const inputBaseClass = (0, import_clsx9.default)(
|
|
820
|
+
"w-full",
|
|
821
|
+
"flex flex-row items-center",
|
|
822
|
+
"bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
|
|
823
|
+
componentGap,
|
|
824
|
+
baseTransition,
|
|
825
|
+
"outline-transparent outline-2 -outline-offset-2",
|
|
826
|
+
componentPaddingMinusBorder,
|
|
827
|
+
!removeRoundness && "rounded-base",
|
|
828
|
+
!removeBorder && "border border-border-primary-normal",
|
|
829
|
+
"relative"
|
|
830
|
+
);
|
|
831
|
+
const inputFocusClass = (0, import_clsx9.default)(
|
|
832
|
+
"has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
|
|
833
|
+
);
|
|
834
|
+
const inputDisabledClass = (0, import_clsx9.default)(
|
|
835
|
+
"has-disabled:bg-background-action-secondary-disabled"
|
|
836
|
+
);
|
|
837
|
+
const inputReadOnlyClass = (0, import_clsx9.default)(
|
|
838
|
+
"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"
|
|
839
|
+
);
|
|
840
|
+
const inputInvalidClass = (0, import_clsx9.default)(
|
|
841
|
+
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
842
|
+
);
|
|
843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
844
|
+
"label",
|
|
845
|
+
{
|
|
846
|
+
ref: inputContainerRef,
|
|
847
|
+
className: (0, import_clsx9.default)(
|
|
848
|
+
"w-full flex flex-col",
|
|
849
|
+
"block",
|
|
850
|
+
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
851
|
+
componentGap
|
|
852
|
+
),
|
|
853
|
+
style: __spreadValues({}, props.style),
|
|
854
|
+
children: [
|
|
855
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: (0, import_clsx9.default)("flex items-center", componentGap), children: [
|
|
856
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
857
|
+
Label,
|
|
858
|
+
{
|
|
859
|
+
className: (0, import_clsx9.default)(
|
|
860
|
+
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
861
|
+
),
|
|
862
|
+
children: label
|
|
863
|
+
}
|
|
864
|
+
),
|
|
865
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
866
|
+
"span",
|
|
867
|
+
{
|
|
868
|
+
className: (0, import_clsx9.default)(typography.label, "text-text-critical-normal"),
|
|
869
|
+
children: "*"
|
|
870
|
+
}
|
|
871
|
+
)
|
|
872
|
+
] }),
|
|
873
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
874
|
+
"div",
|
|
875
|
+
{
|
|
876
|
+
className: (0, import_clsx9.default)(
|
|
877
|
+
inputBaseClass,
|
|
878
|
+
!props.disabled && inputInvalidClass,
|
|
879
|
+
inputFocusClass,
|
|
880
|
+
inputDisabledClass,
|
|
881
|
+
inputReadOnlyClass,
|
|
882
|
+
wrapperClassName
|
|
883
|
+
),
|
|
884
|
+
children: [
|
|
885
|
+
before,
|
|
886
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
887
|
+
"input",
|
|
888
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
889
|
+
ref: (el) => {
|
|
890
|
+
inputRef.current = el;
|
|
891
|
+
},
|
|
892
|
+
type,
|
|
893
|
+
required
|
|
894
|
+
}, props), attributes), {
|
|
895
|
+
id: props.id,
|
|
896
|
+
className: (0, import_clsx9.default)(
|
|
897
|
+
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
898
|
+
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
899
|
+
"placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
|
|
900
|
+
align === "right" && "text-right",
|
|
901
|
+
align === "center" && "text-center",
|
|
902
|
+
componentPaddingXUsingComponentGap,
|
|
903
|
+
typography.paragraph,
|
|
904
|
+
className,
|
|
905
|
+
props.readOnly && !props.disabled && "!px-0"
|
|
906
|
+
)
|
|
907
|
+
})
|
|
908
|
+
),
|
|
909
|
+
after
|
|
910
|
+
]
|
|
911
|
+
}
|
|
912
|
+
),
|
|
913
|
+
caption
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
);
|
|
917
|
+
};
|
|
918
|
+
var Input = (_a) => {
|
|
919
|
+
var _b = _a, {
|
|
920
|
+
variant = "default",
|
|
921
|
+
decimals,
|
|
922
|
+
uom,
|
|
923
|
+
removeSearchIcon,
|
|
924
|
+
value: propValue,
|
|
925
|
+
onChange,
|
|
926
|
+
onBlur,
|
|
927
|
+
onClear
|
|
928
|
+
} = _b, props = __objRest(_b, [
|
|
929
|
+
"variant",
|
|
930
|
+
"decimals",
|
|
931
|
+
"uom",
|
|
932
|
+
"removeSearchIcon",
|
|
933
|
+
"value",
|
|
934
|
+
"onChange",
|
|
935
|
+
"onBlur",
|
|
936
|
+
"onClear"
|
|
937
|
+
]);
|
|
938
|
+
const [internalValue, setInternalValue] = (0, import_react.useState)("");
|
|
939
|
+
const [displayValue, setDisplayValue] = (0, import_react.useState)("");
|
|
940
|
+
(0, import_react.useEffect)(() => {
|
|
941
|
+
var _a2;
|
|
942
|
+
const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
|
|
943
|
+
if (variant === "currency") {
|
|
944
|
+
if (propValue === void 0 || propValue === "" || typeof propValue === "number" && isNaN(propValue)) {
|
|
945
|
+
setInternalValue("");
|
|
946
|
+
setDisplayValue("");
|
|
947
|
+
} else {
|
|
948
|
+
const numValue = typeof propValue === "string" ? parseFloat(propValue) : propValue;
|
|
949
|
+
if (!isNaN(numValue)) {
|
|
950
|
+
const formatted = numValue.toFixed(decimals != null ? decimals : 2);
|
|
951
|
+
setInternalValue(formatted);
|
|
952
|
+
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
} else {
|
|
956
|
+
setInternalValue(stringValue);
|
|
957
|
+
setDisplayValue(stringValue);
|
|
958
|
+
}
|
|
959
|
+
}, [propValue, decimals, variant]);
|
|
960
|
+
const getInputProps = () => {
|
|
961
|
+
var _a2;
|
|
962
|
+
const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
|
|
963
|
+
value: propValue
|
|
964
|
+
});
|
|
965
|
+
switch (variant) {
|
|
966
|
+
case "search":
|
|
967
|
+
return __spreadProps(__spreadValues({}, baseProps), {
|
|
968
|
+
placeholder: (_a2 = props.placeholder) != null ? _a2 : "Search",
|
|
969
|
+
className: "!mr-6",
|
|
970
|
+
value: displayValue
|
|
971
|
+
});
|
|
972
|
+
case "finder":
|
|
973
|
+
return baseProps;
|
|
974
|
+
case "currency":
|
|
975
|
+
return __spreadProps(__spreadValues({}, baseProps), {
|
|
976
|
+
align: "right",
|
|
977
|
+
type: "text",
|
|
978
|
+
value: displayValue
|
|
979
|
+
});
|
|
980
|
+
case "percentage":
|
|
981
|
+
case "uom":
|
|
982
|
+
return __spreadProps(__spreadValues({}, baseProps), {
|
|
983
|
+
type: "number",
|
|
984
|
+
align: "right"
|
|
985
|
+
});
|
|
986
|
+
default:
|
|
987
|
+
return baseProps;
|
|
988
|
+
}
|
|
989
|
+
};
|
|
990
|
+
const getBeforeElement = () => {
|
|
991
|
+
if (props.before) return props.before;
|
|
992
|
+
switch (variant) {
|
|
993
|
+
case "search":
|
|
994
|
+
return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "search" }) }) : null;
|
|
995
|
+
case "currency":
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "attach_money" }) });
|
|
997
|
+
default:
|
|
998
|
+
return null;
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
const getAfterElement = () => {
|
|
1002
|
+
if (props.after) return props.after;
|
|
1003
|
+
switch (variant) {
|
|
1004
|
+
case "search": {
|
|
1005
|
+
const hasValue = displayValue.length > 0;
|
|
1006
|
+
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1007
|
+
Icon,
|
|
1008
|
+
{
|
|
1009
|
+
name: "close",
|
|
1010
|
+
onClick: handleSearchReset,
|
|
1011
|
+
className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
|
|
1012
|
+
}
|
|
1013
|
+
) : null;
|
|
1014
|
+
}
|
|
1015
|
+
case "finder":
|
|
1016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "search" });
|
|
1017
|
+
case "uom":
|
|
1018
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
|
|
1019
|
+
case "percentage":
|
|
1020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "percent" }) });
|
|
1021
|
+
default:
|
|
1022
|
+
return null;
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
const handleSearchReset = () => {
|
|
1026
|
+
setInternalValue("");
|
|
1027
|
+
setDisplayValue("");
|
|
1028
|
+
if (onChange) {
|
|
1029
|
+
const syntheticEvent = {
|
|
1030
|
+
target: { value: "" }
|
|
1031
|
+
};
|
|
1032
|
+
if (typeof onChange === "function") {
|
|
1033
|
+
onChange(syntheticEvent);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
onClear == null ? void 0 : onClear();
|
|
1037
|
+
};
|
|
1038
|
+
const handleChange = (e) => {
|
|
1039
|
+
const rawValue = e.target.value;
|
|
1040
|
+
if (variant === "search") {
|
|
1041
|
+
setInternalValue(rawValue);
|
|
1042
|
+
setDisplayValue(rawValue);
|
|
1043
|
+
if (typeof onChange === "function") {
|
|
1044
|
+
onChange(e);
|
|
1045
|
+
}
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
if (variant === "currency") {
|
|
1049
|
+
const raw = rawValue.replace(/,/g, "");
|
|
1050
|
+
if (raw === "") {
|
|
1051
|
+
setInternalValue("");
|
|
1052
|
+
setDisplayValue("");
|
|
1053
|
+
if (onChange) {
|
|
1054
|
+
const syntheticEvent = __spreadProps(__spreadValues({}, e), {
|
|
1055
|
+
target: __spreadProps(__spreadValues({}, e.target), { value: "" })
|
|
1056
|
+
});
|
|
1057
|
+
onChange(syntheticEvent);
|
|
1058
|
+
}
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
const regex = /^\d*\.?\d*$/;
|
|
1062
|
+
if (!regex.test(raw)) return;
|
|
1063
|
+
const parts = raw.split(".");
|
|
1064
|
+
const currentDecimals = decimals != null ? decimals : 2;
|
|
1065
|
+
if (parts.length === 2 && parts[1].length > currentDecimals) return;
|
|
1066
|
+
setInternalValue(raw);
|
|
1067
|
+
setDisplayValue(formatCurrencyDisplay(raw));
|
|
1068
|
+
const asNumber = Number(raw);
|
|
1069
|
+
if (!isNaN(asNumber) && onChange) {
|
|
1070
|
+
const syntheticEvent = __spreadProps(__spreadValues({}, e), {
|
|
1071
|
+
target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
|
|
1072
|
+
});
|
|
1073
|
+
onChange(syntheticEvent);
|
|
1074
|
+
}
|
|
1075
|
+
return;
|
|
1076
|
+
}
|
|
1077
|
+
setInternalValue(rawValue);
|
|
1078
|
+
setDisplayValue(rawValue);
|
|
1079
|
+
if (typeof onChange === "function") {
|
|
1080
|
+
onChange(e);
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
const handleBlur = (e) => {
|
|
1084
|
+
if (variant === "currency") {
|
|
1085
|
+
const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
|
|
1086
|
+
setInternalValue(formatted);
|
|
1087
|
+
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
1088
|
+
const asNumber = Number(formatted);
|
|
1089
|
+
if (!isNaN(asNumber) && onChange) {
|
|
1090
|
+
const syntheticEvent = __spreadProps(__spreadValues({}, e), {
|
|
1091
|
+
target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
|
|
1092
|
+
});
|
|
1093
|
+
onChange(syntheticEvent);
|
|
1094
|
+
}
|
|
1095
|
+
} else if (variant === "uom" || variant === "percentage") {
|
|
1096
|
+
const formattedValue = formatDecimalValue(e.target.value, decimals);
|
|
1097
|
+
e.target.value = formattedValue;
|
|
1098
|
+
}
|
|
1099
|
+
onBlur == null ? void 0 : onBlur(e);
|
|
1100
|
+
};
|
|
1101
|
+
const inputProps = getInputProps();
|
|
1102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1103
|
+
InputBase,
|
|
1104
|
+
__spreadProps(__spreadValues({}, inputProps), {
|
|
1105
|
+
before: getBeforeElement(),
|
|
1106
|
+
after: getAfterElement(),
|
|
1107
|
+
onChange: handleChange,
|
|
1108
|
+
onBlur: handleBlur
|
|
1109
|
+
})
|
|
1110
|
+
);
|
|
1111
|
+
};
|
|
1112
|
+
Input.displayName = "Input";
|
|
1113
|
+
var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
|
|
1114
|
+
var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
|
|
1115
|
+
var Currency = (props) => {
|
|
1116
|
+
var _a;
|
|
1117
|
+
const handleCurrencyChange = (e) => {
|
|
1118
|
+
var _a2;
|
|
1119
|
+
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
|
|
1120
|
+
};
|
|
1121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1122
|
+
Input,
|
|
1123
|
+
__spreadProps(__spreadValues({}, props), {
|
|
1124
|
+
variant: "currency",
|
|
1125
|
+
decimals: (_a = props.decimals) != null ? _a : 2,
|
|
1126
|
+
onChange: handleCurrencyChange
|
|
1127
|
+
})
|
|
1128
|
+
);
|
|
1129
|
+
};
|
|
1130
|
+
var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
|
|
1131
|
+
Finder.displayName = "Finder";
|
|
1132
|
+
UOM.displayName = "UOM";
|
|
1133
|
+
Currency.displayName = "Currency";
|
|
1134
|
+
Percentage.displayName = "Percentage";
|
|
1135
|
+
|
|
1136
|
+
// src/components/Search.tsx
|
|
1137
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1138
|
+
var Search = (_a) => {
|
|
1139
|
+
var _b = _a, {
|
|
1140
|
+
label,
|
|
1141
|
+
error,
|
|
1142
|
+
children,
|
|
1143
|
+
readOnly,
|
|
1144
|
+
renderMenu,
|
|
1145
|
+
onClick,
|
|
1146
|
+
className,
|
|
1147
|
+
wrapperClassName,
|
|
1148
|
+
removeRoundness
|
|
1149
|
+
} = _b, props = __objRest(_b, [
|
|
1150
|
+
"label",
|
|
1151
|
+
"error",
|
|
1152
|
+
"children",
|
|
1153
|
+
"readOnly",
|
|
1154
|
+
"renderMenu",
|
|
1155
|
+
"onClick",
|
|
1156
|
+
"className",
|
|
1157
|
+
"wrapperClassName",
|
|
1158
|
+
"removeRoundness"
|
|
1159
|
+
]);
|
|
1160
|
+
const inputRef = (0, import_react2.useRef)(null);
|
|
1161
|
+
const inputContainerRef = (0, import_react2.useRef)(null);
|
|
1162
|
+
const preventFocusOnInitialRender = (0, import_react2.useRef)(true);
|
|
1163
|
+
const [show, setShow] = (0, import_react2.useState)(false);
|
|
1164
|
+
const [clearing, setClearing] = (0, import_react2.useState)(false);
|
|
1165
|
+
const uniqueId = (0, import_react2.useId)();
|
|
1166
|
+
const searchMenuName = `search-menu-${uniqueId}`;
|
|
1167
|
+
(0, import_react2.useEffect)(() => {
|
|
1168
|
+
var _a2;
|
|
1169
|
+
if (preventFocusOnInitialRender.current) {
|
|
1170
|
+
preventFocusOnInitialRender.current = false;
|
|
1171
|
+
return;
|
|
1172
|
+
}
|
|
1173
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1174
|
+
}, [props.value]);
|
|
1175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1176
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1177
|
+
Input,
|
|
1178
|
+
__spreadValues({
|
|
1179
|
+
variant: "search",
|
|
1180
|
+
inputContainerRef,
|
|
1181
|
+
ref: inputRef,
|
|
1182
|
+
label,
|
|
1183
|
+
wrapperClassName,
|
|
1184
|
+
onClick: (e) => {
|
|
1185
|
+
if (props.disabled || readOnly) {
|
|
1186
|
+
return;
|
|
1187
|
+
}
|
|
1188
|
+
if (clearing) {
|
|
1189
|
+
setClearing(false);
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
onClick == null ? void 0 : onClick(e);
|
|
1193
|
+
setShow(!show);
|
|
1194
|
+
},
|
|
1195
|
+
onClear: () => {
|
|
1196
|
+
setClearing(true);
|
|
1197
|
+
},
|
|
1198
|
+
onKeyDown: (e) => {
|
|
1199
|
+
setShow(true);
|
|
1200
|
+
if (["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
1201
|
+
e.preventDefault();
|
|
1202
|
+
const menu = document.querySelector(`[data-menu="${searchMenuName}"]`);
|
|
1203
|
+
const selectedMenuOption = menu == null ? void 0 : menu.querySelector("[data-selected]");
|
|
1204
|
+
if (selectedMenuOption) {
|
|
1205
|
+
const allMenuOptions = Array.from((menu == null ? void 0 : menu.querySelectorAll('[role="menuitem"]')) || []);
|
|
1206
|
+
const currentIndex = allMenuOptions.indexOf(selectedMenuOption);
|
|
1207
|
+
let targetOption;
|
|
1208
|
+
if (e.key === "ArrowDown") {
|
|
1209
|
+
targetOption = allMenuOptions[currentIndex + 1] || allMenuOptions[0];
|
|
1210
|
+
} else {
|
|
1211
|
+
targetOption = allMenuOptions[currentIndex - 1] || allMenuOptions[allMenuOptions.length - 1];
|
|
1212
|
+
}
|
|
1213
|
+
targetOption == null ? void 0 : targetOption.focus();
|
|
1214
|
+
} else {
|
|
1215
|
+
const toFocusMenuOption = e.key === "ArrowDown" ? menu == null ? void 0 : menu.querySelector('[role="menuitem"]') : menu == null ? void 0 : menu.querySelector('[role="menuitem"]:last-child');
|
|
1216
|
+
toFocusMenuOption == null ? void 0 : toFocusMenuOption.focus();
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
error,
|
|
1221
|
+
readOnly,
|
|
1222
|
+
removeRoundness,
|
|
1223
|
+
focus: show
|
|
1224
|
+
}, props)
|
|
1225
|
+
),
|
|
1226
|
+
renderMenu ? renderMenu({
|
|
1227
|
+
positionTo: inputContainerRef,
|
|
1228
|
+
show,
|
|
1229
|
+
setShow,
|
|
1230
|
+
topOffset: props.caption ? -16 : null,
|
|
1231
|
+
autoFocusOff: true,
|
|
1232
|
+
menuName: searchMenuName
|
|
1233
|
+
}) : children
|
|
1234
|
+
] });
|
|
1235
|
+
};
|
|
1236
|
+
Search.displayName = "Search";
|
|
1237
|
+
|
|
1238
|
+
// src/components/FilterGroup.tsx
|
|
1239
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
726
1240
|
var FilterGroup = (_a) => {
|
|
727
1241
|
var _b = _a, {
|
|
728
1242
|
label,
|
|
@@ -731,7 +1245,10 @@ var FilterGroup = (_a) => {
|
|
|
731
1245
|
showMore = false,
|
|
732
1246
|
onShowMore,
|
|
733
1247
|
onClearAll,
|
|
734
|
-
children
|
|
1248
|
+
children,
|
|
1249
|
+
showSearchField = false,
|
|
1250
|
+
searchValue,
|
|
1251
|
+
onSearchChange
|
|
735
1252
|
} = _b, props = __objRest(_b, [
|
|
736
1253
|
"label",
|
|
737
1254
|
"type",
|
|
@@ -739,42 +1256,45 @@ var FilterGroup = (_a) => {
|
|
|
739
1256
|
"showMore",
|
|
740
1257
|
"onShowMore",
|
|
741
1258
|
"onClearAll",
|
|
742
|
-
"children"
|
|
1259
|
+
"children",
|
|
1260
|
+
"showSearchField",
|
|
1261
|
+
"searchValue",
|
|
1262
|
+
"onSearchChange"
|
|
743
1263
|
]);
|
|
744
1264
|
const isSummary = type === "summary";
|
|
745
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
746
|
-
const [showAllItems, setShowAllItems] = (0,
|
|
1265
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react3.useState)(open);
|
|
1266
|
+
const [showAllItems, setShowAllItems] = (0, import_react3.useState)(false);
|
|
747
1267
|
const isExpanded = open || internalExpanded;
|
|
748
|
-
const childArray =
|
|
1268
|
+
const childArray = import_react3.Children.toArray(children).filter(import_react3.isValidElement);
|
|
749
1269
|
const shouldShowAll = isSummary || showAllItems;
|
|
750
1270
|
const visibleChildren = childArray.slice(
|
|
751
1271
|
0,
|
|
752
1272
|
shouldShowAll ? childArray.length : 5
|
|
753
1273
|
);
|
|
754
1274
|
const showShowMoreLink = showMore && !isSummary && childArray.length > 5 && !showAllItems && isExpanded;
|
|
755
|
-
return /* @__PURE__ */ (0,
|
|
1275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
756
1276
|
"div",
|
|
757
1277
|
__spreadProps(__spreadValues({}, props), {
|
|
758
|
-
className: (0,
|
|
1278
|
+
className: (0, import_clsx10.default)(
|
|
759
1279
|
"border-b border-border-primary-normal",
|
|
760
1280
|
isSummary ? layoutPaddingBottom : componentPaddingBottom
|
|
761
1281
|
),
|
|
762
1282
|
children: [
|
|
763
|
-
/* @__PURE__ */ (0,
|
|
1283
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
764
1284
|
"div",
|
|
765
1285
|
{
|
|
766
|
-
className: (0,
|
|
1286
|
+
className: (0, import_clsx10.default)(
|
|
767
1287
|
"flex items-center justify-between cursor-pointer",
|
|
768
1288
|
layoutGroupGap
|
|
769
1289
|
),
|
|
770
1290
|
onClick: handleToggleExpanded,
|
|
771
1291
|
children: [
|
|
772
|
-
/* @__PURE__ */ (0,
|
|
773
|
-
type !== "summary" ? /* @__PURE__ */ (0,
|
|
1292
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Label, { children: label }),
|
|
1293
|
+
type !== "summary" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
774
1294
|
Icon,
|
|
775
1295
|
{
|
|
776
1296
|
name: "keyboard_arrow_down",
|
|
777
|
-
className: (0,
|
|
1297
|
+
className: (0, import_clsx10.default)(
|
|
778
1298
|
baseTransition.replace(
|
|
779
1299
|
"transition-colors",
|
|
780
1300
|
"transition-transform"
|
|
@@ -783,10 +1303,10 @@ var FilterGroup = (_a) => {
|
|
|
783
1303
|
"text-icon-action-primary-normal"
|
|
784
1304
|
)
|
|
785
1305
|
}
|
|
786
|
-
) : /* @__PURE__ */ (0,
|
|
1306
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
787
1307
|
Link,
|
|
788
1308
|
{
|
|
789
|
-
className: (0,
|
|
1309
|
+
className: (0, import_clsx10.default)("block", componentPaddingY),
|
|
790
1310
|
onClick: handleClearAll,
|
|
791
1311
|
children: "Clear All"
|
|
792
1312
|
}
|
|
@@ -794,10 +1314,10 @@ var FilterGroup = (_a) => {
|
|
|
794
1314
|
]
|
|
795
1315
|
}
|
|
796
1316
|
),
|
|
797
|
-
/* @__PURE__ */ (0,
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
798
1318
|
"div",
|
|
799
1319
|
{
|
|
800
|
-
className: (0,
|
|
1320
|
+
className: (0, import_clsx10.default)(
|
|
801
1321
|
"grid",
|
|
802
1322
|
baseTransition.replace(
|
|
803
1323
|
"transition-colors",
|
|
@@ -805,20 +1325,28 @@ var FilterGroup = (_a) => {
|
|
|
805
1325
|
),
|
|
806
1326
|
isExpanded || isSummary ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
807
1327
|
),
|
|
808
|
-
children: /* @__PURE__ */ (0,
|
|
1328
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
809
1329
|
"div",
|
|
810
1330
|
{
|
|
811
|
-
className: (0,
|
|
1331
|
+
className: (0, import_clsx10.default)(
|
|
812
1332
|
"overflow-hidden",
|
|
813
1333
|
componentGap,
|
|
814
1334
|
(isExpanded || isSummary || internalExpanded) && "mt-mobile-component-gap desktop:mt-desktop-component-gap compact:mt-desktop-compact-component-gap"
|
|
815
1335
|
),
|
|
816
1336
|
children: [
|
|
817
|
-
/* @__PURE__ */ (0,
|
|
818
|
-
|
|
1337
|
+
!isSummary && showSearchField && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1338
|
+
Search,
|
|
1339
|
+
{
|
|
1340
|
+
style: { marginBottom: "2px" },
|
|
1341
|
+
onChange: onSearchChange,
|
|
1342
|
+
value: searchValue
|
|
1343
|
+
}
|
|
1344
|
+
),
|
|
1345
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_clsx10.default)(isSummary && `flex flex-col ${componentGap}`), children: visibleChildren }),
|
|
1346
|
+
showShowMoreLink && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
819
1347
|
Link,
|
|
820
1348
|
{
|
|
821
|
-
className: (0,
|
|
1349
|
+
className: (0, import_clsx10.default)("block", "!items-start", componentPaddingY),
|
|
822
1350
|
onClick: handleOnShowMore,
|
|
823
1351
|
children: "Show More"
|
|
824
1352
|
}
|
|
@@ -856,18 +1384,18 @@ var FilterGroupItem = (_a) => {
|
|
|
856
1384
|
"children",
|
|
857
1385
|
"onClick"
|
|
858
1386
|
]);
|
|
859
|
-
return /* @__PURE__ */ (0,
|
|
1387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
860
1388
|
"div",
|
|
861
1389
|
__spreadProps(__spreadValues({
|
|
862
1390
|
onClick: handleClick
|
|
863
1391
|
}, props), {
|
|
864
|
-
className: (0,
|
|
1392
|
+
className: (0, import_clsx10.default)(
|
|
865
1393
|
"flex items-center justify-between *:first:flex-1 cursor-pointer",
|
|
866
1394
|
type !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
|
|
867
1395
|
),
|
|
868
|
-
children: /* @__PURE__ */ (0,
|
|
1396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FilterGroupItemChildComponent, __spreadProps(__spreadValues({}, props), { type, count: props.count, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
|
|
869
1397
|
children,
|
|
870
|
-
type !== "summary" && props.count && /* @__PURE__ */ (0,
|
|
1398
|
+
type !== "summary" && props.count && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
|
|
871
1399
|
"(",
|
|
872
1400
|
props.count,
|
|
873
1401
|
")"
|
|
@@ -889,12 +1417,12 @@ var FilterGroupItemChildComponent = (_a) => {
|
|
|
889
1417
|
"children"
|
|
890
1418
|
]);
|
|
891
1419
|
if (type === "checkbox") {
|
|
892
|
-
return /* @__PURE__ */ (0,
|
|
1420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Checkbox, __spreadValues({ paragraphClassName: "w-full", label: children }, props));
|
|
893
1421
|
}
|
|
894
1422
|
if (type === "summary") {
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
1423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(OptionPill, __spreadProps(__spreadValues({ removable: true }, props), { children })) });
|
|
896
1424
|
}
|
|
897
|
-
return /* @__PURE__ */ (0,
|
|
1425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Link, __spreadProps(__spreadValues({ variant: "secondary" }, props), { children }));
|
|
898
1426
|
};
|
|
899
1427
|
// Annotate the CommonJS export names for ESM import in node:
|
|
900
1428
|
0 && (module.exports = {
|