@yuno-payments/dashboard-design-system 2.9.2 → 2.9.4

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.
@@ -1,47 +1,39 @@
1
1
  import { j as M } from "../../../_virtual/jsx-runtime.js";
2
2
  const r = [
3
- "M7.97644 7.00015C7.43776 7.00015 7.00024 7.43744 7.00024 7.97585C7.00024 8.51426 7.43776 8.95155 7.97644 8.95155C8.51512 8.95155 8.95264 8.51426 8.95264 7.97585C8.95264 7.43744 8.51512 7.00015 7.97644 7.00015Z",
4
- "M11.1847 7.00021C10.646 7.00021 10.2085 7.43751 10.2085 7.97591C10.2085 8.51432 10.646 8.95161 11.1847 8.95161C11.7234 8.95161 12.1609 8.51432 12.1609 7.97591C12.1609 7.43751 11.7234 7.00021 11.1847 7.00021Z",
5
- "M14.3933 8.35011C14.6001 8.35011 14.7677 8.18255 14.7677 7.97585C14.7677 7.76916 14.6001 7.60159 14.3933 7.60159C14.1865 7.60159 14.0188 7.76916 14.0188 7.97585C14.0188 8.18255 14.1865 8.35011 14.3933 8.35011Z",
6
- "M7.97649 11.7893C8.30738 11.7893 8.57561 11.5212 8.57561 11.1905C8.57561 10.8598 8.30738 10.5917 7.97649 10.5917C7.64561 10.5917 7.37737 10.8598 7.37737 11.1905C7.37737 11.5212 7.64561 11.7893 7.97649 11.7893Z",
7
- "M11.1847 10.215C10.646 10.215 10.2085 10.6523 10.2085 11.1907C10.2085 11.7291 10.646 12.1664 11.1847 12.1664C11.7234 12.1664 12.1609 11.7291 12.1609 11.1907C12.1609 10.6523 11.7234 10.215 11.1847 10.215Z",
8
- "M14.3933 11.7893C14.7244 11.7893 14.9924 11.5214 14.9924 11.1905C14.9924 10.8596 14.7244 10.5917 14.3933 10.5917C14.0622 10.5917 13.7942 10.8596 13.7942 11.1905C13.7942 11.5214 14.0622 11.7893 14.3933 11.7893Z",
9
- "M7.97648 14.0217C7.77021 14.0217 7.60203 14.1898 7.60203 14.396C7.60203 14.6022 7.77021 14.7702 7.97648 14.7702C8.18276 14.7702 8.35093 14.6022 8.35093 14.396C8.35093 14.1898 8.18276 14.0217 7.97648 14.0217Z",
10
- "M11.1847 13.4203C10.646 13.4203 10.2085 13.8576 10.2085 14.396C10.2085 14.9344 10.646 15.3717 11.1847 15.3717C11.7234 15.3717 12.1609 14.9344 12.1609 14.396C12.1609 13.8576 11.7234 13.4203 11.1847 13.4203Z",
11
- "M14.3934 13.4203C13.8547 13.4203 13.4172 13.8576 13.4172 14.396C13.4172 14.9344 13.8547 15.3717 14.3934 15.3717C14.9321 15.3717 15.3696 14.9344 15.3696 14.396C15.3696 13.8576 14.9321 13.4203 14.3934 13.4203Z",
12
- "M17.607 8.35011C17.8132 8.35011 17.9814 8.18202 17.9814 7.97585C17.9814 7.76968 17.8132 7.60159 17.607 7.60159C17.4007 7.60159 17.2325 7.76968 17.2325 7.97585C17.2325 8.18202 17.4007 8.35011 17.607 8.35011Z",
13
- "M20.8154 8.95161C21.3546 8.95161 21.7916 8.51478 21.7916 7.97591C21.7916 7.43705 21.3546 7.00021 20.8154 7.00021C20.2763 7.00021 19.8392 7.43705 19.8392 7.97591C19.8392 8.51478 20.2763 8.95161 20.8154 8.95161Z",
14
- "M24.024 7.00021C23.4853 7.00021 23.0478 7.43751 23.0478 7.97591C23.0478 8.51432 23.4853 8.95161 24.024 8.95161C24.5627 8.95161 25.0002 8.51432 25.0002 7.97591C25.0002 7.43751 24.5627 7.00021 24.024 7.00021Z",
15
- "M17.607 11.7893C17.9381 11.7893 18.2061 11.5214 18.2061 11.1905C18.2061 10.8596 17.9381 10.5917 17.607 10.5917C17.2759 10.5917 17.0078 10.8596 17.0078 11.1905C17.0078 11.5214 17.2759 11.7893 17.607 11.7893Z",
16
- "M20.8154 10.215C20.2768 10.215 19.8392 10.6523 19.8392 11.1907C19.8392 11.7291 20.2768 12.1664 20.8154 12.1664C21.3541 12.1664 21.7916 11.7291 21.7916 11.1907C21.7916 10.6523 21.3541 10.215 20.8154 10.215Z",
17
- "M24.024 10.5917C23.6929 10.5917 23.4249 10.8596 23.4249 11.1905C23.4249 11.5214 23.6929 11.7893 24.024 11.7893C24.3551 11.7893 24.6231 11.5214 24.6231 11.1905C24.6231 10.8596 24.3551 10.5917 24.024 10.5917Z",
18
- "M20.8154 13.4203C20.2768 13.4203 19.8392 13.8576 19.8392 14.396C19.8392 14.9344 20.2768 15.3717 20.8154 15.3717C21.3541 15.3717 21.7916 14.9344 21.7916 14.396C21.7916 13.8576 21.3541 13.4203 20.8154 13.4203Z",
19
- "M24.0239 14.7702C24.2307 14.7702 24.3983 14.6027 24.3983 14.396C24.3983 14.1893 24.2307 14.0217 24.0239 14.0217C23.8171 14.0217 23.6494 14.1893 23.6494 14.396C23.6494 14.6027 23.8171 14.7702 24.0239 14.7702Z",
20
- "M17.607 13.4203C17.0684 13.4203 16.6308 13.8576 16.6308 14.396C16.6308 14.9344 17.0684 15.3717 17.607 15.3717C18.1457 15.3717 18.5832 14.9344 18.5832 14.396C18.5832 13.8576 18.1457 13.4203 17.607 13.4203Z",
21
- "M7.97648 17.2285C7.77021 17.2285 7.60203 17.3966 7.60203 17.6028C7.60203 17.809 7.77021 17.9771 7.97648 17.9771C8.18276 17.9771 8.35093 17.809 8.35093 17.6028C8.35093 17.3966 8.18276 17.2285 7.97648 17.2285Z",
22
- "M11.185 17.0041C10.8539 17.0041 10.5859 17.272 10.5859 17.6029C10.5859 17.9339 10.8539 18.2017 11.185 18.2017C11.5161 18.2017 11.7841 17.9339 11.7841 17.6029C11.7841 17.272 11.5161 17.0041 11.185 17.0041Z",
23
- "M14.3934 16.6272C13.8547 16.6272 13.4172 17.0644 13.4172 17.6029C13.4172 18.1413 13.8547 18.5786 14.3934 18.5786C14.9321 18.5786 15.3696 18.1413 15.3696 17.6029C15.3696 17.0644 14.9321 16.6272 14.3934 16.6272Z",
24
- "M7.97648 20.4353C7.77021 20.4353 7.60203 20.6034 7.60203 20.8096C7.60203 21.0158 7.77021 21.1839 7.97648 21.1839C8.18276 21.1839 8.35093 21.0158 8.35093 20.8096C8.35093 20.6034 8.18276 20.4353 7.97648 20.4353Z",
25
- "M11.185 20.4353C10.9787 20.4353 10.8106 20.6034 10.8106 20.8096C10.8106 21.0158 10.9787 21.1839 11.185 21.1839C11.3913 21.1839 11.5595 21.0158 11.5595 20.8096C11.5595 20.6034 11.3913 20.4353 11.185 20.4353Z",
26
- "M14.3934 19.834C13.8547 19.834 13.4172 20.2713 13.4172 20.8097C13.4172 21.3481 13.8547 21.7854 14.3934 21.7854C14.9321 21.7854 15.3696 21.3481 15.3696 20.8097C15.3696 20.2713 14.9321 19.834 14.3934 19.834Z",
27
- "M7.97648 23.6501C7.77021 23.6501 7.60203 23.8182 7.60203 24.0244C7.60203 24.2306 7.77021 24.3987 7.97648 24.3987C8.18276 24.3987 8.35093 24.2306 8.35093 24.0244C8.35093 23.8182 8.18276 23.6501 7.97648 23.6501Z",
28
- "M11.185 24.3987C11.3918 24.3987 11.5595 24.2311 11.5595 24.0244C11.5595 23.8177 11.3918 23.6501 11.185 23.6501C10.9782 23.6501 10.8106 23.8177 10.8106 24.0244C10.8106 24.2311 10.9782 24.3987 11.185 24.3987Z",
29
- "M14.3934 23.0488C13.8547 23.0488 13.4172 23.4861 13.4172 24.0245C13.4172 24.5629 13.8547 25.0002 14.3934 25.0002C14.9321 25.0002 15.3696 24.5629 15.3696 24.0245C15.3696 23.4861 14.9321 23.0488 14.3934 23.0488Z",
30
- "M17.607 18.5786C18.1462 18.5786 18.5832 18.1417 18.5832 17.6029C18.5832 17.064 18.1462 16.6272 17.607 16.6272C17.0679 16.6272 16.6308 17.064 16.6308 17.6029C16.6308 18.1417 17.0679 18.5786 17.607 18.5786Z",
31
- "M20.8156 17.0041C20.4845 17.0041 20.2165 17.272 20.2165 17.6029C20.2165 17.9339 20.4845 18.2017 20.8156 18.2017C21.1467 18.2017 21.4147 17.9339 21.4147 17.6029C21.4147 17.272 21.1467 17.0041 20.8156 17.0041Z",
32
- "M24.0239 17.9771C24.2307 17.9771 24.3983 17.8095 24.3983 17.6028C24.3983 17.3961 24.2307 17.2285 24.0239 17.2285C23.8171 17.2285 23.6494 17.3961 23.6494 17.6028C23.6494 17.8095 23.8171 17.9771 24.0239 17.9771Z",
33
- "M17.607 21.7854C18.1462 21.7854 18.5832 21.3485 18.5832 20.8097C18.5832 20.2708 18.1462 19.834 17.607 19.834C17.0679 19.834 16.6308 20.2708 16.6308 20.8097C16.6308 21.3485 17.0679 21.7854 17.607 21.7854Z",
34
- "M20.8156 21.1839C21.0224 21.1839 21.1901 21.0163 21.1901 20.8096C21.1901 20.6029 21.0224 20.4353 20.8156 20.4353C20.6088 20.4353 20.4412 20.6029 20.4412 20.8096C20.4412 21.0163 20.6088 21.1839 20.8156 21.1839Z",
35
- "M24.0239 21.1839C24.2307 21.1839 24.3983 21.0163 24.3983 20.8096C24.3983 20.6029 24.2307 20.4353 24.0239 20.4353C23.8171 20.4353 23.6494 20.6029 23.6494 20.8096C23.6494 21.0163 23.8171 21.1839 24.0239 21.1839Z",
36
- "M17.607 23.0488C17.0684 23.0488 16.6308 23.4861 16.6308 24.0245C16.6308 24.5629 17.0684 25.0002 17.607 25.0002C18.1457 25.0002 18.5832 24.5629 18.5832 24.0245C18.5832 23.4861 18.1457 23.0488 17.607 23.0488Z",
37
- "M20.8156 24.3987C21.0224 24.3987 21.1901 24.2311 21.1901 24.0244C21.1901 23.8177 21.0224 23.6501 20.8156 23.6501C20.6088 23.6501 20.4412 23.8177 20.4412 24.0244C20.4412 24.2311 20.6088 24.3987 20.8156 24.3987Z",
38
- "M24.0239 24.3987C24.2307 24.3987 24.3983 24.2311 24.3983 24.0244C24.3983 23.8177 24.2307 23.6501 24.0239 23.6501C23.8171 23.6501 23.6494 23.8177 23.6494 24.0244C23.6494 24.2311 23.8171 24.3987 24.0239 24.3987Z"
3
+ "M18.9181 12.7058C19.0037 12.6944 19.1257 12.697 19.2117 12.7065C20.0405 12.7978 20.5891 13.525 20.4977 14.339C20.457 14.7119 20.2693 15.0531 19.9765 15.2868C19.5409 15.6344 18.9722 15.7133 18.451 15.49C18.3061 15.4279 18.1314 15.27 17.9644 15.258C17.8207 15.2477 17.6876 15.3137 17.5806 15.406C17.4072 15.5557 17.4497 15.7744 17.4357 15.9913C17.4135 16.4233 17.2113 16.8309 16.8594 17.0887C16.6478 17.2437 16.3364 17.3523 16.3273 17.6707C16.3141 18.1211 16.736 18.1566 16.9936 18.4213C17.2715 18.7068 17.4447 19.0819 17.4402 19.4878C17.436 19.8629 17.2614 20.2553 16.9924 20.5185C16.7087 20.7961 16.3372 20.9337 15.9402 20.9259C15.5495 20.9194 15.1782 20.7542 14.9111 20.4682C14.6517 20.1891 14.5115 19.8193 14.5206 19.4379C14.5334 19.0006 14.7435 18.5756 15.0952 18.3111C15.2188 18.2181 15.3959 18.1347 15.5015 18.0361C15.5897 17.9421 15.6487 17.8201 15.6397 17.6892C15.6144 17.3227 15.2509 17.2267 15.0111 17.014C14.6316 16.6775 14.5314 16.3135 14.5133 15.8196C14.5082 15.6786 14.4509 15.4921 14.3338 15.4104C13.9997 15.1633 13.7828 15.408 13.4934 15.5333C12.5832 15.9275 11.504 15.3128 11.4627 14.2985C11.4454 13.8728 11.5544 13.5152 11.8351 13.2039C12.0824 12.9282 12.4296 12.7633 12.7991 12.7463C13.2294 12.7259 13.5874 12.8384 13.9089 13.1305C14.1204 13.3283 14.2938 13.6296 14.3424 13.9153C14.3895 14.1917 14.2881 14.4838 14.5293 14.692C14.8485 14.9676 15.1091 14.728 15.4122 14.5919C15.5483 14.5307 15.6937 14.4924 15.8423 14.4787C16.0869 14.454 16.3336 14.4936 16.5582 14.5938C16.8499 14.7248 17.1147 14.9836 17.4447 14.6963C17.6755 14.4953 17.576 14.176 17.6209 13.8989C17.6616 13.6607 17.7624 13.4369 17.9138 13.2488C18.1784 12.9245 18.5042 12.7494 18.9181 12.7058Z",
4
+ "M15.8666 11.5786C16.3162 11.5147 16.7322 11.8285 16.7954 12.2792C16.8587 12.7298 16.5452 13.1465 16.0955 13.2094C15.6464 13.2723 15.2314 12.9586 15.1683 12.5086C15.1051 12.0585 15.4177 11.6423 15.8666 11.5786Z",
5
+ "M18.9129 16.9054C19.3643 16.835 19.7865 17.1471 19.8528 17.6001C19.9192 18.0532 19.6043 18.4736 19.1517 18.5363C18.7045 18.5981 18.2912 18.2871 18.2256 17.8395C18.1601 17.3919 18.4668 16.9749 18.9129 16.9054Z",
6
+ "M21.6791 11.7651C22.1308 11.705 22.5451 12.0245 22.6029 12.4774C22.6608 12.9303 22.3402 13.3441 21.8881 13.4001C21.4388 13.4557 21.0291 13.1369 20.9716 12.6868C20.9141 12.2367 21.2303 11.8247 21.6791 11.7651Z",
7
+ "M15.8428 21.82C16.2915 21.7448 16.7159 22.0491 16.7897 22.499C16.8636 22.9489 16.5587 23.3734 16.1096 23.4461C15.6623 23.5186 15.2408 23.2145 15.1673 22.7664C15.0937 22.3182 15.3959 21.895 15.8428 21.82Z",
8
+ "M10.0689 11.7677C10.5197 11.6976 10.9412 12.0087 11.008 12.461C11.0748 12.9132 10.7614 13.3335 10.3097 13.3973C9.86249 13.4605 9.44817 13.1501 9.38202 12.7023C9.31584 12.2545 9.62264 11.8371 10.0689 11.7677Z",
9
+ "M12.8315 16.9047C13.281 16.8409 13.697 17.1547 13.7603 17.6054C13.8235 18.056 13.51 18.4726 13.0603 18.5356C12.6112 18.5984 12.1963 18.2848 12.1331 17.8347C12.0699 17.3847 12.3825 16.9685 12.8315 16.9047Z",
10
+ "M21.6634 18.5456C22.0785 18.4833 22.4654 18.7699 22.5278 19.1859C22.5902 19.6018 22.3045 19.9898 21.8895 20.0526C21.4742 20.1155 21.0867 19.8288 21.0242 19.4125C20.9617 18.9962 21.248 18.608 21.6634 18.5456Z",
11
+ "M10.0732 18.5491C10.3444 18.5003 10.6208 18.6025 10.7955 18.8161C10.9702 19.0298 11.0158 19.3214 10.9147 19.5784C10.8137 19.8354 10.5818 20.0174 10.3086 20.0541C9.89902 20.1092 9.52055 19.8262 9.45654 19.417C9.39253 19.0078 9.66641 18.6223 10.0732 18.5491Z",
12
+ "M15.8697 8.57548C16.2228 8.51297 16.5598 8.74843 16.6234 9.10208C16.687 9.45572 16.4533 9.79432 16.1007 9.85933C15.7463 9.92466 15.4064 9.68894 15.3425 9.33354C15.2785 8.97814 15.5149 8.63832 15.8697 8.57548Z",
13
+ "M25.4409 15.4978C25.6684 15.4275 25.9097 15.5556 25.9795 15.7838C26.0494 16.0119 25.9213 16.2536 25.6936 16.3234C25.4662 16.393 25.2255 16.2649 25.1558 16.0371C25.0861 15.8093 25.2136 15.5679 25.4409 15.4978Z",
14
+ "M20.5428 7.18061C20.7775 7.14535 20.9964 7.30701 21.0324 7.54215C21.0684 7.77726 20.9079 7.99727 20.6734 8.03416C20.4378 8.07121 20.217 7.90936 20.1808 7.67306C20.1447 7.4368 20.3069 7.21606 20.5428 7.18061Z",
15
+ "M6.36217 15.488C6.59397 15.4505 6.81298 15.6061 6.85458 15.8377C6.89614 16.0693 6.74498 16.2916 6.51467 16.3375C6.36195 16.3679 6.20469 16.3134 6.10345 16.1947C6.00219 16.0761 5.97272 15.912 6.02635 15.7654C6.08002 15.6189 6.20842 15.5128 6.36217 15.488Z",
16
+ "M20.4636 23.9889C20.6162 23.9601 20.7724 24.016 20.8723 24.1352C20.9722 24.2543 21.0002 24.4182 20.9456 24.5638C20.891 24.7095 20.7623 24.8144 20.6088 24.8381C20.558 24.846 20.5062 24.8447 20.4558 24.8342C20.2549 24.7924 20.1114 24.614 20.1133 24.4083C20.1152 24.2026 20.2619 24.027 20.4636 23.9889Z",
17
+ "M11.1449 7.28854C11.377 7.2425 11.6026 7.39338 11.6492 7.62593C11.6957 7.85845 11.5458 8.08492 11.314 8.13227C11.0812 8.17981 10.8541 8.02884 10.8073 7.79539C10.7605 7.56191 10.9118 7.33477 11.1449 7.28854Z",
18
+ "M11.1996 23.9599C11.424 23.89 11.6627 24.0145 11.7345 24.2388C11.8062 24.4631 11.6841 24.7034 11.4609 24.7773C11.2609 24.8435 11.0425 24.754 10.946 24.5663C10.888 24.4536 10.8828 24.3209 10.9317 24.2038C10.9806 24.0869 11.0787 23.9975 11.1996 23.9599Z",
19
+ "M9.24088 15.5032C9.38779 15.4797 9.53596 15.5374 9.62835 15.6543C9.72077 15.7712 9.74299 15.929 9.68648 16.0669C9.62997 16.2049 9.50355 16.3015 9.35587 16.3196C9.13332 16.3468 8.92996 16.1905 8.89861 15.968C8.8673 15.7455 9.01951 15.5388 9.24088 15.5032Z",
20
+ "M22.5853 15.5079C22.8058 15.4517 23.0299 15.5856 23.0854 15.8068C23.1408 16.028 23.0066 16.2522 22.7858 16.3072C22.5659 16.362 22.3431 16.228 22.2879 16.0078C22.2327 15.7875 22.3657 15.5639 22.5853 15.5079Z",
21
+ "M7.72145 10.7312C7.86888 10.7178 8.01203 10.785 8.09621 10.9071C8.18037 11.0291 8.1925 11.1871 8.12798 11.3206C8.06343 11.4541 7.93222 11.5425 7.7845 11.5519C7.56023 11.5663 7.36613 11.3973 7.34889 11.1727C7.33162 10.9482 7.49763 10.7514 7.72145 10.7312Z",
22
+ "M12.5084 9.73563C12.6462 9.68127 12.8025 9.70549 12.9175 9.79901C13.0325 9.89249 13.0884 10.0408 13.0637 10.1872C13.039 10.3335 12.9377 10.4552 12.7984 10.5057C12.5872 10.5822 12.3539 10.4745 12.2746 10.2639C12.1953 10.0534 12.2995 9.81807 12.5084 9.73563Z",
23
+ "M12.6283 21.3856C12.7719 21.3478 12.9247 21.3906 13.0278 21.4976C13.131 21.6045 13.1685 21.759 13.1258 21.9015C13.0832 22.044 12.9671 22.1523 12.8223 22.1848C12.604 22.2337 12.3868 22.0984 12.334 21.8806C12.2811 21.6628 12.412 21.4427 12.6283 21.3856Z",
24
+ "M15.9111 25.1808C16.134 25.1536 16.3372 25.3111 16.367 25.5342C16.3967 25.7573 16.2418 25.9628 16.0196 25.9951C15.8736 26.0164 15.7274 25.9573 15.6369 25.8405C15.5464 25.7237 15.5256 25.5672 15.5823 25.4306C15.639 25.2941 15.7646 25.1987 15.9111 25.1808Z",
25
+ "M19.1884 9.66256C19.4118 9.62987 19.6195 9.78455 19.6527 10.0084C19.686 10.2323 19.5322 10.4408 19.3089 10.4747C19.0848 10.5087 18.8757 10.3539 18.8424 10.1292C18.8091 9.90452 18.9641 9.69539 19.1884 9.66256Z",
26
+ "M15.9093 6.0062C16.132 5.96717 16.3441 6.11637 16.3832 6.33952C16.4223 6.56268 16.2736 6.77536 16.0509 6.81467C15.8281 6.85401 15.6157 6.70479 15.5765 6.48144C15.5374 6.25809 15.6865 6.04527 15.9093 6.0062Z",
27
+ "M24.17 10.7683C24.3155 10.744 24.4628 10.8 24.5555 10.915C24.6482 11.0301 24.672 11.1862 24.6177 11.3237C24.5634 11.4612 24.4394 11.5587 24.2933 11.579C24.0717 11.6096 23.8666 11.4562 23.8329 11.2346C23.7991 11.0129 23.9493 10.8052 24.17 10.7683Z",
28
+ "M24.1577 20.4064C24.3772 20.3549 24.5968 20.4912 24.6487 20.711C24.7005 20.9309 24.5652 21.1513 24.346 21.2039C24.126 21.2567 23.905 21.1205 23.8529 20.8998C23.8008 20.6791 23.9374 20.458 24.1577 20.4064Z",
29
+ "M19.0546 21.4122C19.2766 21.3851 19.4791 21.5417 19.5092 21.7637C19.5394 21.9858 19.3859 22.1909 19.1648 22.2241C19.019 22.2461 18.8728 22.1876 18.782 22.0712C18.6912 21.9548 18.67 21.7985 18.7265 21.662C18.783 21.5256 18.9083 21.4301 19.0546 21.4122Z",
30
+ "M7.6583 20.4175C7.80355 20.3896 7.95245 20.4426 8.04768 20.556C8.14294 20.6694 8.16967 20.8255 8.11756 20.9642C8.06546 21.1029 7.94268 21.2026 7.7965 21.2249C7.57628 21.2585 7.36979 21.1092 7.33212 20.8891C7.29445 20.6691 7.43948 20.4593 7.6583 20.4175Z"
39
31
  ], e = ({ size: C = 16, ...Z }) => /* @__PURE__ */ M.jsx(
40
32
  "svg",
41
33
  {
42
34
  width: C,
43
35
  height: C,
44
- viewBox: "0 0 32 32",
36
+ viewBox: "4 4 24 24",
45
37
  fill: "none",
46
38
  xmlns: "http://www.w3.org/2000/svg",
47
39
  ...Z,
@@ -1,125 +1,135 @@
1
- import { j as e } from "../../../_virtual/jsx-runtime.js";
1
+ import { j as t } from "../../../_virtual/jsx-runtime.js";
2
2
  import * as l from "react";
3
- import { cn as a, getDirection as A } from "../../../lib/utils.js";
4
- import { FieldLabel as B } from "../../../vendor/shadcn/field.js";
3
+ import { cn as c, getDirection as A } from "../../../lib/utils.js";
4
+ import { FieldLabel as J } from "../../../vendor/shadcn/field.js";
5
5
  import { Icon as b } from "../../atoms/icon/icon.js";
6
- import { Combobox as H, ComboboxTrigger as J, ComboboxContent as K } from "../../../vendor/shadcn/combobox.js";
7
- import { Command as M, CommandInput as P, CommandList as Q, CommandEmpty as U, CommandGroup as W, CommandItem as G } from "../../../vendor/shadcn/command.js";
6
+ import { Combobox as M, ComboboxTrigger as P, ComboboxContent as Q } from "../../../vendor/shadcn/combobox.js";
7
+ import { Command as U, CommandInput as W, CommandList as X, CommandEmpty as Y, CommandGroup as Z, CommandItem as _ } from "../../../vendor/shadcn/command.js";
8
8
  import { Typography as x } from "../../atoms/typography/typography.js";
9
- const X = l.forwardRef(
9
+ const E = "__yuno_search_select_no_highlight__", $ = "end", ee = l.forwardRef(
10
10
  ({
11
11
  label: j,
12
- description: N,
12
+ description: C,
13
13
  error: u,
14
- optional: L = !1,
14
+ optional: G = !1,
15
15
  placeholder: k = "Select an option",
16
- value: r,
17
- defaultValue: p,
18
- onChange: h,
16
+ value: s,
17
+ defaultValue: h,
18
+ onChange: p,
19
19
  disabled: f = !1,
20
- options: c = [],
20
+ options: o = [],
21
21
  groups: i = [],
22
- className: E,
22
+ className: I,
23
23
  id: g,
24
- searchPlaceholder: z = "Search",
25
- maxHeight: F = 300
26
- }, I) => {
27
- const [o, C] = l.useState(!1), [v, S] = l.useState(""), d = i.length > 0, w = c.length > 0, D = l.useCallback(() => {
28
- if (!r) return null;
24
+ searchPlaceholder: T = "Search",
25
+ maxHeight: V = 300
26
+ }, z) => {
27
+ const [r, N] = l.useState(!1), [S, v] = l.useState(""), [D, O] = l.useState(E), F = l.useCallback((e) => {
28
+ O(E), N(e);
29
+ }, []), d = i.length > 0, w = o.length > 0, H = l.useCallback(() => {
30
+ if (!s) return null;
29
31
  if (d)
30
- for (const s of i) {
31
- const n = s.options.find((t) => t.value === r);
32
- if (n) return n.label;
32
+ for (const e of i) {
33
+ const a = e.options.find((n) => n.value === s);
34
+ if (a) return a.label;
33
35
  }
34
36
  else if (w) {
35
- const s = c.find((n) => n.value === r);
36
- if (s) return s.label;
37
+ const e = o.find((a) => a.value === s);
38
+ if (e) return e.label;
37
39
  }
38
40
  return null;
39
- }, [r, i, c, d, w]), R = l.useCallback(
40
- (s) => {
41
- if (!s)
42
- return { filteredOptions: c, filteredGroups: i };
43
- const n = s.toLowerCase();
41
+ }, [s, i, o, d, w]), R = l.useCallback(
42
+ (e) => {
43
+ if (!e)
44
+ return { filteredOptions: o, filteredGroups: i };
45
+ const a = e.toLowerCase();
44
46
  if (d) {
45
- const t = i.map((m) => ({
47
+ const n = i.map((m) => ({
46
48
  ...m,
47
49
  options: m.options.filter(
48
- (V) => V.label.toLowerCase().includes(n)
50
+ (K) => K.label.toLowerCase().includes(a)
49
51
  )
50
52
  })).filter((m) => m.options.length > 0);
51
- return { filteredOptions: [], filteredGroups: t };
53
+ return { filteredOptions: [], filteredGroups: n };
52
54
  } else
53
- return { filteredOptions: c.filter(
54
- (m) => m.label.toLowerCase().includes(n)
55
+ return { filteredOptions: o.filter(
56
+ (m) => m.label.toLowerCase().includes(a)
55
57
  ), filteredGroups: [] };
56
58
  },
57
- [c, i, d]
58
- ), { filteredOptions: T, filteredGroups: q } = R(v);
59
+ [o, i, d]
60
+ ), { filteredOptions: q, filteredGroups: B } = R(S);
59
61
  l.useEffect(() => {
60
- o && setTimeout(() => {
62
+ r && setTimeout(() => {
61
63
  document.querySelector(
62
64
  '[data-slot="command-input"]'
63
65
  )?.focus();
64
66
  }, 0);
65
- }, [o]), l.useEffect(() => {
66
- o || S("");
67
- }, [o]), l.useEffect(() => {
68
- p && !r && h?.(p);
69
- }, [p, r, h]);
70
- const y = (s) => {
71
- f || (h?.(s), C(!1));
72
- }, O = D();
73
- return /* @__PURE__ */ e.jsxs("div", { dir: A(), className: a("w-full", E), children: [
74
- j && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 mb-2", children: [
75
- /* @__PURE__ */ e.jsx(
76
- B,
67
+ }, [r]), l.useEffect(() => {
68
+ if (!r || !s) return;
69
+ const e = setTimeout(() => {
70
+ document.querySelector(
71
+ '[data-slot="command-list"] [data-selected-option="true"]'
72
+ )?.scrollIntoView({ block: $ });
73
+ }, 0);
74
+ return () => clearTimeout(e);
75
+ }, [r, s]), l.useEffect(() => {
76
+ r || v("");
77
+ }, [r]), l.useEffect(() => {
78
+ h && !s && p?.(h);
79
+ }, [h, s, p]);
80
+ const y = (e) => {
81
+ f || (p?.(e), N(!1));
82
+ }, L = H();
83
+ return /* @__PURE__ */ t.jsxs("div", { dir: A(), className: c("w-full", I), children: [
84
+ j && /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 mb-2", children: [
85
+ /* @__PURE__ */ t.jsx(
86
+ J,
77
87
  {
78
88
  htmlFor: g,
79
- className: a(f && "text-muted-foreground"),
89
+ className: c(f && "text-muted-foreground"),
80
90
  children: j
81
91
  }
82
92
  ),
83
- L && /* @__PURE__ */ e.jsx(x, { variant: "sm", className: "text-muted-foreground", children: "(Optional)" })
93
+ G && /* @__PURE__ */ t.jsx(x, { variant: "sm", className: "text-muted-foreground", children: "(Optional)" })
84
94
  ] }),
85
- N && !u && /* @__PURE__ */ e.jsx(
95
+ C && !u && /* @__PURE__ */ t.jsx(
86
96
  x,
87
97
  {
88
98
  variant: "sm",
89
- className: a(
99
+ className: c(
90
100
  "text-muted-foreground mb-2",
91
101
  f && "text-muted-"
92
102
  ),
93
- children: N
103
+ children: C
94
104
  }
95
105
  ),
96
- /* @__PURE__ */ e.jsxs(H, { open: o, onOpenChange: C, children: [
97
- /* @__PURE__ */ e.jsx(J, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
106
+ /* @__PURE__ */ t.jsxs(M, { open: r, onOpenChange: F, children: [
107
+ /* @__PURE__ */ t.jsx(P, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
98
108
  "button",
99
109
  {
100
- ref: I,
110
+ ref: z,
101
111
  id: g,
102
112
  type: "button",
103
113
  disabled: f,
104
114
  role: "combobox",
105
- "aria-expanded": o,
115
+ "aria-expanded": r,
106
116
  "aria-haspopup": "listbox",
107
- className: a(
117
+ className: c(
108
118
  "flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-input px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:text-muted- shadow-xs [&>span]:min-w-0 [&>span]:truncate",
109
119
  u && "border-destructive"
110
120
  ),
111
121
  children: [
112
- /* @__PURE__ */ e.jsx(
122
+ /* @__PURE__ */ t.jsx(
113
123
  "span",
114
124
  {
115
- className: a(
125
+ className: c(
116
126
  "truncate",
117
- !O && "text-muted-foreground"
127
+ !L && "text-muted-foreground"
118
128
  ),
119
- children: O || k
129
+ children: L || k
120
130
  }
121
131
  ),
122
- /* @__PURE__ */ e.jsx(
132
+ /* @__PURE__ */ t.jsx(
123
133
  b,
124
134
  {
125
135
  name: "CaretDown",
@@ -130,79 +140,89 @@ const X = l.forwardRef(
130
140
  ]
131
141
  }
132
142
  ) }),
133
- /* @__PURE__ */ e.jsx(K, { className: "p-0", align: "start", children: /* @__PURE__ */ e.jsxs(M, { shouldFilter: !1, children: [
134
- /* @__PURE__ */ e.jsx(
135
- P,
136
- {
137
- placeholder: z,
138
- value: v,
139
- onValueChange: S
140
- }
141
- ),
142
- /* @__PURE__ */ e.jsxs(Q, { style: { maxHeight: F }, children: [
143
- /* @__PURE__ */ e.jsx(U, { children: /* @__PURE__ */ e.jsx(
144
- x,
145
- {
146
- variant: "sm",
147
- className: "text-muted-foreground py-6 text-center",
148
- children: "No results found."
149
- }
150
- ) }),
151
- d ? q.map((s, n) => /* @__PURE__ */ e.jsxs(W, { children: [
152
- s.label && /* @__PURE__ */ e.jsx("div", { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: s.label }),
153
- s.options.map((t) => /* @__PURE__ */ e.jsxs(
154
- G,
143
+ /* @__PURE__ */ t.jsx(Q, { className: "p-0", align: "start", children: /* @__PURE__ */ t.jsxs(
144
+ U,
145
+ {
146
+ shouldFilter: !1,
147
+ value: D,
148
+ onValueChange: O,
149
+ children: [
150
+ /* @__PURE__ */ t.jsx(
151
+ W,
155
152
  {
156
- value: t.value,
157
- onSelect: () => y(t.value),
158
- className: a(
159
- "cursor-pointer",
160
- r === t.value && "bg-accent"
161
- ),
162
- children: [
163
- /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
164
- t.icon && /* @__PURE__ */ e.jsx("span", { className: "mr-2 inline-flex items-center", children: t.icon }),
165
- t.label
166
- ] }),
167
- r === t.value && /* @__PURE__ */ e.jsx(
168
- b,
169
- {
170
- name: "Check",
171
- size: "sm",
172
- className: "ml-auto"
173
- }
174
- )
175
- ]
176
- },
177
- t.value
178
- ))
179
- ] }, n)) : T.map((s) => /* @__PURE__ */ e.jsxs(
180
- G,
181
- {
182
- value: s.value,
183
- onSelect: () => y(s.value),
184
- className: a(
185
- "cursor-pointer",
186
- r === s.value && "bg-accent"
187
- ),
188
- children: [
189
- /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
190
- s.icon && /* @__PURE__ */ e.jsx("span", { className: "mr-2 inline-flex items-center", children: s.icon }),
191
- s.label
192
- ] }),
193
- r === s.value && /* @__PURE__ */ e.jsx(b, { name: "Check", size: "sm", className: "ml-auto" })
194
- ]
195
- },
196
- s.value
197
- ))
198
- ] })
199
- ] }) })
153
+ placeholder: T,
154
+ value: S,
155
+ onValueChange: v
156
+ }
157
+ ),
158
+ /* @__PURE__ */ t.jsxs(X, { style: { maxHeight: V }, children: [
159
+ /* @__PURE__ */ t.jsx(Y, { children: /* @__PURE__ */ t.jsx(
160
+ x,
161
+ {
162
+ variant: "sm",
163
+ className: "text-muted-foreground py-6 text-center",
164
+ children: "No results found."
165
+ }
166
+ ) }),
167
+ d ? B.map((e, a) => /* @__PURE__ */ t.jsxs(Z, { children: [
168
+ e.label && /* @__PURE__ */ t.jsx("div", { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: e.label }),
169
+ e.options.map((n) => /* @__PURE__ */ t.jsxs(
170
+ _,
171
+ {
172
+ value: n.value,
173
+ onSelect: () => y(n.value),
174
+ "data-selected-option": s === n.value ? !0 : void 0,
175
+ className: c(
176
+ "cursor-pointer",
177
+ s === n.value && "bg-accent"
178
+ ),
179
+ children: [
180
+ /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
181
+ n.icon && /* @__PURE__ */ t.jsx("span", { className: "mr-2 inline-flex items-center", children: n.icon }),
182
+ n.label
183
+ ] }),
184
+ s === n.value && /* @__PURE__ */ t.jsx(
185
+ b,
186
+ {
187
+ name: "Check",
188
+ size: "sm",
189
+ className: "ml-auto"
190
+ }
191
+ )
192
+ ]
193
+ },
194
+ n.value
195
+ ))
196
+ ] }, a)) : q.map((e) => /* @__PURE__ */ t.jsxs(
197
+ _,
198
+ {
199
+ value: e.value,
200
+ onSelect: () => y(e.value),
201
+ "data-selected-option": s === e.value ? !0 : void 0,
202
+ className: c(
203
+ "cursor-pointer",
204
+ s === e.value && "bg-accent"
205
+ ),
206
+ children: [
207
+ /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
208
+ e.icon && /* @__PURE__ */ t.jsx("span", { className: "mr-2 inline-flex items-center", children: e.icon }),
209
+ e.label
210
+ ] }),
211
+ s === e.value && /* @__PURE__ */ t.jsx(b, { name: "Check", size: "sm", className: "ml-auto" })
212
+ ]
213
+ },
214
+ e.value
215
+ ))
216
+ ] })
217
+ ]
218
+ }
219
+ ) })
200
220
  ] }),
201
- u && /* @__PURE__ */ e.jsx(x, { variant: "sm", className: "text-destructive mt-2", children: u })
221
+ u && /* @__PURE__ */ t.jsx(x, { variant: "sm", className: "text-destructive mt-2", children: u })
202
222
  ] });
203
223
  }
204
224
  );
205
- X.displayName = "SearchSelect";
225
+ ee.displayName = "SearchSelect";
206
226
  export {
207
- X as SearchSelect
227
+ ee as SearchSelect
208
228
  };