diginet-core-ui 1.3.44 → 1.3.45

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.
@@ -0,0 +1,11 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M29.67 17.51C29.78 17.63 29.89 17.75 30 17.86V10.16C30 9.93 29.9 9.69 29.74 9.52L20.35 0.26C20.17 0.1 19.93 0 19.7 0H3.26C1.47 0 0 1.45 0 3.22V35.78C0 37.55 1.47 39 3.26 39H26.74C28.53 39 30 37.55 30 35.78V34.2L29.28 33.48C29.14 33.33 29.01 33.17 28.86 32.95C28.56 32.47 28.4 31.92 28.41 31.35L28.16 31.1V35.78C28.16 36.56 27.52 37.19 26.74 37.19H3.26C2.48 37.19 1.84 36.56 1.84 35.78V3.22C1.84 2.44 2.48 1.81 3.26 1.81H18.78V7.85C18.78 9.62 20.24 11.07 22.04 11.07H26.22L27.9 11.06H28.16V16.33C28.71 16.66 29.21 17.06 29.67 17.51ZM22.04 9.26C21.26 9.26 20.61 8.63 20.61 7.85V3.09L21.05 3.52L26.43 8.82L26.87 9.26H22.04Z" fill="#2680EB"/>
3
+ <path d="M15.71 27C16.01 27.72 16.41 28.39 16.92 29H5.94C5.42 29 5 28.55 5 28C5 27.45 5.42 27 5.94 27H15.71Z" fill="#2680EB"/>
4
+ <path d="M15.11 25H5.94C5.42 25 5 24.55 5 24C5 23.45 5.42 23 5.94 23H15.02C15.01 23.2 15 23.39 15 23.59C15 24.07 15.04 24.54 15.11 25Z" fill="#2680EB"/>
5
+ <path d="M5.94 19H16.32C15.92 19.63 15.61 20.3 15.4 21H5.94C5.42 21 5 20.55 5 20C5 19.45 5.42 19 5.94 19Z" fill="#2680EB"/>
6
+ <path d="M14 31H6C5.45 31 5 31.45 5 32C5 32.55 5.45 33 6 33H14C14.55 33 15 32.55 15 32C15 31.45 14.55 31 14 31Z" fill="#2680EB"/>
7
+ <path d="M38.42 35.64L32.77 29.99C32.38 29.6 31.88 29.41 31.38 29.41C31.24 29.41 31.11 29.43 30.99 29.45L29.71 28.18V28.08C31.66 25.42 31.67 21.77 29.71 19.11C29.5 18.8 29.24 18.5 28.96 18.22C28.49 17.75 27.97 17.36 27.42 17.05C26.24 16.34 24.91 16 23.59 16C21.64 16 19.7 16.74 18.22 18.22C17.97 18.47 17.75 18.73 17.55 19C17.07 19.62 16.71 20.29 16.46 21C16.22 21.65 16.07 22.32 16.02 23C15.97 23.67 16.01 24.34 16.13 25C16.26 25.69 16.48 26.36 16.81 27C17.16 27.71 17.63 28.37 18.22 28.96C18.23 28.97 18.25 28.99 18.26 29C19.73 30.45 21.67 31.18 23.59 31.18C24.91 31.18 26.24 30.83 27.42 30.13C27.67 30 27.91 29.84 28.14 29.67L29.45 30.98C29.35 31.47 29.44 31.99 29.71 32.42C29.79 32.54 29.88 32.66 29.99 32.77L35.64 38.42C36.03 38.81 36.53 39 37.03 39C37.54 39 38.04 38.81 38.42 38.42C39.19 37.66 39.19 36.41 38.42 35.64ZM27.42 27.42C26.37 28.48 24.98 29.01 23.59 29.01C23.45 29.01 23.29 29 23.15 28.99C23.14 28.99 23.14 28.99 23.13 28.99C21.9 28.89 20.69 28.36 19.75 27.42C19.62 27.28 19.49 27.14 19.37 27C18.89 26.4 18.55 25.72 18.36 25C18.18 24.35 18.13 23.67 18.2 23C18.28 22.31 18.48 21.63 18.83 21C19.06 20.55 19.37 20.13 19.75 19.75C20.04 19.46 20.36 19.21 20.7 19C21.58 18.45 22.59 18.17 23.59 18.17C24.98 18.17 26.37 18.7 27.42 19.75C29.54 21.87 29.54 25.31 27.42 27.42Z" fill="#1CA261"/>
8
+ <path d="M27.93 21.59C27.95 21.88 27.85 22.16 27.65 22.38L23.45 26.98C23.25 27.2 22.96 27.34 22.65 27.34C22.35 27.34 22.04 27.21 21.84 26.99L19.6 24.61C19.39 24.39 19.29 24.12 19.3 23.82C19.31 23.53 19.44 23.26 19.64 23.06C19.84 22.87 20.11 22.78 20.39 22.78C20.7 22.78 21 22.89 21.2 23.11L22.51 24.5L22.63 24.62L22.74 24.49L26.02 20.9C26.22 20.68 26.52 20.55 26.85 20.55C27.13 20.55 27.39 20.64 27.58 20.82L27.6 20.84C27.8 21.05 27.92 21.31 27.93 21.59Z" fill="#1CA261"/>
9
+ <path d="M13.19 9.05003C13.53 8.71003 13.85 8.38003 14.18 8.05003C14.46 7.78003 14.9 7.89003 14.99 8.25003C15 8.31003 15 8.37003 15 8.42003C15 9.74003 15 11.05 15 12.37C15 12.71 14.82 12.9 14.47 12.91C13.15 12.91 11.84 12.91 10.52 12.91C10.29 12.91 10.11 12.82 10.03 12.6C9.95003 12.39 10.01 12.21 10.17 12.05C10.49 11.73 10.82 11.41 11.16 11.07C10.7 10.62 10.25 10.18 9.79003 9.75003C9.44003 9.42003 9.05003 9.15003 8.62003 8.92003C7.73003 8.45003 6.86003 8.52003 6.02003 9.10003C5.43003 9.51003 4.96003 10.04 4.52003 10.6C4.50003 10.62 4.48003 10.65 4.47003 10.67C4.39003 10.79 4.28003 10.84 4.15003 10.78C4.03003 10.73 3.98003 10.61 4.02003 10.46C4.12003 10.08 4.21003 9.69003 4.33003 9.31003C4.56003 8.61003 4.87003 7.95003 5.38003 7.41003C5.76003 7.00003 6.20003 6.63003 6.71003 6.36003C7.72003 5.81003 8.75003 5.86003 9.78003 6.32003C10.7 6.73003 11.47 7.36003 12.18 8.05003C12.49 8.35003 12.8 8.66003 13.11 8.97003C13.13 8.99003 13.15 9.01003 13.19 9.05003Z" fill="#FF8C00"/>
10
+ <path d="M17 10.49C17 11.54 17 12.58 17 13.63C17 14.4 16.74 15.04 16.13 15.52C15.73 15.83 15.28 16 14.77 16C12.58 16 10.39 16.01 8.21003 16C6.93003 16 5.96003 15.01 5.94003 13.73C5.93003 13.09 5.94003 12.44 5.94003 11.8C5.94003 11.63 6.02003 11.52 6.16003 11.5C6.29003 11.48 6.39003 11.56 6.46003 11.72C6.60003 12.05 6.75003 12.37 6.89003 12.7C6.92003 12.77 6.94003 12.86 6.94003 12.94C6.95003 13.21 6.94003 13.48 6.95003 13.75C6.97003 14.49 7.51003 15.01 8.24003 15.02C10.4 15.02 12.56 15.02 14.72 15.02C15.44 15.02 15.99 14.47 15.99 13.75C15.99 11.58 15.99 9.40003 15.99 7.23003C15.99 6.54003 15.45 6.00003 14.75 5.98003C14.22 5.97003 13.69 5.97003 13.15 5.98003C12.98 5.98003 12.87 5.93003 12.79 5.77003C12.73 5.64003 12.63 5.53003 12.54 5.42003C12.47 5.33003 12.43 5.24003 12.49 5.13003C12.54 5.02003 12.63 4.98003 12.75 4.98003C13.44 4.98003 14.12 4.97003 14.81 4.98003C15.95 5.00003 16.94 5.93003 16.98 7.07003C17.01 7.86003 16.99 8.66003 17 9.45003C17 9.78003 17 10.14 17 10.49Z" fill="#FF8C00"/>
11
+ </svg>
@@ -0,0 +1,18 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M30.79 28.13C30.79 27.5 30.27 26.99 29.64 26.99H19.23C18.59 26.99 18.08 27.5 18.08 28.13C18.08 28.76 18.6 29.27 19.23 29.27H29.64C30.27 29.27 30.79 28.76 30.79 28.13Z" fill="#FF8C00"/>
3
+ <path d="M29.64 22.41H19.23C18.59 22.41 18.08 22.92 18.08 23.55C18.08 24.18 18.6 24.69 19.23 24.69H29.64C30.28 24.69 30.79 24.18 30.79 23.55C30.79 22.92 30.27 22.41 29.64 22.41Z" fill="#FF8C00"/>
4
+ <path d="M19.23 31.56C18.59 31.56 18.08 32.07 18.08 32.7C18.08 33.33 18.6 33.84 19.23 33.84H25.02C25.66 33.84 26.17 33.33 26.17 32.7C26.17 32.07 25.65 31.56 25.02 31.56H19.23Z" fill="#FF8C00"/>
5
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
6
+ <path d="M14.8801 25.9401C14.8801 25.4501 15.2401 25.0501 15.7801 25.0501C16.3201 25.0501 16.6801 25.4501 16.6801 25.9401C16.6801 26.4301 16.3201 26.8301 15.7801 26.8301C15.2401 26.8301 14.8801 26.4301 14.8801 25.9401Z" fill="#FF8C00"/>
7
+ <path d="M9.91999 33.17C11.09 32.23 11.94 31.5 11.94 30.91C11.94 30.52 11.69 30.34 11.3 30.34C10.98 30.34 10.72 30.55 10.49 30.75L9.85999 30.12C10.34 29.64 10.78 29.42 11.47 29.42C12.41 29.42 13.06 29.98 13.06 30.84C13.06 31.54 12.33 32.3 11.61 32.9C11.85 32.87 12.18 32.85 12.4 32.85H13.28V33.83H9.91999V33.17Z" fill="#FF8C00"/>
8
+ <path d="M14.88 33.03C14.88 32.54 15.24 32.14 15.78 32.14C16.32 32.14 16.68 32.54 16.68 33.03C16.68 33.52 16.32 33.92 15.78 33.92C15.24 33.92 14.88 33.53 14.88 33.03Z" fill="#FF8C00"/>
9
+ <path d="M11.76 10.3099C11.87 10.2599 11.97 10.1899 12.06 10.1199C12.14 10.0799 12.22 10.0299 12.28 9.96993L11.68 9.59993C11.64 9.57993 11.59 9.56993 11.54 9.55993C11.49 9.54993 11.44 9.55993 11.39 9.56993C11.34 9.57993 11.3 9.60993 11.26 9.63993C11.22 9.66993 11.19 9.70993 11.16 9.75993L11.01 10.0199L11.76 10.3099Z" fill="#FFC766"/>
10
+ <path d="M9.65997 14.7999L9.46997 15.3199L11.79 16.1399L9.65997 14.7999Z" fill="#FFC766"/>
11
+ <path d="M19.07 14.2799L16.75 13.4599L18.89 14.7899L19.07 14.2799Z" fill="#FFC766"/>
12
+ <path d="M14.35 18.4299L16.82 19.9499C16.86 19.9799 16.91 19.9899 16.96 19.9999C17.01 20.0099 17.06 19.9999 17.11 19.9899C17.16 19.9799 17.2 19.9499 17.24 19.9199C17.28 19.8899 17.31 19.8499 17.34 19.7999L17.49 19.5399L14.35 18.4299Z" fill="#FFC766"/>
13
+ <path d="M13.86 15.65L14.12 14.91C13.93 14.8 13.79 14.63 13.71 14.43C13.67 14.34 13.65 14.25 13.65 14.15C13.65 14.05 13.67 13.96 13.71 13.87C13.74 13.78 13.79 13.7 13.85 13.63C13.92 13.56 14 13.5 14.08 13.46C14.17 13.42 14.26 13.39 14.36 13.39C14.46 13.38 14.55 13.4 14.64 13.43L14.71 13.24L14.97 13.31L14.91 13.5C15.07 13.57 15.2 13.69 15.28 13.83C15.36 13.98 15.39 14.15 15.35 14.31L14.87 14.2C14.89 14.13 14.89 14.06 14.87 14C14.85 13.93 14.81 13.88 14.76 13.83L14.5 14.53C14.7 14.65 14.87 14.82 14.99 15.01C15.05 15.19 15.04 15.39 14.97 15.57C14.9 15.75 14.78 15.9 14.61 16.01C14.41 16.11 14.19 16.14 13.97 16.08L13.86 16.41L13.6 16.35L13.71 16.02C13.53 15.93 13.38 15.79 13.3 15.61C13.21 15.41 13.2 15.19 13.26 14.98L13.75 15.09C13.74 15.19 13.76 15.29 13.79 15.39C13.8 15.48 13.83 15.56 13.86 15.65ZM14.53 13.8C14.45 13.81 14.37 13.83 14.31 13.87C14.28 13.88 14.25 13.9 14.24 13.93C14.22 13.96 14.21 13.99 14.2 14.02C14.18 14.05 14.17 14.08 14.17 14.11C14.17 14.14 14.18 14.18 14.2 14.2C14.24 14.27 14.27 14.31 14.31 14.39L14.53 13.8ZM14.12 15.76C14.21 15.77 14.3 15.76 14.38 15.72C14.42 15.7 14.45 15.68 14.48 15.65C14.51 15.62 14.52 15.58 14.53 15.54C14.55 15.51 14.56 15.47 14.56 15.43C14.56 15.39 14.55 15.35 14.53 15.32C14.49 15.23 14.43 15.15 14.34 15.1L14.12 15.76Z" fill="#FFB330"/>
14
+ <path d="M19.93 13.54L19.67 13.43C19.61 13.44 19.54 13.42 19.48 13.39C18.88 13.24 18.32 13.02 17.76 12.87C16.79 12.57 15.85 12.24 14.91 11.91L14.8 11.87C14.76 11.91 14.5 12.09 14.5 12.09C14.43 12.13 14.37 12.18 14.31 12.24L19.56 14.06L17.95 18.62L9.05997 15.5L10.45 11.64C10.47 11.52 10.51 11.41 10.56 11.31L10.71 10.94L10.86 10.98C10.96 10.87 11.08 10.77 11.2 10.68C11.27 10.61 11.35 10.57 11.39 10.49L10.75 10.27C10.7 10.25 10.65 10.25 10.6 10.25C10.55 10.25 10.5 10.27 10.45 10.29C10.4 10.31 10.36 10.35 10.33 10.39C10.3 10.43 10.27 10.48 10.26 10.53L8.49997 15.5C8.47997 15.55 8.46997 15.6 8.46997 15.65C8.46997 15.7 8.47997 15.76 8.49997 15.8C8.51997 15.85 8.54997 15.89 8.58997 15.93C8.62997 15.97 8.67997 15.99 8.72997 16.01L17.95 19.24C18 19.26 18.05 19.26 18.1 19.26C18.15 19.26 18.2 19.24 18.25 19.22C18.3 19.2 18.34 19.16 18.37 19.12C18.4 19.08 18.43 19.03 18.44 18.98L20.2 14.01C20.21 13.91 20.19 13.82 20.14 13.73C20.09 13.65 20.02 13.58 19.93 13.54Z" fill="#FFB330"/>
15
+ <path d="M34.74 9.52L25.35 0.26C25.17 0.1 24.93 0 24.7 0H8.26C6.47 0 5 1.45 5 3.22V35.78C5 37.55 6.47 39 8.26 39H31.73C33.53 39 34.99 37.55 34.99 35.78V10.16C35 9.93 34.9 9.69 34.74 9.52ZM25.61 3.09L26.05 3.52L31.42 8.82L31.86 9.26H27.03C26.25 9.26 25.6 8.63 25.6 7.85V3.09H25.61ZM33.16 35.78C33.16 36.56 32.52 37.19 31.73 37.19H8.26C7.48 37.19 6.83 36.56 6.83 35.78V3.22C6.83 2.44 7.47 1.81 8.26 1.81H23.77V7.85C23.77 9.62 25.24 11.07 27.03 11.07H31.22L32.9 11.06H33.16V35.78Z" fill="#2680EB"/>
16
+ <path d="M22.3699 10.2299L18.8099 7.14994C18.7399 7.08994 18.6999 7.00994 18.6899 6.91994C18.6799 6.82994 18.7099 6.73994 18.7699 6.66994L19.2599 6.10994C19.3199 6.04994 19.3999 6.00994 19.4899 5.99994C19.5799 5.98994 19.6699 6.01994 19.7399 6.07994L23.2999 9.15994C23.3699 9.21994 23.4099 9.29994 23.4199 9.38994C23.4299 9.47994 23.3999 9.56994 23.3399 9.63994L22.8499 10.1999C22.7899 10.2699 22.6999 10.3099 22.6099 10.3099C22.5299 10.3199 22.4399 10.2899 22.3699 10.2299Z" fill="#2680EB"/>
17
+ <path d="M18.1299 7.52994C18.1199 7.52994 18.1099 7.52994 18.0999 7.53994C18.0999 7.54994 18.0999 7.55994 18.0999 7.56994C18.0199 7.63994 17.9299 7.70994 17.8399 7.75994C17.4699 8.05994 17.1299 8.38994 16.7499 8.68994C16.6499 8.76994 16.5399 8.81994 16.4099 8.83994C15.8499 8.85994 15.2799 8.89994 14.7199 8.89994C14.4299 8.90994 14.1499 8.92994 13.8599 8.97994C13.5599 9.04994 13.2699 9.18994 13.0399 9.38994C12.5499 9.82994 12.0999 10.2399 11.6499 10.6899C11.4299 10.9099 11.1599 11.0999 10.9399 11.3199C10.8599 11.3899 10.7999 11.4799 10.7599 11.5799C10.7199 11.6799 10.6999 11.7899 10.7099 11.8899C10.7199 11.9999 10.7499 12.0999 10.7999 12.1899C10.8499 12.2799 10.9299 12.3599 11.0099 12.4299C11.3299 12.6599 11.6999 12.7899 12.0999 12.7999C12.5899 12.8199 13.0699 12.6899 13.4899 12.4299C13.8399 12.1999 14.1799 11.9599 14.4999 11.6899C14.7599 11.4999 14.6499 11.4999 14.9899 11.6199C15.9299 11.9499 16.8599 12.2499 17.7999 12.5499C18.3999 12.7399 18.9599 12.9199 19.5599 13.0699C19.7299 13.1299 19.9099 13.1299 20.0799 13.0699C20.4199 12.9299 20.7399 12.7699 21.0499 12.5899C21.5499 12.2599 21.9499 11.7899 22.2099 11.2599C22.2099 11.2199 22.2499 11.1899 22.2499 11.1499L18.1299 7.52994Z" fill="#2680EB"/>
18
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M34.74 9.52L25.35 0.26C25.17 0.1 24.93 0 24.7 0H8.26C6.47 0 5 1.45 5 3.22V35.78C5 37.55 6.47 39 8.26 39H31.73C33.53 39 34.99 37.55 34.99 35.78V10.16C35 9.93 34.9 9.69 34.74 9.52ZM25.61 3.09L26.05 3.52L31.42 8.82L31.86 9.26H27.03C26.25 9.26 25.6 8.63 25.6 7.85V3.09H25.61ZM33.16 35.78C33.16 36.56 32.52 37.19 31.73 37.19H8.26C7.48 37.19 6.83 36.56 6.83 35.78V3.22C6.83 2.44 7.47 1.81 8.26 1.81H23.77V7.85C23.77 9.62 25.24 11.07 27.03 11.07H31.22L32.9 11.06H33.16V35.78Z" fill="#2680EB"/>
3
+ <path d="M18.1801 13H17.8001C16.8101 13 16.0001 13.81 16.0001 14.8V19.2C16.0001 19.31 16.0101 19.42 16.0301 19.52C15.7201 19.64 15.4101 19.76 15.0901 19.85C14.1401 20.13 13.2201 19.99 12.3201 19.63C11.3301 19.23 10.4101 18.7 9.56011 18.05C9.09011 17.69 8.90011 17.19 9.01011 16.61C9.19011 15.61 9.39011 14.61 9.58011 13.62C9.71011 13.01 10.1601 12.64 10.7701 12.64H17.2501C17.6501 12.64 17.9701 12.76 18.1801 13Z" fill="#2680EB"/>
4
+ <path d="M14.0301 11.53C11.9801 11.52 10.3301 9.83004 10.3301 7.75004C10.3401 5.67004 12.0101 3.99004 14.0501 4.00004C16.0901 4.01004 17.7501 5.71004 17.7401 7.79004C17.7301 9.85004 16.0601 11.54 14.0301 11.53Z" fill="#2680EB"/>
5
+ <path d="M30.7901 28.13C30.7901 27.5 30.2701 26.99 29.6401 26.99H19.2301C18.5901 26.99 18.0801 27.5 18.0801 28.13C18.0801 28.76 18.6001 29.27 19.2301 29.27H29.6401C30.2701 29.27 30.7901 28.76 30.7901 28.13Z" fill="#FF8C00"/>
6
+ <path d="M29.6401 22.41H19.2301C18.5901 22.41 18.0801 22.92 18.0801 23.55C18.0801 24.18 18.6001 24.69 19.2301 24.69H29.6401C30.2801 24.69 30.7901 24.18 30.7901 23.55C30.7901 22.92 30.2701 22.41 29.6401 22.41Z" fill="#FF8C00"/>
7
+ <path d="M19.2301 31.56C18.5901 31.56 18.0801 32.07 18.0801 32.7C18.0801 33.33 18.6001 33.84 19.2301 33.84H25.0201C25.6601 33.84 26.1701 33.33 26.1701 32.7C26.1701 32.07 25.6501 31.56 25.0201 31.56H19.2301Z" fill="#FF8C00"/>
8
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
9
+ <path d="M14.8801 25.9401C14.8801 25.4501 15.2401 25.0501 15.7801 25.0501C16.3201 25.0501 16.6801 25.4501 16.6801 25.9401C16.6801 26.4301 16.3201 26.8301 15.7801 26.8301C15.2401 26.8301 14.8801 26.4301 14.8801 25.9401Z" fill="#FF8C00"/>
10
+ <path d="M9.92011 33.17C11.0901 32.23 11.9401 31.5 11.9401 30.91C11.9401 30.52 11.6901 30.34 11.3001 30.34C10.9801 30.34 10.7201 30.55 10.4901 30.75L9.86011 30.12C10.3401 29.64 10.7801 29.42 11.4701 29.42C12.4101 29.42 13.0601 29.98 13.0601 30.84C13.0601 31.54 12.3301 32.3 11.6101 32.9C11.8501 32.87 12.1801 32.85 12.4001 32.85H13.2801V33.83H9.92011V33.17Z" fill="#FF8C00"/>
11
+ <path d="M14.8801 33.03C14.8801 32.54 15.2401 32.14 15.7801 32.14C16.3201 32.14 16.6801 32.54 16.6801 33.03C16.6801 33.52 16.3201 33.92 15.7801 33.92C15.2401 33.92 14.8801 33.53 14.8801 33.03Z" fill="#FF8C00"/>
12
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24.2 14H22.6V13.2C22.6 12.76 22.24 12.4 21.8 12.4H20.2C19.76 12.4 19.4 12.76 19.4 13.2V14H17.8C17.36 14 17 14.35 17 14.8V19.2C17 19.65 17.36 20 17.8 20H24.2C24.65 20 25 19.65 25 19.2V14.8C25 14.35 24.65 14 24.2 14ZM20.2 13.2H21.8V14H20.2V13.2ZM23.04 16.72C22.94 16.82 22.85 16.9 22.75 17C22.58 17.17 22.41 17.34 22.24 17.5C22.18 17.56 22.16 17.63 22.17 17.72C22.23 18.08 22.3 18.45 22.36 18.82C22.37 18.89 22.34 18.96 22.29 19C22.23 19.04 22.16 19.05 22.11 19.01C21.93 18.92 21.75 18.83 21.57 18.74C21.42 18.66 21.27 18.58 21.11 18.5C21.04 18.46 20.96 18.46 20.89 18.5C20.57 18.67 20.24 18.84 19.92 19C19.83 19.05 19.76 19.04 19.7 18.99C19.64 18.94 19.63 18.89 19.64 18.82C19.7 18.45 19.77 18.08 19.83 17.72C19.84 17.64 19.82 17.58 19.77 17.51C19.52 17.27 19.27 17.03 19.02 16.79C19 16.77 18.98 16.74 18.96 16.72C18.91 16.66 18.9 16.61 18.93 16.54C18.95 16.48 19 16.44 19.07 16.43C19.43 16.38 19.79 16.33 20.16 16.28C20.26 16.26 20.32 16.22 20.36 16.13C20.52 15.8 20.68 15.47 20.85 15.15C20.88 15.09 20.94 15.05 21.01 15.05C21.08 15.06 21.14 15.09 21.17 15.15C21.32 15.46 21.47 15.77 21.63 16.08C21.64 16.1 21.65 16.12 21.65 16.14C21.69 16.22 21.76 16.27 21.85 16.28C22.11 16.31 22.39 16.35 22.65 16.39C22.74 16.41 22.83 16.42 22.93 16.43C23 16.44 23.06 16.48 23.08 16.54C23.1 16.6 23.1 16.66 23.04 16.72Z" fill="#FF8C00"/>
13
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M30.79 28.13C30.79 27.5 30.27 26.99 29.64 26.99H19.23C18.59 26.99 18.08 27.5 18.08 28.13C18.08 28.76 18.6 29.27 19.23 29.27H29.64C30.27 29.27 30.79 28.76 30.79 28.13Z" fill="#FF8C00"/>
3
+ <path d="M29.64 22.41H19.23C18.59 22.41 18.08 22.92 18.08 23.55C18.08 24.18 18.6 24.69 19.23 24.69H29.64C30.28 24.69 30.79 24.18 30.79 23.55C30.79 22.92 30.27 22.41 29.64 22.41Z" fill="#FF8C00"/>
4
+ <path d="M19.23 31.56C18.59 31.56 18.08 32.07 18.08 32.7C18.08 33.33 18.6 33.84 19.23 33.84H25.02C25.66 33.84 26.17 33.33 26.17 32.7C26.17 32.07 25.65 31.56 25.02 31.56H19.23Z" fill="#FF8C00"/>
5
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
6
+ <path d="M14.8801 25.9401C14.8801 25.4501 15.2401 25.0501 15.7801 25.0501C16.3201 25.0501 16.6801 25.4501 16.6801 25.9401C16.6801 26.4301 16.3201 26.8301 15.7801 26.8301C15.2401 26.8301 14.8801 26.4301 14.8801 25.9401Z" fill="#FF8C00"/>
7
+ <path d="M9.91999 33.17C11.09 32.23 11.94 31.5 11.94 30.91C11.94 30.52 11.69 30.34 11.3 30.34C10.98 30.34 10.72 30.55 10.49 30.75L9.85999 30.12C10.34 29.64 10.78 29.42 11.47 29.42C12.41 29.42 13.06 29.98 13.06 30.84C13.06 31.54 12.33 32.3 11.61 32.9C11.85 32.87 12.18 32.85 12.4 32.85H13.28V33.83H9.91999V33.17Z" fill="#FF8C00"/>
8
+ <path d="M14.88 33.03C14.88 32.54 15.24 32.14 15.78 32.14C16.32 32.14 16.68 32.54 16.68 33.03C16.68 33.52 16.32 33.92 15.78 33.92C15.24 33.92 14.88 33.53 14.88 33.03Z" fill="#FF8C00"/>
9
+ <path d="M20 5H11C10.45 5 10 5.45 10 6V18C10 18.55 10.45 19 11 19H20C20.55 19 21 18.55 21 18V6C21 5.45 20.55 5 20 5ZM15.51 6C16.4 6 17.13 6.75 17.12 7.66C17.12 8.56 16.38 9.3 15.5 9.29C14.6 9.29 13.88 8.55 13.88 7.64C13.88 6.73 14.61 6 15.51 6ZM13.55 10.21C13.6 9.94 13.8 9.78 14.07 9.78H16.91C17.21 9.78 17.4 9.94 17.45 10.24C17.54 10.66 17.62 11.08 17.7 11.5C17.74 11.75 17.68 11.97 17.48 12.13C17.02 12.48 16.52 12.77 15.96 12.93C15.54 13.06 15.14 12.99 14.75 12.84C14.32 12.66 13.91 12.43 13.54 12.15C13.34 11.99 13.25 11.77 13.3 11.52C13.38 11.08 13.46 10.64 13.55 10.21ZM19 17H12C11.72 17 11.5 16.78 11.5 16.5C11.5 16.22 11.72 16 12 16H19C19.28 16 19.5 16.22 19.5 16.5C19.5 16.78 19.28 17 19 17ZM19 15H12C11.72 15 11.5 14.78 11.5 14.5C11.5 14.22 11.72 14 12 14H19C19.28 14 19.5 14.22 19.5 14.5C19.5 14.78 19.28 15 19 15Z" fill="#2680EB"/>
10
+ <path d="M34.74 9.52L25.35 0.26C25.17 0.1 24.93 0 24.7 0H8.26C6.47 0 5 1.45 5 3.22V35.78C5 37.55 6.47 39 8.26 39H31.73C33.53 39 34.99 37.55 34.99 35.78V10.16C35 9.93 34.9 9.69 34.74 9.52ZM25.61 3.09L26.05 3.52L31.42 8.82L31.86 9.26H27.03C26.25 9.26 25.6 8.63 25.6 7.85V3.09H25.61ZM33.16 35.78C33.16 36.56 32.52 37.19 31.73 37.19H8.26C7.48 37.19 6.83 36.56 6.83 35.78V3.22C6.83 2.44 7.47 1.81 8.26 1.81H23.77V7.85C23.77 9.62 25.24 11.07 27.03 11.07H31.22L32.9 11.06H33.16V35.78Z" fill="#2680EB"/>
11
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M34.74 9.52L25.35 0.26C25.17 0.1 24.93 0 24.7 0H8.26C6.47 0 5 1.45 5 3.22V35.78C5 37.55 6.47 39 8.26 39H31.73C33.53 39 34.99 37.55 34.99 35.78V10.16C35 9.93 34.9 9.69 34.74 9.52ZM25.61 3.09L26.05 3.52L31.42 8.82L31.86 9.26H27.03C26.25 9.26 25.6 8.63 25.6 7.85V3.09H25.61ZM33.16 35.78C33.16 36.56 32.52 37.19 31.73 37.19H8.26C7.48 37.19 6.83 36.56 6.83 35.78V3.22C6.83 2.44 7.47 1.81 8.26 1.81H23.77V7.85C23.77 9.62 25.24 11.07 27.03 11.07H31.22L32.9 11.06H33.16V35.78Z" fill="#2680EB"/>
3
+ <path d="M25.64 16.06L23.39 14.32L22.27 13.46L20.17 11.83C20.81 10.98 21.16 9.97 21.17 8.92C21.17 7.61 20.64 6.36 19.68 5.44C18.73 4.52 17.44 4 16.09 4C14.74 4 13.44 4.52 12.49 5.44C11.54 6.36 11 7.61 11 8.92C11 9.21 11.03 9.5 11.09 9.78C11.23 9.61 11.45 9.5 11.69 9.5H12.02C11.99 9.31 11.97 9.12 11.97 8.92C11.96 8.13 12.2 7.36 12.65 6.7C13.1 6.04 13.74 5.53 14.49 5.22C15 5.02 15.54 4.91 16.09 4.91C16.35 4.91 16.61 4.94 16.87 4.99C17.67 5.14 18.41 5.51 18.98 6.06C19.57 6.62 19.96 7.33 20.13 8.1C20.29 8.87 20.21 9.68 19.9 10.4C19.59 11.13 19.07 11.76 18.39 12.19C17.72 12.64 16.92 12.87 16.11 12.88H16.09C15.75 12.88 15.42 12.84 15.1 12.75V13.44L15.76 13.45C16.04 13.46 16.28 13.6 16.42 13.84C17.28 13.79 18.11 13.53 18.84 13.07L23.26 18.39C23.3 18.43 23.35 18.47 23.39 18.51C23.78 18.83 24.25 19 24.69 19C25.12 19 25.52 18.85 25.84 18.55C26.48 17.93 26.4 16.8 25.64 16.06Z" fill="#2680EB"/>
4
+ <path d="M18.34 11.6C18.27 11.66 18.2 11.71 18.12 11.76C17.53 12.15 16.83 12.37 16.11 12.37H16.09C15.75 12.37 15.42 12.32 15.1 12.23V10.3C15.1 10.09 15.02 9.89 14.88 9.75H17.53C17.83 9.75 18.02 9.91 18.08 10.22C18.17 10.64 18.25 11.07 18.33 11.5C18.34 11.54 18.34 11.57 18.34 11.6Z" fill="#2680EB"/>
5
+ <path d="M16.09 9.25C15.18 9.25 14.44 8.49 14.44 7.57C14.44 6.64 15.19 5.89 16.1 5.9C17.01 5.9 17.75 6.66 17.74 7.59C17.74 8.51 16.99 9.26 16.09 9.25Z" fill="#2680EB"/>
6
+ <path d="M30.79 28.13C30.79 27.5 30.27 26.99 29.64 26.99H19.23C18.59 26.99 18.08 27.5 18.08 28.13C18.08 28.76 18.6 29.27 19.23 29.27H29.64C30.27 29.27 30.79 28.76 30.79 28.13Z" fill="#FF8C00"/>
7
+ <path d="M29.64 22.41H19.23C18.59 22.41 18.08 22.92 18.08 23.55C18.08 24.18 18.6 24.69 19.23 24.69H29.64C30.28 24.69 30.79 24.18 30.79 23.55C30.79 22.92 30.27 22.41 29.64 22.41Z" fill="#FF8C00"/>
8
+ <path d="M19.23 31.5601C18.59 31.5601 18.08 32.0701 18.08 32.7001C18.08 33.3301 18.6 33.8401 19.23 33.8401H25.02C25.66 33.8401 26.17 33.3301 26.17 32.7001C26.17 32.0701 25.65 31.5601 25.02 31.5601H19.23Z" fill="#FF8C00"/>
9
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
10
+ <path d="M14.88 25.9401C14.88 25.4501 15.24 25.05 15.78 25.05C16.32 25.05 16.68 25.4501 16.68 25.9401C16.68 26.4301 16.32 26.83 15.78 26.83C15.24 26.83 14.88 26.4301 14.88 25.9401Z" fill="#FF8C00"/>
11
+ <path d="M9.91999 33.17C11.09 32.23 11.94 31.5 11.94 30.91C11.94 30.52 11.69 30.34 11.3 30.34C10.98 30.34 10.72 30.55 10.49 30.75L9.85999 30.12C10.34 29.64 10.78 29.42 11.47 29.42C12.41 29.42 13.06 29.98 13.06 30.84C13.06 31.54 12.33 32.3 11.61 32.9C11.85 32.87 12.18 32.85 12.4 32.85H13.28V33.83H9.91999V33.17Z" fill="#FF8C00"/>
12
+ <path d="M14.88 33.03C14.88 32.54 15.24 32.14 15.78 32.14C16.32 32.14 16.68 32.54 16.68 33.03C16.68 33.52 16.32 33.92 15.78 33.92C15.24 33.92 14.88 33.53 14.88 33.03Z" fill="#FF8C00"/>
13
+ <path d="M16.5 19H9.5C9.22 19 9 18.78 9 18.5C9 18.22 9.22 18 9.5 18H16.5C16.78 18 17 18.22 17 18.5C17 18.78 16.78 19 16.5 19Z" fill="#FF8C00"/>
14
+ <path d="M13 17.28C12.92 17.28 12.85 17.25 12.79 17.19L10.04 14.45C9.95003 14.36 9.93003 14.24 9.98003 14.13C10.03 14.02 10.14 13.95 10.25 13.94H11.39V10.3C11.39 10.14 11.52 10 11.68 10H14.3C14.47 10 14.6 10.13 14.6 10.3V13.94H15.74C15.86 13.94 15.96 14.02 16.01 14.12C16.06 14.23 16.03 14.36 15.95 14.44L13.21 17.18C13.16 17.25 13.08 17.28 13 17.28Z" fill="#FF8C00"/>
15
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M34.74 9.52L25.35 0.26C25.17 0.1 24.93 0 24.7 0H8.26C6.47 0 5 1.45 5 3.22V35.78C5 37.55 6.47 39 8.26 39H31.73C33.53 39 34.99 37.55 34.99 35.78V10.16C35 9.93 34.9 9.69 34.74 9.52ZM25.61 3.09L26.05 3.52L31.42 8.82L31.86 9.26H27.03C26.25 9.26 25.6 8.63 25.6 7.85V3.09H25.61ZM33.16 35.78C33.16 36.56 32.52 37.19 31.73 37.19H8.26C7.48 37.19 6.83 36.56 6.83 35.78V3.22C6.83 2.44 7.47 1.81 8.26 1.81H23.77V7.85C23.77 9.62 25.24 11.07 27.03 11.07H31.22L32.9 11.06H33.16V35.78Z" fill="#2680EB"/>
3
+ <path d="M25.64 16.06L23.39 14.32L22.27 13.46L20.17 11.83C20.81 10.98 21.16 9.97 21.17 8.92C21.17 7.61 20.64 6.36 19.68 5.44C18.73 4.52 17.44 4 16.09 4C14.74 4 13.44 4.52 12.49 5.44C11.54 6.36 11 7.61 11 8.92C11 9.04 11.01 9.17 11.02 9.29C11.32 9.16 11.64 9.08 11.98 9.04C11.97 9 11.97 8.96 11.97 8.92C11.96 8.13 12.2 7.36 12.65 6.7C13.1 6.04 13.74 5.53 14.49 5.22C15 5.02 15.54 4.91 16.09 4.91C16.35 4.91 16.61 4.94 16.87 4.99C17.67 5.14 18.41 5.51 18.98 6.06C19.57 6.62 19.96 7.33 20.13 8.1C20.29 8.87 20.21 9.68 19.9 10.4C19.59 11.13 19.07 11.76 18.39 12.19C17.83 12.57 17.17 12.79 16.49 12.86C16.5 12.91 16.5 12.95 16.5 13C16.5 13.27 16.47 13.55 16.4 13.84C17.27 13.8 18.11 13.53 18.84 13.07L23.26 18.39C23.3 18.43 23.35 18.47 23.39 18.51C23.78 18.83 24.25 19 24.69 19C25.12 19 25.52 18.85 25.84 18.55C26.48 17.93 26.4 16.8 25.64 16.06Z" fill="#2680EB"/>
4
+ <path d="M18.34 11.6C18.27 11.66 18.2 11.71 18.12 11.76C17.62 12.09 17.04 12.3 16.44 12.35C16.27 11.27 15.67 10.35 14.82 9.75H17.53C17.83 9.75 18.02 9.91 18.08 10.22C18.17 10.64 18.25 11.07 18.33 11.5C18.34 11.54 18.34 11.57 18.34 11.6Z" fill="#2680EB"/>
5
+ <path d="M16.09 9.25C15.18 9.25 14.44 8.49 14.44 7.57C14.44 6.64 15.19 5.89 16.1 5.9C17.01 5.9 17.75 6.66 17.74 7.59C17.74 8.51 16.99 9.26 16.09 9.25Z" fill="#2680EB"/>
6
+ <path d="M30.79 28.13C30.79 27.5 30.27 26.99 29.64 26.99H19.23C18.59 26.99 18.08 27.5 18.08 28.13C18.08 28.76 18.6 29.27 19.23 29.27H29.64C30.27 29.27 30.79 28.76 30.79 28.13Z" fill="#FF8C00"/>
7
+ <path d="M29.64 22.41H19.23C18.59 22.41 18.08 22.92 18.08 23.55C18.08 24.18 18.6 24.69 19.23 24.69H29.64C30.28 24.69 30.79 24.18 30.79 23.55C30.79 22.92 30.27 22.41 29.64 22.41Z" fill="#FF8C00"/>
8
+ <path d="M19.23 31.56C18.59 31.56 18.08 32.07 18.08 32.7C18.08 33.33 18.6 33.84 19.23 33.84H25.02C25.66 33.84 26.17 33.33 26.17 32.7C26.17 32.07 25.65 31.56 25.02 31.56H19.23Z" fill="#FF8C00"/>
9
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
10
+ <path d="M14.8801 25.9401C14.8801 25.4501 15.2401 25.0501 15.7801 25.0501C16.3201 25.0501 16.6801 25.4501 16.6801 25.9401C16.6801 26.4301 16.3201 26.8301 15.7801 26.8301C15.2401 26.8301 14.8801 26.4301 14.8801 25.9401Z" fill="#FF8C00"/>
11
+ <path d="M9.91999 33.17C11.09 32.23 11.94 31.5 11.94 30.91C11.94 30.52 11.69 30.34 11.3 30.34C10.98 30.34 10.72 30.55 10.49 30.75L9.85999 30.12C10.34 29.64 10.78 29.42 11.47 29.42C12.41 29.42 13.06 29.98 13.06 30.84C13.06 31.54 12.33 32.3 11.61 32.9C11.85 32.87 12.18 32.85 12.4 32.85H13.28V33.83H9.91999V33.17Z" fill="#FF8C00"/>
12
+ <path d="M14.88 33.03C14.88 32.54 15.24 32.14 15.78 32.14C16.32 32.14 16.68 32.54 16.68 33.03C16.68 33.52 16.32 33.92 15.78 33.92C15.24 33.92 14.88 33.53 14.88 33.03Z" fill="#FF8C00"/>
13
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M9 13C9 11.07 10.57 9.5 12.5 9.5C14.43 9.5 16 11.07 16 13C16 15.63 12.5 19.5 12.5 19.5C12.5 19.5 9 15.63 9 13ZM11.25 13C11.25 13.69 11.81 14.25 12.5 14.25C13.19 14.25 13.75 13.69 13.75 13C13.75 12.31 13.19 11.75 12.5 11.75C11.81 11.75 11.25 12.31 11.25 13Z" fill="#FF8C00"/>
14
+ </svg>
@@ -1,7 +1,7 @@
1
1
  /** @jsxRuntime classic */
2
2
 
3
3
  /** @jsx jsx */
4
- import PropTypes from "prop-types";
4
+ import PropTypes from 'prop-types';
5
5
  import { jsx } from '@emotion/core';
6
6
 
7
7
  const Axis = ({
@@ -10,27 +10,28 @@ const Axis = ({
10
10
  axisWidth,
11
11
  getX,
12
12
  getY,
13
- maxX,
14
- maxY,
13
+ // maxX,
14
+ // maxY,
15
15
  minX,
16
- minY,
17
- unitWidth
16
+ minY // unitWidth,
17
+
18
18
  }) => {
19
- // drawn Oxygen coordinate systems for width and height are entered or by default
19
+ // drawn Oxygen coordinate systems for width and height are entered or by default
20
20
  return axisVisible ? jsx("g", {
21
- className: 'DGN-Axis-LineChart',
21
+ className: 'DGN-UI-LineChart-Axis',
22
22
  stroke: axisColor,
23
23
  strokeWidth: axisWidth
24
24
  }, jsx("line", {
25
25
  x1: getX(minX),
26
- y1: getY(minY),
27
- x2: getX(maxX + unitWidth + 0.5),
26
+ y1: getY(minY) // x2={getX(maxX + unitWidth + 0.5)}
27
+ ,
28
+ x2: '100%',
28
29
  y2: getY(minY)
29
30
  }), jsx("line", {
30
31
  x1: getX(minX),
31
32
  y1: getY(minX),
32
33
  x2: getX(minX),
33
- y2: getY(maxY + 10)
34
+ y2: '-10%'
34
35
  })) : null;
35
36
  };
36
37
 
@@ -1,7 +1,7 @@
1
1
  /** @jsxRuntime classic */
2
2
 
3
3
  /** @jsx jsx */
4
- import PropTypes from "prop-types";
4
+ import PropTypes from 'prop-types';
5
5
  import { jsx } from '@emotion/core';
6
6
 
7
7
  const Grid = ({
@@ -36,8 +36,9 @@ const Grid = ({
36
36
  gridY.push(jsx("line", {
37
37
  key: i,
38
38
  x1: getX(minX),
39
- y1: getY(i),
40
- x2: getX(maxX + unitWidth + 0.5),
39
+ y1: getY(i) // x2={getX(maxX + unitWidth + 0.5)}
40
+ ,
41
+ x2: '100%',
41
42
  y2: getY(i)
42
43
  }));
43
44
  }
@@ -1,8 +1,9 @@
1
1
  /** @jsxRuntime classic */
2
2
 
3
3
  /** @jsx jsx */
4
- import PropTypes from "prop-types";
4
+ import PropTypes from 'prop-types';
5
5
  import { jsx, css } from '@emotion/core';
6
+ import { color as colors } from '../../../styles/colors';
6
7
 
7
8
  const Path = ({
8
9
  data,
@@ -26,18 +27,18 @@ const Path = ({
26
27
  return colors;
27
28
  });
28
29
  const PathCSS = css`
29
- stroke: ${pathColor};
30
+ stroke: ${colors[pathColor] || pathColor};
30
31
  stroke-width: ${STROKE};
31
32
  stroke-linecap: round;
32
33
  stroke-linejoin: round;
33
34
  /* &:hover {
34
35
  cursor: pointer;
35
- stroke: ${pathColor};
36
+ stroke: ${colors[pathColor] || pathColor};
36
37
  stroke-linecap: round;
37
38
  stroke-linejoin: round;
38
39
  stroke-width: ${STROKEHover};
39
40
  } */
40
- `; // Properties of a line
41
+ `; // Properties of a line
41
42
  // I: - pointA (array) [x,y]: coordinates
42
43
  // - pointB (array) [x,y]: coordinates
43
44
  // O: - (object) { length: l, angle: a }: properties of the line
@@ -62,7 +63,7 @@ const Path = ({
62
63
  length: Math.sqrt(Math.pow(lengthX, 2) + Math.pow(lengthY, 2)),
63
64
  angle
64
65
  };
65
- }; // Position of a control point
66
+ }; // Position of a control point
66
67
  // I: - current (array) [x, y]: current point coordinates
67
68
  // - previous (array) [x, y]: previous point coordinates
68
69
  // - next (array) [x, y]: next point coordinates
@@ -102,7 +103,7 @@ const Path = ({
102
103
  return jsx("path", {
103
104
  d: d,
104
105
  css: PathCSS,
105
- fill: "none"
106
+ fill: 'none'
106
107
  });
107
108
  };
108
109
 
@@ -110,13 +111,13 @@ const Path = ({
110
111
 
111
112
  const svgPath = points => {
112
113
  // build the d attributes by looping over the points
113
- const d = points.reduce((acc, point, i, a) => i === 0 // if first point
114
- ? `M ${point[0]},${point[1]}` // else
115
- : `${acc} ${command(point, i, a)}`, '');
114
+ const d = points.reduce((acc, point, i, a) => i === 0 ? // if first point
115
+ `M ${point[0]},${point[1]}` : // else
116
+ `${acc} ${command(point, i, a)}`, '');
116
117
  return jsx("path", {
117
118
  d: d,
118
119
  css: PathCSS,
119
- fill: "none"
120
+ fill: 'none'
120
121
  });
121
122
  };
122
123
 
@@ -1,9 +1,10 @@
1
1
  /** @jsxRuntime classic */
2
2
 
3
3
  /** @jsx jsx */
4
- import PropTypes from "prop-types";
4
+ import PropTypes from 'prop-types';
5
5
  import { jsx, css } from '@emotion/core';
6
- import { typography } from "../../../styles/typography";
6
+ import { typography } from '../../../styles/typography';
7
+ import { color as colors } from '../../../styles/colors';
7
8
 
8
9
  const Points = ({
9
10
  data,
@@ -23,16 +24,17 @@ const Points = ({
23
24
  pointsVisible,
24
25
  strokeWidth,
25
26
  onClick,
26
- unitWidth
27
+ unitWidth,
28
+ pointHoverAlignment
27
29
  }) => {
28
30
  const PointCSS = css`
29
- fill: ${pointsColor};
31
+ fill: ${colors[pointsColor] || pointsColor};
30
32
  stroke: ${pointsStrokeColor};
31
33
  stroke-width: ${strokeWidth};
32
34
  &:hover {
33
35
  cursor: pointer;
34
36
  fill: #fff;
35
- stroke: ${pointsColor};
37
+ stroke: ${colors[pointsColor] || pointsColor};
36
38
  stroke-width: ${pointsStrokeHover};
37
39
  }
38
40
  `;
@@ -170,78 +172,69 @@ const Points = ({
170
172
  Width += 90;
171
173
  }
172
174
 
173
- if (getX(point.x + unitWidth / 1.5) < 20) {
174
- return jsx("g", {
175
- id: `tooltipLine` + i,
176
- className: 'DGN-Tooltip-Bar',
177
- style: {
178
- display: 'none'
179
- },
180
- transform: `translate(${getX(point.x + unitWidth / 1.5) + 4}, ${getY(point.quantity)})`
181
- }, jsx("path", {
182
- d: rightTooltipPath(Width, 20, 6, 4),
183
- fill: pointsColor,
184
- stroke: pointsColor,
185
- style: {
186
- filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
187
- }
188
- }), jsx("text", {
189
- x: x,
190
- y: y,
191
- dy: "1em",
192
- css: textChartCSS,
193
- fill: "#fff"
194
- }, point.quantity));
195
- }
196
-
197
- if (getX(point.x + unitWidth / 1.5) > viewBoxWidth) {
198
- return jsx("g", {
199
- id: `tooltipLine` + i,
200
- className: 'DGN-Tooltip-Bar',
201
- style: {
202
- display: 'none'
203
- },
204
- transform: `translate(${getX(point.x + unitWidth / 1.5) - 4}, ${getY(point.quantity)})`
205
- }, jsx("path", {
206
- d: leftTooltipPath(Width, 20, 6, 4),
207
- fill: pointsColor,
208
- stroke: pointsColor,
209
- style: {
210
- filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
211
- }
212
- }), jsx("text", {
213
- x: x1,
214
- y: y1,
215
- dy: "1em",
216
- css: textChartCSS,
217
- fill: "#fff"
218
- }, point.quantity));
219
- }
220
-
221
- if (getY(point.quantity) > 10) {
222
- return jsx("g", {
223
- id: `tooltipLine` + i,
224
- className: 'DGN-Tooltip-Bar',
225
- style: {
226
- display: 'none'
227
- },
228
- transform: `translate(${getX(point.x + unitWidth / 1.5)}, ${getY(point.quantity) - 4})`
229
- }, jsx("path", {
230
- d: topTooltipPath(Width, 20, 6, 4),
231
- fill: pointsColor,
232
- stroke: pointsColor,
233
- style: {
234
- filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
235
- }
236
- }), jsx("text", {
237
- y: "-23",
238
- dy: "1em",
239
- css: textChartCSS,
240
- fill: "#fff"
241
- }, point.quantity));
242
- }
243
-
244
- return jsx("g", {
175
+ const toolTipRight = jsx("g", {
176
+ id: `tooltipLine` + i,
177
+ className: 'DGN-Tooltip-Bar',
178
+ style: {
179
+ display: 'none'
180
+ },
181
+ transform: `translate(${getX(point.x + unitWidth / 1.5) + 4}, ${getY(point.quantity)})`
182
+ }, jsx("path", {
183
+ d: rightTooltipPath(Width, 20, 6, 4),
184
+ fill: colors[pointsColor] || pointsColor,
185
+ stroke: colors[pointsColor] || pointsColor,
186
+ style: {
187
+ filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
188
+ }
189
+ }), jsx("text", {
190
+ x: x,
191
+ y: y,
192
+ dy: "1em",
193
+ css: textChartCSS,
194
+ fill: "#fff"
195
+ }, point.quantity));
196
+ const toolTipLeft = jsx("g", {
197
+ id: `tooltipLine` + i,
198
+ className: 'DGN-Tooltip-Bar',
199
+ style: {
200
+ display: 'none'
201
+ },
202
+ transform: `translate(${getX(point.x + unitWidth / 1.5) - 4}, ${getY(point.quantity)})`
203
+ }, jsx("path", {
204
+ d: leftTooltipPath(Width, 20, 6, 4),
205
+ fill: colors[pointsColor] || pointsColor,
206
+ stroke: colors[pointsColor] || pointsColor,
207
+ style: {
208
+ filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
209
+ }
210
+ }), jsx("text", {
211
+ x: x1,
212
+ y: y1,
213
+ dy: "1em",
214
+ css: textChartCSS,
215
+ fill: "#fff"
216
+ }, point.quantity));
217
+ const toolTipTop = jsx("g", {
218
+ id: `tooltipLine` + i,
219
+ className: 'DGN-Tooltip-Bar',
220
+ style: {
221
+ display: 'none'
222
+ },
223
+ transform: `translate(${getX(point.x + unitWidth / 1.5)}, ${getY(point.quantity) - 4})`
224
+ }, jsx("path", {
225
+ d: topTooltipPath(Width, 20, 6, 4),
226
+ fill: colors[pointsColor] || pointsColor,
227
+ stroke: colors[pointsColor] || pointsColor,
228
+ style: {
229
+ filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
230
+ }
231
+ }), jsx("text", {
232
+ y: "-23",
233
+ dy: "1em",
234
+ css: textChartCSS,
235
+ fill: "#fff"
236
+ }, point.quantity));
237
+ const toolTipBottom = jsx("g", {
245
238
  id: `tooltipLine` + i,
246
239
  className: 'DGN-Tooltip-Bar',
247
240
  style: {
@@ -250,8 +243,8 @@ const Points = ({
250
243
  transform: `translate(${getX(point.x + unitWidth / 1.5)}, ${getY(point.quantity) + 4})`
251
244
  }, jsx("path", {
252
245
  d: bottomTooltipPath(Width, 20, 6, 4),
253
- fill: pointsColor,
254
- stroke: pointsColor,
246
+ fill: colors[pointsColor] || pointsColor,
247
+ stroke: colors[pointsColor] || pointsColor,
255
248
  style: {
256
249
  filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.15))'
257
250
  }
@@ -261,6 +254,37 @@ const Points = ({
261
254
  css: textChartCSS,
262
255
  fill: "#fff"
263
256
  }, point.quantity));
257
+
258
+ if (pointHoverAlignment) {
259
+ switch (pointHoverAlignment) {
260
+ case 'right':
261
+ return toolTipRight;
262
+
263
+ case 'left':
264
+ return toolTipLeft;
265
+
266
+ case 'top':
267
+ return toolTipTop;
268
+
269
+ case 'bottom':
270
+ default:
271
+ return toolTipBottom;
272
+ }
273
+ } else {
274
+ if (getX(point.x + unitWidth / 1.5) < 20) {
275
+ return toolTipRight;
276
+ }
277
+
278
+ if (getX(point.x + unitWidth / 1.5) > viewBoxWidth) {
279
+ return toolTipLeft;
280
+ }
281
+
282
+ if (getY(point.quantity) > 10) {
283
+ return toolTipTop;
284
+ }
285
+
286
+ return toolTipBottom;
287
+ }
264
288
  };
265
289
 
266
290
  return pointsVisible ? jsx("g", {
@@ -332,7 +356,10 @@ Points.propTypes = {
332
356
  pointsVisible: PropTypes.bool,
333
357
 
334
358
  /** the unitWidth */
335
- unitWidth: PropTypes.number
359
+ unitWidth: PropTypes.number,
360
+
361
+ /** the direction to display tootip */
362
+ pointHoverAlignment: PropTypes.oneOf(['top', 'bottom', 'left', 'right'])
336
363
  };
337
364
  Points.defaultProps = {
338
365
  getX: x => x,
@@ -1,17 +1,17 @@
1
1
  /** @jsxRuntime classic */
2
2
 
3
3
  /** @jsx jsx */
4
- import PropTypes from "prop-types";
5
- import { memo, forwardRef } from "react";
4
+ import PropTypes from 'prop-types';
5
+ import { memo, forwardRef } from 'react';
6
6
  import { jsx } from '@emotion/core';
7
7
  import Axis from './Axis';
8
8
  import Labels from './Labels';
9
9
  import Grid from './Grid';
10
- import Points from './Point';
11
- import Title from './Title';
10
+ import Points from './Point'; // import Title from './Title';
11
+
12
12
  import Path from './Path';
13
13
  import { randomString } from '../../../utils';
14
- const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
14
+ const LineChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
15
15
  labelsVisible,
16
16
  labelsCharacterWidth,
17
17
  labelsCountY,
@@ -21,8 +21,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
21
21
  viewBoxWidth,
22
22
  labelsOffsetX,
23
23
  labelsHeightX,
24
- unitWidth,
24
+ // unitWidth,
25
25
  style,
26
+ className,
26
27
  ...props
27
28
  }, ref) => {
28
29
  const colors = ['#FFD600', '#FFA800', '#FF7A00', '#FF0000', '#B61414', '#8FFF00', '#629000', '#019A5A', '#00C875', '#00FFD1', '#4200FF', '#0075FF', '#0095FF', '#00C2FF', '#00E0FF', '#8F00FF', '#BD00FF', '#FA00FF', '#FF00B8', '#FF3D71'];
@@ -41,7 +42,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
41
42
  };
42
43
 
43
44
  const getMinX = () => {
44
- return dataSource.length > 0 ? dataSource[0].x : 0;
45
+ var _dataSource$;
46
+
47
+ return (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? (_dataSource$ = dataSource[0]) === null || _dataSource$ === void 0 ? void 0 : _dataSource$.x : 0;
45
48
  };
46
49
 
47
50
  const getMinY = () => {
@@ -49,12 +52,16 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
49
52
  };
50
53
 
51
54
  const getMaxX = () => {
52
- return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
55
+ var _dataSource;
56
+
57
+ return (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? (_dataSource = dataSource[(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) - 1]) === null || _dataSource === void 0 ? void 0 : _dataSource.x : 0;
53
58
  };
54
59
 
55
60
  const getMaxY = () => {
61
+ var _dataSource$2;
62
+
56
63
  const yStep = labelsCountY > 0 ? labelsCountY : 1;
57
- const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
64
+ const maxY = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, (_dataSource$2 = dataSource[0]) === null || _dataSource$2 === void 0 ? void 0 : _dataSource$2.quantity) : 0;
58
65
  return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
59
66
  };
60
67
 
@@ -94,13 +101,15 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
94
101
  };
95
102
  return jsx("svg", {
96
103
  id: id,
97
- className: 'DGN-CUI-LineChart',
104
+ className: ['DGN-CUI-LineChart', className].join(' ').trim().replace(/\s+/g, ' '),
98
105
  viewBox: `0 0 ${Math.abs(viewBoxWidth)} ${Math.abs(viewBoxHeight)}`,
99
106
  style: {
100
107
  display: 'block',
101
108
  overflow: 'visible',
102
- margin: `${getLabelsYWidth() * 2}`
103
- }
109
+ margin: `${getLabelsYWidth() * 2}`,
110
+ ...style
111
+ },
112
+ ref: ref
104
113
  }, jsx(Axis, { ...props,
105
114
  ...commonProps
106
115
  }), jsx(Grid, { ...props,
@@ -121,7 +130,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
121
130
  ...commonProps
122
131
  }));
123
132
  }));
124
- BarChart.defaultProps = {
133
+ LineChart.defaultProps = {
134
+ style: {},
135
+ className: '',
125
136
  data: [],
126
137
  viewBoxHeight: 200,
127
138
  viewBoxWidth: 500,
@@ -130,7 +141,12 @@ BarChart.defaultProps = {
130
141
  ...Points.defaultProps,
131
142
  ...Grid.defaultProps
132
143
  };
133
- BarChart.propTypes = {
144
+ LineChart.propTypes = {
145
+ /** style inline for component */
146
+ style: PropTypes.object,
147
+
148
+ /** className for component */
149
+ className: PropTypes.string,
134
150
  data: PropTypes.array.isRequired,
135
151
 
136
152
  /** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
@@ -154,7 +170,7 @@ BarChart.propTypes = {
154
170
  /** show data information when hovering in the area containing the column */
155
171
  pointsIsHoverOnZone: PropTypes.bool,
156
172
 
157
- /** show or hiden point */
173
+ /** show or hidden point */
158
174
  pointsVisible: PropTypes.bool,
159
175
 
160
176
  /** change the inner color of the point button */
@@ -172,11 +188,14 @@ BarChart.propTypes = {
172
188
  /** The color of the line drawn is the default color according to the data returned from the API, otherwise it will be generated by the design. */
173
189
  pathColor: PropTypes.string,
174
190
 
175
- /** show or hiden the line to be drawn smooth */
191
+ /** show or hidden the line to be drawn smooth */
176
192
  Smooth: PropTypes.bool,
193
+
194
+ /** the direction to display tootip */
195
+ pointHoverAlignment: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
177
196
  ...Axis.propTypes,
178
197
  ...Labels.propTypes,
179
198
  ...Points.propTypes,
180
199
  ...Grid.propTypes
181
200
  };
182
- export default BarChart;
201
+ export default LineChart;
@@ -459,7 +459,7 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
459
459
  const icon = getIconFromData(data);
460
460
 
461
461
  if (multiple && selectBox) {
462
- const checked = currentValue[unique].includes(value);
462
+ const checked = Array.isArray(currentValue[unique]) ? currentValue[unique].includes(value) : [currentValue[unique]].includes(value);
463
463
  items.push(jsx("div", {
464
464
  key: index,
465
465
  css: !itemDisabled ? _DropdownItemCSS : [DisabledCSS, _DropdownItemCSS],
@@ -616,7 +616,7 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
616
616
  let item = null;
617
617
 
618
618
  if (multiple && selectBox) {
619
- const checked = currentValue[unique].includes(value);
619
+ const checked = Array.isArray(currentValue[unique]) ? currentValue[unique].includes(value) : [currentValue[unique]].includes(value);
620
620
  item = jsx(Checkbox, {
621
621
  defaultChecked: checked,
622
622
  style: {
@@ -899,7 +899,7 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
899
899
  }
900
900
  }
901
901
 
902
- if (closeAfterSelect) {
902
+ if (closeAfterSelect === true || closeAfterSelect === undefined && !multiple) {
903
903
  closeDropdown();
904
904
  }
905
905
  };
@@ -1757,7 +1757,6 @@ Dropdown.defaultProps = {
1757
1757
  multiple: false,
1758
1758
  allowSearch: false,
1759
1759
  selectBox: false,
1760
- closeAfterSelect: true,
1761
1760
  inputProps: {},
1762
1761
  formStyle: {},
1763
1762
  dataSource: [],
@@ -5,66 +5,68 @@ import { memo, forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { jsx, css } from '@emotion/core';
7
7
  import { Typography } from '../../';
8
- import theme from '../../../theme/settings';
9
8
  import { getGlobal } from '../../../global';
9
+ import theme from '../../../theme/settings';
10
+ const {
11
+ colors: {
12
+ system: {
13
+ disabled: systemDisabled
14
+ },
15
+ semantic: {
16
+ success,
17
+ warning,
18
+ danger,
19
+ info
20
+ }
21
+ },
22
+ spacing
23
+ } = theme;
24
+ const colorMap = new Map([['default', danger], ['success', success], ['warning', warning], ['danger', danger], ['info', info]]);
10
25
  const HelperText = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
11
26
  disabled,
12
27
  status,
13
28
  className,
29
+ style,
14
30
  children,
15
- ...props
31
+ id
16
32
  }, ref) => {
17
- /* Start styled */
18
- const HelperTextRoot = css`
19
- margin-top: 4px;
20
- &.info {
21
- color: ${theme.colors.info};
22
- }
23
- &.success {
24
- color: ${theme.colors.success};
25
- }
26
- &.warning {
27
- color: ${theme.colors.warning};
28
- }
29
- &.danger {
30
- color: ${theme.colors.danger};
31
- }
32
- &.disabled {
33
- color: ${theme.colors.disabled};
34
- }
35
- `;
36
- /* End styled */
37
-
33
+ const color = colorMap.get(status);
38
34
  return jsx(Typography, {
39
35
  ref: ref,
36
+ id: id,
40
37
  type: 'p3',
41
- color: theme.colors.danger,
38
+ color: disabled ? systemDisabled : color,
42
39
  fullWidth: false,
43
- css: HelperTextRoot,
44
- className: ['DGN-UI-HelperText', className, status, disabled ? 'disabled' : ''].join(' ').trim(),
45
- ...props
40
+ css: HelperTextRootCSS,
41
+ className: ['DGN-UI-HelperText', className].join(' ').trim().replace(/\s+/g, ' '),
42
+ style: style,
43
+ lineClamp: 1
46
44
  }, typeof children === 'boolean' ? getGlobal('thisFieldIsRequired') : children);
47
45
  }));
46
+ const HelperTextRootCSS = css`
47
+ margin-top: ${spacing()}px;
48
+ `;
48
49
  HelperText.defaultProps = {
49
50
  disabled: false,
50
51
  status: 'default',
51
52
  className: '',
53
+ style: {},
52
54
  children: ''
53
55
  };
54
56
  HelperText.propTypes = {
55
- /** prevent all event if true */
57
+ /** If true, the component is disabled. */
56
58
  disabled: PropTypes.bool,
57
59
 
58
60
  /** status type to display color for input (only available for type is inform) */
59
61
  status: PropTypes.oneOf(['default', 'warning', 'success', 'danger', 'info']),
60
62
 
61
- /** class use in for helper text */
63
+ /** Class for component. */
62
64
  className: PropTypes.string,
63
65
 
64
- /** the content to display in HelperText */
65
- children: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
66
+ /** Style inline of component. */
67
+ style: PropTypes.object,
66
68
 
67
- /** any props else */
68
- props: PropTypes.any
69
+ /** Content to display in component. */
70
+ children: PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
69
71
  };
70
72
  export default HelperText;
@@ -221,14 +221,14 @@ const NumberInput = /*#__PURE__*/forwardRef(({
221
221
  e.preventDefault();
222
222
  } // key arrow down
223
223
  else if (keyCode === 40) {
224
- _onInput({ ...e,
225
- target: { ...e.target,
226
- value: Number(convertMoneyToNumber(value) || 0) - step
227
- }
228
- });
224
+ _onInput({ ...e,
225
+ target: { ...e.target,
226
+ value: Number(convertMoneyToNumber(value) || 0) - step
227
+ }
228
+ });
229
229
 
230
- e.preventDefault();
231
- } // disabled negative
230
+ e.preventDefault();
231
+ } // disabled negative
232
232
 
233
233
 
234
234
  const disabled180 = (keyCode === 189 || keyCode === 109) && (disabledNegative || value.includes('-')); // Block event if include conditions
@@ -3,8 +3,9 @@
3
3
  /** @jsx jsx */
4
4
  import { jsx, css } from '@emotion/core';
5
5
  import PropTypes from 'prop-types';
6
- import React, { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
6
+ import React, { forwardRef, memo, useEffect, useMemo, useRef } from 'react';
7
7
  import { Cancel as CancelIcon, Clock as ClockIcon } from '../../../icons';
8
+ import HelperText from '../helper-text';
8
9
  import { randomString, useOnClickOutside } from '../../../utils';
9
10
  import theme from '../../../theme/settings';
10
11
  import Swiper from './swiper';
@@ -432,21 +433,10 @@ const TimePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
432
433
  }
433
434
  `
434
435
  },
435
- error: {
436
- outlined: css`
437
- color: ${theme.colors.danger};
438
- ${typography.paragraph3};
439
- margin-top: 8px;
440
- pointer-events: none;
441
- `,
442
- underlined: css`
443
- color: ${theme.colors.danger};
444
- ${typography.paragraph3};
445
- bottom: -20px;
446
- position: absolute;
447
- pointer-events: none;
448
- `
449
- },
436
+ error: css`
437
+ position: absolute;
438
+ top: 100%;
439
+ `,
450
440
  clock: {
451
441
  container: css`
452
442
  background-color: white;
@@ -762,9 +752,10 @@ const TimePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
762
752
  onChange: selected => setInputSecond(selected),
763
753
  parentNode: swiperWrapperSecondsRef
764
754
  })) : null), [activeHeight, activeWidth, allowSeconds, defaultValue, disabled, error, value, viewType]);
765
- const ErrorMemo = useMemo(() => error && jsx("span", {
766
- css: styles.error[viewType]
767
- }, error), [error]);
755
+ const ErrorMemo = useMemo(() => error && jsx(HelperText, {
756
+ css: styles.error,
757
+ disabled: disabled
758
+ }, error), [error, disabled]);
768
759
  const MainMemo = useMemo(() => jsx("div", {
769
760
  className: IDs.main,
770
761
  css: styles.main[viewType],
@@ -1,8 +1,9 @@
1
1
  import { css } from '@emotion/core';
2
+ import { alignCenter, borderBox, cursorPointer, displayBlock, displayInlineBlock, flexRow, positionRelative } from '../../styles/general';
2
3
  import theme from '../../theme/settings';
3
- export const TreeViewRoot = css`
4
- display: block;
5
- position: relative;
4
+ export const TreeViewRootCSS = css`
5
+ ${displayBlock};
6
+ ${positionRelative};
6
7
  .DGN-UI-Accordion {
7
8
  box-shadow: none !important;
8
9
  .DGN-UI-Accordion-Summary {
@@ -10,20 +11,19 @@ export const TreeViewRoot = css`
10
11
  padding: 0;
11
12
  border-radius: 0;
12
13
  &.focus {
13
- background-color: ${theme.colors.focus};
14
+ background-color: ${theme.colors.focus};
14
15
  }
15
16
  .Accordion-Icon-Root {
16
- display: flex;
17
+ ${flexRow};
17
18
  margin-right: 4px;
18
19
  }
19
20
  }
20
21
  .DGN-UI-Accordion-Details-Content {
21
22
  padding: 0;
22
- margin-left: 16px;
23
23
  border-radius: 0;
24
24
  }
25
25
  .Accordion-Icon-Root {
26
- display: flex;
26
+ ${flexRow};
27
27
  transition: opacity 0.2s ease-out;
28
28
  opacity: 1;
29
29
  &.DGN-Invisible {
@@ -36,29 +36,30 @@ export const TreeViewRoot = css`
36
36
  }
37
37
  .TreeView-All,
38
38
  .TreeView-Content {
39
- display: block;
40
- position: relative;
39
+ ${displayBlock};
40
+ ${positionRelative};
41
41
  .DGN-UI-Accordion {
42
42
  margin-bottom: 0;
43
43
  }
44
44
  }
45
45
  .TreeView-Item-Checkbox {
46
- display: inline-block;
47
- position: relative;
46
+ ${displayInlineBlock};
47
+ ${positionRelative};
48
48
  height: 100%;
49
49
  margin-right: 8px;
50
50
  }
51
51
  .TreeView-Item {
52
- display: flex;
53
- position: relative;
54
- align-items: center;
52
+ ${flexRow};
53
+ ${positionRelative};
54
+ ${alignCenter};
55
+ ${borderBox};
55
56
  min-height: 40px;
56
57
  text-align: left;
57
58
  color: ${theme.colors.text.main};
58
- box-sizing: border-box;
59
+ width: 100%;
59
60
  &.non-child {
61
+ ${cursorPointer};
60
62
  transition: background-color 300ms ease;
61
- cursor: pointer;
62
63
  &.disabled {
63
64
  color: ${theme.colors.disabled};
64
65
  cursor: no-drop;
@@ -5,7 +5,7 @@ import { memo, useMemo, useState, useEffect, useRef, forwardRef, Fragment, useIm
5
5
  import { render } from 'react-dom';
6
6
  import PropTypes from 'prop-types';
7
7
  import { jsx } from '@emotion/core';
8
- import { TreeViewRoot } from './css';
8
+ import { TreeViewRootCSS } from './css';
9
9
  import { Accordion, AccordionSummary, AccordionDetails, Typography, Checkbox, Divider, InputBase, ButtonIcon } from '..';
10
10
  import { mapParent, randomString, removeUnicode } from '../../utils';
11
11
  import { getGlobal } from '../../global';
@@ -63,7 +63,8 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
63
63
  input.nextElementSibling.classList[determinate ? 'add' : 'remove']('determinate');
64
64
  input.nextElementSibling.classList[determinate ? 'remove' : 'add']('indeterminate');
65
65
  }
66
- };
66
+ }; // eslint-disable-next-line no-unused-vars
67
+
67
68
 
68
69
  const triggerCheckboxRecursion = (nodes, isChecked) => {
69
70
  nodes.forEach(el => {
@@ -77,7 +78,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
77
78
  };
78
79
 
79
80
  const checkedParentFollowValue = nodes => {
80
- if (nodes && nodes.length) {
81
+ if (nodes && nodes !== null && nodes !== void 0 && nodes.length) {
81
82
  nodes.forEach(node => {
82
83
  if (!node.classList.contains('non-child')) {
83
84
  const input = node.firstChild.querySelector('input');
@@ -147,7 +148,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
147
148
  } else {
148
149
  input.checked = true;
149
150
 
150
- if (checkedQuantity === childNodes.length && checkedQuantity === determinateQuantity) {
151
+ if (checkedQuantity === (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) && checkedQuantity === determinateQuantity) {
151
152
  if (!input.classList.contains('determinate')) {
152
153
  determinateCheckbox(input, true);
153
154
  }
@@ -238,10 +239,12 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
238
239
  node = node.parentNode;
239
240
 
240
241
  if (node.classList.contains('DGN-UI-Accordion') && node.firstChild.classList.contains('DGN-UI-Accordion-Summary')) {
242
+ var _node$querySelectorAl;
243
+
241
244
  const checkbox = node.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild; // Trường hợp phải set về false để xét các input đã check không bao gồm node này
242
245
 
243
246
  checkbox.firstChild.checked = isChecked;
244
- const mustDisabled = !!node.querySelectorAll('input:checked').length; // Nếu có ít nhất một input con được check thì phải checked cho input này
247
+ const mustDisabled = !!((_node$querySelectorAl = node.querySelectorAll('input:checked')) !== null && _node$querySelectorAl !== void 0 && _node$querySelectorAl.length); // Nếu có ít nhất một input con được check thì phải checked cho input này
245
248
 
246
249
  checkbox.firstChild.checked = mustDisabled;
247
250
  determinateCheckbox(checkbox.firstChild, !mustDisabled);
@@ -261,9 +264,11 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
261
264
 
262
265
  const setValue = (data, isChecked) => {
263
266
  if (multiple && multipleValueMode !== 'single') {
267
+ var _data$childItems;
268
+
264
269
  currentValue[unique][typeof data === 'object' ? data[valueExpr] : data] = isChecked;
265
270
 
266
- if (data.childItems && data.childItems.length) {
271
+ if (data.childItems && (_data$childItems = data.childItems) !== null && _data$childItems !== void 0 && _data$childItems.length) {
267
272
  data.childItems.forEach(d => {
268
273
  setValue(d, isChecked);
269
274
  });
@@ -287,7 +292,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
287
292
  };
288
293
 
289
294
  const setValueIntoInput = data => {
290
- if (!data || !data.length) {
295
+ if (!data || !(data !== null && data !== void 0 && data.length)) {
291
296
  inputValueRef.current.value = '';
292
297
  clearIconRef.current.style.opacity = 0;
293
298
  return;
@@ -334,6 +339,8 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
334
339
  const checkBoxEl = currentTarget.querySelector('.TreeView-Item-Checkbox');
335
340
 
336
341
  if (multiple) {
342
+ var _value;
343
+
337
344
  let checked = false;
338
345
  let inputEl = null; // Click on text (not checkbox)
339
346
 
@@ -378,7 +385,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
378
385
  result.push(...Object.keys(currentValue[unique]).filter(v => currentValue[unique][v]));
379
386
  value = result;
380
387
 
381
- if (value.length) {
388
+ if ((_value = value) !== null && _value !== void 0 && _value.length) {
382
389
  data = dataSource.filter(obj => value.includes(typeof obj === 'object' ? obj[valueExpr] : obj));
383
390
  } else {
384
391
  data = [];
@@ -529,7 +536,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
529
536
  if (entry.classList.contains('TreeView-Item-contain-children-active')) {
530
537
  const hiddenEls = entry.querySelectorAll('.DGN-Hidden, .DGN-Invisible');
531
538
 
532
- if (hiddenEls && hiddenEls.length) {
539
+ if (hiddenEls && hiddenEls !== null && hiddenEls !== void 0 && hiddenEls.length) {
533
540
  hiddenEls.forEach(hiddenEl => hiddenEl.classList.remove('DGN-Hidden', 'DGN-Invisible'));
534
541
  }
535
542
  }
@@ -545,7 +552,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
545
552
  });
546
553
  const activeEls = ref.current.querySelectorAll('.TreeView-Item-active');
547
554
 
548
- if (!disabledBoldResult && activeEls && activeEls.length) {
555
+ if (!disabledBoldResult && activeEls && activeEls !== null && activeEls !== void 0 && activeEls.length) {
549
556
  activeEls.forEach(activeEl => {
550
557
  activeEl.classList.remove('TreeView-Item-active', 'TreeView-Item-contain-children-active');
551
558
  });
@@ -580,12 +587,12 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
580
587
  };
581
588
 
582
589
  const renderData = (data, keyArr) => {
583
- const pattern = keyArr.join('|').replace(/([\{\}])/g, '\\$1');
590
+ const pattern = keyArr.join('|').replace(/([{}])/g, '\\$1');
584
591
  const separatorArr = displayExpr.split(new RegExp(pattern));
585
592
  let str = '';
586
593
  let i = 0;
587
594
 
588
- for (i; i < keyArr.length; i++) {
595
+ for (i; i < (keyArr === null || keyArr === void 0 ? void 0 : keyArr.length); i++) {
589
596
  str += separatorArr[i] + (data[keyArr[i].replace(/\W/g, '')] !== undefined ? data[keyArr[i].replace(/\W/g, '')] : keyArr[i]);
590
597
  }
591
598
 
@@ -630,7 +637,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
630
637
  const focusClass = isTrue && !selectBox && !multiple ? 'focus' : '';
631
638
  const childItems = data.childItems; // is Summary
632
639
 
633
- if (childItems && childItems.length) {
640
+ if (childItems && childItems !== null && childItems !== void 0 && childItems.length) {
634
641
  const id = randomString(6, {
635
642
  allowSymbol: false,
636
643
  allowNumber: false
@@ -647,7 +654,10 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
647
654
  className: 'TreeView'
648
655
  },
649
656
  className: focusClass,
650
- onClick: multiple || selectBox || onChange ? e => onClickHandler(e, data) : undefined
657
+ onClick: multiple || selectBox || onChange ? e => onClickHandler(e, data) : undefined,
658
+ style: {
659
+ paddingLeft: 16 * level
660
+ }
651
661
  }, jsx("div", {
652
662
  className: 'TreeView-Item'
653
663
  }, (selectBox || multiple) && jsx("span", {
@@ -665,6 +675,9 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
665
675
 
666
676
  return jsx("div", {
667
677
  className: 'TreeView-Item non-child ' + focusClass,
678
+ style: {
679
+ paddingLeft: 34 + 16 * level
680
+ },
668
681
  onClick: multiple || selectBox || onChange ? e => onClickHandler(e, data) : undefined,
669
682
  key: index,
670
683
  tabIndex: "-1"
@@ -701,11 +714,13 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
701
714
  }
702
715
  }, [searchDelayTime]);
703
716
  useEffect(() => {
717
+ var _value2;
718
+
704
719
  dataSource.forEach(data => {
705
720
  currentValue[unique][typeof data === 'object' ? data[valueExpr] : data] = false;
706
721
  });
707
722
 
708
- if (value && value.length) {
723
+ if (value && (_value2 = value) !== null && _value2 !== void 0 && _value2.length) {
709
724
  value.forEach(v => {
710
725
  currentValue[unique][v] = true;
711
726
  });
@@ -720,7 +735,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
720
735
  if (multipleValueMode !== 'single') {
721
736
  const childNodes = Array.from(ref.current.childNodes);
722
737
 
723
- if (childNodes && childNodes.length) {
738
+ if (childNodes && childNodes !== null && childNodes !== void 0 && childNodes.length) {
724
739
  checkedParentFollowValue(childNodes);
725
740
  }
726
741
 
@@ -780,7 +795,9 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
780
795
  }
781
796
  }, [disabled]);
782
797
  useEffect(() => {
783
- if (Object.keys(itemsRenderAsync[unique]).length) {
798
+ var _Object$keys;
799
+
800
+ if ((_Object$keys = Object.keys(itemsRenderAsync[unique])) !== null && _Object$keys !== void 0 && _Object$keys.length) {
784
801
  Object.keys(itemsRenderAsync[unique]).forEach(async key => {
785
802
  await renderDataAsync(key, itemsRenderAsync[unique][key]);
786
803
  });
@@ -798,19 +815,21 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
798
815
  handleCheckbox,
799
816
  get: () => ref.current
800
817
  }));
801
- const TreeViewComp = useMemo(() => {
818
+ return useMemo(() => {
819
+ var _value3;
820
+
802
821
  if (typeof value === 'string') {
803
822
  value = [value];
804
823
  }
805
824
 
806
- if (!multiple && value.length > 1) {
825
+ if (!multiple && ((_value3 = value) === null || _value3 === void 0 ? void 0 : _value3.length) > 1) {
807
826
  value.length = 1;
808
827
  }
809
828
 
810
829
  itemsRenderAsync[unique] = {};
811
- const sync = dataSource.length > renderAsyncWithLength;
830
+ const sync = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > renderAsyncWithLength;
812
831
  return jsx("div", {
813
- css: TreeViewRoot,
832
+ css: TreeViewRootCSS,
814
833
  className: 'DGN-UI-TreeView' + (disabled ? ' disabled' : '')
815
834
  }, showSelectedItems && jsx(InputBase, {
816
835
  inputRef: inputValueRef,
@@ -845,10 +864,9 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
845
864
  })), jsx(Divider, null)), jsx("div", {
846
865
  ref: ref,
847
866
  ...props,
848
- className: ['TreeView-Content', disabled ? 'disabled' : '', className].join(' ').trim()
867
+ className: ['TreeView-Content', disabled ? 'disabled' : '', className].join(' ').trim().replace(/\s+/g, ' ')
849
868
  }, disabledMap ? dataSource : mapParent(dataSource, id, parentID, true).map((data, index) => renderTreeView(data, index.toString(), 0, sync))));
850
869
  }, [dataSource, value, multiple, selectBox, disabledBoldResult, autoExpandToResult, showChildrenOfResult, searchMode, onChange, searchProps]);
851
- return TreeViewComp;
852
870
  }));
853
871
  TreeView.defaultProps = {
854
872
  expand: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.44",
3
+ "version": "1.3.45",
4
4
  "description": "The DigiNet core ui",
5
5
  "homepage": "https://diginet.com.vn",
6
6
  "main": "index.js",
package/readme.md CHANGED
@@ -38,6 +38,14 @@ npm test
38
38
  ```
39
39
 
40
40
  ## Changelog
41
+ ## 1.3.45
42
+ - \[Added\]: MenuIcon – MHRM00N0005, MHRM09N1015, MHRM09N1400, MHRP25L0101, MHRP25L0501, MHRM09N1020
43
+ - \[Changed\]: LineChart – Allow pointsColor, pathColor use CORE colors; Add prop className, style, pointHoverAlignment
44
+ - \[Changed\]: HelperText – Add truncates text 1 line
45
+ - \[Fixed\]: TreeView – Fix css
46
+ - \[Fixed\]: Dropdown – Fix bug when multiple or selectBox value not array
47
+ - \[Fixed\]: Dropdown – Fix bug closeAfterSelect when multiple is true
48
+
41
49
  ## 1.3.44
42
50
  - \[Added\]: MenuIcon – MHRP09N0033
43
51
  - \[Changed\]: Modal – Add prop className