@omniumretail/component-library 1.2.45 → 1.2.47

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/main.css CHANGED
@@ -31,6 +31,6 @@
31
31
  .aZEBTQus3Y3MyodeDwkf{display:flex;flex-direction:column;align-items:center;justify-content:center}.cc1pbQlAgw2CmXVml3bs{height:300px;width:400px}.aTf_CXAsyp0tySsoZdD_{display:flex;justify-content:space-between;margin:10px 10px 0px 10px;font-size:20px}.kuu1hf_JTvYD55IW6Nxl{color:#ff4d4f}.N8ODEO3zDbY7gmecjTrp{color:#52c41a}.WIsL9Shu6c0mGJq9qSSz{margin-top:20px;border-radius:4px;overflow:hidden}.WIsL9Shu6c0mGJq9qSSz img{width:100%;height:auto}
32
32
  .OJKeuXyOSPIeCCssVum2{display:flex;gap:32px}.jzxszvL7wzCV5nztJL0S{padding:12px}.OGA8oJw8RDyohcRftjmo{width:100%}.y2_7QVPOhjRZlAHCRWKf{display:grid;grid-template-columns:minmax(200px, 1fr) auto auto auto auto;gap:46px}.Smkcs3LGp1uPuQge2GxE{margin-top:16px}Label{margin-bottom:8px}.djarlYFkE9Kb7wUjUnrY{height:36px}
33
33
  :root{--color-grey: #e4e4e4;--color-grey-100: #E5E5E5}.SF5f_Q_Ggz_4JHUHS2Xa{display:flex;align-items:center;padding:13px 20px;box-sizing:border-box;height:72px}.SF5f_Q_Ggz_4JHUHS2Xa *{box-sizing:border-box}.gSVYvBn1sLbcMsGI32b9{display:flex;flex-grow:1;align-items:flex-end;justify-content:center;max-width:calc(100% - 60px)}.gSVYvBn1sLbcMsGI32b9 img{max-width:196px}.gSVYvBn1sLbcMsGI32b9 .fVSt3bSZBcJGsOdA5nIN{font-weight:var(--font-weight-semibold);text-transform:uppercase;color:var(--color-black)}.BIBQmS_NwoMw2Ncq5yuN{cursor:pointer;padding:4px 4px 4px 0;font-size:20px;width:30px;display:flex;align-items:center;justify-content:center}.ZinSgUtysxITkbGRKdux{position:fixed;top:0;left:-100%;bottom:0;width:100%;max-width:430px;background-color:var(--color-white);padding-inline:15px;z-index:999;box-shadow:0 3px 12px rgba(0,0,0,.45);transition:.6s ease-out}.ZinSgUtysxITkbGRKdux.FW1pOdad0uN5LO9h5PgQ{left:0;transition:.3s ease-in}.ZfA8OEmbRzRsNqLAmdtn{background-color:rgba(0,0,0,.3);backdrop-filter:blur(1px);position:absolute;left:0;top:0;right:0;bottom:0;z-index:998;pointer-events:none;opacity:0;transition:.3s}.ZfA8OEmbRzRsNqLAmdtn.FW1pOdad0uN5LO9h5PgQ{opacity:1;pointer-events:all}.YKSQJmdRP_7tKwvQpeuV{width:calc(100% + 30px);margin-left:-15px;background-color:var(--color-orange);display:flex;align-items:center;justify-content:center}.ISssYC5Uz452JVWP0xDc img{max-width:160px}.E6YZPpa60LxA7qqIW7jQ{position:absolute;top:23px;right:15px;font-size:25px;cursor:pointer;color:var(--color-white)}.YYp3pzktjEDEyW8knAZQ{overflow-y:auto;height:calc(100% - 51px);margin:0;padding:0}.u7k2VQ30AQDk6mKA22GX{height:60px;padding:10px;display:flex;align-items:center;border-bottom:1px solid var(--color-black);cursor:pointer;transition:.3s;text-transform:uppercase;width:100%}.u7k2VQ30AQDk6mKA22GX:hover{background-color:var(--color-grey);color:var(--color-black)}.QQoDB9XPcAK18l2DIym4{list-style:none}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN{height:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-bottom:0}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN>.u7k2VQ30AQDk6mKA22GX{position:relative}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN>.u7k2VQ30AQDk6mKA22GX .NytmT59TmaWHc4FLM2wa{position:absolute;width:60px;height:100%;background:var(--color-black);right:0;display:flex;align-items:center;justify-content:center}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN>.u7k2VQ30AQDk6mKA22GX .NytmT59TmaWHc4FLM2wa:hover{background-color:var(--color-orange)}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN>.u7k2VQ30AQDk6mKA22GX .zo7CFksIKx7Fahu4e4S_{color:var(--color-white)}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN.yk4DnBgiUlzk23Yg_q6E{background:var(--color-grey)}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN.yk4DnBgiUlzk23Yg_q6E .NytmT59TmaWHc4FLM2wa{background-color:var(--color-orange)}.QQoDB9XPcAK18l2DIym4.wrXCksst57UpQuCNgGkN.yk4DnBgiUlzk23Yg_q6E .uLgjMU9sbvfaa0qKEguP{height:auto;opacity:1}.uLgjMU9sbvfaa0qKEguP{padding:0;width:100%;margin:0;background-color:var(--color-orange);color:var(--color-white);height:0;opacity:0;overflow:hidden;transition:height .3s ease,opacity .3s ease}.uLgjMU9sbvfaa0qKEguP .u7k2VQ30AQDk6mKA22GX{min-height:60px;height:auto;padding-inline:40px}.efnjUnudkE0UTVQ6wrgH{cursor:pointer}.u7k2VQ30AQDk6mKA22GX .fjNRYZMP1O0pTvBDBB3L span{margin-left:8px;transform:translateY(-2px);display:inline-block;font-size:var(--font-size-body-3);text-transform:capitalize}
34
- @media(max-width: 768px){.muC1BdCbIEMIs70EtJoA{position:unset}}.msELhnfhfo6un3c4Spoc{max-width:300px;max-height:400px;padding:0 !important}@media(max-width: 768px){.msELhnfhfo6un3c4Spoc{max-width:100vw}}@media(min-width: 1024px){.msELhnfhfo6un3c4Spoc{max-width:600px;max-height:700px}}@media(max-width: 768px){.oGsIq0O_Hzwg2mLR72la{position:absolute}}.KSVguXBQ_A1SUSR6e8Wq{overflow-y:auto;max-height:calc(100vh - 60px - 72px - 43px)}.GeNg2HVTmhQDmsLLTpWj{display:flex;flex-direction:column;align-items:unset !important;padding:10px;border-bottom:1px solid #f0f0f0;background-color:#fff !important;cursor:pointer}.GeNg2HVTmhQDmsLLTpWj:hover{background-color:#f9f9f9}@media(max-width: 768px){.GeNg2HVTmhQDmsLLTpWj{padding:8px}}.GBb48KXbGnQtAY8xqmUp{display:flex;justify-content:space-between;align-items:center;padding:10px;background-color:#f5f5f5;border-bottom:1px solid #e8e8e8}.LoCH7sYpmK3VgRASqTgz{font-size:20px;cursor:pointer;color:#595959}.Xjs10kZPSsD_BVFomnIe{color:#ff674c;margin-right:8px}.oibCayv_cOyhyWCKzHSr{display:flex;align-items:center;gap:10px}.oibCayv_cOyhyWCKzHSr span{font-size:14px;font-weight:500;color:#595959}.hhwYXSd0CR75D8ETnUML{display:flex;align-items:center;position:relative;padding-left:12px}@media(max-width: 768px){.hhwYXSd0CR75D8ETnUML{padding-left:8px}}.LkP1cqeAyAYI9rCurnE8{position:absolute;left:0;top:50%;transform:translateY(-50%);font-size:16px}@media(max-width: 768px){.LkP1cqeAyAYI9rCurnE8{font-size:12px}}.u_jT9kmq2kyThRlj8HT1{width:50px;height:50px;margin-left:10px;margin-right:10px}@media(max-width: 768px){.u_jT9kmq2kyThRlj8HT1{width:40px;height:40px;margin-left:8px;margin-right:8px}}.ieGdf5FTgLUPcfuZi7Xz{flex:1;overflow:hidden}.QgZ3oHW9IRTexL8xWVqP{font-weight:bold;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%}@media(max-width: 768px){.QgZ3oHW9IRTexL8xWVqP{font-size:12px}}.JwfbSOSIRAz5OO2hiSFc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%;font-size:12px;color:#666;margin-top:2px}@media(max-width: 768px){.JwfbSOSIRAz5OO2hiSFc{font-size:10px}}.XfXQBYqMfZc4p8s2Mhla{width:6px;height:6px;background-color:#1890ff;border-radius:50%;margin-left:10px}@media(max-width: 768px){.XfXQBYqMfZc4p8s2Mhla{width:4px;height:4px;margin-left:8px}}.RGXTlVxCxbZpD6__J5_g .ant-badge-count{font-size:12px !important;min-width:16px !important;height:16px !important;line-height:16px !important;transform:translate(40%, -50%) !important}.rWa5cnbZQLDtxFxJU6qA{font-size:26px;cursor:pointer;color:#0033a0}.Pus_rAoqX05D4Qz2pYxo{animation:Pus_rAoqX05D4Qz2pYxo 1s ease-in-out infinite}@keyframes Pus_rAoqX05D4Qz2pYxo{0%{transform:rotate(0deg)}25%{transform:rotate(10deg)}50%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}100%{transform:rotate(0deg)}}
34
+ .muC1BdCbIEMIs70EtJoA{position:fixed}@media(max-width: 768px){.muC1BdCbIEMIs70EtJoA{position:unset}}.msELhnfhfo6un3c4Spoc{max-width:400px;max-height:500px;padding:0 !important;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15)}@media(max-width: 768px){.msELhnfhfo6un3c4Spoc{max-width:100vw;border-radius:0}}@media(min-width: 1024px){.msELhnfhfo6un3c4Spoc{max-width:450px;max-height:600px}}@media(max-width: 768px){.oGsIq0O_Hzwg2mLR72la{position:absolute}}.KSVguXBQ_A1SUSR6e8Wq{overflow-y:auto;max-height:500px}@media(max-width: 768px){.KSVguXBQ_A1SUSR6e8Wq{max-height:calc(100vh - 60px - 72px - 43px)}}.GeNg2HVTmhQDmsLLTpWj{display:flex;flex-direction:column;align-items:unset !important;padding:10px;border-bottom:1px solid #f0f0f0;background-color:#fff !important;cursor:pointer}.GeNg2HVTmhQDmsLLTpWj:hover{background-color:#f9f9f9}@media(max-width: 768px){.GeNg2HVTmhQDmsLLTpWj{padding:8px}}.GBb48KXbGnQtAY8xqmUp{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background-color:#f5f5f5;border-bottom:1px solid #e8e8e8}.LoCH7sYpmK3VgRASqTgz{font-size:20px;cursor:pointer;color:#595959;padding:4px;border-radius:4px}.LoCH7sYpmK3VgRASqTgz:hover{background-color:#e8e8e8}.Xjs10kZPSsD_BVFomnIe{color:#ff674c;margin-right:8px}.oibCayv_cOyhyWCKzHSr{display:flex;align-items:center;gap:10px}.oibCayv_cOyhyWCKzHSr span{font-size:14px;font-weight:500;color:#595959}.hhwYXSd0CR75D8ETnUML{display:flex;align-items:center;position:relative;padding-left:12px;width:100%}@media(max-width: 768px){.hhwYXSd0CR75D8ETnUML{padding-left:8px}}.LkP1cqeAyAYI9rCurnE8{position:absolute;left:0;top:50%;transform:translateY(-50%);font-size:16px}@media(max-width: 768px){.LkP1cqeAyAYI9rCurnE8{font-size:12px}}.u_jT9kmq2kyThRlj8HT1{width:50px;height:50px;margin-left:10px;margin-right:10px;flex-shrink:0}@media(max-width: 768px){.u_jT9kmq2kyThRlj8HT1{width:40px;height:40px;margin-left:8px;margin-right:8px}}.ieGdf5FTgLUPcfuZi7Xz{flex:1;overflow:hidden;min-width:0}.QgZ3oHW9IRTexL8xWVqP{font-weight:bold;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%}@media(max-width: 768px){.QgZ3oHW9IRTexL8xWVqP{font-size:12px}}.JwfbSOSIRAz5OO2hiSFc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%;font-size:12px;color:#666;margin-top:2px}@media(max-width: 768px){.JwfbSOSIRAz5OO2hiSFc{font-size:10px}}.XfXQBYqMfZc4p8s2Mhla{width:6px;height:6px;background-color:#1890ff;border-radius:50%;margin-left:10px;flex-shrink:0}@media(max-width: 768px){.XfXQBYqMfZc4p8s2Mhla{width:4px;height:4px;margin-left:8px}}.RGXTlVxCxbZpD6__J5_g .ant-badge-count{font-size:12px !important;min-width:16px !important;height:16px !important;line-height:16px !important;transform:translate(40%, -50%) !important}.rWa5cnbZQLDtxFxJU6qA{font-size:26px;cursor:pointer;color:#0033a0}@media(min-width: 767px){.rWa5cnbZQLDtxFxJU6qA{color:var(--color-grey-light)}}.Pus_rAoqX05D4Qz2pYxo{animation:Pus_rAoqX05D4Qz2pYxo 1s ease-in-out infinite}@keyframes Pus_rAoqX05D4Qz2pYxo{0%{transform:rotate(0deg)}25%{transform:rotate(10deg)}50%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}100%{transform:rotate(0deg)}}
35
35
  .rUOcBpTPxrzfRw36v939{display:flex;align-items:center;width:100%;margin:16px 0;box-sizing:border-box}.rUOcBpTPxrzfRw36v939 .ant-descriptions{width:calc(100vw - 24px)}.rUOcBpTPxrzfRw36v939 .ant-descriptions-item-label{max-width:140px !important;padding:8px 16px !important;color:var(--color-blue) !important;font-weight:700 !important;font-size:12px !important}.rUOcBpTPxrzfRw36v939 .ant-descriptions-item-content{padding:8px 16px !important;font-size:12px !important}.cyz9pmVdkD7z1n7QUlfu{width:100vw !important;max-width:100vw !important;padding:0px 12px}.PQ794lq3KZF_sigL5bbI{overflow:hidden !important}.PQ794lq3KZF_sigL5bbI .ant-modal .ant-modal-body{overflow-y:auto;overflow-x:hidden;max-height:80vh}.PQ794lq3KZF_sigL5bbI .ant-modal .ant-modal-content{padding:20px 12px !important}.PQ794lq3KZF_sigL5bbI .ant-modal-header{text-align:center !important}.PQ794lq3KZF_sigL5bbI .ant-modal-close{color:var(--button-default-background-hover-color)}.b23UIWngPXOEh5FC2mcC{display:flex;justify-content:center}.b23UIWngPXOEh5FC2mcC.DEfmwZ5CmWvodIcPVgfo{justify-content:space-between}.lIEwxxVD_vq2cGux3ehI{color:var(--button-default-background);font-size:26px}.ckRiBia09XQRtMVbNqvy{color:#c7cac9;pointer-events:none}
36
- .lXrWb7XQPRt4cDHlwta4{display:flex;justify-content:space-between;align-items:center;position:fixed;bottom:10px;width:100%;height:60px;padding:0 10px;box-sizing:border-box;z-index:10}.lXrWb7XQPRt4cDHlwta4 .EqVJkSj9Vem7EVpPIYW_{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1}.lXrWb7XQPRt4cDHlwta4 .EqVJkSj9Vem7EVpPIYW_ .YA6MXmjAZZwtbSZYmcEw{font-size:26px;color:#0033a0;cursor:pointer}.lXrWb7XQPRt4cDHlwta4 .EqVJkSj9Vem7EVpPIYW_ .C4jdW5oFYxdgldUsYeMg{font-size:12px;margin-top:4px;color:#0033a0}.lXrWb7XQPRt4cDHlwta4 .FiQHpDUl90uFjStr9OAg{display:flex;justify-content:center;flex:1}.lXrWb7XQPRt4cDHlwta4 .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background-color:#0033a0;border-radius:8px;cursor:pointer}.lXrWb7XQPRt4cDHlwta4 .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj .wbWHzMmDsgEQ056VQENK{font-size:20px;color:#fff}.lXrWb7XQPRt4cDHlwta4 .pPyAGD44QA4U6r5_xMLN{position:relative}.MGvcBnUleTUDOtqafxZd{transform:rotate(45deg);transition:transform .3s ease}.m5JXPA_4FcCHUN17ucxY{position:absolute;bottom:70px;width:180px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:12px;z-index:999}.Rtyw1XuncdBWZdUEV1qj{display:flex;align-items:center;background-color:#fff;padding:8px 16px;border-radius:20px;box-shadow:0 4px 12px rgba(0,51,160,.5);cursor:pointer;transition:all .2s ease;animation:g8HDTZ2GSb3rGEQ5ICmJ .3s cubic-bezier(0.34, 1.56, 0.64, 1)}.Rtyw1XuncdBWZdUEV1qj:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.12)}@keyframes g8HDTZ2GSb3rGEQ5ICmJ{from{opacity:0;transform:scale(0.8) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.ZVQGcR7lZkCRgAxqbZt1{width:28px;height:28px;border-radius:50%;background-color:#f3f4f6;display:flex;align-items:center;justify-content:center;margin-right:10px;color:#4b5563}.c87nj1oXjBwCQjx_Jq7T{font-size:14px;font-weight:500;color:#374151}
36
+ .TRyfXWNBGEHsogA6eGN_{display:flex;justify-content:space-between;align-items:center;position:fixed;bottom:0px;width:100%;height:60px;padding:0 10px;box-sizing:border-box;z-index:10;padding-bottom:8px}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_{background-color:var(--color-black) !important;padding-bottom:0px}}.TRyfXWNBGEHsogA6eGN_ .wJU9Lx1mlSJ82yM1uy5i{display:flex;justify-content:space-between;width:100%}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .wJU9Lx1mlSJ82yM1uy5i{width:fit-content;gap:100px}}.TRyfXWNBGEHsogA6eGN_ .X3NLcQLxnunLpbrTQW8h{font-size:var(--font-size-body-1);color:var(--color-grey-light)}.TRyfXWNBGEHsogA6eGN_ .wkmxxKMcpmBG8oshX8yW{width:100%;margin-bottom:4px}.TRyfXWNBGEHsogA6eGN_ .TCBuRot8X1MeAAQ9p9SW{margin-left:8px}.TRyfXWNBGEHsogA6eGN_ .X6xkdc8XoFcYrQWq3hB7,.TRyfXWNBGEHsogA6eGN_ .TCBuRot8X1MeAAQ9p9SW{display:inline-block}.TRyfXWNBGEHsogA6eGN_ .u7LoVIvRXqdjsXffoRjw{height:25px;align-self:flex-end}.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_{flex-direction:row;gap:12px;flex:unset}}.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_ .YA6MXmjAZZwtbSZYmcEw{font-size:26px;color:#0033a0;cursor:pointer}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_ .YA6MXmjAZZwtbSZYmcEw{color:var(--color-grey-light)}}.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_ .C4jdW5oFYxdgldUsYeMg{font-size:12px;margin-top:4px;color:#0033a0}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .EqVJkSj9Vem7EVpPIYW_ .C4jdW5oFYxdgldUsYeMg{color:var(--color-grey-light)}}.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg{display:flex;justify-content:center;flex:1}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg{flex:unset}}.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background-color:#0033a0;border-radius:8px;cursor:pointer}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj{background-color:var(--color-grey-light)}}.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj .wbWHzMmDsgEQ056VQENK{font-size:20px;color:#fff}@media(min-width: 767px){.TRyfXWNBGEHsogA6eGN_ .FiQHpDUl90uFjStr9OAg .iFeWqTLSjbpgaVFy6shj .wbWHzMmDsgEQ056VQENK{color:#0033a0}}.TRyfXWNBGEHsogA6eGN_ .pPyAGD44QA4U6r5_xMLN{position:relative}.MGvcBnUleTUDOtqafxZd{transform:rotate(45deg);transition:transform .3s ease}.m5JXPA_4FcCHUN17ucxY{position:absolute;bottom:70px;width:180px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:12px;z-index:999}@media(min-width: 767px){.m5JXPA_4FcCHUN17ucxY{transform:translateX(-65%)}}.Rtyw1XuncdBWZdUEV1qj{display:flex;align-items:center;background-color:#fff;padding:8px 16px;border-radius:20px;box-shadow:0 4px 12px rgba(0,51,160,.5);cursor:pointer;transition:all .2s ease;animation:g8HDTZ2GSb3rGEQ5ICmJ .3s cubic-bezier(0.34, 1.56, 0.64, 1)}.Rtyw1XuncdBWZdUEV1qj:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.12)}@keyframes g8HDTZ2GSb3rGEQ5ICmJ{from{opacity:0;transform:scale(0.8) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.ZVQGcR7lZkCRgAxqbZt1{width:28px;height:28px;border-radius:50%;background-color:#f3f4f6;display:flex;align-items:center;justify-content:center;margin-right:10px;color:#4b5563}.c87nj1oXjBwCQjx_Jq7T{font-size:14px;font-weight:500;color:#374151}
@@ -33,6 +33,8 @@ export interface Footer2Props {
33
33
  onEdit?: () => void;
34
34
  onExport?: () => void;
35
35
  onPrint?: () => void;
36
+ footerName: string;
37
+ backgroundColor?: string;
36
38
  }
37
39
  export declare const Footer2: (props: Footer2Props) => import("react/jsx-runtime").JSX.Element;
38
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -1,21 +1,26 @@
1
1
  .dropdownContainer {
2
+ position: fixed;
3
+
2
4
  @media (max-width: 768px) {
3
5
  position: unset;
4
6
  }
5
7
  }
6
8
 
7
9
  .notificationMenu {
8
- max-width: 300px;
9
- max-height: 400px;
10
+ max-width: 400px;
11
+ max-height: 500px;
10
12
  padding: 0 !important;
13
+ border-radius: 8px;
14
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
11
15
 
12
16
  @media (max-width: 768px) {
13
17
  max-width: 100vw;
18
+ border-radius: 0;
14
19
  }
15
20
 
16
21
  @media (min-width: 1024px) {
17
- max-width: 600px;
18
- max-height: 700px;
22
+ max-width: 450px;
23
+ max-height: 600px;
19
24
  }
20
25
  }
21
26
 
@@ -27,7 +32,11 @@
27
32
 
28
33
  .menuItemContainer {
29
34
  overflow-y: auto;
30
- max-height: calc(100vh - 60px - 72px - 43px);
35
+ max-height: 500px;
36
+
37
+ @media (max-width: 768px) {
38
+ max-height: calc(100vh - 60px - 72px - 43px);
39
+ }
31
40
  }
32
41
 
33
42
  .notificationItem {
@@ -52,7 +61,7 @@
52
61
  display: flex;
53
62
  justify-content: space-between;
54
63
  align-items: center;
55
- padding: 10px;
64
+ padding: 10px 16px;
56
65
  background-color: #f5f5f5;
57
66
  border-bottom: 1px solid #e8e8e8;
58
67
  }
@@ -61,6 +70,12 @@
61
70
  font-size: 20px;
62
71
  cursor: pointer;
63
72
  color: #595959;
73
+ padding: 4px;
74
+ border-radius: 4px;
75
+
76
+ &:hover {
77
+ background-color: #e8e8e8;
78
+ }
64
79
  }
65
80
 
66
81
  .checkIconStyle {
@@ -85,6 +100,7 @@
85
100
  align-items: center;
86
101
  position: relative;
87
102
  padding-left: 12px;
103
+ width: 100%;
88
104
 
89
105
  @media (max-width: 768px) {
90
106
  padding-left: 8px;
@@ -108,6 +124,7 @@
108
124
  height: 50px;
109
125
  margin-left: 10px;
110
126
  margin-right: 10px;
127
+ flex-shrink: 0;
111
128
 
112
129
  @media (max-width: 768px) {
113
130
  width: 40px;
@@ -120,6 +137,7 @@
120
137
  .notificationText {
121
138
  flex: 1;
122
139
  overflow: hidden;
140
+ min-width: 0;
123
141
  }
124
142
 
125
143
  .notificationTitle {
@@ -157,6 +175,7 @@
157
175
  background-color: #1890ff;
158
176
  border-radius: 50%;
159
177
  margin-left: 10px;
178
+ flex-shrink: 0;
160
179
 
161
180
  @media (max-width: 768px) {
162
181
  width: 4px;
@@ -181,6 +200,10 @@
181
200
  font-size: 26px;
182
201
  cursor: pointer;
183
202
  color: #0033a0;
203
+
204
+ @media (min-width: 767px) {
205
+ color: var(--color-grey-light);
206
+ }
184
207
  }
185
208
 
186
209
  .shake {
@@ -10,7 +10,9 @@ import {
10
10
  PrinterOutlined
11
11
  } from '@ant-design/icons';
12
12
  import { t } from 'i18next';
13
- import React, { useEffect, useRef } from 'react';
13
+ import moment from 'moment';
14
+ import React, { useEffect, useRef, useState } from 'react';
15
+ import omniumLogo from '../../assets/images/omnium-retail-logo-white.png';
14
16
 
15
17
  interface Action {
16
18
  key: string;
@@ -49,6 +51,8 @@ export interface Footer2Props {
49
51
  onEdit?: () => void;
50
52
  onExport?: () => void;
51
53
  onPrint?: () => void;
54
+ footerName: string;
55
+ backgroundColor?: string;
52
56
  }
53
57
 
54
58
  export const Footer2 = (props: Footer2Props) => {
@@ -64,11 +68,38 @@ export const Footer2 = (props: Footer2Props) => {
64
68
  onCreate,
65
69
  onEdit,
66
70
  onExport,
67
- onPrint
71
+ onPrint,
72
+ footerName = '',
73
+ backgroundColor = "#F5F6F7"
68
74
  } = props;
69
75
 
70
- const [isMenuOpen, setIsMenuOpen] = React.useState(false);
76
+ const [date, setDate] = useState(moment());
77
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
71
78
  const menuRef = useRef<HTMLDivElement>(null);
79
+ const [isMobile, setIsMobile] = useState(window.innerWidth < 768);
80
+
81
+ useEffect(() => {
82
+ const time = (function updateDate() {
83
+ const nextMinute = moment().add(1, 'minute');
84
+ return setTimeout(() => {
85
+ setDate(moment());
86
+ updateDate();
87
+ }, nextMinute.valueOf() - moment().valueOf());
88
+ }());
89
+
90
+ return () => clearTimeout(time);
91
+ });
92
+
93
+ useEffect(() => {
94
+ const handleResize = () => {
95
+ setIsMobile(window.innerWidth < 768);
96
+ };
97
+
98
+ window.addEventListener('resize', handleResize);
99
+ return () => {
100
+ window.removeEventListener('resize', handleResize);
101
+ };
102
+ }, []);
72
103
 
73
104
  const getDefaultAndCustomActions = (): Action[] => {
74
105
  const combinedActions = [...actions];
@@ -159,51 +190,67 @@ export const Footer2 = (props: Footer2Props) => {
159
190
  const plusIconClass = isMenuOpen ? `${styles.addIcon} ${styles.rotateIcon}` : styles.addIcon;
160
191
 
161
192
  return (
162
- <div className={styles.mobileFooter}>
163
- <div className={styles.navItem} onClick={onBackClick}>
164
- <ArrowLeftOutlined className={styles.navIcon} />
165
- <span className={styles.navText}>{t('navigation.back')}</span>
166
- </div>
167
-
168
- <div className={styles.addButtonContainer}>
169
- <div className={styles.addButton} onClick={toggleMenu}>
170
- <PlusOutlined className={plusIconClass} />
193
+ <div className={`${styles.footer}`} style={{ backgroundColor: backgroundColor }}>
194
+ {!isMobile &&
195
+ <div className={styles.content}>
196
+ <div className={styles.brand}>{footerName}</div>
197
+ <div className={styles.date}>{date.format('DD/MM/yyyy')}</div>
198
+ <div className={styles.time}>{date.format('HH:mm')}</div>
171
199
  </div>
200
+ }
172
201
 
173
- {isMenuOpen && (
174
- <div className={styles.circularMenu} ref={menuRef}>
175
- {allActions?.map((action) => (
176
- <div
177
- key={action.key}
178
- className={styles.circleMenuItem}
179
- onClick={() => {
180
- if (action.onClick) {
181
- action.onClick();
182
- setIsMenuOpen(false);
183
- }
184
- }}
185
- >
186
- <div className={styles.circleMenuIcon}>
187
- {action.icon}
188
- </div>
202
+ <div className={styles.navigation}>
203
+ <div className={styles.navItem} onClick={onBackClick}>
204
+ <ArrowLeftOutlined className={styles.navIcon} />
205
+ <span className={styles.navText}>{t('navigation.back')}</span>
206
+ </div>
189
207
 
190
- <div className={styles.circleMenuLabel}>{action.label}</div>
191
- </div>
192
- ))}
208
+ <div className={styles.addButtonContainer}>
209
+ <div className={styles.addButton} onClick={toggleMenu}>
210
+ <PlusOutlined className={plusIconClass} />
193
211
  </div>
194
- )}
195
- </div>
196
212
 
197
- <div className={styles.navItem}>
198
- <BellNotifications
199
- notifications={notifications}
200
- onFilterChange={onFilterChange}
201
- onNotificationClick={onNotificationClick}
202
- handleMarkAllAsRead={handleMarkAllAsRead}
203
- />
213
+ {isMenuOpen && (
214
+ <div className={styles.circularMenu} ref={menuRef}>
215
+ {allActions?.map((action) => (
216
+ <div
217
+ key={action.key}
218
+ className={styles.circleMenuItem}
219
+ onClick={() => {
220
+ if (action.onClick) {
221
+ action.onClick();
222
+ setIsMenuOpen(false);
223
+ }
224
+ }}
225
+ >
226
+ <div className={styles.circleMenuIcon}>
227
+ {action.icon}
228
+ </div>
229
+
230
+ <div className={styles.circleMenuLabel}>{action.label}</div>
231
+ </div>
232
+ ))}
233
+ </div>
234
+ )}
235
+ </div>
204
236
 
205
- <span className={styles.navText}>{t('navigation.notifications')}</span>
237
+ <div className={styles.navItem}>
238
+ <BellNotifications
239
+ notifications={notifications}
240
+ onFilterChange={onFilterChange}
241
+ onNotificationClick={onNotificationClick}
242
+ handleMarkAllAsRead={handleMarkAllAsRead}
243
+ />
244
+
245
+ <span className={styles.navText}>{t('navigation.notifications')}</span>
246
+ </div>
206
247
  </div>
248
+
249
+ {!isMobile &&
250
+ <div>
251
+ <img src={omniumLogo} className={styles.omniumLogoImg} alt="omnium logo" />
252
+ </div>
253
+ }
207
254
  </div>
208
255
  );
209
- };
256
+ };
@@ -1,14 +1,55 @@
1
- .mobileFooter {
1
+ .footer {
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
5
5
  position: fixed;
6
- bottom: 10px;
6
+ bottom: 0px;
7
7
  width: 100%;
8
8
  height: 60px;
9
9
  padding: 0 10px;
10
10
  box-sizing: border-box;
11
11
  z-index: 10;
12
+ padding-bottom: 8px;
13
+
14
+ @media (min-width: 767px) {
15
+ background-color: var(--color-black) !important;
16
+ padding-bottom: 0px;
17
+ }
18
+
19
+ .navigation {
20
+ display: flex;
21
+ justify-content: space-between;
22
+ width: 100%;
23
+
24
+ @media (min-width: 767px) {
25
+ width: fit-content;
26
+ gap: 100px;
27
+ }
28
+ }
29
+
30
+ .content {
31
+ font-size: var(--font-size-body-1);
32
+ color: var(--color-grey-light);
33
+ }
34
+
35
+ .brand {
36
+ width: 100%;
37
+ margin-bottom: 4px;
38
+ }
39
+
40
+ .time {
41
+ margin-left: 8px;
42
+ }
43
+
44
+ .date,
45
+ .time {
46
+ display: inline-block;
47
+ }
48
+
49
+ .omniumLogoImg {
50
+ height: 25px;
51
+ align-self: flex-end;
52
+ }
12
53
 
13
54
  .navItem {
14
55
  display: flex;
@@ -17,16 +58,30 @@
17
58
  justify-content: center;
18
59
  flex: 1;
19
60
 
61
+ @media (min-width: 767px) {
62
+ flex-direction: row;
63
+ gap: 12px;
64
+ flex: unset;
65
+ }
66
+
20
67
  .navIcon {
21
68
  font-size: 26px;
22
69
  color: #0033a0;
23
70
  cursor: pointer;
71
+
72
+ @media (min-width: 767px) {
73
+ color: var(--color-grey-light);
74
+ }
24
75
  }
25
76
 
26
77
  .navText {
27
78
  font-size: 12px;
28
79
  margin-top: 4px;
29
80
  color: #0033a0;
81
+
82
+ @media (min-width: 767px) {
83
+ color: var(--color-grey-light);
84
+ }
30
85
  }
31
86
  }
32
87
 
@@ -35,6 +90,10 @@
35
90
  justify-content: center;
36
91
  flex: 1;
37
92
 
93
+ @media (min-width: 767px) {
94
+ flex: unset;
95
+ }
96
+
38
97
  .addButton {
39
98
  display: flex;
40
99
  justify-content: center;
@@ -45,9 +104,17 @@
45
104
  border-radius: 8px;
46
105
  cursor: pointer;
47
106
 
107
+ @media (min-width: 767px) {
108
+ background-color: var(--color-grey-light);
109
+ }
110
+
48
111
  .addIcon {
49
112
  font-size: 20px;
50
113
  color: white;
114
+
115
+ @media (min-width: 767px) {
116
+ color: #0033a0;
117
+ }
51
118
  }
52
119
  }
53
120
  }
@@ -73,6 +140,10 @@
73
140
  align-items: center;
74
141
  gap: 12px;
75
142
  z-index: 999;
143
+
144
+ @media (min-width: 767px) {
145
+ transform: translateX(-65%);
146
+ }
76
147
  }
77
148
 
78
149
  .circleMenuItem {
@@ -85,7 +156,7 @@
85
156
  cursor: pointer;
86
157
  transition: all 0.2s ease;
87
158
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
88
-
159
+
89
160
  &:hover {
90
161
  transform: translateY(-2px);
91
162
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
@@ -93,13 +164,14 @@
93
164
  }
94
165
 
95
166
  @keyframes popIn {
96
- from {
97
- opacity: 0;
98
- transform: scale(0.8) translateY(10px);
167
+ from {
168
+ opacity: 0;
169
+ transform: scale(0.8) translateY(10px);
99
170
  }
100
- to {
101
- opacity: 1;
102
- transform: scale(1) translateY(0);
171
+
172
+ to {
173
+ opacity: 1;
174
+ transform: scale(1) translateY(0);
103
175
  }
104
176
  }
105
177
 
@@ -119,4 +191,4 @@
119
191
  font-size: 14px;
120
192
  font-weight: 500;
121
193
  color: #374151;
122
- }
194
+ }