Concat plugin to app (#1799)
@@ -32,6 +32,7 @@ export const iconPaths = {
|
||||
'common/inviteLight': () => import('./icons/common/inviteLight.svg'),
|
||||
'common/language/en': () => import('./icons/common/language/en.svg'),
|
||||
'common/language/zh': () => import('./icons/common/language/zh.svg'),
|
||||
'common/leftArrowLight': () => import('./icons/common/leftArrowLight.svg'),
|
||||
'common/linkBlue': () => import('./icons/common/linkBlue.svg'),
|
||||
'common/loading': () => import('./icons/common/loading.svg'),
|
||||
'common/navbar/pluginFill': () => import('./icons/common/navbar/pluginFill.svg'),
|
||||
@@ -83,8 +84,13 @@ export const iconPaths = {
|
||||
'core/app/simpleMode/whisper': () => import('./icons/core/app/simpleMode/whisper.svg'),
|
||||
'core/app/toolCall': () => import('./icons/core/app/toolCall.svg'),
|
||||
'core/app/ttsFill': () => import('./icons/core/app/ttsFill.svg'),
|
||||
'core/app/type/httpPlugin': () => import('./icons/core/app/type/httpPlugin.svg'),
|
||||
'core/app/type/httpPluginFill': () => import('./icons/core/app/type/httpPluginFill.svg'),
|
||||
'core/app/type/plugin': () => import('./icons/core/app/type/plugin.svg'),
|
||||
'core/app/type/pluginFill': () => import('./icons/core/app/type/pluginFill.svg'),
|
||||
'core/app/type/simple': () => import('./icons/core/app/type/simple.svg'),
|
||||
'core/app/type/workflow': () => import('./icons/core/app/type/workflow.svg'),
|
||||
'core/app/type/workflowFill': () => import('./icons/core/app/type/workflowFill.svg'),
|
||||
'core/app/variable/external': () => import('./icons/core/app/variable/external.svg'),
|
||||
'core/app/variable/input': () => import('./icons/core/app/variable/input.svg'),
|
||||
'core/app/variable/select': () => import('./icons/core/app/variable/select.svg'),
|
||||
|
@@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M15.7071 5.79289C16.0976 6.18342 16.0976 6.81658 15.7071 7.20711L10.4142 12.5L15.7071 17.7929C16.0976 18.1834 16.0976 18.8166 15.7071 19.2071C15.3166 19.5976 14.6834 19.5976 14.2929 19.2071L8.29289 13.2071C7.90237 12.8166 7.90237 12.1834 8.29289 11.7929L14.2929 5.79289C14.6834 5.40237 15.3166 5.40237 15.7071 5.79289Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 463 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 15">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M0.3018 8.09539C0.3018 10.2395 1.9585 11.9966 4.06162 12.1565V12.1638H4.17973C4.24438 12.1669 4.30942 12.1684 4.37482 12.1684C4.44022 12.1684 4.50526 12.1669 4.56991 12.1638H9.90977C9.97056 12.1669 10.0317 12.1684 10.0933 12.1684C12.0842 12.1684 13.6982 10.5544 13.6982 8.5635C13.6982 7.10314 12.8298 5.84559 11.5813 5.27905C11.1437 3.54133 9.6068 2.25784 7.77794 2.25784C6.42674 2.25784 5.23488 2.95844 4.52802 4.0252C4.47719 4.02332 4.42611 4.02237 4.37482 4.02237C2.12535 4.02237 0.3018 5.84592 0.3018 8.09539ZM2.25691 9.26391C2.30952 9.31652 2.38405 9.34283 2.48051 9.34283C2.58135 9.34283 2.65697 9.31652 2.70739 9.26391C2.75781 9.20911 2.78302 9.13239 2.78302 9.03374V8.38596H3.73989V9.03374C3.73989 9.13239 3.7651 9.20911 3.81552 9.26391C3.86813 9.31652 3.94376 9.34283 4.0424 9.34283C4.13886 9.34283 4.2123 9.31652 4.26271 9.26391C4.31533 9.20911 4.34163 9.13239 4.34163 9.03374V7.27455C4.34163 7.17371 4.31533 7.09699 4.26271 7.04437C4.2123 6.99176 4.13886 6.96546 4.0424 6.96546C3.94376 6.96546 3.86813 6.99176 3.81552 7.04437C3.7651 7.09699 3.73989 7.17371 3.73989 7.27455V7.88944H2.78302V7.27455C2.78302 7.17371 2.75672 7.09699 2.70411 7.04437C2.65369 6.99176 2.57915 6.96546 2.48051 6.96546C2.38405 6.96546 2.30952 6.99176 2.25691 7.04437C2.2043 7.09699 2.17799 7.17371 2.17799 7.27455V9.03374C2.17799 9.13239 2.2043 9.20911 2.25691 9.26391ZM5.65077 9.26391C5.70338 9.31652 5.77792 9.34283 5.87437 9.34283C5.97521 9.34283 6.05084 9.31652 6.10126 9.26391C6.15168 9.20911 6.17689 9.13348 6.17689 9.03703V7.48828H6.69313C6.77424 7.48828 6.83562 7.46746 6.87727 7.42581C6.92112 7.38196 6.94304 7.32058 6.94304 7.24167C6.94304 7.16056 6.92112 7.09918 6.87727 7.05753C6.83562 7.01588 6.77424 6.99505 6.69313 6.99505H5.05561C4.9745 6.99505 4.91202 7.01588 4.86818 7.05753C4.82653 7.09918 4.8057 7.16056 4.8057 7.24167C4.8057 7.32058 4.82653 7.38196 4.86818 7.42581C4.91202 7.46746 4.9745 7.48828 5.05561 7.48828H5.57186V9.03703C5.57186 9.13348 5.59816 9.20911 5.65077 9.26391ZM8.29852 9.34283C8.20207 9.34283 8.12754 9.31652 8.07492 9.26391C8.02231 9.20911 7.99601 9.13348 7.99601 9.03703V7.48828H7.47976C7.39865 7.48828 7.33617 7.46746 7.29233 7.42581C7.25068 7.38196 7.22986 7.32058 7.22986 7.24167C7.22986 7.16056 7.25068 7.09918 7.29233 7.05753C7.33617 7.01588 7.39865 6.99505 7.47976 6.99505H9.11729C9.19839 6.99505 9.25977 7.01588 9.30143 7.05753C9.34527 7.09918 9.36719 7.16056 9.36719 7.24167C9.36719 7.32058 9.34527 7.38196 9.30143 7.42581C9.25977 7.46746 9.19839 7.48828 9.11729 7.48828H8.60104V9.03703C8.60104 9.13348 8.57583 9.20911 8.52541 9.26391C8.47499 9.31652 8.39936 9.34283 8.29852 9.34283ZM9.90828 9.26391C9.96089 9.31652 10.0354 9.34283 10.1319 9.34283C10.2327 9.34283 10.3083 9.31652 10.3588 9.26391C10.4092 9.20911 10.4344 9.13348 10.4344 9.03703V8.5142H10.9441C11.2071 8.5142 11.4099 8.44734 11.5524 8.31362C11.6971 8.17771 11.7694 7.99138 11.7694 7.75463C11.7694 7.51788 11.6971 7.33264 11.5524 7.19892C11.4099 7.06301 11.2071 6.99505 10.9441 6.99505H10.1352C10.0387 6.99505 9.96308 7.02136 9.90828 7.07397C9.85567 7.12658 9.82936 7.20221 9.82936 7.30086V9.03703C9.82936 9.13348 9.85567 9.20911 9.90828 9.26391ZM10.8388 8.05057H10.4344V7.45869H10.8388C10.9528 7.45869 11.0405 7.4828 11.1019 7.53103C11.1633 7.57926 11.194 7.65379 11.194 7.75463C11.194 7.85327 11.1633 7.92781 11.1019 7.97823C11.0405 8.02645 10.9528 8.05057 10.8388 8.05057Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect y="0.75" width="32" height="32" rx="5.70173" fill="url(#paint0_linear_5533_28340)" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M5.08823 18.1872C5.08823 21.6801 7.78709 24.5426 11.2132 24.8031V24.815H11.4056C11.5109 24.8199 11.6169 24.8225 11.7234 24.8225C11.83 24.8225 11.9359 24.8199 12.0413 24.815H20.7402C20.8393 24.8199 20.9389 24.8225 21.0392 24.8225C24.2826 24.8225 26.9118 22.1932 26.9118 18.9498C26.9118 16.5708 25.4972 14.5222 23.4633 13.5992C22.7505 10.7684 20.2467 8.67749 17.2673 8.67749C15.0662 8.67749 13.1245 9.81881 11.973 11.5566C11.8902 11.5536 11.807 11.552 11.7234 11.552C8.05891 11.552 5.08823 14.5227 5.08823 18.1872ZM8.27323 20.0908C8.35893 20.1765 8.48035 20.2194 8.63748 20.2194C8.80175 20.2194 8.92496 20.1765 9.00709 20.0908C9.08923 20.0016 9.1303 19.8766 9.1303 19.7159V18.6606H10.6891V19.7159C10.6891 19.8766 10.7302 20.0016 10.8123 20.0908C10.898 20.1765 11.0212 20.2194 11.1819 20.2194C11.339 20.2194 11.4587 20.1765 11.5408 20.0908C11.6265 20.0016 11.6694 19.8766 11.6694 19.7159V16.85C11.6694 16.6858 11.6265 16.5608 11.5408 16.4751C11.4587 16.3894 11.339 16.3465 11.1819 16.3465C11.0212 16.3465 10.898 16.3894 10.8123 16.4751C10.7302 16.5608 10.6891 16.6858 10.6891 16.85V17.8517H9.1303V16.85C9.1303 16.6858 9.08744 16.5608 9.00174 16.4751C8.9196 16.3894 8.79818 16.3465 8.63748 16.3465C8.48035 16.3465 8.35893 16.3894 8.27323 16.4751C8.18752 16.5608 8.14467 16.6858 8.14467 16.85V19.7159C8.14467 19.8766 8.18752 20.0016 8.27323 20.0908ZM13.8021 20.0908C13.8878 20.1765 14.0092 20.2194 14.1663 20.2194C14.3306 20.2194 14.4538 20.1765 14.5359 20.0908C14.6181 20.0016 14.6591 19.8784 14.6591 19.7212V17.1982H15.5001C15.6323 17.1982 15.7322 17.1643 15.8001 17.0964C15.8715 17.025 15.9072 16.925 15.9072 16.7965C15.9072 16.6643 15.8715 16.5643 15.8001 16.4965C15.7322 16.4286 15.6323 16.3947 15.5001 16.3947H12.8325C12.7004 16.3947 12.5986 16.4286 12.5272 16.4965C12.4593 16.5643 12.4254 16.6643 12.4254 16.7965C12.4254 16.925 12.4593 17.025 12.5272 17.0964C12.5986 17.1643 12.7004 17.1982 12.8325 17.1982H13.6735V19.7212C13.6735 19.8784 13.7163 20.0016 13.8021 20.0908ZM18.1154 20.2194C17.9583 20.2194 17.8369 20.1765 17.7512 20.0908C17.6654 20.0016 17.6226 19.8784 17.6226 19.7212V17.1982H16.7816C16.6495 17.1982 16.5477 17.1643 16.4763 17.0964C16.4084 17.025 16.3745 16.925 16.3745 16.7965C16.3745 16.6643 16.4084 16.5643 16.4763 16.4965C16.5477 16.4286 16.6495 16.3947 16.7816 16.3947H19.4492C19.5814 16.3947 19.6813 16.4286 19.7492 16.4965C19.8206 16.5643 19.8563 16.6643 19.8563 16.7965C19.8563 16.925 19.8206 17.025 19.7492 17.0964C19.6813 17.1643 19.5814 17.1982 19.4492 17.1982H18.6082V19.7212C18.6082 19.8784 18.5672 20.0016 18.485 20.0908C18.4029 20.1765 18.2797 20.2194 18.1154 20.2194ZM20.7378 20.0908C20.8235 20.1765 20.9449 20.2194 21.1021 20.2194C21.2663 20.2194 21.3895 20.1765 21.4717 20.0908C21.5538 20.0016 21.5949 19.8784 21.5949 19.7212V18.8695H22.4252C22.8537 18.8695 23.184 18.7606 23.4162 18.5427C23.6518 18.3213 23.7697 18.0178 23.7697 17.6321C23.7697 17.2464 23.6518 16.9447 23.4162 16.7268C23.184 16.5054 22.8537 16.3947 22.4252 16.3947H21.1074C20.9503 16.3947 20.8271 16.4376 20.7378 16.5233C20.6521 16.609 20.6092 16.7322 20.6092 16.8929V19.7212C20.6092 19.8784 20.6521 20.0016 20.7378 20.0908ZM22.2538 18.1142H21.5949V17.15H22.2538C22.4394 17.15 22.5823 17.1893 22.6823 17.2679C22.7823 17.3464 22.8323 17.4678 22.8323 17.6321C22.8323 17.7928 22.7823 17.9142 22.6823 17.9964C22.5823 18.0749 22.4394 18.1142 22.2538 18.1142Z"
|
||||
fill="white" />
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_5533_28340" x1="16" y1="0.75" x2="4.88889" y2="30.0833"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBA8E9" />
|
||||
<stop offset="1" stop-color="#FF718A" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
||||
<path
|
||||
d="M15.7787 21.2528H11.9977V19.31C11.9977 19.2215 11.9896 19.133 11.9735 19.0445C11.9574 18.956 11.9293 18.8716 11.8931 18.7871C11.8569 18.7026 11.8167 18.6262 11.7644 18.5538C11.7121 18.4814 11.6558 18.413 11.5914 18.3487C11.2656 18.0269 10.7909 17.8459 10.2962 17.8539C10.1876 17.8539 10.079 17.866 9.97038 17.8861C9.86178 17.9062 9.7572 17.9344 9.65261 17.9746C9.54803 18.0148 9.4515 18.0591 9.35496 18.1154C9.25842 18.1717 9.16993 18.236 9.08948 18.3084C8.86825 18.5055 8.60679 18.8394 8.60679 19.3462V21.2528H4.85391C4.77749 21.2528 4.70106 21.2488 4.62464 21.2408C4.54821 21.2327 4.47179 21.2206 4.39536 21.2086C4.31894 21.1925 4.24653 21.1764 4.17011 21.1523C4.0977 21.1281 4.0253 21.104 3.9529 21.0758C3.8805 21.0477 3.81211 21.0115 3.74373 20.9753C3.67535 20.9391 3.611 20.8989 3.54664 20.8546C3.48228 20.8104 3.42194 20.7661 3.36161 20.7179C3.30127 20.6696 3.24496 20.6173 3.18865 20.561C3.13233 20.5047 3.08406 20.4484 3.03177 20.388C2.9835 20.3277 2.93524 20.2673 2.89501 20.203C2.85077 20.1386 2.81054 20.0743 2.77434 20.0059C2.73814 19.9375 2.70596 19.8691 2.67378 19.7967C2.64562 19.7243 2.61747 19.6519 2.59736 19.5795C2.57322 19.5071 2.55713 19.4307 2.54104 19.3543C2.52495 19.2778 2.51289 19.2014 2.50886 19.125C2.50082 19.0486 2.4968 18.9721 2.4968 18.8957V15.1469H4.43558C4.82576 15.1469 5.20386 14.9819 5.50152 14.6803C5.58599 14.5958 5.65839 14.5073 5.72275 14.4067C5.7871 14.3102 5.84342 14.2056 5.88766 14.097C5.93191 13.9884 5.96409 13.8758 5.98822 13.7591C6.01236 13.6425 6.0204 13.5258 6.0204 13.4092C6.00431 12.5082 5.26419 11.7479 4.39938 11.7479H2.4968V7.95885C2.4968 7.806 2.51289 7.65315 2.54104 7.5003C2.57322 7.34745 2.61747 7.20265 2.6778 7.06186C2.73814 6.92108 2.81054 6.78432 2.89903 6.65962C2.98753 6.53091 3.08809 6.41426 3.19669 6.30968C3.30529 6.20509 3.42597 6.10856 3.55468 6.02409C3.6834 5.93962 3.82016 5.87124 3.96094 5.81492C4.10173 5.75861 4.25055 5.71436 4.39938 5.68621C4.54821 5.65805 4.70106 5.64196 4.85391 5.64598H7.53684V5.02654C7.53684 4.98229 7.53684 4.93402 7.54086 4.88978C7.54489 4.84553 7.54489 4.79726 7.55293 4.75301C7.55695 4.70877 7.565 4.6605 7.56902 4.61625C7.57706 4.57201 7.58511 4.52374 7.59315 4.47949C7.6012 4.43525 7.61327 4.391 7.62533 4.34675L7.66153 4.21402C7.6736 4.16977 7.68969 4.12552 7.70578 4.08128C7.72187 4.03703 7.73796 3.99681 7.75405 3.95256C7.77014 3.90831 7.79025 3.86809 7.81036 3.82787C7.83047 3.78764 7.85059 3.7434 7.87472 3.70317C7.89483 3.66295 7.91897 3.62273 7.9431 3.5825C7.96724 3.54228 7.99137 3.50608 8.01953 3.46585C8.04366 3.42965 8.07182 3.38943 8.09997 3.35323L8.18444 3.24462C8.2126 3.20842 8.24478 3.17624 8.27696 3.14004C8.30914 3.10786 8.34132 3.07166 8.3735 3.03948C8.40568 3.0073 8.44188 2.97512 8.47406 2.94696C8.51026 2.91479 8.54244 2.88663 8.57864 2.85847L8.68724 2.774C8.72344 2.74585 8.76367 2.72171 8.79987 2.69758C8.83607 2.67344 8.87629 2.64931 8.91652 2.62517C8.95674 2.60104 8.99697 2.58093 9.03719 2.55679C9.07741 2.53668 9.11764 2.51657 9.16188 2.49646C9.20211 2.47635 9.24635 2.46026 9.2906 2.44417C9.33485 2.42808 9.37507 2.41199 9.41932 2.3959C9.46356 2.37981 9.50781 2.36774 9.55205 2.35567L9.68479 2.31947C9.72904 2.30741 9.77329 2.29936 9.82155 2.29132C9.86982 2.28327 9.91407 2.27523 9.95832 2.2712C10.0026 2.26718 10.0508 2.25914 10.0951 2.25512C10.1393 2.25109 10.1876 2.24707 10.2318 2.24707H10.3686C11.873 2.27523 13.0998 3.53423 13.0998 5.06274V5.64196H15.7787C15.8551 5.64196 15.9316 5.64598 16.008 5.65001C16.0844 5.65805 16.1608 5.6661 16.2332 5.68218C16.3097 5.69827 16.3821 5.71436 16.4545 5.73448C16.5269 5.75459 16.5993 5.78274 16.6717 5.8109C16.7441 5.83906 16.8125 5.87124 16.8808 5.90744C16.9492 5.94364 17.0136 5.98386 17.0779 6.02409C17.1423 6.06431 17.2026 6.11258 17.263 6.16085C17.3233 6.20912 17.3796 6.26141 17.4319 6.3137C17.4842 6.36599 17.5365 6.42633 17.5848 6.48264C17.633 6.54297 17.6773 6.60331 17.7215 6.66767C17.7658 6.73203 17.802 6.79639 17.8382 6.86477C17.8744 6.93315 17.9065 7.00153 17.9347 7.07393C17.9629 7.14633 17.987 7.21873 18.0111 7.29114C18.0312 7.36354 18.0513 7.43997 18.0634 7.51237C18.0795 7.58879 18.0876 7.6612 18.0956 7.73762C18.1036 7.81405 18.1036 7.89047 18.1036 7.9669V10.6498H18.6829C20.2355 10.6498 21.4985 11.8807 21.4985 13.3931C21.4985 14.9457 20.2516 16.2088 18.7191 16.2088H18.1036V18.8917C18.1077 20.1909 17.0618 21.2528 15.7787 21.2528Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 4.3 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect y="0.75" width="32" height="32" rx="5.70173" fill="url(#paint0_linear_5686_3911)" />
|
||||
<path
|
||||
d="M19.7787 26.2528H15.9977V24.31C15.9977 24.2215 15.9896 24.133 15.9735 24.0445C15.9574 23.956 15.9293 23.8716 15.8931 23.7871C15.8569 23.7026 15.8167 23.6262 15.7644 23.5538C15.7121 23.4814 15.6558 23.413 15.5914 23.3487C15.2656 23.0269 14.7909 22.8459 14.2962 22.8539C14.1876 22.8539 14.079 22.866 13.9704 22.8861C13.8618 22.9062 13.7572 22.9344 13.6526 22.9746C13.548 23.0148 13.4515 23.0591 13.355 23.1154C13.2584 23.1717 13.1699 23.236 13.0895 23.3084C12.8682 23.5055 12.6068 23.8394 12.6068 24.3462V26.2528H8.85391C8.77749 26.2528 8.70106 26.2488 8.62464 26.2408C8.54821 26.2327 8.47179 26.2206 8.39536 26.2086C8.31894 26.1925 8.24653 26.1764 8.17011 26.1523C8.0977 26.1281 8.0253 26.104 7.9529 26.0758C7.8805 26.0477 7.81211 26.0115 7.74373 25.9753C7.67535 25.9391 7.611 25.8989 7.54664 25.8546C7.48228 25.8104 7.42194 25.7661 7.36161 25.7179C7.30127 25.6696 7.24496 25.6173 7.18865 25.561C7.13233 25.5047 7.08406 25.4484 7.03177 25.388C6.9835 25.3277 6.93524 25.2673 6.89501 25.203C6.85077 25.1386 6.81054 25.0743 6.77434 25.0059C6.73814 24.9375 6.70596 24.8691 6.67378 24.7967C6.64562 24.7243 6.61747 24.6519 6.59736 24.5795C6.57322 24.5071 6.55713 24.4307 6.54104 24.3543C6.52495 24.2778 6.51289 24.2014 6.50886 24.125C6.50082 24.0486 6.4968 23.9721 6.4968 23.8957V20.1469H8.43558C8.82576 20.1469 9.20386 19.9819 9.50152 19.6803C9.58599 19.5958 9.65839 19.5073 9.72275 19.4067C9.7871 19.3102 9.84342 19.2056 9.88766 19.097C9.93191 18.9884 9.96409 18.8758 9.98822 18.7591C10.0124 18.6425 10.0204 18.5258 10.0204 18.4092C10.0043 17.5082 9.26419 16.7479 8.39938 16.7479H6.4968V12.9589C6.4968 12.806 6.51289 12.6532 6.54104 12.5003C6.57322 12.3475 6.61747 12.2026 6.6778 12.0619C6.73814 11.9211 6.81054 11.7843 6.89903 11.6596C6.98753 11.5309 7.08809 11.4143 7.19669 11.3097C7.30529 11.2051 7.42597 11.1086 7.55468 11.0241C7.6834 10.9396 7.82016 10.8712 7.96094 10.8149C8.10173 10.7586 8.25055 10.7144 8.39938 10.6862C8.54821 10.6581 8.70106 10.642 8.85391 10.646H11.5368V10.0265C11.5368 9.98229 11.5368 9.93402 11.5409 9.88978C11.5449 9.84553 11.5449 9.79726 11.5529 9.75301C11.557 9.70877 11.565 9.6605 11.569 9.61625C11.5771 9.57201 11.5851 9.52374 11.5932 9.47949C11.6012 9.43525 11.6133 9.391 11.6253 9.34675L11.6615 9.21402C11.6736 9.16977 11.6897 9.12552 11.7058 9.08128C11.7219 9.03703 11.738 8.99681 11.754 8.95256C11.7701 8.90831 11.7903 8.86809 11.8104 8.82787C11.8305 8.78764 11.8506 8.7434 11.8747 8.70317C11.8948 8.66295 11.919 8.62273 11.9431 8.5825C11.9672 8.54228 11.9914 8.50608 12.0195 8.46585C12.0437 8.42965 12.0718 8.38943 12.1 8.35323L12.1844 8.24462C12.2126 8.20842 12.2448 8.17624 12.277 8.14004C12.3091 8.10786 12.3413 8.07166 12.3735 8.03948C12.4057 8.0073 12.4419 7.97512 12.4741 7.94696C12.5103 7.91479 12.5424 7.88663 12.5786 7.85847L12.6872 7.774C12.7234 7.74585 12.7637 7.72171 12.7999 7.69758C12.8361 7.67344 12.8763 7.64931 12.9165 7.62517C12.9567 7.60104 12.997 7.58093 13.0372 7.55679C13.0774 7.53668 13.1176 7.51657 13.1619 7.49646C13.2021 7.47635 13.2464 7.46026 13.2906 7.44417C13.3348 7.42808 13.3751 7.41199 13.4193 7.3959C13.4636 7.37981 13.5078 7.36774 13.5521 7.35567L13.6848 7.31947C13.729 7.30741 13.7733 7.29936 13.8216 7.29132C13.8698 7.28327 13.9141 7.27523 13.9583 7.2712C14.0026 7.26718 14.0508 7.25914 14.0951 7.25512C14.1393 7.25109 14.1876 7.24707 14.2318 7.24707H14.3686C15.873 7.27523 17.0998 8.53423 17.0998 10.0627V10.642H19.7787C19.8551 10.642 19.9316 10.646 20.008 10.65C20.0844 10.6581 20.1608 10.6661 20.2332 10.6822C20.3097 10.6983 20.3821 10.7144 20.4545 10.7345C20.5269 10.7546 20.5993 10.7827 20.6717 10.8109C20.7441 10.8391 20.8125 10.8712 20.8808 10.9074C20.9492 10.9436 21.0136 10.9839 21.0779 11.0241C21.1423 11.0643 21.2026 11.1126 21.263 11.1608C21.3233 11.2091 21.3796 11.2614 21.4319 11.3137C21.4842 11.366 21.5365 11.4263 21.5848 11.4826C21.633 11.543 21.6773 11.6033 21.7215 11.6677C21.7658 11.732 21.802 11.7964 21.8382 11.8648C21.8744 11.9331 21.9065 12.0015 21.9347 12.0739C21.9629 12.1463 21.987 12.2187 22.0111 12.2911C22.0312 12.3635 22.0513 12.44 22.0634 12.5124C22.0795 12.5888 22.0876 12.6612 22.0956 12.7376C22.1036 12.814 22.1036 12.8905 22.1036 12.9669V15.6498H22.6829C24.2355 15.6498 25.4985 16.8807 25.4985 18.3931C25.4985 19.9457 24.2516 21.2088 22.7191 21.2088H22.1036V23.8917C22.1077 25.1909 21.0618 26.2528 19.7787 26.2528Z"
|
||||
fill="white" />
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_5686_3911" x1="16" y1="0.75" x2="4.88889" y2="30.0833"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#61D2C4" />
|
||||
<stop offset="1" stop-color="#40CAA1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1,34 @@
|
||||
<svg viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect y="0.75" width="32" height="32" rx="5.70173" fill="url(#paint0_linear_5533_28328)" />
|
||||
<path
|
||||
d="M11.6933 18.4849C11.6933 18.9866 11.2866 19.3933 10.7848 19.3933C10.2831 19.3933 9.87642 18.9866 9.87642 18.4849L9.87642 15.0153C9.87642 14.5136 10.2831 14.1069 10.7848 14.1069C11.2866 14.1069 11.6933 14.5136 11.6933 15.0153L11.6933 18.4849Z"
|
||||
fill="white" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M10.7848 13.5871C11.9182 13.5871 12.837 12.6683 12.837 11.5349C12.837 10.4015 11.9182 9.48273 10.7848 9.48273C9.65144 9.48273 8.73264 10.4015 8.73264 11.5349C8.73264 12.6683 9.65144 13.5871 10.7848 13.5871ZM10.7848 15.404C12.9217 15.404 14.6539 13.6717 14.6539 11.5349C14.6539 9.39812 12.9217 7.66589 10.7848 7.66589C8.64803 7.66589 6.9158 9.39812 6.9158 11.5349C6.9158 13.6717 8.64803 15.404 10.7848 15.404Z"
|
||||
fill="white" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M15.6591 10.6634C15.6591 10.1617 16.0658 9.755 16.5675 9.755C17.5265 9.755 18.4772 9.93326 19.3657 10.2807C20.2543 10.6282 21.065 11.1387 21.7503 11.7856C22.4356 12.4326 22.9822 13.2035 23.3562 14.0558C23.7302 14.9083 23.9235 15.824 23.9235 16.7501C23.9235 17.2518 23.5168 17.6585 23.0151 17.6585C22.5134 17.6585 22.1067 17.2518 22.1067 16.7501C22.1067 16.0776 21.9665 15.4103 21.6925 14.7858C21.4184 14.1612 21.0152 13.5902 20.5031 13.1067C19.9909 12.6232 19.38 12.2371 18.7041 11.9728C18.0281 11.7085 17.302 11.5718 16.5675 11.5718C16.0658 11.5718 15.6591 11.1651 15.6591 10.6634Z"
|
||||
fill="white" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M10.7848 24.0175C11.9182 24.0175 12.837 23.0986 12.837 21.9652C12.837 20.8318 11.9182 19.913 10.7848 19.913C9.65144 19.913 8.73264 20.8318 8.73264 21.9652C8.73264 23.0986 9.65144 24.0175 10.7848 24.0175ZM10.7848 25.8343C12.9217 25.8343 14.6539 24.1021 14.6539 21.9652C14.6539 19.8284 12.9217 18.0962 10.7848 18.0962C8.64803 18.0962 6.9158 19.8284 6.9158 21.9652C6.9158 24.1021 8.64803 25.8343 10.7848 25.8343Z"
|
||||
fill="white" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M22.1591 20.2245H20.5827C20.0348 20.2245 19.7351 20.2259 19.5198 20.2438C19.5114 20.2445 19.5034 20.2452 19.4958 20.2459C19.4951 20.2535 19.4944 20.2615 19.4937 20.2699C19.4759 20.4851 19.4744 20.7849 19.4744 21.3328V22.9092C19.4744 23.457 19.4759 23.7568 19.4937 23.972C19.4944 23.9805 19.4951 23.9884 19.4958 23.996C19.5034 23.9967 19.5114 23.9974 19.5198 23.9981C19.7351 24.016 20.0348 24.0174 20.5827 24.0174H22.1591C22.7069 24.0174 23.0067 24.016 23.222 23.9981C23.2304 23.9974 23.2384 23.9967 23.2459 23.996C23.2466 23.9884 23.2473 23.9805 23.248 23.972C23.2659 23.7568 23.2674 23.457 23.2674 22.9092V21.3327C23.2674 20.7849 23.2659 20.4851 23.248 20.2699C23.2473 20.2615 23.2466 20.2535 23.2459 20.2459C23.2384 20.2452 23.2304 20.2445 23.222 20.2438C23.0067 20.2259 22.7069 20.2245 22.1591 20.2245ZM17.8621 19.387C17.6576 19.7807 17.6576 20.2981 17.6576 21.3328V22.9092C17.6576 23.9438 17.6576 24.4612 17.8621 24.855C18.0345 25.1868 18.305 25.4574 18.6369 25.6297C19.0307 25.8343 19.548 25.8343 20.5827 25.8343H22.1591C23.1938 25.8343 23.7111 25.8343 24.1049 25.6297C24.4367 25.4574 24.7073 25.1868 24.8796 24.855C25.0842 24.4612 25.0842 23.9438 25.0842 22.9092V21.3327C25.0842 20.2981 25.0842 19.7807 24.8796 19.387C24.7073 19.0551 24.4367 18.7846 24.1049 18.6122C23.7111 18.4076 23.1938 18.4076 22.1591 18.4076H20.5827C19.548 18.4076 19.0307 18.4076 18.6369 18.6122C18.305 18.7846 18.0345 19.0551 17.8621 19.387Z"
|
||||
fill="white" />
|
||||
<path
|
||||
d="M12.837 11.5349C12.837 12.6683 11.9182 13.5871 10.7848 13.5871C9.65144 13.5871 8.73264 12.6683 8.73264 11.5349C8.73264 10.4015 9.65144 9.48273 10.7848 9.48273C11.9182 9.48273 12.837 10.4015 12.837 11.5349Z"
|
||||
fill="white" />
|
||||
<path
|
||||
d="M12.837 21.9652C12.837 23.0986 11.9182 24.0175 10.7848 24.0175C9.65144 24.0175 8.73264 23.0986 8.73264 21.9652C8.73264 20.8318 9.65144 19.913 10.7848 19.913C11.9182 19.913 12.837 20.8318 12.837 21.9652Z"
|
||||
fill="white" />
|
||||
<path
|
||||
d="M20.5827 20.2245H22.1591C22.7069 20.2245 23.0067 20.2259 23.222 20.2438L23.2459 20.2459L23.248 20.2699C23.2659 20.4851 23.2674 20.7849 23.2674 21.3327V22.9092C23.2674 23.457 23.2659 23.7568 23.248 23.972L23.2459 23.996L23.222 23.9981C23.0067 24.016 22.7069 24.0174 22.1591 24.0174H20.5827C20.0348 24.0174 19.7351 24.016 19.5198 23.9981L19.4958 23.996L19.4937 23.972C19.4759 23.7568 19.4744 23.457 19.4744 22.9092V21.3328C19.4744 20.7849 19.4759 20.4851 19.4937 20.2699L19.4958 20.2459L19.5198 20.2438C19.7351 20.2259 20.0348 20.2245 20.5827 20.2245Z"
|
||||
fill="white" />
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_5533_28328" x1="16" y1="0.75" x2="4.88889" y2="30.0833"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#7895FE" />
|
||||
<stop offset="1" stop-color="#7177FF" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 4.9 KiB |
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" fill="none">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd"
|
||||
d="M6.46554 1.66678L13.5344 1.66678C14.2052 1.66677 14.7588 1.66676 15.2098 1.70361C15.6782 1.74188 16.1088 1.82402 16.5133 2.03009C17.1405 2.34967 17.6504 2.8596 17.97 3.48681C18.1761 3.89126 18.2582 4.32184 18.2965 4.79026C18.3333 5.24125 18.3333 5.79488 18.3333 6.46568V13.5345C18.3333 14.2053 18.3333 14.759 18.2965 15.21C18.2582 15.6784 18.1761 16.109 17.97 16.5134C17.6504 17.1406 17.1405 17.6506 16.5133 17.9701C16.1088 18.1762 15.6782 18.2583 15.2098 18.2966C14.7588 18.3335 14.2052 18.3335 13.5344 18.3334H6.4656C5.79477 18.3335 5.24111 18.3335 4.7901 18.2966C4.32169 18.2583 3.8911 18.1762 3.48666 17.9701C2.85945 17.6506 2.34952 17.1406 2.02994 16.5134C1.82386 16.109 1.74173 15.6784 1.70345 15.21C1.66661 14.759 1.66662 14.2053 1.66663 13.5345L1.66663 6.4657C1.66662 5.79489 1.66661 5.24125 1.70345 4.79026C1.74173 4.32184 1.82386 3.89126 2.02994 3.48681C2.34952 2.8596 2.85945 2.34967 3.48666 2.03009C3.8911 1.82401 4.32169 1.74188 4.79011 1.70361C5.2411 1.66676 5.79474 1.66677 6.46554 1.66678ZM4.92583 3.36474C4.56048 3.39459 4.37364 3.44869 4.24331 3.5151C3.92971 3.67489 3.67474 3.92986 3.51495 4.24346C3.44854 4.37379 3.39444 4.56063 3.36459 4.92598C3.33394 5.30105 3.33329 5.7863 3.33329 6.50011V13.5001C3.33329 14.2139 3.33394 14.6992 3.36459 15.0742C3.39444 15.4396 3.44854 15.6264 3.51495 15.7568C3.67474 16.0704 3.9297 16.3253 4.24331 16.4851C4.37364 16.5515 4.56048 16.6056 4.92583 16.6355C5.3009 16.6661 5.78614 16.6668 6.49996 16.6668H13.5C14.2138 16.6668 14.699 16.6661 15.0741 16.6355C15.4394 16.6056 15.6263 16.5515 15.7566 16.4851C16.0702 16.3253 16.3252 16.0704 16.485 15.7568C16.5514 15.6264 16.6055 15.4396 16.6353 15.0742C16.666 14.6992 16.6666 14.2139 16.6666 13.5001V6.50011C16.6666 5.7863 16.666 5.30105 16.6353 4.92598C16.6055 4.56063 16.5514 4.3738 16.485 4.24346C16.3252 3.92986 16.0702 3.67489 15.7566 3.5151C15.6263 3.44869 15.4394 3.39459 15.0741 3.36474C14.699 3.3341 14.2138 3.33345 13.5 3.33345L6.49996 3.33345C5.78614 3.33345 5.3009 3.33409 4.92583 3.36474ZM6.66663 8.33345C6.66663 6.4925 8.15901 5.00011 9.99996 5.00011C11.8409 5.00011 13.3333 6.4925 13.3333 8.33345C13.3333 9.29727 12.9231 10.1666 12.2703 10.7741C12.2643 10.7796 12.2585 10.785 12.2529 10.7903L12.998 13.0258C13.0006 13.0333 13.0031 13.041 13.0057 13.0487C13.0483 13.1763 13.096 13.3194 13.1259 13.4457C13.1585 13.5836 13.197 13.8044 13.1342 14.0545C13.0565 14.3642 12.8632 14.6323 12.5941 14.804C12.3766 14.9427 12.1549 14.9759 12.0138 14.9886C11.8846 15.0002 11.7337 15.0002 11.5991 15.0001C11.591 15.0001 11.583 15.0001 11.575 15.0001H8.42491C8.41693 15.0001 8.40889 15.0001 8.40079 15.0001C8.26621 15.0002 8.11535 15.0002 7.98615 14.9886C7.84498 14.9759 7.62328 14.9427 7.40587 14.804C7.13671 14.6323 6.94344 14.3642 6.86569 14.0545C6.80289 13.8044 6.84147 13.5836 6.87407 13.4457C6.9039 13.3194 6.95165 13.1763 6.99425 13.0487C6.99681 13.041 6.99936 13.0333 7.00189 13.0258L7.74704 10.7903C7.74138 10.785 7.73558 10.7796 7.72961 10.7741C7.07677 10.1666 6.66663 9.29727 6.66663 8.33345ZM9.99996 6.66678C9.07949 6.66678 8.33329 7.41297 8.33329 8.33345C8.33329 8.8154 8.53679 9.24855 8.86499 9.55396L8.8759 9.56411C8.9552 9.6379 9.03351 9.71076 9.09515 9.77337C9.14953 9.82861 9.25814 9.94083 9.33672 10.0923C9.36955 10.1557 9.41141 10.2452 9.44027 10.3583C9.46912 10.4714 9.47528 10.5701 9.47679 10.6414C9.48006 10.7956 9.44924 10.9258 9.42682 11.0078C9.40609 11.0837 9.37746 11.1696 9.35211 11.2456L8.65615 13.3334H11.3438L10.6478 11.2455C10.6224 11.1695 10.5938 11.0837 10.5731 11.0078C10.5507 10.9258 10.5199 10.7956 10.5231 10.6414C10.5246 10.5701 10.5308 10.4714 10.5597 10.3583C10.5885 10.2452 10.6304 10.1556 10.6632 10.0923C10.7418 9.94083 10.8504 9.82862 10.9048 9.77337C10.9664 9.71074 11.0448 9.63786 11.1241 9.56406L11.1349 9.55396C11.4631 9.24855 11.6666 8.8154 11.6666 8.33345C11.6666 7.41297 10.9204 6.66678 9.99996 6.66678Z" />
|
||||
d="M4.52599 1.16675L9.47417 1.16675C9.94374 1.16674 10.3313 1.16674 10.647 1.19253C10.9749 1.21932 11.2763 1.27681 11.5594 1.42107C11.9984 1.64477 12.3554 2.00173 12.5791 2.44077C12.7233 2.72388 12.7808 3.02529 12.8076 3.35318C12.8334 3.66888 12.8334 4.05642 12.8334 4.52598V9.47419C12.8334 9.94375 12.8334 10.3313 12.8076 10.647C12.7808 10.9749 12.7233 11.2763 12.5791 11.5594C12.3554 11.9984 11.9984 12.3554 11.5594 12.5791C11.2763 12.7233 10.9749 12.7808 10.647 12.8076C10.3313 12.8334 9.94375 12.8334 9.47419 12.8334H4.52603C4.05645 12.8334 3.66889 12.8334 3.35318 12.8076C3.02529 12.7808 2.72388 12.7233 2.44077 12.5791C2.00173 12.3554 1.64477 11.9984 1.42107 11.5594C1.27681 11.2763 1.21932 10.9749 1.19253 10.647C1.16673 10.3313 1.16674 9.94374 1.16675 9.47417L1.16675 4.52599C1.16674 4.05642 1.16673 3.66888 1.19253 3.35318C1.21932 3.02529 1.27681 2.72388 1.42107 2.44077C1.64477 2.00173 2.00173 1.64477 2.44077 1.42107C2.72388 1.27681 3.02529 1.21932 3.35318 1.19253C3.66888 1.16673 4.05642 1.16674 4.52599 1.16675ZM3.44819 2.35532C3.19245 2.37622 3.06166 2.41409 2.97043 2.46057C2.7509 2.57243 2.57243 2.7509 2.46057 2.97043C2.41409 3.06166 2.37622 3.19244 2.35532 3.44819C2.33387 3.71074 2.33342 4.05041 2.33342 4.55008V9.45008C2.33342 9.94975 2.33387 10.2894 2.35532 10.552C2.37622 10.8077 2.41409 10.9385 2.46057 11.0297C2.57243 11.2493 2.7509 11.4277 2.97043 11.5396C3.06166 11.5861 3.19245 11.6239 3.44819 11.6448C3.71074 11.6663 4.05041 11.6667 4.55008 11.6667H9.45008C9.94975 11.6667 10.2894 11.6663 10.552 11.6448C10.8077 11.6239 10.9385 11.5861 11.0297 11.5396C11.2493 11.4277 11.4277 11.2493 11.5396 11.0297C11.5861 10.9385 11.6239 10.8077 11.6448 10.552C11.6663 10.2894 11.6667 9.94975 11.6667 9.45008V4.55008C11.6667 4.05041 11.6663 3.71074 11.6448 3.44819C11.6239 3.19245 11.5861 3.06166 11.5396 2.97043C11.4277 2.7509 11.2493 2.57243 11.0297 2.46058C10.9385 2.41409 10.8077 2.37622 10.552 2.35532C10.2894 2.33387 9.94975 2.33342 9.45008 2.33342L4.55008 2.33342C4.05041 2.33342 3.71074 2.33387 3.44819 2.35532ZM4.66675 5.83341C4.66675 4.54475 5.71142 3.50008 7.00008 3.50008C8.28875 3.50008 9.33341 4.54475 9.33341 5.83341C9.33341 6.50809 9.04631 7.11661 8.58932 7.54186C8.58515 7.54574 8.58108 7.54953 8.57712 7.55321L9.09873 9.11804C9.1005 9.12334 9.10229 9.12869 9.10408 9.13408C9.1339 9.22344 9.16732 9.3236 9.18821 9.41196C9.21103 9.50852 9.23803 9.6631 9.19407 9.83818C9.13965 10.0549 9.00436 10.2426 8.81595 10.3628C8.66376 10.4599 8.50857 10.4831 8.40975 10.492C8.31931 10.5001 8.21371 10.5001 8.1195 10.5001C8.11383 10.5001 8.1082 10.5001 8.10262 10.5001H5.89755C5.89196 10.5001 5.88633 10.5001 5.88066 10.5001C5.78646 10.5001 5.68085 10.5001 5.59042 10.492C5.4916 10.4831 5.33641 10.4599 5.18422 10.3628C4.99581 10.2426 4.86052 10.0549 4.80609 9.83818C4.76213 9.6631 4.78914 9.50852 4.81196 9.41196C4.83284 9.3236 4.86627 9.22343 4.89608 9.13407C4.89788 9.12869 4.89966 9.12334 4.90143 9.11804L5.42304 7.55321C5.41908 7.54953 5.41501 7.54574 5.41084 7.54186C4.95385 7.11661 4.66675 6.50809 4.66675 5.83341ZM7.00008 4.66675C6.35575 4.66675 5.83342 5.18908 5.83342 5.83341C5.83342 6.17079 5.97586 6.47399 6.2056 6.68777L6.21324 6.69488C6.26875 6.74653 6.32357 6.79753 6.36672 6.84136C6.40478 6.88003 6.48081 6.95858 6.53581 7.06465C6.5588 7.10896 6.5881 7.17165 6.6083 7.25081C6.62849 7.32998 6.63281 7.39904 6.63386 7.44895C6.63615 7.55691 6.61458 7.64803 6.59888 7.70549C6.58437 7.75862 6.56433 7.8187 6.54659 7.8719L6.05941 9.33341H7.94075L7.45356 7.87185C7.43582 7.81866 7.41579 7.7586 7.40128 7.70549C7.38558 7.64803 7.36401 7.55691 7.3663 7.44895C7.36736 7.39904 7.37167 7.32998 7.39187 7.25081C7.41207 7.17165 7.44137 7.10896 7.46435 7.06465C7.51935 6.95859 7.59538 6.88004 7.63345 6.84136C7.6766 6.79752 7.73144 6.74651 7.78696 6.69484L7.79456 6.68777C8.0243 6.47399 8.16675 6.17079 8.16675 5.83341C8.16675 5.18908 7.64441 4.66675 7.00008 4.66675Z" />
|
||||
</svg>
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import type { IconProps } from '@chakra-ui/react';
|
||||
import { Icon } from '@chakra-ui/react';
|
||||
import { Box, Icon } from '@chakra-ui/react';
|
||||
import { iconPaths } from './constants';
|
||||
import type { IconNameType } from './type.d';
|
||||
|
||||
@@ -25,7 +25,9 @@ const MyIcon = ({ name, w = 'auto', h = 'auto', ...props }: { name: IconNameType
|
||||
fill={'currentcolor'}
|
||||
{...props}
|
||||
/>
|
||||
) : null;
|
||||
) : (
|
||||
<Box w={w} h={'1px'}></Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default React.memo(MyIcon);
|
||||
|
@@ -126,12 +126,12 @@ const MyMenu = ({
|
||||
<Box position={'relative'}>{Button}</Box>
|
||||
</Box>
|
||||
<MenuList
|
||||
minW={isOpen ? `${width}px !important` : 0}
|
||||
minW={isOpen ? `${width}px !important` : '80px'}
|
||||
w={width ?? 'auto'}
|
||||
maxW={'300px'}
|
||||
p={'6px'}
|
||||
border={'1px solid #fff'}
|
||||
boxShadow={
|
||||
'0px 2px 4px rgba(161, 167, 179, 0.25), 0px 0px 1px rgba(121, 141, 159, 0.25);'
|
||||
}
|
||||
boxShadow={'3'}
|
||||
>
|
||||
{menuList.map((item, i) => {
|
||||
return (
|
||||
|
@@ -59,12 +59,12 @@ const MyModal = ({
|
||||
<ModalHeader
|
||||
display={'flex'}
|
||||
alignItems={'center'}
|
||||
fontWeight={500}
|
||||
background={'#FBFBFC'}
|
||||
borderBottom={'1px solid #F4F6F8'}
|
||||
roundedTop={'lg'}
|
||||
py={'10px'}
|
||||
fontSize={'md'}
|
||||
fontWeight={'bold'}
|
||||
>
|
||||
{iconSrc && (
|
||||
<>
|
||||
|
98
packages/web/components/common/MyPopover/PopoverConfirm.tsx
Normal file
@@ -0,0 +1,98 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import MyPopover from './index';
|
||||
import { useTranslation } from 'next-i18next';
|
||||
import MyIcon from '../Icon';
|
||||
import { useRequest2 } from '../../../hooks/useRequest';
|
||||
import {
|
||||
Popover,
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
useDisclosure,
|
||||
PlacementWithLogical,
|
||||
HStack,
|
||||
Box,
|
||||
Button,
|
||||
PopoverArrow
|
||||
} from '@chakra-ui/react';
|
||||
|
||||
const PopoverConfirm = ({
|
||||
content,
|
||||
showCancel,
|
||||
type,
|
||||
Trigger,
|
||||
placement = 'bottom-start',
|
||||
offset,
|
||||
onConfirm
|
||||
}: {
|
||||
content: string;
|
||||
showCancel?: boolean;
|
||||
type?: 'info' | 'delete';
|
||||
Trigger: React.ReactNode;
|
||||
placement?: PlacementWithLogical;
|
||||
offset?: [number, number];
|
||||
onConfirm: () => any;
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const map = useMemo(() => {
|
||||
const map = {
|
||||
info: {
|
||||
variant: 'primary',
|
||||
icon: 'common/confirm/commonTip'
|
||||
},
|
||||
delete: {
|
||||
variant: 'dangerFill',
|
||||
icon: 'common/confirm/deleteTip'
|
||||
}
|
||||
};
|
||||
if (type && map[type]) return map[type];
|
||||
return map.info;
|
||||
}, [type, t]);
|
||||
|
||||
const firstFieldRef = React.useRef(null);
|
||||
const { onOpen, onClose, isOpen } = useDisclosure();
|
||||
|
||||
const { runAsync: onclickConfirm, loading } = useRequest2(onConfirm, {
|
||||
onSuccess: onClose
|
||||
});
|
||||
|
||||
return (
|
||||
<Popover
|
||||
isOpen={isOpen}
|
||||
initialFocusRef={firstFieldRef}
|
||||
onOpen={onOpen}
|
||||
onClose={onClose}
|
||||
placement={placement}
|
||||
offset={offset}
|
||||
closeOnBlur={false}
|
||||
trigger={'click'}
|
||||
openDelay={100}
|
||||
closeDelay={100}
|
||||
isLazy
|
||||
lazyBehavior="keepMounted"
|
||||
arrowSize={10}
|
||||
>
|
||||
<PopoverTrigger>{Trigger}</PopoverTrigger>
|
||||
<PopoverContent p={4}>
|
||||
<PopoverArrow />
|
||||
|
||||
<HStack alignItems={'flex-start'}>
|
||||
<MyIcon name={map.icon as any} w={'1.5rem'} />
|
||||
<Box fontSize={'sm'}>{content}</Box>
|
||||
</HStack>
|
||||
<HStack mt={1} justifyContent={'flex-end'}>
|
||||
{showCancel && (
|
||||
<Button variant={'whiteBase'} size="sm" onClick={onClose}>
|
||||
{t('common.Cancel')}
|
||||
</Button>
|
||||
)}
|
||||
<Button isLoading={loading} variant={map.variant} size="sm" onClick={onclickConfirm}>
|
||||
{t('common.Confirm')}
|
||||
</Button>
|
||||
</HStack>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
);
|
||||
};
|
||||
|
||||
export default PopoverConfirm;
|
@@ -4,7 +4,8 @@ import {
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
useDisclosure,
|
||||
PlacementWithLogical
|
||||
PlacementWithLogical,
|
||||
PopoverArrow
|
||||
} from '@chakra-ui/react';
|
||||
|
||||
const MyPopover = ({
|
||||
@@ -40,7 +41,10 @@ const MyPopover = ({
|
||||
lazyBehavior="keepMounted"
|
||||
>
|
||||
<PopoverTrigger>{Trigger}</PopoverTrigger>
|
||||
<PopoverContent p={4}>{children({ onClose })}</PopoverContent>
|
||||
<PopoverContent p={4}>
|
||||
<PopoverArrow />
|
||||
{children({ onClose })}
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
);
|
||||
};
|
||||
|
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Flex, Box, BoxProps } from '@chakra-ui/react';
|
||||
import MyIcon from '../Icon';
|
||||
|
||||
type Props = BoxProps & {
|
||||
type Props = Omit<BoxProps, 'onChange'> & {
|
||||
list: {
|
||||
icon?: string;
|
||||
label: string | React.ReactNode;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { Flex, type FlexProps } from '@chakra-ui/react';
|
||||
import { Box, Flex, type FlexProps } from '@chakra-ui/react';
|
||||
|
||||
type ColorSchemaType = 'white' | 'blue' | 'green' | 'red' | 'yellow' | 'gray' | 'purple' | 'adora';
|
||||
|
||||
@@ -7,6 +7,7 @@ export type TagProps = FlexProps & {
|
||||
children: React.ReactNode | React.ReactNode[];
|
||||
colorSchema?: ColorSchemaType;
|
||||
type?: 'fill' | 'borderFill' | 'borderSolid';
|
||||
showDot?: boolean;
|
||||
};
|
||||
|
||||
const colorMap: Record<
|
||||
@@ -59,7 +60,7 @@ const colorMap: Record<
|
||||
}
|
||||
};
|
||||
|
||||
const MyTag = ({ children, colorSchema = 'blue', type = 'fill', ...props }: TagProps) => {
|
||||
const MyTag = ({ children, colorSchema = 'blue', type = 'fill', showDot, ...props }: TagProps) => {
|
||||
const theme = useMemo(() => {
|
||||
return colorMap[colorSchema];
|
||||
}, [colorSchema]);
|
||||
@@ -75,10 +76,11 @@ const MyTag = ({ children, colorSchema = 'blue', type = 'fill', ...props }: TagP
|
||||
whiteSpace={'nowrap'}
|
||||
borderWidth={'1px'}
|
||||
{...theme}
|
||||
{...props}
|
||||
borderColor={type !== 'fill' ? theme.borderColor : 'transparent'}
|
||||
bg={type !== 'borderSolid' ? theme.bg : 'transparent'}
|
||||
{...props}
|
||||
>
|
||||
{showDot && <Box w={1.5} h={1.5} borderRadius={'md'} bg={theme.color} mr={1.5}></Box>}
|
||||
{children}
|
||||
</Flex>
|
||||
);
|
||||
|
@@ -17,12 +17,12 @@ export const useConfirm = (props?: {
|
||||
const map = {
|
||||
common: {
|
||||
title: t('common.confirm.Common Tip'),
|
||||
bg: undefined,
|
||||
variant: 'primary',
|
||||
iconSrc: 'common/confirm/commonTip'
|
||||
},
|
||||
delete: {
|
||||
title: t('common.Delete Warning'),
|
||||
bg: 'red.600',
|
||||
variant: 'dangerFill',
|
||||
iconSrc: 'common/confirm/deleteTip'
|
||||
}
|
||||
};
|
||||
@@ -108,7 +108,7 @@ export const useConfirm = (props?: {
|
||||
|
||||
<Button
|
||||
size={'sm'}
|
||||
bg={bg ? bg : map.bg}
|
||||
variant={map.variant}
|
||||
isDisabled={countDownAmount > 0}
|
||||
ml={3}
|
||||
isLoading={isLoading || requesting}
|
||||
@@ -129,7 +129,7 @@ export const useConfirm = (props?: {
|
||||
</MyModal>
|
||||
);
|
||||
},
|
||||
[customContent, hideFooter, iconSrc, isOpen, map.bg, onClose, showCancel, t, title]
|
||||
[customContent, hideFooter, iconSrc, isOpen, map.variant, onClose, showCancel, t, title]
|
||||
);
|
||||
|
||||
return {
|
||||
|
@@ -32,6 +32,11 @@ const Button = defineStyleConfig({
|
||||
baseStyle: {
|
||||
_active: {
|
||||
transform: 'scale(0.98)'
|
||||
},
|
||||
_disabled: {
|
||||
_hover: {
|
||||
filter: 'none'
|
||||
}
|
||||
}
|
||||
},
|
||||
sizes: {
|
||||
@@ -41,7 +46,7 @@ const Button = defineStyleConfig({
|
||||
py: '0',
|
||||
h: '24px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '8px'
|
||||
borderRadius: 'sm'
|
||||
},
|
||||
xsSquare: {
|
||||
fontSize: 'xs',
|
||||
@@ -50,7 +55,7 @@ const Button = defineStyleConfig({
|
||||
h: '24px',
|
||||
w: '24px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '4px'
|
||||
borderRadius: 'sm'
|
||||
},
|
||||
sm: {
|
||||
fontSize: 'sm',
|
||||
@@ -58,7 +63,7 @@ const Button = defineStyleConfig({
|
||||
py: 0,
|
||||
fontWeight: 'normal',
|
||||
h: '30px',
|
||||
borderRadius: '8px'
|
||||
borderRadius: 'sm'
|
||||
},
|
||||
smSquare: {
|
||||
fontSize: 'sm',
|
||||
@@ -67,7 +72,7 @@ const Button = defineStyleConfig({
|
||||
fontWeight: 'normal',
|
||||
h: '30px',
|
||||
w: '30px',
|
||||
borderRadius: '8px'
|
||||
borderRadius: 'sm'
|
||||
},
|
||||
md: {
|
||||
fontSize: 'sm',
|
||||
@@ -75,7 +80,7 @@ const Button = defineStyleConfig({
|
||||
py: 0,
|
||||
h: '34px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '8px'
|
||||
borderRadius: 'md'
|
||||
},
|
||||
mdSquare: {
|
||||
fontSize: 'sm',
|
||||
@@ -84,7 +89,7 @@ const Button = defineStyleConfig({
|
||||
h: '34px',
|
||||
w: '34px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '6px'
|
||||
borderRadius: 'md'
|
||||
},
|
||||
lg: {
|
||||
fontSize: 'md',
|
||||
@@ -92,7 +97,7 @@ const Button = defineStyleConfig({
|
||||
py: 0,
|
||||
h: '40px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '8px'
|
||||
borderRadius: 'lg'
|
||||
},
|
||||
lgSquare: {
|
||||
fontSize: 'md',
|
||||
@@ -101,7 +106,7 @@ const Button = defineStyleConfig({
|
||||
h: '40px',
|
||||
w: '40px',
|
||||
fontWeight: 'normal',
|
||||
borderRadius: '6px'
|
||||
borderRadius: 'lg'
|
||||
}
|
||||
},
|
||||
variants: {
|
||||
@@ -279,6 +284,18 @@ const Button = defineStyleConfig({
|
||||
_disabled: {
|
||||
color: 'myGray.800 !important'
|
||||
}
|
||||
},
|
||||
dangerFill: {
|
||||
bg: 'red.600',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
boxShadow: '0px 0px 1px 0px rgba(19, 51, 107, 0.08), 0px 1px 2px 0px rgba(19, 51, 107, 0.05)',
|
||||
_hover: {
|
||||
filter: 'brightness(120%)'
|
||||
},
|
||||
_disabled: {
|
||||
bg: 'red.200 !important'
|
||||
}
|
||||
}
|
||||
},
|
||||
defaultProps: {
|
||||
@@ -697,15 +714,15 @@ export const theme = extendTheme({
|
||||
xl: '16px'
|
||||
},
|
||||
shadows: {
|
||||
1: '0px 0px 1px 0px rgba(19, 51, 107, 0.08), 0px 1px 2px 0px rgba(19, 51, 107, 0.05)',
|
||||
1.5: '0px 0px 1px 0px rgba(19, 51, 107, 0.15), 0px 1px 2px 0px rgba(19, 51, 107, 0.10)',
|
||||
2: '0px 0px 1px 0px rgba(19, 51, 107, 0.08), 0px 4px 4px 0px rgba(19, 51, 107, 0.05)',
|
||||
3: '0px 0px 1px 0px rgba(19, 51, 107, 0.08), 0px 4px 10px 0px rgba(19, 51, 107, 0.08)',
|
||||
3.5: '0px 0px 1px 0px rgba(19, 51, 107, 0.10), 0px 4px 10px 0px rgba(19, 51, 107, 0.10)',
|
||||
4: '0px 0px 1px 0px rgba(19, 51, 107, 0.20), 0px 12px 16px -4px rgba(19, 51, 107, 0.20)',
|
||||
5: '0px 0px 1px 0px rgba(19, 51, 107, 0.15), 0px 20px 24px -8px rgba(19, 51, 107, 0.15)',
|
||||
6: '0px 0px 1px 0px rgba(19, 51, 107, 0.20), 0px 24px 48px -12px rgba(19, 51, 107, 0.20)',
|
||||
7: '0px 0px 1px 0px rgba(19, 51, 107, 0.20), 0px 32px 64px -12px rgba(19, 51, 107, 0.20)',
|
||||
1: '0px 1px 2px 0px rgba(19, 51, 107, 0.05), 0px 0px 1px 0px rgba(19, 51, 107, 0.08)',
|
||||
1.5: '0px 1px 2px 0px rgba(19, 51, 107, 0.10), 0px 0px 1px 0px rgba(19, 51, 107, 0.15)',
|
||||
2: '0px 4px 4px 0px rgba(19, 51, 107, 0.05), 0px 0px 1px 0px rgba(19, 51, 107, 0.08)',
|
||||
3: '0px 4px 10px 0px rgba(19, 51, 107, 0.08), 0px 0px 1px 0px rgba(19, 51, 107, 0.08)',
|
||||
3.5: '0px 4px 10px 0px rgba(19, 51, 107, 0.10), 0px 0px 1px 0px rgba(19, 51, 107, 0.10)',
|
||||
4: '0px 12px 16px -4px rgba(19, 51, 107, 0.20), 0px 0px 1px 0px rgba(19, 51, 107, 0.20)',
|
||||
5: '0px 20px 24px -8px rgba(19, 51, 107, 0.15), 0px 0px 1px 0px rgba(19, 51, 107, 0.15)',
|
||||
6: '0px 24px 48px -12px rgba(19, 51, 107, 0.20), 0px 0px 1px 0px rgba(19, 51, 107, 0.20)',
|
||||
7: '0px 32px 64px -12px rgba(19, 51, 107, 0.20), 0px 0px 1px 0px rgba(19, 51, 107, 0.20)',
|
||||
focus: shadowLight,
|
||||
outline: 'none'
|
||||
},
|
||||
|
@@ -1,21 +1,7 @@
|
||||
{
|
||||
"extends":"../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es2015",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"baseUrl": "."
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../**/*.d.ts", "../../projects/app/src/components/common/Modal/EditResourceModal.tsx"],
|
||||
"exclude": ["node_modules","./components/common/Icon/constants.ts"]
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../**/*.d.ts"]
|
||||
}
|
||||
|