@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
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/MobileDataGrid.tsx
|
|
60
|
+
var MobileDataGrid_exports = {};
|
|
61
|
+
__export(MobileDataGrid_exports, {
|
|
62
|
+
MobileDataGrid: () => MobileDataGrid
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(MobileDataGrid_exports);
|
|
65
|
+
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
66
|
+
|
|
67
|
+
// src/components/Icon.tsx
|
|
68
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
+
function Icon(_a) {
|
|
71
|
+
var _b = _a, {
|
|
72
|
+
name,
|
|
73
|
+
size = 24,
|
|
74
|
+
variant = "outline"
|
|
75
|
+
} = _b, props = __objRest(_b, [
|
|
76
|
+
"name",
|
|
77
|
+
"size",
|
|
78
|
+
"variant"
|
|
79
|
+
]);
|
|
80
|
+
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
81
|
+
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
|
+
"span",
|
|
84
|
+
__spreadProps(__spreadValues({}, props), {
|
|
85
|
+
className: (0, import_clsx.default)(
|
|
86
|
+
"icon",
|
|
87
|
+
`icon-${size}`,
|
|
88
|
+
// size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
|
|
89
|
+
props.className
|
|
90
|
+
),
|
|
91
|
+
style: __spreadValues({
|
|
92
|
+
fontVariationSettings: variantStyle + `, ${weightStyle}`
|
|
93
|
+
}, props.style),
|
|
94
|
+
children: name
|
|
95
|
+
})
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// src/components/Stack.tsx
|
|
100
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
101
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
102
|
+
var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx2.default)(
|
|
103
|
+
"flex",
|
|
104
|
+
items === "start" && "items-start",
|
|
105
|
+
grow && "grow",
|
|
106
|
+
items === "start" && "items-start",
|
|
107
|
+
items === "center" && "items-center",
|
|
108
|
+
items === "end" && "items-end",
|
|
109
|
+
items === "start-center" && "items-start desktop:items-center",
|
|
110
|
+
justify === "start" && "justify-start",
|
|
111
|
+
justify === "center" && "justify-center",
|
|
112
|
+
justify === "end" && "justify-end",
|
|
113
|
+
justify === "end" && "justify-end",
|
|
114
|
+
justify === "between" && "justify-between",
|
|
115
|
+
justify === "around" && "justify-around"
|
|
116
|
+
);
|
|
117
|
+
var Stack = ({
|
|
118
|
+
children,
|
|
119
|
+
items,
|
|
120
|
+
justify,
|
|
121
|
+
grow,
|
|
122
|
+
padding,
|
|
123
|
+
paddingX,
|
|
124
|
+
horizontal,
|
|
125
|
+
horizontalMobile,
|
|
126
|
+
elevation = 0,
|
|
127
|
+
rounded,
|
|
128
|
+
centered,
|
|
129
|
+
width,
|
|
130
|
+
maxWidth,
|
|
131
|
+
minWidth,
|
|
132
|
+
height,
|
|
133
|
+
maxHeight,
|
|
134
|
+
borderColor,
|
|
135
|
+
backgroundColor,
|
|
136
|
+
sizing = "none",
|
|
137
|
+
overflowY = "inherit",
|
|
138
|
+
overflowX = "inherit",
|
|
139
|
+
flexShrink,
|
|
140
|
+
flexGrow,
|
|
141
|
+
position,
|
|
142
|
+
top,
|
|
143
|
+
left
|
|
144
|
+
}) => {
|
|
145
|
+
const flexClassNames = useFlexClassNames({ items, justify, grow });
|
|
146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
style: {
|
|
150
|
+
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
151
|
+
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
152
|
+
maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0,
|
|
153
|
+
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
154
|
+
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
155
|
+
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
156
|
+
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
157
|
+
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
158
|
+
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
159
|
+
position: position !== void 0 ? position : void 0,
|
|
160
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
161
|
+
left: left !== void 0 ? `${left}px` : void 0
|
|
162
|
+
},
|
|
163
|
+
className: (0, import_clsx2.default)(
|
|
164
|
+
"scrollbar-thin",
|
|
165
|
+
width !== "fit" && "w-full",
|
|
166
|
+
width === "full" && "w-full",
|
|
167
|
+
centered && "mx-auto",
|
|
168
|
+
overflowY == "auto" && "overflow-y-auto",
|
|
169
|
+
overflowY == "hidden" && "overflow-y-hidden",
|
|
170
|
+
overflowY == "scroll" && "overflow-y-scroll",
|
|
171
|
+
overflowX == "auto" && "overflow-x-auto",
|
|
172
|
+
overflowX == "hidden" && "overflow-x-hidden",
|
|
173
|
+
overflowX == "scroll" && "overflow-x-scroll",
|
|
174
|
+
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
175
|
+
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
176
|
+
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
177
|
+
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
178
|
+
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
179
|
+
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
180
|
+
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
181
|
+
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
182
|
+
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
183
|
+
horizontalMobile ? "flex-row" : "flex-col",
|
|
184
|
+
flexClassNames,
|
|
185
|
+
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
186
|
+
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
187
|
+
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
188
|
+
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap",
|
|
189
|
+
elevation === 0 && "shadow-none",
|
|
190
|
+
elevation === 2 && "shadow-2",
|
|
191
|
+
elevation === 4 && "shadow-4",
|
|
192
|
+
elevation === 16 && "shadow-16",
|
|
193
|
+
rounded && "rounded"
|
|
194
|
+
),
|
|
195
|
+
children
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
// src/components/Button.tsx
|
|
201
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
202
|
+
|
|
203
|
+
// src/classNames.ts
|
|
204
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
205
|
+
var typography = {
|
|
206
|
+
display1: (0, import_clsx3.default)(
|
|
207
|
+
"font-sans font-semibold",
|
|
208
|
+
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
209
|
+
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
210
|
+
),
|
|
211
|
+
display2: (0, import_clsx3.default)(
|
|
212
|
+
"font-sans font-bold",
|
|
213
|
+
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
214
|
+
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
215
|
+
),
|
|
216
|
+
heading1: (0, import_clsx3.default)(
|
|
217
|
+
"font-sans font-semibold",
|
|
218
|
+
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
219
|
+
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
220
|
+
),
|
|
221
|
+
heading2: (0, import_clsx3.default)(
|
|
222
|
+
"font-sans font-normal",
|
|
223
|
+
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
224
|
+
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
225
|
+
),
|
|
226
|
+
heading3: (0, import_clsx3.default)(
|
|
227
|
+
"font-sans font-semibold",
|
|
228
|
+
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
229
|
+
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
230
|
+
),
|
|
231
|
+
subheader: (0, import_clsx3.default)(
|
|
232
|
+
"font-sans font-semibold",
|
|
233
|
+
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
234
|
+
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
235
|
+
),
|
|
236
|
+
link: (0, import_clsx3.default)(
|
|
237
|
+
"font-sans font-normal",
|
|
238
|
+
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
239
|
+
"leading-link-mobile desktop:leading-link-desktop"
|
|
240
|
+
),
|
|
241
|
+
buttonLabel: (0, import_clsx3.default)(
|
|
242
|
+
"font-sans font-semibold",
|
|
243
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
244
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
245
|
+
),
|
|
246
|
+
label: (0, import_clsx3.default)(
|
|
247
|
+
"font-sans font-semibold",
|
|
248
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
249
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
250
|
+
),
|
|
251
|
+
paragraph: (0, import_clsx3.default)(
|
|
252
|
+
"font-sans font-normal",
|
|
253
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
254
|
+
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
255
|
+
),
|
|
256
|
+
caption: (0, import_clsx3.default)(
|
|
257
|
+
"font-sans font-normal",
|
|
258
|
+
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
259
|
+
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
260
|
+
)
|
|
261
|
+
};
|
|
262
|
+
var baseTransition = (0, import_clsx3.default)(
|
|
263
|
+
"transition-colors duration-100 ease-in-out"
|
|
264
|
+
);
|
|
265
|
+
var componentGap = (0, import_clsx3.default)(
|
|
266
|
+
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
267
|
+
);
|
|
268
|
+
var paddingUsingComponentGap = (0, import_clsx3.default)(
|
|
269
|
+
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
270
|
+
);
|
|
271
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx3.default)(
|
|
272
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
273
|
+
);
|
|
274
|
+
var componentPadding = (0, import_clsx3.default)(
|
|
275
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
276
|
+
);
|
|
277
|
+
var componentPaddingBottom = (0, import_clsx3.default)(
|
|
278
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
279
|
+
);
|
|
280
|
+
var componentPaddingY = (0, import_clsx3.default)(
|
|
281
|
+
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
282
|
+
);
|
|
283
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx3.default)(
|
|
284
|
+
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
285
|
+
);
|
|
286
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx3.default)(
|
|
287
|
+
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
288
|
+
);
|
|
289
|
+
var componentPaddingMinusBorder = (0, import_clsx3.default)(
|
|
290
|
+
"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)]"
|
|
291
|
+
);
|
|
292
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx3.default)(
|
|
293
|
+
"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)]"
|
|
294
|
+
);
|
|
295
|
+
var layoutPaddingBottom = (0, import_clsx3.default)(
|
|
296
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
297
|
+
);
|
|
298
|
+
var layoutPaddingY = (0, import_clsx3.default)(
|
|
299
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
300
|
+
);
|
|
301
|
+
var containerPaddingX = (0, import_clsx3.default)(
|
|
302
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
303
|
+
);
|
|
304
|
+
var containerPaddingY = (0, import_clsx3.default)(
|
|
305
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
306
|
+
);
|
|
307
|
+
var layoutGroupGapPaddingY = (0, import_clsx3.default)(
|
|
308
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
309
|
+
);
|
|
310
|
+
var layoutGroupGap = (0, import_clsx3.default)(
|
|
311
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
312
|
+
);
|
|
313
|
+
var layoutGap = (0, import_clsx3.default)(
|
|
314
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
315
|
+
);
|
|
316
|
+
var gapUsingContainerPadding = (0, import_clsx3.default)(
|
|
317
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
// src/components/Button.tsx
|
|
321
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
322
|
+
var Button = (_a) => {
|
|
323
|
+
var _b = _a, {
|
|
324
|
+
variant = "primary",
|
|
325
|
+
as = "button",
|
|
326
|
+
block,
|
|
327
|
+
leftIcon,
|
|
328
|
+
rightIcon,
|
|
329
|
+
className,
|
|
330
|
+
classNameLabel,
|
|
331
|
+
disabled = false,
|
|
332
|
+
children,
|
|
333
|
+
iconOnly = false,
|
|
334
|
+
colorClassName,
|
|
335
|
+
href
|
|
336
|
+
} = _b, props = __objRest(_b, [
|
|
337
|
+
"variant",
|
|
338
|
+
"as",
|
|
339
|
+
"block",
|
|
340
|
+
"leftIcon",
|
|
341
|
+
"rightIcon",
|
|
342
|
+
"className",
|
|
343
|
+
"classNameLabel",
|
|
344
|
+
"disabled",
|
|
345
|
+
"children",
|
|
346
|
+
"iconOnly",
|
|
347
|
+
"colorClassName",
|
|
348
|
+
"href"
|
|
349
|
+
]);
|
|
350
|
+
const primaryVariantStyles = variant === "primary" && (0, import_clsx4.default)(
|
|
351
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
352
|
+
"bg-background-action-primary-normal border-background-action-primary-normal",
|
|
353
|
+
"hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
|
|
354
|
+
"focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
|
|
355
|
+
"active:bg-background-action-primary-active active:border-background-action-primary-active",
|
|
356
|
+
"disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
357
|
+
);
|
|
358
|
+
const secondaryVariantStyles = variant === "secondary" && (0, import_clsx4.default)(
|
|
359
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
360
|
+
"bg-background-action-secondary-normal border-border-action-normal",
|
|
361
|
+
"hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
|
|
362
|
+
"focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
363
|
+
"active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
|
|
364
|
+
"disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
|
|
365
|
+
);
|
|
366
|
+
const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx4.default)(
|
|
367
|
+
"bg-transparent border-transparent",
|
|
368
|
+
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
369
|
+
"bg-transparent border-transparent",
|
|
370
|
+
"hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
371
|
+
"focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
372
|
+
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
373
|
+
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
374
|
+
);
|
|
375
|
+
const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx4.default)(
|
|
376
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
377
|
+
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
378
|
+
"hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
|
|
379
|
+
"focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
|
|
380
|
+
"active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
|
|
381
|
+
"disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
382
|
+
);
|
|
383
|
+
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx4.default)(
|
|
384
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
385
|
+
"bg-background-action-critical-secondary-normal border-border-action-critical-normal",
|
|
386
|
+
"hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
|
|
387
|
+
"focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
388
|
+
"active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
|
|
389
|
+
"disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
|
|
390
|
+
);
|
|
391
|
+
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx4.default)(
|
|
392
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
393
|
+
"bg-transparent border-transparent text-text-action-critical-normal",
|
|
394
|
+
"hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
|
|
395
|
+
"focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
396
|
+
"active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
|
|
397
|
+
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
|
|
398
|
+
);
|
|
399
|
+
const navigationVarianStyles = variant === "navigation" && (0, import_clsx4.default)(
|
|
400
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
401
|
+
"bg-transparent",
|
|
402
|
+
"hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
|
|
403
|
+
// "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
|
|
404
|
+
"focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
|
|
405
|
+
// "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
|
|
406
|
+
"active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
|
|
407
|
+
// "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
|
|
408
|
+
"disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
|
|
409
|
+
"flex-col",
|
|
410
|
+
paddingUsingComponentGap
|
|
411
|
+
);
|
|
412
|
+
const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx4.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
|
|
413
|
+
const buttonClasses = (0, import_clsx4.default)(
|
|
414
|
+
disabled ? "cursor-default" : "cursor-pointer",
|
|
415
|
+
block ? "w-full" : "w-fit",
|
|
416
|
+
baseTransition,
|
|
417
|
+
"rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
|
|
418
|
+
primaryVariantStyles,
|
|
419
|
+
secondaryVariantStyles,
|
|
420
|
+
tertiaryVariantStyles,
|
|
421
|
+
primaryCriticalVariantStyles,
|
|
422
|
+
secondaryCriticalVariantStyles,
|
|
423
|
+
tertiaryCriticalVariantStyles,
|
|
424
|
+
navigationVarianStyles,
|
|
425
|
+
notNavigationVariantStyles,
|
|
426
|
+
className
|
|
427
|
+
);
|
|
428
|
+
const labelClasses = (0, import_clsx4.default)(
|
|
429
|
+
"min-h-6 flex items-center justify-center",
|
|
430
|
+
classNameLabel,
|
|
431
|
+
componentPaddingXUsingComponentGap,
|
|
432
|
+
typography.buttonLabel
|
|
433
|
+
);
|
|
434
|
+
const Element = href ? "a" : as;
|
|
435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
436
|
+
Element,
|
|
437
|
+
__spreadProps(__spreadValues({
|
|
438
|
+
type: Element === "button" ? "button" : void 0,
|
|
439
|
+
className: buttonClasses
|
|
440
|
+
}, props), {
|
|
441
|
+
disabled,
|
|
442
|
+
href,
|
|
443
|
+
children: [
|
|
444
|
+
leftIcon && leftIcon,
|
|
445
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: labelClasses, children }),
|
|
446
|
+
rightIcon && rightIcon
|
|
447
|
+
]
|
|
448
|
+
})
|
|
449
|
+
);
|
|
450
|
+
};
|
|
451
|
+
Button.displayName = "Button";
|
|
452
|
+
|
|
453
|
+
// src/components/Theme.tsx
|
|
454
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
455
|
+
function Theme({
|
|
456
|
+
theme,
|
|
457
|
+
children
|
|
458
|
+
}) {
|
|
459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "contents", "data-theme": theme, children });
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// src/components/Heading.tsx
|
|
463
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
464
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
465
|
+
var Heading = (_a) => {
|
|
466
|
+
var _b = _a, {
|
|
467
|
+
className,
|
|
468
|
+
children,
|
|
469
|
+
as,
|
|
470
|
+
color,
|
|
471
|
+
align,
|
|
472
|
+
variant = "heading1"
|
|
473
|
+
} = _b, props = __objRest(_b, [
|
|
474
|
+
"className",
|
|
475
|
+
"children",
|
|
476
|
+
"as",
|
|
477
|
+
"color",
|
|
478
|
+
"align",
|
|
479
|
+
"variant"
|
|
480
|
+
]);
|
|
481
|
+
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
482
|
+
const Element = as != null ? as : defaultElement;
|
|
483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
484
|
+
Element,
|
|
485
|
+
__spreadProps(__spreadValues({
|
|
486
|
+
className: (0, import_clsx5.default)(
|
|
487
|
+
typography[variant],
|
|
488
|
+
className,
|
|
489
|
+
align === "left" && "text-left",
|
|
490
|
+
align === "center" && "text-center",
|
|
491
|
+
align === "right" && "text-right"
|
|
492
|
+
),
|
|
493
|
+
style: __spreadProps(__spreadValues({}, props.style), {
|
|
494
|
+
color: color ? `var(--color-${color})` : void 0
|
|
495
|
+
})
|
|
496
|
+
}, props), {
|
|
497
|
+
children
|
|
498
|
+
})
|
|
499
|
+
);
|
|
500
|
+
};
|
|
501
|
+
Heading.displayName = "Heading";
|
|
502
|
+
var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
|
|
503
|
+
var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
|
|
504
|
+
var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
|
|
505
|
+
Heading1.displayName = "Heading1";
|
|
506
|
+
Heading2.displayName = "Heading2";
|
|
507
|
+
Heading3.displayName = "Heading3";
|
|
508
|
+
|
|
509
|
+
// src/components/Paragraph.tsx
|
|
510
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
511
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
512
|
+
var Paragraph = (_a) => {
|
|
513
|
+
var _b = _a, {
|
|
514
|
+
className,
|
|
515
|
+
color,
|
|
516
|
+
padded,
|
|
517
|
+
align = "left",
|
|
518
|
+
tall,
|
|
519
|
+
addOverflow,
|
|
520
|
+
children,
|
|
521
|
+
as = "p"
|
|
522
|
+
} = _b, props = __objRest(_b, [
|
|
523
|
+
"className",
|
|
524
|
+
"color",
|
|
525
|
+
"padded",
|
|
526
|
+
"align",
|
|
527
|
+
"tall",
|
|
528
|
+
"addOverflow",
|
|
529
|
+
"children",
|
|
530
|
+
"as"
|
|
531
|
+
]);
|
|
532
|
+
const Element = as;
|
|
533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
534
|
+
Element,
|
|
535
|
+
__spreadProps(__spreadValues({}, props), {
|
|
536
|
+
className: (0, import_clsx6.default)(
|
|
537
|
+
typography.paragraph,
|
|
538
|
+
className,
|
|
539
|
+
padded && componentPaddingXUsingComponentGap,
|
|
540
|
+
align === "left" && "text-left",
|
|
541
|
+
align === "center" && "text-center",
|
|
542
|
+
align === "right" && "text-right",
|
|
543
|
+
tall && "!leading-6",
|
|
544
|
+
addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden"
|
|
545
|
+
),
|
|
546
|
+
style: __spreadProps(__spreadValues({}, props.style), {
|
|
547
|
+
color: color ? `var(--color-${color})` : void 0
|
|
548
|
+
}),
|
|
549
|
+
children
|
|
550
|
+
})
|
|
551
|
+
);
|
|
552
|
+
};
|
|
553
|
+
Paragraph.displayName = "Paragraph";
|
|
554
|
+
|
|
555
|
+
// src/components/MobileDataGrid.tsx
|
|
556
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
557
|
+
function MobileDataGrid({
|
|
558
|
+
columns,
|
|
559
|
+
data,
|
|
560
|
+
header,
|
|
561
|
+
getId,
|
|
562
|
+
renderLink,
|
|
563
|
+
renderChevron
|
|
564
|
+
}) {
|
|
565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
566
|
+
"div",
|
|
567
|
+
{
|
|
568
|
+
className: (0, import_clsx7.default)(
|
|
569
|
+
"rounded",
|
|
570
|
+
"overflow-hidden",
|
|
571
|
+
"divide-y divide-border-primary-normal",
|
|
572
|
+
"border border-border-primary-normal",
|
|
573
|
+
"overflow-y-scroll scrollbar-thin"
|
|
574
|
+
),
|
|
575
|
+
children: [
|
|
576
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MobileDataGridHeader, { header }),
|
|
577
|
+
data.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
578
|
+
MobileDataGridCard,
|
|
579
|
+
{
|
|
580
|
+
data: item,
|
|
581
|
+
columns,
|
|
582
|
+
renderLink,
|
|
583
|
+
renderChevron
|
|
584
|
+
},
|
|
585
|
+
getId(item)
|
|
586
|
+
))
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
function MobileDataGridHeader({ header }) {
|
|
592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
593
|
+
Stack,
|
|
594
|
+
{
|
|
595
|
+
horizontal: true,
|
|
596
|
+
items: "start",
|
|
597
|
+
justify: "center",
|
|
598
|
+
backgroundColor: "background-primary-normal",
|
|
599
|
+
padding: true,
|
|
600
|
+
sizing: "component",
|
|
601
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: header })
|
|
602
|
+
}
|
|
603
|
+
) }) });
|
|
604
|
+
}
|
|
605
|
+
function MobileDataGridCard({
|
|
606
|
+
data,
|
|
607
|
+
columns,
|
|
608
|
+
renderLink,
|
|
609
|
+
renderChevron
|
|
610
|
+
}) {
|
|
611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
|
|
612
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { sizing: "component", padding: true, children: [
|
|
613
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
|
|
614
|
+
renderLink && renderLink(data),
|
|
615
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "end", children: [
|
|
616
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
617
|
+
Button,
|
|
618
|
+
{
|
|
619
|
+
iconOnly: true,
|
|
620
|
+
variant: "tertiary",
|
|
621
|
+
onClick: () => console.log("Edit", data.id),
|
|
622
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "docs" })
|
|
623
|
+
}
|
|
624
|
+
),
|
|
625
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
626
|
+
Button,
|
|
627
|
+
{
|
|
628
|
+
iconOnly: true,
|
|
629
|
+
variant: "tertiary",
|
|
630
|
+
onClick: () => console.log("Edit", data.id),
|
|
631
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "swap_vert" })
|
|
632
|
+
}
|
|
633
|
+
)
|
|
634
|
+
] })
|
|
635
|
+
] }),
|
|
636
|
+
columns.filter((x) => x.show).map((column) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
637
|
+
"div",
|
|
638
|
+
{
|
|
639
|
+
className: "mb-2 grid grid-cols-2",
|
|
640
|
+
children: [
|
|
641
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
642
|
+
column.header,
|
|
643
|
+
":"
|
|
644
|
+
] }),
|
|
645
|
+
" ",
|
|
646
|
+
column.cell ? column.cell({ row: data }) : String(data[column.accessorKey])
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
String(column.accessorKey)
|
|
650
|
+
))
|
|
651
|
+
] }),
|
|
652
|
+
renderChevron && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: renderChevron(data) })
|
|
653
|
+
] });
|
|
654
|
+
}
|
|
655
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
656
|
+
0 && (module.exports = {
|
|
657
|
+
MobileDataGrid
|
|
658
|
+
});
|