@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/components/Theme.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Theme
|
|
3
|
+
} from "../chunk-I2UVVKQI.js";
|
|
1
4
|
import "../chunk-ORMEWXMH.js";
|
|
2
|
-
|
|
3
|
-
// src/components/Theme.tsx
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
function Theme({
|
|
6
|
-
theme,
|
|
7
|
-
children
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx("div", { className: "contents", "data-theme": theme, children });
|
|
10
|
-
}
|
|
11
5
|
export {
|
|
12
6
|
Theme
|
|
13
7
|
};
|
package/dist/components/Time.cjs
CHANGED
|
@@ -485,7 +485,9 @@ var Input = (_a) => {
|
|
|
485
485
|
}, [propValue, decimals, variant]);
|
|
486
486
|
const getInputProps = () => {
|
|
487
487
|
var _a2;
|
|
488
|
-
const baseProps = __spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals))
|
|
488
|
+
const baseProps = __spreadProps(__spreadValues(__spreadValues({}, props), getDecimalPlaceholder(decimals)), {
|
|
489
|
+
value: propValue
|
|
490
|
+
});
|
|
489
491
|
switch (variant) {
|
|
490
492
|
case "search":
|
|
491
493
|
return __spreadProps(__spreadValues({}, baseProps), {
|
|
@@ -539,7 +541,7 @@ var Input = (_a) => {
|
|
|
539
541
|
case "finder":
|
|
540
542
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "search" });
|
|
541
543
|
case "uom":
|
|
542
|
-
return uom ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom }) : null;
|
|
544
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
|
|
543
545
|
case "percentage":
|
|
544
546
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "percent" }) });
|
|
545
547
|
default:
|
|
@@ -657,38 +659,6 @@ UOM.displayName = "UOM";
|
|
|
657
659
|
Currency.displayName = "Currency";
|
|
658
660
|
Percentage.displayName = "Percentage";
|
|
659
661
|
|
|
660
|
-
// src/components/Surface.tsx
|
|
661
|
-
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
662
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
663
|
-
var Surface = (_a) => {
|
|
664
|
-
var _b = _a, {
|
|
665
|
-
className,
|
|
666
|
-
elevation = 0,
|
|
667
|
-
children
|
|
668
|
-
} = _b, props = __objRest(_b, [
|
|
669
|
-
"className",
|
|
670
|
-
"elevation",
|
|
671
|
-
"children"
|
|
672
|
-
]);
|
|
673
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
674
|
-
"div",
|
|
675
|
-
__spreadProps(__spreadValues({
|
|
676
|
-
className: (0, import_clsx5.default)(
|
|
677
|
-
"rounded-base",
|
|
678
|
-
{
|
|
679
|
-
"shadow-2": elevation === 2,
|
|
680
|
-
"shadow-4": elevation === 4,
|
|
681
|
-
"shadow-16": elevation === 16
|
|
682
|
-
},
|
|
683
|
-
className
|
|
684
|
-
)
|
|
685
|
-
}, props), {
|
|
686
|
-
children
|
|
687
|
-
})
|
|
688
|
-
);
|
|
689
|
-
};
|
|
690
|
-
Surface.displayName = "Surface";
|
|
691
|
-
|
|
692
662
|
// src/components/Time.tsx
|
|
693
663
|
var import_react_dom = require("react-dom");
|
|
694
664
|
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
@@ -716,6 +686,107 @@ function findDocumentRoot(element) {
|
|
|
716
686
|
return window.document.body;
|
|
717
687
|
}
|
|
718
688
|
|
|
689
|
+
// src/components/Stack.tsx
|
|
690
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
691
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
692
|
+
var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx5.default)(
|
|
693
|
+
"flex",
|
|
694
|
+
items === "start" && "items-start",
|
|
695
|
+
grow && "grow",
|
|
696
|
+
items === "start" && "items-start",
|
|
697
|
+
items === "center" && "items-center",
|
|
698
|
+
items === "end" && "items-end",
|
|
699
|
+
items === "start-center" && "items-start desktop:items-center",
|
|
700
|
+
justify === "start" && "justify-start",
|
|
701
|
+
justify === "center" && "justify-center",
|
|
702
|
+
justify === "end" && "justify-end",
|
|
703
|
+
justify === "end" && "justify-end",
|
|
704
|
+
justify === "between" && "justify-between",
|
|
705
|
+
justify === "around" && "justify-around"
|
|
706
|
+
);
|
|
707
|
+
var Stack = ({
|
|
708
|
+
children,
|
|
709
|
+
items,
|
|
710
|
+
justify,
|
|
711
|
+
grow,
|
|
712
|
+
padding,
|
|
713
|
+
paddingX,
|
|
714
|
+
horizontal,
|
|
715
|
+
horizontalMobile,
|
|
716
|
+
elevation = 0,
|
|
717
|
+
rounded,
|
|
718
|
+
centered,
|
|
719
|
+
width,
|
|
720
|
+
maxWidth,
|
|
721
|
+
minWidth,
|
|
722
|
+
height,
|
|
723
|
+
maxHeight,
|
|
724
|
+
borderColor,
|
|
725
|
+
backgroundColor,
|
|
726
|
+
sizing = "none",
|
|
727
|
+
overflowY = "inherit",
|
|
728
|
+
overflowX = "inherit",
|
|
729
|
+
flexShrink,
|
|
730
|
+
flexGrow,
|
|
731
|
+
position,
|
|
732
|
+
top,
|
|
733
|
+
left
|
|
734
|
+
}) => {
|
|
735
|
+
const flexClassNames = useFlexClassNames({ items, justify, grow });
|
|
736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
737
|
+
"div",
|
|
738
|
+
{
|
|
739
|
+
style: {
|
|
740
|
+
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
741
|
+
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
742
|
+
maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0,
|
|
743
|
+
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
744
|
+
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
745
|
+
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
746
|
+
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
747
|
+
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
748
|
+
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
749
|
+
position: position !== void 0 ? position : void 0,
|
|
750
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
751
|
+
left: left !== void 0 ? `${left}px` : void 0
|
|
752
|
+
},
|
|
753
|
+
className: (0, import_clsx5.default)(
|
|
754
|
+
"scrollbar-thin",
|
|
755
|
+
width !== "fit" && "w-full",
|
|
756
|
+
width === "full" && "w-full",
|
|
757
|
+
centered && "mx-auto",
|
|
758
|
+
overflowY == "auto" && "overflow-y-auto",
|
|
759
|
+
overflowY == "hidden" && "overflow-y-hidden",
|
|
760
|
+
overflowY == "scroll" && "overflow-y-scroll",
|
|
761
|
+
overflowX == "auto" && "overflow-x-auto",
|
|
762
|
+
overflowX == "hidden" && "overflow-x-hidden",
|
|
763
|
+
overflowX == "scroll" && "overflow-x-scroll",
|
|
764
|
+
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
765
|
+
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
766
|
+
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
767
|
+
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
768
|
+
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
769
|
+
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
770
|
+
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
771
|
+
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
772
|
+
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
773
|
+
horizontalMobile ? "flex-row" : "flex-col",
|
|
774
|
+
flexClassNames,
|
|
775
|
+
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
776
|
+
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
777
|
+
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
778
|
+
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap",
|
|
779
|
+
elevation === 0 && "shadow-none",
|
|
780
|
+
elevation === 2 && "shadow-2",
|
|
781
|
+
elevation === 4 && "shadow-4",
|
|
782
|
+
elevation === 16 && "shadow-16",
|
|
783
|
+
rounded && "rounded"
|
|
784
|
+
),
|
|
785
|
+
children
|
|
786
|
+
}
|
|
787
|
+
);
|
|
788
|
+
};
|
|
789
|
+
|
|
719
790
|
// src/components/Time.tsx
|
|
720
791
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
721
792
|
var timePickerScrollableStyle = "overflow-auto max-h-full py-4 no-scrollbar";
|
|
@@ -724,6 +795,7 @@ var Time = (_a) => {
|
|
|
724
795
|
const [showTimePicker, setShowTimePicker] = (0, import_react2.useState)(false);
|
|
725
796
|
const [hasInteracted, setHasInteracted] = (0, import_react2.useState)(false);
|
|
726
797
|
const inputRef = (0, import_react2.useRef)(null);
|
|
798
|
+
const inputContainerRef = (0, import_react2.useRef)(null);
|
|
727
799
|
const timeRef = (0, import_react2.useRef)(null);
|
|
728
800
|
const [timePosition, setTimePosition] = (0, import_react2.useState)({
|
|
729
801
|
top: 0,
|
|
@@ -737,32 +809,20 @@ var Time = (_a) => {
|
|
|
737
809
|
const is12HourFormat = format === "12h";
|
|
738
810
|
const formattedTime = hour && minute ? is12HourFormat ? meridiem ? `${hour}:${minute} ${meridiem}` : `${hour}:${minute}` : `${hour}:${minute}` : "";
|
|
739
811
|
const updatePosition = () => {
|
|
740
|
-
if (
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
top: rect.bottom + window.scrollY + 6,
|
|
747
|
-
left: rect.left + window.scrollX,
|
|
748
|
-
width: rect.width
|
|
749
|
-
});
|
|
750
|
-
}
|
|
812
|
+
if (inputContainerRef.current) {
|
|
813
|
+
const rect = inputContainerRef.current.getBoundingClientRect();
|
|
814
|
+
setTimePosition({
|
|
815
|
+
top: rect.bottom + window.scrollY + 6,
|
|
816
|
+
left: rect.left + window.scrollX,
|
|
817
|
+
width: rect.width
|
|
751
818
|
});
|
|
752
819
|
}
|
|
753
820
|
};
|
|
754
821
|
(0, import_react2.useEffect)(() => {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
if (inputRef.current) {
|
|
758
|
-
resizeObserver.observe(inputRef.current);
|
|
822
|
+
if (showTimePicker) {
|
|
823
|
+
updatePosition();
|
|
759
824
|
}
|
|
760
|
-
|
|
761
|
-
return () => {
|
|
762
|
-
resizeObserver.disconnect();
|
|
763
|
-
window.removeEventListener("scroll", updatePosition);
|
|
764
|
-
};
|
|
765
|
-
}, []);
|
|
825
|
+
}, [showTimePicker, is12HourFormat]);
|
|
766
826
|
(0, import_react2.useEffect)(() => {
|
|
767
827
|
const handleClickOutside = (event) => {
|
|
768
828
|
if (inputRef.current && timeRef.current && !inputRef.current.contains(event.target) && !timeRef.current.contains(event.target)) {
|
|
@@ -775,7 +835,7 @@ var Time = (_a) => {
|
|
|
775
835
|
return () => {
|
|
776
836
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
777
837
|
};
|
|
778
|
-
}, [showTimePicker]);
|
|
838
|
+
}, [showTimePicker, is12HourFormat]);
|
|
779
839
|
(0, import_react2.useEffect)(() => {
|
|
780
840
|
if (formattedTime && hasInteracted) {
|
|
781
841
|
setInputValue(formattedTime);
|
|
@@ -848,6 +908,11 @@ var Time = (_a) => {
|
|
|
848
908
|
}
|
|
849
909
|
onChange == null ? void 0 : onChange(e);
|
|
850
910
|
};
|
|
911
|
+
const selectedRefs = {
|
|
912
|
+
hour: (0, import_react2.useRef)(null),
|
|
913
|
+
minute: (0, import_react2.useRef)(null),
|
|
914
|
+
meridiem: (0, import_react2.useRef)(null)
|
|
915
|
+
};
|
|
851
916
|
const handleKeyDown = (e) => {
|
|
852
917
|
if (e.key === "Enter") {
|
|
853
918
|
setShowTimePicker(false);
|
|
@@ -902,39 +967,27 @@ var Time = (_a) => {
|
|
|
902
967
|
setMinute(m.toString().padStart(2, "0"));
|
|
903
968
|
if (is12HourFormat) setMeridiem(mer);
|
|
904
969
|
};
|
|
905
|
-
const selectedRefs = {
|
|
906
|
-
hour: (0, import_react2.useRef)(null),
|
|
907
|
-
minute: (0, import_react2.useRef)(null),
|
|
908
|
-
meridiem: (0, import_react2.useRef)(null)
|
|
909
|
-
};
|
|
910
970
|
(0, import_react2.useEffect)(() => {
|
|
911
|
-
var _a2, _b2, _c;
|
|
912
971
|
if (showTimePicker) {
|
|
913
|
-
(
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
(_b2 = selectedRefs.minute.current) == null ? void 0 : _b2.scrollIntoView({
|
|
918
|
-
block: "center",
|
|
919
|
-
behavior: "instant"
|
|
920
|
-
});
|
|
921
|
-
if (is12HourFormat) {
|
|
922
|
-
(_c = selectedRefs.meridiem.current) == null ? void 0 : _c.scrollIntoView({
|
|
923
|
-
block: "center",
|
|
972
|
+
setTimeout(() => {
|
|
973
|
+
var _a2, _b2, _c;
|
|
974
|
+
(_a2 = selectedRefs.hour.current) == null ? void 0 : _a2.scrollIntoView({
|
|
975
|
+
block: "nearest",
|
|
924
976
|
behavior: "instant"
|
|
925
977
|
});
|
|
926
|
-
|
|
978
|
+
(_b2 = selectedRefs.minute.current) == null ? void 0 : _b2.scrollIntoView({
|
|
979
|
+
block: "nearest",
|
|
980
|
+
behavior: "instant"
|
|
981
|
+
});
|
|
982
|
+
if (is12HourFormat) {
|
|
983
|
+
(_c = selectedRefs.meridiem.current) == null ? void 0 : _c.scrollIntoView({
|
|
984
|
+
block: "nearest",
|
|
985
|
+
behavior: "instant"
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
}, 0);
|
|
927
989
|
}
|
|
928
|
-
}, [
|
|
929
|
-
showTimePicker,
|
|
930
|
-
hour,
|
|
931
|
-
minute,
|
|
932
|
-
meridiem,
|
|
933
|
-
is12HourFormat,
|
|
934
|
-
selectedRefs.hour,
|
|
935
|
-
selectedRefs.minute,
|
|
936
|
-
selectedRefs.meridiem
|
|
937
|
-
]);
|
|
990
|
+
}, [showTimePicker, is12HourFormat, selectedRefs.hour, selectedRefs.minute, selectedRefs.meridiem]);
|
|
938
991
|
const renderOptions = (items, type) => items.map((val) => {
|
|
939
992
|
const isSelected = type === "hour" && val === hour || type === "minute" && val === minute || type === "meridiem" && val === meridiem;
|
|
940
993
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -956,6 +1009,7 @@ var Time = (_a) => {
|
|
|
956
1009
|
InputBase,
|
|
957
1010
|
__spreadProps(__spreadValues({}, props), {
|
|
958
1011
|
ref: inputRef,
|
|
1012
|
+
inputContainerRef,
|
|
959
1013
|
value: inputValue,
|
|
960
1014
|
placeholder: is12HourFormat ? "hh:mm am" : "hh:mm",
|
|
961
1015
|
after: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "schedule" }) }),
|
|
@@ -968,15 +1022,20 @@ var Time = (_a) => {
|
|
|
968
1022
|
),
|
|
969
1023
|
showTimePicker && (0, import_react_dom.createPortal)(
|
|
970
1024
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
971
|
-
|
|
1025
|
+
Stack,
|
|
972
1026
|
{
|
|
973
1027
|
elevation: 4,
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1028
|
+
height: 240,
|
|
1029
|
+
position: "absolute",
|
|
1030
|
+
backgroundColor: "background-grouped-primary-normal",
|
|
1031
|
+
overflowX: "hidden",
|
|
1032
|
+
overflowY: "hidden",
|
|
1033
|
+
zIndex: 50,
|
|
1034
|
+
top: timePosition.top,
|
|
1035
|
+
left: timePosition.left,
|
|
1036
|
+
minWidth: timePosition.width,
|
|
1037
|
+
maxWidth: 0,
|
|
1038
|
+
rounded: true,
|
|
980
1039
|
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { ref: timeRef, className: "px-4 flex h-60", children: [
|
|
981
1040
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_clsx6.default)(timePickerScrollableStyle), children: renderOptions(
|
|
982
1041
|
Array.from(
|
package/dist/components/Time.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
2
|
+
Stack
|
|
3
|
+
} from "../chunk-U42SKNR6.js";
|
|
4
4
|
import {
|
|
5
5
|
findDocumentRoot
|
|
6
6
|
} from "../chunk-4T7F5BZZ.js";
|
|
7
7
|
import {
|
|
8
8
|
InputBase
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-BWRHL2AG.js";
|
|
10
10
|
import "../chunk-4C66DLIJ.js";
|
|
11
11
|
import {
|
|
12
12
|
Icon
|
|
@@ -31,6 +31,7 @@ var Time = (_a) => {
|
|
|
31
31
|
const [showTimePicker, setShowTimePicker] = useState(false);
|
|
32
32
|
const [hasInteracted, setHasInteracted] = useState(false);
|
|
33
33
|
const inputRef = useRef(null);
|
|
34
|
+
const inputContainerRef = useRef(null);
|
|
34
35
|
const timeRef = useRef(null);
|
|
35
36
|
const [timePosition, setTimePosition] = useState({
|
|
36
37
|
top: 0,
|
|
@@ -44,32 +45,20 @@ var Time = (_a) => {
|
|
|
44
45
|
const is12HourFormat = format === "12h";
|
|
45
46
|
const formattedTime = hour && minute ? is12HourFormat ? meridiem ? `${hour}:${minute} ${meridiem}` : `${hour}:${minute}` : `${hour}:${minute}` : "";
|
|
46
47
|
const updatePosition = () => {
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
top: rect.bottom + window.scrollY + 6,
|
|
54
|
-
left: rect.left + window.scrollX,
|
|
55
|
-
width: rect.width
|
|
56
|
-
});
|
|
57
|
-
}
|
|
48
|
+
if (inputContainerRef.current) {
|
|
49
|
+
const rect = inputContainerRef.current.getBoundingClientRect();
|
|
50
|
+
setTimePosition({
|
|
51
|
+
top: rect.bottom + window.scrollY + 6,
|
|
52
|
+
left: rect.left + window.scrollX,
|
|
53
|
+
width: rect.width
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
56
|
};
|
|
61
57
|
useEffect(() => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (inputRef.current) {
|
|
65
|
-
resizeObserver.observe(inputRef.current);
|
|
58
|
+
if (showTimePicker) {
|
|
59
|
+
updatePosition();
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
return () => {
|
|
69
|
-
resizeObserver.disconnect();
|
|
70
|
-
window.removeEventListener("scroll", updatePosition);
|
|
71
|
-
};
|
|
72
|
-
}, []);
|
|
61
|
+
}, [showTimePicker, is12HourFormat]);
|
|
73
62
|
useEffect(() => {
|
|
74
63
|
const handleClickOutside = (event) => {
|
|
75
64
|
if (inputRef.current && timeRef.current && !inputRef.current.contains(event.target) && !timeRef.current.contains(event.target)) {
|
|
@@ -82,7 +71,7 @@ var Time = (_a) => {
|
|
|
82
71
|
return () => {
|
|
83
72
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
84
73
|
};
|
|
85
|
-
}, [showTimePicker]);
|
|
74
|
+
}, [showTimePicker, is12HourFormat]);
|
|
86
75
|
useEffect(() => {
|
|
87
76
|
if (formattedTime && hasInteracted) {
|
|
88
77
|
setInputValue(formattedTime);
|
|
@@ -155,6 +144,11 @@ var Time = (_a) => {
|
|
|
155
144
|
}
|
|
156
145
|
onChange == null ? void 0 : onChange(e);
|
|
157
146
|
};
|
|
147
|
+
const selectedRefs = {
|
|
148
|
+
hour: useRef(null),
|
|
149
|
+
minute: useRef(null),
|
|
150
|
+
meridiem: useRef(null)
|
|
151
|
+
};
|
|
158
152
|
const handleKeyDown = (e) => {
|
|
159
153
|
if (e.key === "Enter") {
|
|
160
154
|
setShowTimePicker(false);
|
|
@@ -209,39 +203,27 @@ var Time = (_a) => {
|
|
|
209
203
|
setMinute(m.toString().padStart(2, "0"));
|
|
210
204
|
if (is12HourFormat) setMeridiem(mer);
|
|
211
205
|
};
|
|
212
|
-
const selectedRefs = {
|
|
213
|
-
hour: useRef(null),
|
|
214
|
-
minute: useRef(null),
|
|
215
|
-
meridiem: useRef(null)
|
|
216
|
-
};
|
|
217
206
|
useEffect(() => {
|
|
218
|
-
var _a2, _b2, _c;
|
|
219
207
|
if (showTimePicker) {
|
|
220
|
-
(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
(_b2 = selectedRefs.minute.current) == null ? void 0 : _b2.scrollIntoView({
|
|
225
|
-
block: "center",
|
|
226
|
-
behavior: "instant"
|
|
227
|
-
});
|
|
228
|
-
if (is12HourFormat) {
|
|
229
|
-
(_c = selectedRefs.meridiem.current) == null ? void 0 : _c.scrollIntoView({
|
|
230
|
-
block: "center",
|
|
208
|
+
setTimeout(() => {
|
|
209
|
+
var _a2, _b2, _c;
|
|
210
|
+
(_a2 = selectedRefs.hour.current) == null ? void 0 : _a2.scrollIntoView({
|
|
211
|
+
block: "nearest",
|
|
231
212
|
behavior: "instant"
|
|
232
213
|
});
|
|
233
|
-
|
|
214
|
+
(_b2 = selectedRefs.minute.current) == null ? void 0 : _b2.scrollIntoView({
|
|
215
|
+
block: "nearest",
|
|
216
|
+
behavior: "instant"
|
|
217
|
+
});
|
|
218
|
+
if (is12HourFormat) {
|
|
219
|
+
(_c = selectedRefs.meridiem.current) == null ? void 0 : _c.scrollIntoView({
|
|
220
|
+
block: "nearest",
|
|
221
|
+
behavior: "instant"
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}, 0);
|
|
234
225
|
}
|
|
235
|
-
}, [
|
|
236
|
-
showTimePicker,
|
|
237
|
-
hour,
|
|
238
|
-
minute,
|
|
239
|
-
meridiem,
|
|
240
|
-
is12HourFormat,
|
|
241
|
-
selectedRefs.hour,
|
|
242
|
-
selectedRefs.minute,
|
|
243
|
-
selectedRefs.meridiem
|
|
244
|
-
]);
|
|
226
|
+
}, [showTimePicker, is12HourFormat, selectedRefs.hour, selectedRefs.minute, selectedRefs.meridiem]);
|
|
245
227
|
const renderOptions = (items, type) => items.map((val) => {
|
|
246
228
|
const isSelected = type === "hour" && val === hour || type === "minute" && val === minute || type === "meridiem" && val === meridiem;
|
|
247
229
|
return /* @__PURE__ */ jsx(
|
|
@@ -263,6 +245,7 @@ var Time = (_a) => {
|
|
|
263
245
|
InputBase,
|
|
264
246
|
__spreadProps(__spreadValues({}, props), {
|
|
265
247
|
ref: inputRef,
|
|
248
|
+
inputContainerRef,
|
|
266
249
|
value: inputValue,
|
|
267
250
|
placeholder: is12HourFormat ? "hh:mm am" : "hh:mm",
|
|
268
251
|
after: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "schedule" }) }),
|
|
@@ -275,15 +258,20 @@ var Time = (_a) => {
|
|
|
275
258
|
),
|
|
276
259
|
showTimePicker && createPortal(
|
|
277
260
|
/* @__PURE__ */ jsx(
|
|
278
|
-
|
|
261
|
+
Stack,
|
|
279
262
|
{
|
|
280
263
|
elevation: 4,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
264
|
+
height: 240,
|
|
265
|
+
position: "absolute",
|
|
266
|
+
backgroundColor: "background-grouped-primary-normal",
|
|
267
|
+
overflowX: "hidden",
|
|
268
|
+
overflowY: "hidden",
|
|
269
|
+
zIndex: 50,
|
|
270
|
+
top: timePosition.top,
|
|
271
|
+
left: timePosition.left,
|
|
272
|
+
minWidth: timePosition.width,
|
|
273
|
+
maxWidth: 0,
|
|
274
|
+
rounded: true,
|
|
287
275
|
children: /* @__PURE__ */ jsxs("div", { ref: timeRef, className: "px-4 flex h-60", children: [
|
|
288
276
|
/* @__PURE__ */ jsx("div", { className: clsx(timePickerScrollableStyle), children: renderOptions(
|
|
289
277
|
Array.from(
|
|
@@ -604,7 +604,7 @@ var Toast = (_a) => {
|
|
|
604
604
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-desktop-layout-group-gap items-center", children: [
|
|
605
605
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-desktop-component-gap w-68", children: [
|
|
606
606
|
title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading3, { children: title }),
|
|
607
|
-
message && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, {
|
|
607
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { children: message })
|
|
608
608
|
] }),
|
|
609
609
|
showViewButton && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { variant: "tertiary", href: viewButtonLink, children: "View" })
|
|
610
610
|
] })
|
package/dist/components/Toast.js
CHANGED
|
@@ -179,7 +179,7 @@ var Toast = (_a) => {
|
|
|
179
179
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-desktop-layout-group-gap items-center", children: [
|
|
180
180
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-desktop-component-gap w-68", children: [
|
|
181
181
|
title && /* @__PURE__ */ jsx(Heading3, { children: title }),
|
|
182
|
-
message && /* @__PURE__ */ jsx(Paragraph, {
|
|
182
|
+
message && /* @__PURE__ */ jsx(Paragraph, { children: message })
|
|
183
183
|
] }),
|
|
184
184
|
showViewButton && /* @__PURE__ */ jsx(Button, { variant: "tertiary", href: viewButtonLink, children: "View" })
|
|
185
185
|
] })
|
package/dist/fonts.css
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
src: url("./icons-light[FILL]-PPZXOLWS.woff2") format("woff2");
|
|
11
11
|
font-weight: 300;
|
|
12
12
|
font-style: normal;
|
|
13
|
+
font-display: block;
|
|
13
14
|
}
|
|
14
15
|
@font-face {
|
|
15
16
|
font-family: "Icons";
|
|
16
17
|
src: url("./icons-normal[FILL]-PPZXOLWS.woff2") format("woff2");
|
|
17
18
|
font-weight: 400;
|
|
18
19
|
font-style: normal;
|
|
20
|
+
font-display: block;
|
|
19
21
|
}
|