se-design 1.0.90-dev.0 → 1.0.91-r-dev.1

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.
Files changed (479) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/components/AnchoredOverlay/index.d.ts +41 -0
  3. package/dist/components/NLSearch/ClearAiFiltersBar.d.ts +21 -0
  4. package/dist/components/NLSearch/NLDynamicChip.d.ts +26 -0
  5. package/dist/components/NLSearch/NLSearchInput.d.ts +46 -0
  6. package/dist/components/NLSearch/index.d.ts +6 -0
  7. package/dist/components/index.d.ts +4 -0
  8. package/dist/index.js +161 -152
  9. package/dist/index.js.map +1 -1
  10. package/dist/index100.js +1 -1
  11. package/dist/index100.js.map +1 -1
  12. package/dist/index101.js +1 -1
  13. package/dist/index101.js.map +1 -1
  14. package/dist/index102.js +1 -1
  15. package/dist/index102.js.map +1 -1
  16. package/dist/index103.js +1 -1
  17. package/dist/index103.js.map +1 -1
  18. package/dist/index104.js +1 -1
  19. package/dist/index104.js.map +1 -1
  20. package/dist/index105.js +1 -1
  21. package/dist/index105.js.map +1 -1
  22. package/dist/index106.js +1 -1
  23. package/dist/index106.js.map +1 -1
  24. package/dist/index107.js +1 -1
  25. package/dist/index107.js.map +1 -1
  26. package/dist/index108.js +1 -1
  27. package/dist/index108.js.map +1 -1
  28. package/dist/index109.js +1 -1
  29. package/dist/index109.js.map +1 -1
  30. package/dist/index11.js +1 -1
  31. package/dist/index110.js +1 -1
  32. package/dist/index110.js.map +1 -1
  33. package/dist/index111.js +1 -1
  34. package/dist/index111.js.map +1 -1
  35. package/dist/index112.js +1 -1
  36. package/dist/index112.js.map +1 -1
  37. package/dist/index113.js +1 -1
  38. package/dist/index113.js.map +1 -1
  39. package/dist/index114.js +2 -2
  40. package/dist/index114.js.map +1 -1
  41. package/dist/index115.js +2 -2
  42. package/dist/index115.js.map +1 -1
  43. package/dist/index116.js +1 -1
  44. package/dist/index116.js.map +1 -1
  45. package/dist/index117.js +1 -1
  46. package/dist/index117.js.map +1 -1
  47. package/dist/index118.js +1 -1
  48. package/dist/index118.js.map +1 -1
  49. package/dist/index119.js +1 -1
  50. package/dist/index119.js.map +1 -1
  51. package/dist/index12.js +3 -3
  52. package/dist/index120.js +1 -1
  53. package/dist/index120.js.map +1 -1
  54. package/dist/index121.js +1 -1
  55. package/dist/index121.js.map +1 -1
  56. package/dist/index122.js +1 -1
  57. package/dist/index122.js.map +1 -1
  58. package/dist/index123.js +1 -1
  59. package/dist/index123.js.map +1 -1
  60. package/dist/index124.js +2 -2
  61. package/dist/index124.js.map +1 -1
  62. package/dist/index125.js +2 -2
  63. package/dist/index125.js.map +1 -1
  64. package/dist/index126.js +2 -2
  65. package/dist/index126.js.map +1 -1
  66. package/dist/index127.js +2 -2
  67. package/dist/index127.js.map +1 -1
  68. package/dist/index128.js +2 -2
  69. package/dist/index128.js.map +1 -1
  70. package/dist/index129.js +1 -1
  71. package/dist/index129.js.map +1 -1
  72. package/dist/index13.js +3 -3
  73. package/dist/index130.js +1 -1
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index131.js +2 -2
  76. package/dist/index131.js.map +1 -1
  77. package/dist/index132.js +2 -2
  78. package/dist/index132.js.map +1 -1
  79. package/dist/index133.js +2 -2
  80. package/dist/index133.js.map +1 -1
  81. package/dist/index134.js +1 -1
  82. package/dist/index134.js.map +1 -1
  83. package/dist/index135.js +1 -1
  84. package/dist/index135.js.map +1 -1
  85. package/dist/index136.js +2 -2
  86. package/dist/index136.js.map +1 -1
  87. package/dist/index137.js +2 -2
  88. package/dist/index137.js.map +1 -1
  89. package/dist/index138.js +1 -1
  90. package/dist/index138.js.map +1 -1
  91. package/dist/index139.js +1 -1
  92. package/dist/index139.js.map +1 -1
  93. package/dist/index140.js +1 -1
  94. package/dist/index140.js.map +1 -1
  95. package/dist/index141.js +2 -2
  96. package/dist/index141.js.map +1 -1
  97. package/dist/index142.js +2 -2
  98. package/dist/index142.js.map +1 -1
  99. package/dist/index143.js +1 -1
  100. package/dist/index143.js.map +1 -1
  101. package/dist/index144.js +1 -1
  102. package/dist/index144.js.map +1 -1
  103. package/dist/index145.js +1 -1
  104. package/dist/index145.js.map +1 -1
  105. package/dist/index146.js +1 -1
  106. package/dist/index146.js.map +1 -1
  107. package/dist/index147.js +2 -2
  108. package/dist/index147.js.map +1 -1
  109. package/dist/index148.js +1 -1
  110. package/dist/index148.js.map +1 -1
  111. package/dist/index149.js +1 -1
  112. package/dist/index149.js.map +1 -1
  113. package/dist/index150.js +1 -1
  114. package/dist/index150.js.map +1 -1
  115. package/dist/index151.js +1 -1
  116. package/dist/index151.js.map +1 -1
  117. package/dist/index152.js +2 -2
  118. package/dist/index152.js.map +1 -1
  119. package/dist/index153.js +1 -1
  120. package/dist/index153.js.map +1 -1
  121. package/dist/index154.js +1 -1
  122. package/dist/index154.js.map +1 -1
  123. package/dist/index155.js +1 -1
  124. package/dist/index155.js.map +1 -1
  125. package/dist/index156.js +2 -2
  126. package/dist/index156.js.map +1 -1
  127. package/dist/index157.js +2 -2
  128. package/dist/index157.js.map +1 -1
  129. package/dist/index158.js +1 -1
  130. package/dist/index158.js.map +1 -1
  131. package/dist/index159.js +2 -2
  132. package/dist/index159.js.map +1 -1
  133. package/dist/index16.js +3 -3
  134. package/dist/index160.js +2 -2
  135. package/dist/index160.js.map +1 -1
  136. package/dist/index161.js +2 -2
  137. package/dist/index161.js.map +1 -1
  138. package/dist/index162.js +2 -2
  139. package/dist/index162.js.map +1 -1
  140. package/dist/index163.js +1 -1
  141. package/dist/index163.js.map +1 -1
  142. package/dist/index164.js +2 -2
  143. package/dist/index164.js.map +1 -1
  144. package/dist/index165.js +2 -2
  145. package/dist/index165.js.map +1 -1
  146. package/dist/index166.js +1 -1
  147. package/dist/index166.js.map +1 -1
  148. package/dist/index167.js +1 -1
  149. package/dist/index167.js.map +1 -1
  150. package/dist/index168.js +1 -1
  151. package/dist/index168.js.map +1 -1
  152. package/dist/index169.js +1 -1
  153. package/dist/index169.js.map +1 -1
  154. package/dist/index170.js +1 -1
  155. package/dist/index170.js.map +1 -1
  156. package/dist/index171.js +1 -1
  157. package/dist/index171.js.map +1 -1
  158. package/dist/index172.js +1 -1
  159. package/dist/index172.js.map +1 -1
  160. package/dist/index173.js +1 -1
  161. package/dist/index173.js.map +1 -1
  162. package/dist/index174.js +1 -1
  163. package/dist/index174.js.map +1 -1
  164. package/dist/index175.js +1 -1
  165. package/dist/index175.js.map +1 -1
  166. package/dist/index176.js +1 -1
  167. package/dist/index176.js.map +1 -1
  168. package/dist/index177.js +1 -1
  169. package/dist/index177.js.map +1 -1
  170. package/dist/index178.js +1 -1
  171. package/dist/index178.js.map +1 -1
  172. package/dist/index179.js +1 -1
  173. package/dist/index179.js.map +1 -1
  174. package/dist/index18.js +3 -3
  175. package/dist/index180.js +1 -1
  176. package/dist/index180.js.map +1 -1
  177. package/dist/index181.js +1 -1
  178. package/dist/index181.js.map +1 -1
  179. package/dist/index182.js +1 -1
  180. package/dist/index182.js.map +1 -1
  181. package/dist/index183.js +1 -1
  182. package/dist/index183.js.map +1 -1
  183. package/dist/index184.js +1 -1
  184. package/dist/index184.js.map +1 -1
  185. package/dist/index185.js +1 -1
  186. package/dist/index185.js.map +1 -1
  187. package/dist/index186.js +2 -2
  188. package/dist/index186.js.map +1 -1
  189. package/dist/index187.js +1 -1
  190. package/dist/index187.js.map +1 -1
  191. package/dist/index188.js +1 -1
  192. package/dist/index188.js.map +1 -1
  193. package/dist/index189.js +1 -1
  194. package/dist/index189.js.map +1 -1
  195. package/dist/index19.js +5 -5
  196. package/dist/index190.js +2 -2
  197. package/dist/index190.js.map +1 -1
  198. package/dist/index191.js +2 -2
  199. package/dist/index191.js.map +1 -1
  200. package/dist/index192.js +1 -1
  201. package/dist/index192.js.map +1 -1
  202. package/dist/index193.js +1 -1
  203. package/dist/index193.js.map +1 -1
  204. package/dist/index194.js +1 -1
  205. package/dist/index194.js.map +1 -1
  206. package/dist/index195.js +2 -2
  207. package/dist/index195.js.map +1 -1
  208. package/dist/index196.js +1 -1
  209. package/dist/index196.js.map +1 -1
  210. package/dist/index197.js +1 -1
  211. package/dist/index197.js.map +1 -1
  212. package/dist/index198.js +1 -1
  213. package/dist/index198.js.map +1 -1
  214. package/dist/index199.js +1 -1
  215. package/dist/index199.js.map +1 -1
  216. package/dist/index20.js +96 -18
  217. package/dist/index20.js.map +1 -1
  218. package/dist/index200.js +1 -1
  219. package/dist/index200.js.map +1 -1
  220. package/dist/index201.js +2 -2
  221. package/dist/index201.js.map +1 -1
  222. package/dist/index202.js +1 -1
  223. package/dist/index202.js.map +1 -1
  224. package/dist/index203.js +2 -2
  225. package/dist/index203.js.map +1 -1
  226. package/dist/index204.js +2 -149
  227. package/dist/index204.js.map +1 -1
  228. package/dist/index205.js +2 -9
  229. package/dist/index205.js.map +1 -1
  230. package/dist/index206.js +2 -6
  231. package/dist/index206.js.map +1 -1
  232. package/dist/index207.js +2 -43
  233. package/dist/index207.js.map +1 -1
  234. package/dist/index208.js +2 -21
  235. package/dist/index208.js.map +1 -1
  236. package/dist/index209.js +152 -0
  237. package/dist/index209.js.map +1 -0
  238. package/dist/index21.js +17 -32
  239. package/dist/index21.js.map +1 -1
  240. package/dist/index210.js +12 -0
  241. package/dist/index210.js.map +1 -0
  242. package/dist/index211.js +9 -0
  243. package/dist/index211.js.map +1 -0
  244. package/dist/index212.js +46 -0
  245. package/dist/index212.js.map +1 -0
  246. package/dist/index213.js +24 -0
  247. package/dist/index213.js.map +1 -0
  248. package/dist/index22.js +33 -66
  249. package/dist/index22.js.map +1 -1
  250. package/dist/{index215.js → index220.js} +1 -1
  251. package/dist/{index215.js.map → index220.js.map} +1 -1
  252. package/dist/{index216.js → index221.js} +3 -3
  253. package/dist/{index216.js.map → index221.js.map} +1 -1
  254. package/dist/{index223.js → index228.js} +1 -1
  255. package/dist/{index223.js.map → index228.js.map} +1 -1
  256. package/dist/index23.js +62 -83
  257. package/dist/index23.js.map +1 -1
  258. package/dist/{index225.js → index230.js} +1 -1
  259. package/dist/{index225.js.map → index230.js.map} +1 -1
  260. package/dist/{index233.js → index238.js} +1 -1
  261. package/dist/{index233.js.map → index238.js.map} +1 -1
  262. package/dist/index24.js +85 -21
  263. package/dist/index24.js.map +1 -1
  264. package/dist/{index236.js → index241.js} +1 -1
  265. package/dist/{index236.js.map → index241.js.map} +1 -1
  266. package/dist/index25.js +19 -401
  267. package/dist/index25.js.map +1 -1
  268. package/dist/index250.js +169 -9
  269. package/dist/index250.js.map +1 -1
  270. package/dist/index251.js +3 -4
  271. package/dist/index251.js.map +1 -1
  272. package/dist/index253.js +19 -11
  273. package/dist/index253.js.map +1 -1
  274. package/dist/index254.js +9 -5
  275. package/dist/index254.js.map +1 -1
  276. package/dist/index255.js +9 -5
  277. package/dist/index255.js.map +1 -1
  278. package/dist/index256.js +4 -37
  279. package/dist/index256.js.map +1 -1
  280. package/dist/index257.js +170 -2
  281. package/dist/index257.js.map +1 -1
  282. package/dist/index258.js +11 -8
  283. package/dist/index258.js.map +1 -1
  284. package/dist/index259.js +5 -326
  285. package/dist/index259.js.map +1 -1
  286. package/dist/index26.js +400 -44
  287. package/dist/index26.js.map +1 -1
  288. package/dist/index260.js +5 -49
  289. package/dist/index260.js.map +1 -1
  290. package/dist/index261.js +38 -2
  291. package/dist/index261.js.map +1 -1
  292. package/dist/index262.js +2 -76
  293. package/dist/index262.js.map +1 -1
  294. package/dist/index263.js +7 -92
  295. package/dist/index263.js.map +1 -1
  296. package/dist/index264.js +322 -47
  297. package/dist/index264.js.map +1 -1
  298. package/dist/index265.js +49 -7
  299. package/dist/index265.js.map +1 -1
  300. package/dist/index266.js +2 -5
  301. package/dist/index266.js.map +1 -1
  302. package/dist/index267.js +72 -48
  303. package/dist/index267.js.map +1 -1
  304. package/dist/index268.js +93 -2
  305. package/dist/index268.js.map +1 -1
  306. package/dist/index269.js +52 -2
  307. package/dist/index269.js.map +1 -1
  308. package/dist/index27.js +48 -23
  309. package/dist/index27.js.map +1 -1
  310. package/dist/index270.js +11 -0
  311. package/dist/index270.js.map +1 -0
  312. package/dist/index271.js +8 -0
  313. package/dist/index271.js.map +1 -0
  314. package/dist/index272.js +55 -0
  315. package/dist/index272.js.map +1 -0
  316. package/dist/index273.js +5 -0
  317. package/dist/index273.js.map +1 -0
  318. package/dist/index274.js +5 -0
  319. package/dist/index274.js.map +1 -0
  320. package/dist/index28.js +21 -108
  321. package/dist/index28.js.map +1 -1
  322. package/dist/index29.js +107 -147
  323. package/dist/index29.js.map +1 -1
  324. package/dist/index3.js +3 -3
  325. package/dist/index30.js +146 -132
  326. package/dist/index30.js.map +1 -1
  327. package/dist/index31.js +136 -76
  328. package/dist/index31.js.map +1 -1
  329. package/dist/index32.js +73 -94
  330. package/dist/index32.js.map +1 -1
  331. package/dist/index33.js +96 -73
  332. package/dist/index33.js.map +1 -1
  333. package/dist/index34.js +72 -38
  334. package/dist/index34.js.map +1 -1
  335. package/dist/index35.js +40 -72
  336. package/dist/index35.js.map +1 -1
  337. package/dist/index36.js +68 -94
  338. package/dist/index36.js.map +1 -1
  339. package/dist/index37.js +98 -77
  340. package/dist/index37.js.map +1 -1
  341. package/dist/index38.js +75 -311
  342. package/dist/index38.js.map +1 -1
  343. package/dist/index39.js +313 -75
  344. package/dist/index39.js.map +1 -1
  345. package/dist/index4.js +4 -4
  346. package/dist/index40.js +72 -79
  347. package/dist/index40.js.map +1 -1
  348. package/dist/index41.js +82 -32
  349. package/dist/index41.js.map +1 -1
  350. package/dist/index42.js +26 -43
  351. package/dist/index42.js.map +1 -1
  352. package/dist/index43.js +49 -109
  353. package/dist/index43.js.map +1 -1
  354. package/dist/index44.js +105 -50
  355. package/dist/index44.js.map +1 -1
  356. package/dist/index45.js +53 -142
  357. package/dist/index45.js.map +1 -1
  358. package/dist/index46.js +137 -188
  359. package/dist/index46.js.map +1 -1
  360. package/dist/index47.js +199 -36
  361. package/dist/index47.js.map +1 -1
  362. package/dist/index48.js +40 -36
  363. package/dist/index48.js.map +1 -1
  364. package/dist/index49.js +36 -149
  365. package/dist/index49.js.map +1 -1
  366. package/dist/index51.js +188 -451
  367. package/dist/index51.js.map +1 -1
  368. package/dist/index52.js +38 -98
  369. package/dist/index52.js.map +1 -1
  370. package/dist/index53.js +33 -40
  371. package/dist/index53.js.map +1 -1
  372. package/dist/index54.js +151 -36
  373. package/dist/index54.js.map +1 -1
  374. package/dist/index55.js +82 -88
  375. package/dist/index55.js.map +1 -1
  376. package/dist/index56.js +452 -154
  377. package/dist/index56.js.map +1 -1
  378. package/dist/index57.js +97 -148
  379. package/dist/index57.js.map +1 -1
  380. package/dist/index58.js +43 -33
  381. package/dist/index58.js.map +1 -1
  382. package/dist/index59.js +34 -82
  383. package/dist/index59.js.map +1 -1
  384. package/dist/index6.js +125 -125
  385. package/dist/index60.js +87 -113
  386. package/dist/index60.js.map +1 -1
  387. package/dist/index61.js +156 -71
  388. package/dist/index61.js.map +1 -1
  389. package/dist/index62.js +144 -147
  390. package/dist/index62.js.map +1 -1
  391. package/dist/index63.js +30 -315
  392. package/dist/index63.js.map +1 -1
  393. package/dist/index64.js +83 -44
  394. package/dist/index64.js.map +1 -1
  395. package/dist/index65.js +113 -138
  396. package/dist/index65.js.map +1 -1
  397. package/dist/index66.js +77 -11
  398. package/dist/index66.js.map +1 -1
  399. package/dist/index67.js +151 -54
  400. package/dist/index67.js.map +1 -1
  401. package/dist/index68.js +312 -107
  402. package/dist/index68.js.map +1 -1
  403. package/dist/index69.js +45 -17
  404. package/dist/index69.js.map +1 -1
  405. package/dist/index7.js +10 -9
  406. package/dist/index70.js +142 -63
  407. package/dist/index70.js.map +1 -1
  408. package/dist/index71.js +10 -25
  409. package/dist/index71.js.map +1 -1
  410. package/dist/index72.js +51 -104
  411. package/dist/index72.js.map +1 -1
  412. package/dist/index73.js +106 -55
  413. package/dist/index73.js.map +1 -1
  414. package/dist/index74.js +17 -19
  415. package/dist/index74.js.map +1 -1
  416. package/dist/index75.js +63 -168
  417. package/dist/index75.js.map +1 -1
  418. package/dist/index76.js +27 -18
  419. package/dist/index76.js.map +1 -1
  420. package/dist/index77.js +107 -10
  421. package/dist/index77.js.map +1 -1
  422. package/dist/index78.js +62 -5
  423. package/dist/index78.js.map +1 -1
  424. package/dist/index79.js +18 -59
  425. package/dist/index79.js.map +1 -1
  426. package/dist/index80.js +170 -26
  427. package/dist/index80.js.map +1 -1
  428. package/dist/index81.js +18 -11
  429. package/dist/index81.js.map +1 -1
  430. package/dist/index82.js +14 -0
  431. package/dist/index82.js.map +1 -0
  432. package/dist/index83.js +5 -2
  433. package/dist/index83.js.map +1 -1
  434. package/dist/index84.js +62 -2
  435. package/dist/index84.js.map +1 -1
  436. package/dist/index85.js +27 -2
  437. package/dist/index85.js.map +1 -1
  438. package/dist/index86.js +11 -2
  439. package/dist/index86.js.map +1 -1
  440. package/dist/index88.js +2 -2
  441. package/dist/index88.js.map +1 -1
  442. package/dist/index89.js +2 -2
  443. package/dist/index89.js.map +1 -1
  444. package/dist/index9.js +4 -4
  445. package/dist/index90.js +1 -1
  446. package/dist/index90.js.map +1 -1
  447. package/dist/index91.js +2 -2
  448. package/dist/index91.js.map +1 -1
  449. package/dist/index92.js +1 -1
  450. package/dist/index92.js.map +1 -1
  451. package/dist/index93.js +1 -1
  452. package/dist/index93.js.map +1 -1
  453. package/dist/index94.js +1 -1
  454. package/dist/index94.js.map +1 -1
  455. package/dist/index95.js +1 -1
  456. package/dist/index95.js.map +1 -1
  457. package/dist/index96.js +1 -1
  458. package/dist/index96.js.map +1 -1
  459. package/dist/index97.js +1 -1
  460. package/dist/index97.js.map +1 -1
  461. package/dist/index98.js +1 -1
  462. package/dist/index98.js.map +1 -1
  463. package/dist/index99.js +1 -1
  464. package/dist/index99.js.map +1 -1
  465. package/package.json +1 -1
  466. package/dist/index245.js +0 -173
  467. package/dist/index245.js.map +0 -1
  468. package/dist/index246.js +0 -7
  469. package/dist/index246.js.map +0 -1
  470. package/dist/index248.js +0 -22
  471. package/dist/index248.js.map +0 -1
  472. package/dist/index249.js +0 -13
  473. package/dist/index249.js.map +0 -1
  474. package/dist/index252.js +0 -173
  475. package/dist/index252.js.map +0 -1
  476. package/dist/index50.js +0 -89
  477. package/dist/index50.js.map +0 -1
  478. package/dist/index87.js +0 -5
  479. package/dist/index87.js.map +0 -1
package/dist/index51.js CHANGED
@@ -1,464 +1,201 @@
1
- import r, { useState as S } from "react";
2
- import { Button as z } from "./index4.js";
3
- import { Icon as _ } from "./index6.js";
4
- import { Dropdown as te } from "./index25.js";
5
- import { useDatePickerA11y as Fe, formatDateId as Pe, getCellAriaLabel as Ce } from "./index245.js";
1
+ import t, { useState as h, useRef as f, useCallback as g, useEffect as P } from "react";
6
2
  /* empty css */
7
- function T() {
8
- return T = Object.assign ? Object.assign.bind() : function(p) {
9
- for (var m = 1; m < arguments.length; m++) {
10
- var v = arguments[m];
11
- for (var w in v) ({}).hasOwnProperty.call(v, w) && (p[w] = v[w]);
3
+ import C from "./index238.js";
4
+ import { Icon as H } from "./index6.js";
5
+ import { useStableId as b } from "./index211.js";
6
+ import { getA11yNameAttributes as J } from "./index86.js";
7
+ import "./index77.js";
8
+ import { useCombobox as le } from "./index73.js";
9
+ function c() {
10
+ return c = Object.assign ? Object.assign.bind() : function(i) {
11
+ for (var l = 1; l < arguments.length; l++) {
12
+ var r = arguments[l];
13
+ for (var u in r) ({}).hasOwnProperty.call(r, u) && (i[u] = r[u]);
12
14
  }
13
- return p;
14
- }, T.apply(null, arguments);
15
+ return i;
16
+ }, c.apply(null, arguments);
15
17
  }
16
- const Oe = ["S", "M", "T", "W", "T", "F", "S"], Se = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Te = ["Today", "Yesterday", "This Week", "Last Week", "This Month", "Last Month"], q = [{
17
- value: "january",
18
- label: "January"
19
- }, {
20
- value: "february",
21
- label: "February"
22
- }, {
23
- value: "march",
24
- label: "March"
25
- }, {
26
- value: "april",
27
- label: "April"
28
- }, {
29
- value: "may",
30
- label: "May"
31
- }, {
32
- value: "june",
33
- label: "June"
34
- }, {
35
- value: "july",
36
- label: "July"
37
- }, {
38
- value: "august",
39
- label: "August"
40
- }, {
41
- value: "september",
42
- label: "September"
43
- }, {
44
- value: "october",
45
- label: "October"
46
- }, {
47
- value: "november",
48
- label: "November"
49
- }, {
50
- value: "december",
51
- label: "December"
52
- }], Re = (p, m) => new Date(p, m + 1, 0).getDate(), je = (p, m) => new Date(p, m, 1).getDay(), ze = ({
53
- title: p = "Select modified date",
54
- // isOpen = true,
55
- showHeader: m = !0,
56
- initialStartDate: v,
57
- initialEndDate: w,
58
- onApply: R = () => {
59
- },
60
- onClose: j,
61
- shouldAllowFutureDateSelection: F = !1,
62
- maxDays: g,
63
- disablePastDates: A = !1,
64
- singleDateSelection: P = !1,
65
- minYearOption: ae,
66
- showQuickActions: ne = !1,
67
- showSingleMonth: h = !1,
68
- className: re = "",
69
- automationId: y = "datepicker",
70
- labels: J = {
71
- clear: "Clear",
72
- apply: "Apply"
73
- }
18
+ const ye = ({
19
+ onCountrycodeChange: i,
20
+ onNumberChange: l,
21
+ error: r,
22
+ errorMessage: u,
23
+ value: d,
24
+ label: s,
25
+ automationId: p = "",
26
+ ariaLabel: M,
27
+ ariaLabelledBy: T,
28
+ ariaDescribedBy: z,
29
+ phoneNumberAriaLabel: x,
30
+ countryCodeAriaLabel: G,
31
+ disabled: a = !1
74
32
  }) => {
75
- const oe = () => {
76
- if (v && w)
77
- return {
78
- startDate: v,
79
- endDate: w
80
- };
81
- const t = /* @__PURE__ */ new Date();
82
- t.setHours(23, 59, 59, 999);
83
- const e = /* @__PURE__ */ new Date();
84
- return e.setHours(0, 0, 0, 0), {
85
- startDate: e,
86
- endDate: t
33
+ const [v, A] = h(d?.countryCode || C[0].dial_code), [n, y] = h(!1), [w, $] = h(C), [Q, k] = h(""), [U, R] = h(""), W = f(null), F = f(null), O = f(null), m = f(!1), N = b(p, "phone-label"), B = b(p, "phone-listbox"), X = b(p, "phone-input"), K = b(p, "phone-error"), E = C.find((e) => e.dial_code === v), V = g(() => {
34
+ y(!1), k(""), $(C);
35
+ }, []), I = g((e) => {
36
+ e && (A(e), i(e)), V();
37
+ }, [i, V]), Y = g((e) => {
38
+ m.current = !0, I(e.dial_code);
39
+ }, [I]), {
40
+ containerProps: j,
41
+ inputProps: Z,
42
+ listboxProps: ee,
43
+ getOptionProps: te,
44
+ highlightedIndex: ne,
45
+ setHighlightedIndex: q
46
+ } = le({
47
+ items: w,
48
+ isOpen: n,
49
+ onOpenChange: y,
50
+ onSelect: Y,
51
+ listboxId: B
52
+ }), oe = (e) => {
53
+ const o = e.target.value;
54
+ k(o), q(-1);
55
+ const _ = C.filter((L) => L.name.toLowerCase().includes(o.toLowerCase()) || L.dial_code.toLowerCase().includes(o.toLowerCase()) || L.code.toLowerCase().includes(o.toLowerCase()));
56
+ $(_);
57
+ }, D = f(n);
58
+ P(() => {
59
+ let e = null;
60
+ return D.current && !n && m.current && (e = requestAnimationFrame(() => {
61
+ F.current?.focus();
62
+ })), D.current && !n && (m.current = !1), D.current = n, () => {
63
+ e !== null && cancelAnimationFrame(e);
87
64
  };
88
- }, se = () => {
89
- const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
90
- return t.setDate(1), e.setDate(1), h || e.setMonth(e.getMonth() - 1), t.setHours(0, 0, 0, 0), e.setHours(0, 0, 0, 0), [e, t];
91
- }, [l, M] = S(oe), [Q] = S(se), [x, W] = S(() => Q[0]), [C, G] = S(() => Q[1]), V = (t, e) => t.getTime() > e.getTime() ? [e, t] : [t, e], N = (t, e) => {
92
- if (h) {
93
- W(t);
94
- return;
95
- }
96
- if (e) {
97
- const [a, n] = V(t, C);
98
- W(a), n !== C && G(n);
99
- } else {
100
- const [a, n] = V(x, t);
101
- a !== x && W(a), G(n);
102
- }
103
- }, {
104
- getGridCellProps: le,
105
- getLeftContainerProps: ce,
106
- getRightContainerProps: ie
107
- } = Fe({
108
- leftMonth: x,
109
- rightMonth: C,
110
- showSingleMonth: h,
111
- selectedRange: l,
112
- onMonthChange: N
113
- }), ue = (t, e) => {
114
- const a = Re(t, e), n = je(t, e), d = [];
115
- for (let c = 0; c < n; c++)
116
- d.push(null);
117
- for (let c = 1; c <= a; c++) {
118
- const u = new Date(t, e, c);
119
- u.setHours(0, 0, 0, 0), d.push(u);
120
- }
121
- return d;
122
- }, O = (t, e) => t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear(), de = (t) => {
123
- if (!l.startDate || !l.endDate) return !1;
124
- const e = new Date(t);
125
- e.setHours(12, 0, 0, 0);
126
- const a = new Date(l.startDate);
127
- a.setHours(0, 0, 0, 0);
128
- const n = new Date(l.endDate);
129
- return n.setHours(23, 59, 59, 999), e >= a && e <= n;
130
- }, ge = (t) => {
131
- const e = /* @__PURE__ */ new Date();
132
- return t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear();
133
- }, I = (t) => {
134
- if (!t) return !0;
135
- const e = /* @__PURE__ */ new Date();
136
- e.setHours(0, 0, 0, 0);
137
- const a = new Date(t);
138
- if (a.setHours(0, 0, 0, 0), A && a < e)
139
- return !0;
140
- if (g != null) {
141
- const n = new Date(e);
142
- return n.setDate(n.getDate() + g), n.setHours(0, 0, 0, 0), a > n;
143
- }
144
- return F ? !1 : a > e;
145
- }, De = (t) => {
146
- if (I(t)) return;
147
- const e = new Date(t);
148
- if (e.setHours(12, 0, 0, 0), P) {
149
- M({
150
- startDate: e,
151
- endDate: e
152
- }), R({
153
- startDate: e,
154
- endDate: e
155
- }), j?.();
156
- return;
157
- }
158
- if (!l.startDate || l.endDate)
159
- M({
160
- startDate: e,
161
- endDate: null
162
- });
163
- else {
164
- const a = new Date(l.startDate);
165
- a.setHours(12, 0, 0, 0);
166
- const n = e > a ? e : a, d = e > a ? a : e;
167
- M({
168
- startDate: d,
169
- endDate: n
170
- });
171
- }
172
- }, K = (t, e) => {
173
- const a = new Date(t);
174
- return a.setMonth(a.getMonth() + (e ? 1 : -1)), a;
175
- }, me = (t) => l?.startDate ? O(t, l.startDate) : !1, fe = (t) => l?.endDate ? O(t, l?.endDate) : !1, pe = (t) => !l.startDate || !l.endDate ? !1 : O(l.startDate, l.endDate) && O(t, l.startDate), he = (t, e) => {
176
- const a = ae || t - 10;
177
- let n = F ? t + 10 : t;
178
- if (g) {
179
- const c = /* @__PURE__ */ new Date(), u = new Date(c);
180
- u.setDate(u.getDate() + g);
181
- const b = u.getFullYear();
182
- n = Math.min(n, b);
183
- }
184
- n = Math.max(n, e);
185
- const d = n - a + 1;
186
- return Array.from({
187
- length: d
188
- }, (c, u) => ({
189
- value: a + u,
190
- label: (a + u).toString()
191
- })).filter((c) => {
192
- if (c.value === e)
193
- return !0;
194
- if (!F && c.value > t)
195
- return !1;
196
- if (g) {
197
- const u = /* @__PURE__ */ new Date(), b = new Date(u);
198
- return b.setDate(b.getDate() + g), c.value <= b.getFullYear();
65
+ }, [n]), P(() => {
66
+ d && (A(d.countryCode), R(d.number));
67
+ }, [d]), P(() => {
68
+ let e = null;
69
+ return n && (e = requestAnimationFrame(() => {
70
+ O.current?.focus();
71
+ })), () => {
72
+ e !== null && cancelAnimationFrame(e);
73
+ };
74
+ }, [n]);
75
+ const re = (e) => {
76
+ const o = e.replace(/\D/g, "");
77
+ R(o), l(o);
78
+ }, S = g(() => {
79
+ a || y((e) => !e);
80
+ }, [a]), ae = g((e) => {
81
+ if (!a)
82
+ switch (e.key) {
83
+ case "Enter":
84
+ case " ":
85
+ e.preventDefault(), S();
86
+ break;
87
+ case "ArrowDown":
88
+ e.preventDefault(), n || y(!0);
89
+ break;
199
90
  }
200
- return !0;
201
- });
202
- }, be = () => {
203
- const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
204
- e.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), M({
205
- startDate: e,
206
- endDate: t
207
- });
208
- }, k = (t) => {
209
- const e = new Date(t);
210
- return e.setHours(0, 0, 0, 0), e;
211
- }, E = (t) => {
212
- const e = new Date(t);
213
- return e.setHours(23, 59, 59, 999), e;
214
- }, ve = (t) => {
215
- const e = /* @__PURE__ */ new Date();
216
- let a = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
217
- switch (t) {
218
- case "Today":
219
- a = k(e), n = E(e);
220
- break;
221
- case "Yesterday":
222
- a = k(new Date(e.setDate(e.getDate() - 1))), n = E(new Date(e));
223
- break;
224
- case "This Week":
225
- const d = new Date(e.setDate(e.getDate() - e.getDay()));
226
- a = k(d), n = E(/* @__PURE__ */ new Date());
227
- break;
228
- case "Last Week":
229
- const c = new Date(e.setDate(e.getDate() - e.getDay() - 7)), u = new Date(e.setDate(c.getDate() + 6));
230
- a = k(c), n = E(u);
231
- break;
232
- case "This Month":
233
- a = k(new Date(e.getFullYear(), e.getMonth(), 1)), n = E(/* @__PURE__ */ new Date());
234
- break;
235
- case "Last Month":
236
- a = k(new Date(e.getFullYear(), e.getMonth() - 1, 1)), n = E(new Date(e.getFullYear(), e.getMonth(), 0));
237
- break;
238
- }
239
- M({
240
- startDate: a,
241
- endDate: n
242
- });
243
- }, we = () => /* @__PURE__ */ r.createElement("div", {
244
- className: "w-[147px] p-4 border-r border-[var(--color-gray-200)]"
245
- }, /* @__PURE__ */ r.createElement("div", {
246
- role: "group",
247
- "aria-label": "Quick date selections",
248
- className: "flex flex-col gap-3"
249
- }, Te.map((t) => /* @__PURE__ */ r.createElement(z, {
250
- key: t,
251
- label: t,
252
- type: "link",
253
- onClick: () => ve(t)
254
- })))), ye = () => {
255
- const {
256
- startDate: t = null,
257
- endDate: e = null
258
- } = l;
259
- if (t && e) {
260
- R({
261
- startDate: t,
262
- endDate: e
263
- });
264
- return;
265
- }
266
- if (t || e) {
267
- const a = t || e;
268
- R({
269
- startDate: a,
270
- endDate: a
271
- });
91
+ }, [a, n, S]), ce = J({
92
+ ariaLabelledBy: T,
93
+ internalLabelId: s ? N : void 0,
94
+ ariaLabel: M || (s ? void 0 : "Phone number")
95
+ }), se = J({
96
+ ariaLabelledBy: !x && s ? N : void 0,
97
+ ariaLabel: x || (s ? void 0 : "Phone number"),
98
+ ariaDescribedBy: r ? K : z
99
+ }), ie = G || `Select country code. Current: ${E?.name} ${E?.dial_code}`;
100
+ return /* @__PURE__ */ t.createElement("div", c({
101
+ className: "phone-input-container-se-design-main-container",
102
+ "data-automation-id": p
103
+ }, j, {
104
+ onKeyDownCapture: (e) => {
105
+ e.key === "Escape" && n && (m.current = !0), j.onKeyDownCapture(e);
272
106
  }
273
- }, U = (t, e) => {
274
- const a = t.getFullYear(), n = t.getMonth(), d = ue(a, n), c = (/* @__PURE__ */ new Date()).getFullYear(), u = he(c, a), b = new Date(a, n, 1).toLocaleString("en-US", {
275
- month: "long",
276
- year: "numeric"
277
- }), ke = e ? ce : ie, X = `calendar-instructions-${e ? "left" : "right"}`, Ee = P ? "Press Enter or Space to select a date. Use arrow keys to navigate days, Page Up and Page Down to change months." : "Press Enter or Space to select a start date, then again to select an end date. Use arrow keys to navigate days, Page Up and Page Down to change months.", Me = le({
278
- isLeftCalendar: e,
279
- isDateDisabled: I,
280
- handleDateClick: De
281
- }), Z = [];
282
- for (let o = 0; o < d.length; o += 7) {
283
- const s = d.slice(o, o + 7);
284
- for (; s.length < 7; ) s.push(null);
285
- Z.push(s);
286
- }
287
- const $ = /* @__PURE__ */ new Date(), xe = A && t.getMonth() === $.getMonth() && t.getFullYear() === $.getFullYear(), Ne = !F && n === $.getMonth() && a === $.getFullYear() || g !== void 0 && (() => {
288
- const o = new Date($);
289
- return o.setDate(o.getDate() + g), t.getMonth() === o.getMonth() && t.getFullYear() === o.getFullYear();
290
- })();
291
- return /* @__PURE__ */ r.createElement("div", {
292
- className: "se-design-calendar-container w-fit p-4"
293
- }, /* @__PURE__ */ r.createElement("div", {
294
- className: "flex justify-between items-center"
295
- }, /* @__PURE__ */ r.createElement(_, {
296
- name: "chevron",
297
- rotation: "90",
298
- size: 16,
299
- disabled: xe,
300
- onClick: () => {
301
- const o = K(t, !1);
302
- if (A) {
303
- const s = /* @__PURE__ */ new Date();
304
- if (s.setHours(0, 0, 0, 0), o < s && o.getMonth() !== s.getMonth())
305
- return;
306
- }
307
- N(o, e);
308
- },
309
- automationId: `${y}-previous-month`,
310
- ariaLabel: h ? "Previous month" : e ? "Previous month of starting date" : "Previous month of end date"
311
- }), /* @__PURE__ */ r.createElement("div", {
312
- className: "flex gap-2",
313
- onClick: (o) => o.stopPropagation()
314
- }, /* @__PURE__ */ r.createElement(te, {
315
- type: "select",
316
- dropDownOptions: q,
317
- defaultSelectedValue: q[n],
318
- selectBy: "label",
319
- optionsUniqueBy: "value",
320
- displaySelected: !0,
321
- label: h ? "Month" : e ? "Start month" : "End month",
322
- firstOptionAsHeading: !0,
323
- onOptionClick: (o) => {
324
- const s = new Date(t);
325
- s.setMonth(q.findIndex((i) => i.value === o.value)), N(s, e);
326
- },
327
- className: "w-[124px] dropdown-option-container"
328
- }), /* @__PURE__ */ r.createElement(te, {
329
- type: "select",
330
- dropDownOptions: u,
331
- defaultSelectedValue: u.find((o) => o.value === a),
332
- selectBy: "label",
333
- optionsUniqueBy: "value",
334
- displaySelected: !0,
335
- label: h ? "Year" : e ? "Start year" : "End year",
336
- firstOptionAsHeading: !0,
337
- onOptionClick: (o) => {
338
- const s = new Date(t);
339
- s.setFullYear(o.value), N(s, e);
340
- },
341
- className: "w-[104px] dropdown-option-container"
342
- })), /* @__PURE__ */ r.createElement(_, {
343
- name: "chevron",
344
- rotation: "270",
345
- size: 16,
346
- disabled: Ne,
107
+ }), s && /* @__PURE__ */ t.createElement("div", {
108
+ id: N,
109
+ className: "label-container"
110
+ }, s), /* @__PURE__ */ t.createElement("div", c({
111
+ role: "group"
112
+ }, ce, {
113
+ className: `phone-input-container-se-design-main ${r ? "error" : ""}`,
114
+ ref: W
115
+ }), /* @__PURE__ */ t.createElement("div", {
116
+ className: "phone-input-container-se-design"
117
+ }, /* @__PURE__ */ t.createElement("button", {
118
+ ref: F,
119
+ type: "button",
120
+ className: `phone-input-container-se-design-country-code focus-outline rounded ${a ? "cursor-not-allowed opacity-60" : ""}`,
121
+ onClick: S,
122
+ onKeyDown: ae,
123
+ "aria-haspopup": "listbox",
124
+ "aria-expanded": n,
125
+ "aria-controls": n ? B : void 0,
126
+ "aria-label": ie,
127
+ disabled: a,
128
+ "data-automation-id": "country-code-selector"
129
+ }, /* @__PURE__ */ t.createElement("img", {
130
+ src: `https://flagcdn.com/${E?.code.toLowerCase()}.svg`,
131
+ alt: "",
132
+ "aria-hidden": "true",
133
+ width: "16"
134
+ }), /* @__PURE__ */ t.createElement("span", null, E?.dial_code), /* @__PURE__ */ t.createElement(H, {
135
+ name: "chevron",
136
+ className: n ? "rotate-180" : "",
137
+ "aria-hidden": "true"
138
+ })), /* @__PURE__ */ t.createElement("span", {
139
+ className: "divider",
140
+ "aria-hidden": "true"
141
+ }), /* @__PURE__ */ t.createElement("input", c({
142
+ id: X,
143
+ type: "tel",
144
+ placeholder: "Enter phone number",
145
+ className: `phone-input-container-se-design-phone-number-input ${a ? "disabled" : ""}`,
146
+ onChange: (e) => re(e.target.value),
147
+ value: U,
148
+ pattern: "[0-9]*",
149
+ disabled: a,
150
+ "aria-invalid": r || void 0
151
+ }, se, {
152
+ "data-automation-id": "phone-number-input-field"
153
+ }))), n && /* @__PURE__ */ t.createElement("div", c({}, ee, {
154
+ className: "phone-input-container-se-design-country-code-list",
155
+ "aria-label": "Select country",
156
+ "data-automation-id": "country-code-list"
157
+ }), /* @__PURE__ */ t.createElement("div", {
158
+ className: "search-input-wrapper"
159
+ }, /* @__PURE__ */ t.createElement(H, {
160
+ name: "search",
161
+ className: "search-icon",
162
+ "aria-hidden": "true"
163
+ }), /* @__PURE__ */ t.createElement("input", c({
164
+ ref: O
165
+ }, Z, {
166
+ type: "text",
167
+ placeholder: "Search countries",
168
+ className: "phone-input-container-se-design-country-code-list-item-input",
169
+ onChange: oe,
170
+ value: Q,
171
+ "aria-label": "Search countries",
172
+ "data-automation-id": "country-code-search-input"
173
+ }))), w.length > 0 ? w.map((e, o) => {
174
+ const _ = te(o, e.dial_code === v);
175
+ return /* @__PURE__ */ t.createElement("div", c({
176
+ key: e.code
177
+ }, _, {
178
+ className: `phone-input-container-se-design-country-code-list-item ${ne === o ? "highlighted" : ""} ${e.dial_code === v ? "selected" : ""}`,
347
179
  onClick: () => {
348
- const o = K(t, !0);
349
- if (g !== void 0) {
350
- const s = /* @__PURE__ */ new Date(), i = new Date(s);
351
- if (i.setDate(i.getDate() + g), o > i)
352
- return;
353
- }
354
- N(o, e);
180
+ m.current = !0, I(e.dial_code);
355
181
  },
356
- automationId: `${y}-next-month`,
357
- ariaLabel: h ? "Next month" : e ? "Next month of starting date" : "Next month of end date"
358
- })), /* @__PURE__ */ r.createElement("span", {
359
- id: X,
360
- className: "sr-only"
361
- }, Ee), /* @__PURE__ */ r.createElement("div", T({}, ke({
362
- ariaLabel: b,
363
- ariaDescribedBy: X
364
- }), {
365
- className: "mt-3"
366
- }), /* @__PURE__ */ r.createElement("div", {
367
- role: "row",
368
- className: "grid grid-cols-7 gap-2"
369
- }, Oe.map((o, s) => /* @__PURE__ */ r.createElement("abbr", {
370
- key: `${o}-${s}`,
371
- role: "columnheader",
372
- title: Se[s],
373
- className: "datepicker-weekdays"
374
- }, o))), Z.map((o, s) => /* @__PURE__ */ r.createElement("div", {
375
- key: s,
376
- role: "row",
377
- className: "grid grid-cols-7 gap-2"
378
- }, o.map((i, $e) => {
379
- if (!i)
380
- return /* @__PURE__ */ r.createElement("div", {
381
- key: `empty-${s}-${$e}`,
382
- role: "gridcell",
383
- "aria-hidden": "true",
384
- className: "h-10 w-10"
385
- });
386
- const ee = Pe(i), D = me(i), f = fe(i), H = pe(i), B = !D && !f && de(i), L = ge(i), Y = I(i), {
387
- ref: He,
388
- ...Ye
389
- } = Me({
390
- cellId: ee,
391
- cellDate: i,
392
- disabled: Y,
393
- ariaLabel: Ce(i, D, f, H, P, B),
394
- ariaCurrent: L ? "date" : void 0,
395
- ariaDisabled: Y || void 0
396
- });
397
- return /* @__PURE__ */ r.createElement("div", {
398
- key: ee,
399
- role: "gridcell",
400
- "aria-selected": D || f || void 0,
401
- className: "relative h-10 w-10"
402
- }, /* @__PURE__ */ r.createElement("button", T({
403
- type: "button"
404
- }, Ye, {
405
- ref: He,
406
- className: `
407
- datepicker-cell-button
408
- h-full w-full flex items-center justify-center
409
- rounded-md focus-outline transition-colors
410
- ${Y ? "cursor-not-allowed text-[var(--color-gray-600)] hover:bg-transparent" : "cursor-pointer"}
411
- ${H ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
412
- ${!H && D ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
413
- ${!H && f ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
414
- ${!D && !f && B ? "bg-[var(--color-blue-100)] text-[var(--color-blue-600)] outline outline-1 outline-[var(--color-blue-500)]" : ""}
415
- ${!D && !f && !B && !Y ? "hover:bg-[var(--color-blue-100)] hover:outline hover:outline-1 hover:outline-[var(--color-blue-500)]" : ""}
416
- ${L && !D && !f ? "text-[var(--color-blue-500)] bg-[var(--color-blue-100)] outline outline-1 outline-[var(--color-blue-500)]" : ""}
417
- ${!Y && !D && !f && !L ? "text-[var(--color-blue-500)]" : ""}
418
- `,
419
- "data-automation-id": `${y}-date-${i.getDate()}`
420
- }), i.getDate()), !H && (D || f) && /* @__PURE__ */ r.createElement("div", {
421
- "aria-hidden": "true",
422
- className: `absolute top-0 bottom-0 ${D ? "right-[-8px]" : "left-[-8px]"} w-[8px]
423
- bg-[var(--color-blue-100)] -z-10`
424
- }));
425
- })))));
426
- };
427
- return /* @__PURE__ */ r.createElement("div", {
428
- className: `se-design-datepicker-container flex flex-col bg-[var(--color-white)] rounded-md shadow-md w-max max-w-full ${re}`
429
- }, m && /* @__PURE__ */ r.createElement("div", {
430
- className: "se-design-datepicker-header flex justify-between items-center border-b border-[var(--color-gray-200)] p-4"
431
- }, /* @__PURE__ */ r.createElement("h2", {
432
- className: "datepicker-title"
433
- }, p), j && /* @__PURE__ */ r.createElement(_, {
434
- name: "close",
435
- size: 16,
436
- onClick: j,
437
- className: "cursor-pointer",
438
- automationId: `${y}-close`,
439
- ariaLabel: "Close date picker"
440
- })), /* @__PURE__ */ r.createElement("div", {
441
- className: "se-design-datepicker-content flex"
442
- }, ne && we(), /* @__PURE__ */ r.createElement("div", {
443
- className: "flex"
444
- }, h ? U(x, !0) : /* @__PURE__ */ r.createElement(r.Fragment, null, U(x, !0), /* @__PURE__ */ r.createElement("div", {
445
- className: "h-full w-[1px] border-r border-[var(--color-gray-200)]",
446
- "aria-hidden": "true"
447
- }), U(C, !1)))), !P && /* @__PURE__ */ r.createElement("div", {
448
- className: "se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]"
449
- }, /* @__PURE__ */ r.createElement(z, {
450
- label: J?.clear || "Clear",
451
- type: "ghost",
452
- onClick: be,
453
- "data-automation-id": `${y}-clear-button`
454
- }), /* @__PURE__ */ r.createElement(z, {
455
- label: J?.apply || "Apply",
456
- type: "primary",
457
- onClick: ye,
458
- "data-automation-id": `${y}-apply-button`
459
- })));
182
+ onMouseEnter: () => q(o)
183
+ }), /* @__PURE__ */ t.createElement("img", {
184
+ src: `https://flagcdn.com/${e.code.toLowerCase()}.svg`,
185
+ alt: "",
186
+ "aria-hidden": "true",
187
+ width: "16"
188
+ }), /* @__PURE__ */ t.createElement("span", null, e.name), /* @__PURE__ */ t.createElement("span", null, "(", e.dial_code, ")"));
189
+ }) : /* @__PURE__ */ t.createElement("div", {
190
+ className: "phone-input-container-se-design-country-code-list-item-no-results",
191
+ role: "status"
192
+ }, "No results found"))), r && /* @__PURE__ */ t.createElement("div", {
193
+ id: K,
194
+ className: "error-message",
195
+ role: "alert"
196
+ }, u));
460
197
  };
461
198
  export {
462
- ze as DatePicker
199
+ ye as PhoneInput
463
200
  };
464
201
  //# sourceMappingURL=index51.js.map