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/index59.js CHANGED
@@ -1,89 +1,41 @@
1
- import e, { useRef as S, useState as f } from "react";
2
- import { CustomModal as T } from "./index13.js";
3
- import { Icon as v } from "./index6.js";
4
- /* empty css */
5
- const C = ({
6
- children: c = null,
7
- title: n = "",
8
- onClose: s = () => {
9
- },
10
- showCloseIcon: l = !1,
11
- showBackButton: a = !1,
12
- onBack: m = () => {
13
- },
14
- className: i = "",
15
- automationId: r = "",
16
- minHeight: u = "auto"
1
+ import a from "react";
2
+ const u = ({
3
+ checkedRadioOption: t,
4
+ optionList: r,
5
+ onChange: l,
6
+ switchWidth: c,
7
+ automationId: i = ""
17
8
  }) => {
18
- const t = S(null), [g, p] = f(0), [E, h] = f(0), [b, Y] = f(!1), k = (o) => {
19
- p(o.touches[0].clientY), h(o.touches[0].clientY), Y(!0);
20
- }, N = (o) => {
21
- if (!b) return;
22
- const d = o.touches[0].clientY, x = d - g;
23
- x > 0 && (h(d), t.current && (t.current.style.transform = `translateY(${x}px)`));
24
- }, y = () => {
25
- if (!b) return;
26
- E - g > 60 ? s() : t.current && (t.current.style.transform = "translateY(0)"), Y(!1), p(0), h(0);
9
+ const s = (e) => {
10
+ l && l(e);
27
11
  };
28
- return /* @__PURE__ */ e.createElement("div", {
29
- ref: t,
30
- className: `se-design-bottom-sheet relative h-max max-h-[98vh] rounded-t-2xl flex flex-col pt-5 ${i}`,
31
- onClick: (o) => o.stopPropagation(),
32
- onTouchStart: k,
33
- onTouchMove: N,
34
- onTouchEnd: y,
35
- "data-automation-id": r,
12
+ return /* @__PURE__ */ a.createElement("div", {
13
+ className: "flex rounded-full border border-gray-300 bg-white min-w-[110px] h-[34px]",
14
+ role: "radiogroup",
15
+ "aria-label": "Switch options",
16
+ "data-automation-id": i,
36
17
  style: {
37
- minHeight: u
18
+ width: c
19
+ // Moved min-w-[100px] and h-[34px] to Tailwind classes below, so these inline styles are no longer needed.
38
20
  }
39
- }, (n || a) && /* @__PURE__ */ e.createElement("div", {
40
- className: "se-design-bottom-sheet-header flex items-center justify-left gap-3 mr-6 px-4"
41
- }, a && /* @__PURE__ */ e.createElement(v, {
42
- name: "back",
43
- stroke: "var(--color-gray-700)",
44
- onClick: m,
45
- className: "se-design-bottom-sheet-back-icon cursor-pointer",
46
- automationId: `${r}-back-icon`
47
- }), n && /* @__PURE__ */ e.createElement("div", {
48
- className: "se-design-bottom-sheet-title text-lg font-semibold"
49
- }, n)), l && /* @__PURE__ */ e.createElement(v, {
50
- name: "close",
51
- onClick: s,
52
- className: "se-design-bottom-sheet-close-icon absolute top-6 right-4 cursor-pointer z-10",
53
- automationId: `${r}-close-icon`
54
- }), /* @__PURE__ */ e.createElement("div", {
55
- className: "se-design-bottom-sheet-content px-4 pb-5 flex-1 min-h-0 overflow-y-auto"
56
- }, c));
57
- }, I = ({
58
- isOpen: c = !1,
59
- title: n = "",
60
- onClose: s = () => {
61
- },
62
- children: l = null,
63
- showCloseIcon: a = !0,
64
- showBackButton: m = !1,
65
- onBack: i = () => {
66
- },
67
- className: r = "",
68
- automationId: u = "bottomsheet",
69
- minHeight: t = ""
70
- }) => /* @__PURE__ */ e.createElement(T, {
71
- isOpen: c,
72
- onClose: s,
73
- onModalClick: s,
74
- className: "custom-bottom-sheet",
75
- renderModalContent: () => /* @__PURE__ */ e.createElement(C, {
76
- title: n,
77
- onClose: s,
78
- showCloseIcon: a,
79
- showBackButton: m,
80
- onBack: i,
81
- className: r,
82
- automationId: u,
83
- minHeight: t
84
- }, l)
85
- });
21
+ }, r.map((e) => /* @__PURE__ */ a.createElement("div", {
22
+ key: e.value,
23
+ className: `relative flex-1 flex items-center block py-2 px-4 rounded-[24px] w-full text-center cursor-pointer transition-all duration-200 ${e.value === t ? "bg-[var(--color-blue-100)] text-[var(--color-blue-500)] shadow-sm" : "text-gray-700 hover:text-gray-900"}`,
24
+ onClick: () => s(e.value),
25
+ "data-automation-id": `radio-switch-option-${e.value}`
26
+ }, /* @__PURE__ */ a.createElement("input", {
27
+ type: "radio",
28
+ name: "switch",
29
+ id: `switch-${e.value}`,
30
+ checked: e.value === t,
31
+ className: "sr-only"
32
+ // Hide the input but keep it accessible
33
+ }), /* @__PURE__ */ a.createElement("label", {
34
+ htmlFor: `switch-${e.value}`,
35
+ className: " cursor-pointer "
36
+ }, e.label))));
37
+ };
86
38
  export {
87
- I as BottomSheet
39
+ u as RadioSwitch
88
40
  };
89
41
  //# sourceMappingURL=index59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index59.js","sources":["../src/components/BottomSheet/index.tsx"],"sourcesContent":["import React, { FC, useState, useRef } from 'react';\nimport { CustomModal } from '../CustomModal';\nimport { Icon } from '../Icon';\n\nimport './style.scss';\n\nexport interface BottomSheetProps {\n isOpen: boolean;\n title?: string;\n onClose: () => void;\n showCloseIcon?: boolean;\n showBackButton?: boolean;\n onBack?: () => void;\n children: React.ReactNode;\n className?: string;\n automationId?: string;\n minHeight?: string;\n}\n\ninterface BottomSheetContentProps {\n title?: string;\n onClose: () => void;\n showCloseIcon?: boolean;\n showBackButton?: boolean;\n onBack?: () => void;\n children: React.ReactNode;\n className?: string;\n automationId?: string;\n minHeight?: string;\n}\n\nconst BottomSheetContent: FC<BottomSheetContentProps> = ({\n children = null,\n title = '',\n onClose = () => {},\n showCloseIcon = false,\n showBackButton = false,\n onBack = () => {},\n className = '',\n automationId = '',\n minHeight = 'auto'\n}) => {\n const contentRef = useRef<HTMLDivElement>(null);\n const [startY, setStartY] = useState<number>(0);\n const [currentY, setCurrentY] = useState<number>(0);\n const [isDragging, setIsDragging] = useState<boolean>(false);\n\n const handleTouchStart = (e: React.TouchEvent) => {\n setStartY(e.touches[0].clientY);\n setCurrentY(e.touches[0].clientY);\n setIsDragging(true);\n };\n\n const handleTouchMove = (e: React.TouchEvent) => {\n if (!isDragging) return;\n\n const touchY = e.touches[0].clientY;\n const deltaY = touchY - startY;\n\n // Only allow dragging down\n if (deltaY > 0) {\n setCurrentY(touchY);\n if (contentRef.current) {\n contentRef.current.style.transform = `translateY(${deltaY}px)`;\n }\n }\n };\n\n const handleTouchEnd = () => {\n if (!isDragging) return;\n\n const deltaY = currentY - startY;\n const threshold = 60; // pixels to swipe down to trigger close\n\n if (deltaY > threshold) {\n // Trigger close\n onClose();\n } else {\n // Reset position\n if (contentRef.current) {\n contentRef.current.style.transform = 'translateY(0)';\n }\n }\n\n setIsDragging(false);\n setStartY(0);\n setCurrentY(0);\n };\n\n return (\n <div\n ref={contentRef}\n className={`se-design-bottom-sheet relative h-max max-h-[98vh] rounded-t-2xl flex flex-col pt-5 ${className}`}\n onClick={(e) => e.stopPropagation()}\n onTouchStart={handleTouchStart}\n onTouchMove={handleTouchMove}\n onTouchEnd={handleTouchEnd}\n data-automation-id={automationId}\n style={{ minHeight }}\n >\n {(title || showBackButton) && (\n <div className=\"se-design-bottom-sheet-header flex items-center justify-left gap-3 mr-6 px-4\">\n {showBackButton && (\n <Icon\n name=\"back\"\n stroke=\"var(--color-gray-700)\"\n onClick={onBack}\n className=\"se-design-bottom-sheet-back-icon cursor-pointer\"\n automationId={`${automationId}-back-icon`}\n />\n )}\n {title && <div className=\"se-design-bottom-sheet-title text-lg font-semibold\">{title}</div>}\n </div>\n )}\n {showCloseIcon && (\n <Icon\n name=\"close\"\n onClick={onClose}\n className=\"se-design-bottom-sheet-close-icon absolute top-6 right-4 cursor-pointer z-10\"\n automationId={`${automationId}-close-icon`}\n />\n )}\n <div className=\"se-design-bottom-sheet-content px-4 pb-5 flex-1 min-h-0 overflow-y-auto\">{children}</div>\n </div>\n );\n};\n\nexport const BottomSheet: FC<BottomSheetProps> = ({\n isOpen = false,\n title = '',\n onClose = () => {},\n children = null,\n showCloseIcon = true,\n showBackButton = false,\n onBack = () => {},\n className = '',\n automationId = 'bottomsheet',\n minHeight = ''\n}) => {\n return (\n <CustomModal\n isOpen={isOpen}\n onClose={onClose}\n onModalClick={onClose}\n className=\"custom-bottom-sheet\"\n renderModalContent={() => (\n <BottomSheetContent\n title={title}\n onClose={onClose}\n showCloseIcon={showCloseIcon}\n showBackButton={showBackButton}\n onBack={onBack}\n className={className}\n automationId={automationId}\n minHeight={minHeight}\n >\n {children}\n </BottomSheetContent>\n )}\n />\n );\n};\n"],"names":["BottomSheetContent","children","title","onClose","showCloseIcon","showBackButton","onBack","className","automationId","minHeight","contentRef","useRef","startY","setStartY","useState","currentY","setCurrentY","isDragging","setIsDragging","handleTouchStart","e","touches","clientY","handleTouchMove","touchY","deltaY","current","style","transform","handleTouchEnd","React","createElement","ref","onClick","stopPropagation","onTouchStart","onTouchMove","onTouchEnd","Icon","name","stroke","BottomSheet","isOpen","CustomModal","onModalClick","renderModalContent"],"mappings":";;;;AA+BA,MAAMA,IAAkDA,CAAC;AAAA,EACvDC,UAAAA,IAAW;AAAA,EACXC,OAAAA,IAAQ;AAAA,EACRC,SAAAA,IAAUA,MAAM;AAAA,EAAC;AAAA,EACjBC,eAAAA,IAAgB;AAAA,EAChBC,gBAAAA,IAAiB;AAAA,EACjBC,QAAAA,IAASA,MAAM;AAAA,EAAC;AAAA,EAChBC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AAAA,EACfC,WAAAA,IAAY;AACd,MAAM;AACJ,QAAMC,IAAaC,EAAuB,IAAI,GACxC,CAACC,GAAQC,CAAS,IAAIC,EAAiB,CAAC,GACxC,CAACC,GAAUC,CAAW,IAAIF,EAAiB,CAAC,GAC5C,CAACG,GAAYC,CAAa,IAAIJ,EAAkB,EAAK,GAErDK,IAAmBA,CAACC,MAAwB;AAChDP,IAAAA,EAAUO,EAAEC,QAAQ,CAAC,EAAEC,OAAO,GAC9BN,EAAYI,EAAEC,QAAQ,CAAC,EAAEC,OAAO,GAChCJ,EAAc,EAAI;AAAA,EACpB,GAEMK,IAAkBA,CAACH,MAAwB;AAC/C,QAAI,CAACH,EAAY;AAEjB,UAAMO,IAASJ,EAAEC,QAAQ,CAAC,EAAEC,SACtBG,IAASD,IAASZ;AAGxB,IAAIa,IAAS,MACXT,EAAYQ,CAAM,GACdd,EAAWgB,YACbhB,EAAWgB,QAAQC,MAAMC,YAAY,cAAcH,CAAM;AAAA,EAG/D,GAEMI,IAAiBA,MAAM;AAC3B,QAAI,CAACZ,EAAY;AAKjB,IAHeF,IAAWH,IACR,KAIhBT,EAAAA,IAGIO,EAAWgB,YACbhB,EAAWgB,QAAQC,MAAMC,YAAY,kBAIzCV,EAAc,EAAK,GACnBL,EAAU,CAAC,GACXG,EAAY,CAAC;AAAA,EACf;AAEA,SACEc,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEC,KAAKtB;AAAAA,IACLH,WAAW,uFAAuFA,CAAS;AAAA,IAC3G0B,SAAUb,CAAAA,MAAMA,EAAEc,gBAAAA;AAAAA,IAClBC,cAAchB;AAAAA,IACdiB,aAAab;AAAAA,IACbc,YAAYR;AAAAA,IACZ,sBAAoBrB;AAAAA,IACpBmB,OAAO;AAAA,MAAElB,WAAAA;AAAAA,IAAAA;AAAAA,EAAU,IAEjBP,KAASG,MACTyB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKxB,WAAU;AAAA,EAAA,GACZF,KACCyB,gBAAAA,EAAAC,cAACO,GAAI;AAAA,IACHC,MAAK;AAAA,IACLC,QAAO;AAAA,IACPP,SAAS3B;AAAAA,IACTC,WAAU;AAAA,IACVC,cAAc,GAAGA,CAAY;AAAA,EAAA,CAC9B,GAEFN,KAAS4B,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKxB,WAAU;AAAA,EAAA,GAAsDL,CAAW,CACvF,GAENE,KACC0B,gBAAAA,EAAAC,cAACO,GAAI;AAAA,IACHC,MAAK;AAAA,IACLN,SAAS9B;AAAAA,IACTI,WAAU;AAAA,IACVC,cAAc,GAAGA,CAAY;AAAA,EAAA,CAC9B,GAEHsB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKxB,WAAU;AAAA,EAAA,GAA2EN,CAAc,CACrG;AAET,GAEawC,IAAoCA,CAAC;AAAA,EAChDC,QAAAA,IAAS;AAAA,EACTxC,OAAAA,IAAQ;AAAA,EACRC,SAAAA,IAAUA,MAAM;AAAA,EAAC;AAAA,EACjBF,UAAAA,IAAW;AAAA,EACXG,eAAAA,IAAgB;AAAA,EAChBC,gBAAAA,IAAiB;AAAA,EACjBC,QAAAA,IAASA,MAAM;AAAA,EAAC;AAAA,EAChBC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AAAA,EACfC,WAAAA,IAAY;AACd,MAEIqB,gBAAAA,EAAAC,cAACY,GAAW;AAAA,EACVD,QAAAA;AAAAA,EACAvC,SAAAA;AAAAA,EACAyC,cAAczC;AAAAA,EACdI,WAAU;AAAA,EACVsC,oBAAoBA,MAClBf,gBAAAA,EAAAC,cAAC/B,GAAkB;AAAA,IACjBE,OAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,eAAAA;AAAAA,IACAC,gBAAAA;AAAAA,IACAC,QAAAA;AAAAA,IACAC,WAAAA;AAAAA,IACAC,cAAAA;AAAAA,IACAC,WAAAA;AAAAA,EAAAA,GAECR,CACiB;AAAA,CAEvB;"}
1
+ {"version":3,"file":"index59.js","sources":["../src/components/RadioSwitch/index.tsx"],"sourcesContent":["import React from 'react';\n\n/**\n * This is Radio Switch, Only one option can be selected at a time.\n * There can be multiple options, but only one can be selected at a time.\n */\nexport interface RadioSwitchOption {\n label: string;\n value: string;\n}\n\nexport interface RadioSwitchProps {\n checkedRadioOption?: string;\n optionList: RadioSwitchOption[];\n onChange?: (value: string) => void;\n switchWidth?: string;\n automationId?: string;\n}\n\nexport const RadioSwitch: React.FC<RadioSwitchProps> = ({ checkedRadioOption, optionList, onChange, switchWidth, automationId = '' }) => {\n const handleChange = (value: string) => {\n if (onChange) {\n onChange(value);\n }\n };\n\n return (\n <div\n className=\"flex rounded-full border border-gray-300 bg-white min-w-[110px] h-[34px]\"\n role=\"radiogroup\"\n aria-label=\"Switch options\"\n data-automation-id={automationId}\n style={{\n width: switchWidth\n // Moved min-w-[100px] and h-[34px] to Tailwind classes below, so these inline styles are no longer needed.\n }}\n >\n {optionList.map((option) => (\n <div\n key={option.value}\n className={`relative flex-1 flex items-center block py-2 px-4 rounded-[24px] w-full text-center cursor-pointer transition-all duration-200 ${\n option.value === checkedRadioOption\n ? 'bg-[var(--color-blue-100)] text-[var(--color-blue-500)] shadow-sm'\n : 'text-gray-700 hover:text-gray-900'\n }`}\n onClick={() => handleChange(option.value)}\n data-automation-id={`radio-switch-option-${option.value}`}\n >\n <input\n type=\"radio\"\n name=\"switch\"\n id={`switch-${option.value}`}\n checked={option.value === checkedRadioOption}\n className=\"sr-only\" // Hide the input but keep it accessible\n />\n <label htmlFor={`switch-${option.value}`} className={' cursor-pointer '}>\n {option.label}\n </label>\n </div>\n ))}\n </div>\n );\n};\n"],"names":["RadioSwitch","checkedRadioOption","optionList","onChange","switchWidth","automationId","handleChange","value","React","createElement","className","role","style","width","map","option","key","onClick","type","name","id","checked","htmlFor","label"],"mappings":";AAmBO,MAAMA,IAA0CA,CAAC;AAAA,EAAEC,oBAAAA;AAAAA,EAAoBC,YAAAA;AAAAA,EAAYC,UAAAA;AAAAA,EAAUC,aAAAA;AAAAA,EAAaC,cAAAA,IAAe;AAAG,MAAM;AACvI,QAAMC,IAAeA,CAACC,MAAkB;AACtC,IAAIJ,KACFA,EAASI,CAAK;AAAA,EAElB;AAEA,SACEC,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEC,WAAU;AAAA,IACVC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,sBAAoBN;AAAAA,IACpBO,OAAO;AAAA,MACLC,OAAOT;AAAAA;AAAAA,IAAAA;AAAAA,EAET,GAECF,EAAWY,IAAKC,CAAAA,MACfP,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEO,KAAKD,EAAOR;AAAAA,IACZG,WAAW,kIACTK,EAAOR,UAAUN,IACb,sEACA,mCAAmC;AAAA,IAEzCgB,SAASA,MAAMX,EAAaS,EAAOR,KAAK;AAAA,IACxC,sBAAoB,uBAAuBQ,EAAOR,KAAK;AAAA,EAAA,GAEvDC,gBAAAA,EAAAC,cAAA,SAAA;AAAA,IACES,MAAK;AAAA,IACLC,MAAK;AAAA,IACLC,IAAI,UAAUL,EAAOR,KAAK;AAAA,IAC1Bc,SAASN,EAAOR,UAAUN;AAAAA,IAC1BS,WAAU;AAAA;AAAA,EAAA,CACX,GACDF,gBAAAA,EAAAC,cAAA,SAAA;AAAA,IAAOa,SAAS,UAAUP,EAAOR,KAAK;AAAA,IAAIG,WAAW;AAAA,EAAA,GAClDK,EAAOQ,KACH,CACJ,CACN,CACE;AAET;"}
package/dist/index6.js CHANGED
@@ -1,129 +1,129 @@
1
- import L from "./index83.js";
2
- import R from "./index84.js";
3
- import F from "./index85.js";
4
- import B from "./index86.js";
5
- import D from "./index87.js";
6
- import M from "./index88.js";
7
- import q from "./index89.js";
8
- import G from "./index90.js";
9
- import V from "./index91.js";
10
- import H from "./index92.js";
11
- import J from "./index93.js";
12
- import K from "./index94.js";
13
- import Q from "./index95.js";
14
- import U from "./index96.js";
15
- import W from "./index97.js";
16
- import X from "./index98.js";
17
- import Y from "./index99.js";
18
- import Z from "./index100.js";
19
- import z from "./index101.js";
20
- import ss from "./index102.js";
21
- import os from "./index103.js";
22
- import _s from "./index104.js";
23
- import ts from "./index105.js";
24
- import is from "./index106.js";
25
- import rs from "./index107.js";
26
- import es from "./index108.js";
27
- import cs from "./index109.js";
28
- import as from "./index110.js";
29
- import ms from "./index111.js";
30
- import gs from "./index112.js";
31
- import vs from "./index113.js";
32
- import ns from "./index114.js";
33
- import ls from "./index115.js";
34
- import fs from "./index116.js";
35
- import bs from "./index117.js";
36
- import ps from "./index118.js";
37
- import ds from "./index119.js";
38
- import us from "./index120.js";
39
- import hs from "./index121.js";
40
- import ks from "./index122.js";
41
- import xs from "./index123.js";
42
- import As from "./index124.js";
43
- import Is from "./index125.js";
44
- import ws from "./index126.js";
45
- import ys from "./index127.js";
46
- import Ps from "./index128.js";
47
- import Ns from "./index129.js";
48
- import Cs from "./index130.js";
49
- import Os from "./index131.js";
50
- import $s from "./index132.js";
51
- import Es from "./index133.js";
52
- import Ss from "./index134.js";
53
- import Ts from "./index135.js";
54
- import js from "./index136.js";
55
- import Ls from "./index137.js";
56
- import Rs from "./index138.js";
57
- import Fs from "./index139.js";
58
- import Bs from "./index140.js";
59
- import Ds from "./index141.js";
60
- import Ms from "./index142.js";
61
- import qs from "./index143.js";
62
- import Gs from "./index144.js";
63
- import Vs from "./index145.js";
64
- import Hs from "./index146.js";
65
- import Js from "./index147.js";
66
- import Ks from "./index148.js";
67
- import Qs from "./index149.js";
68
- import Us from "./index150.js";
69
- import Ws from "./index151.js";
70
- import Xs from "./index152.js";
71
- import Ys from "./index153.js";
72
- import Zs from "./index154.js";
73
- import zs from "./index155.js";
74
- import so from "./index156.js";
75
- import oo from "./index157.js";
76
- import _o from "./index158.js";
77
- import to from "./index159.js";
78
- import io from "./index160.js";
79
- import ro from "./index161.js";
80
- import eo from "./index162.js";
81
- import co from "./index163.js";
82
- import ao from "./index164.js";
83
- import mo from "./index165.js";
84
- import go from "./index166.js";
85
- import vo from "./index167.js";
86
- import no from "./index168.js";
87
- import lo from "./index169.js";
88
- import fo from "./index170.js";
89
- import bo from "./index171.js";
90
- import po from "./index172.js";
91
- import uo from "./index173.js";
92
- import ho from "./index174.js";
93
- import ko from "./index175.js";
94
- import xo from "./index176.js";
95
- import Ao from "./index177.js";
96
- import Io from "./index178.js";
97
- import wo from "./index179.js";
98
- import yo from "./index180.js";
99
- import Po from "./index181.js";
100
- import No from "./index182.js";
101
- import Co from "./index183.js";
102
- import Oo from "./index184.js";
103
- import $o from "./index185.js";
104
- import Eo from "./index186.js";
105
- import So from "./index187.js";
106
- import To from "./index188.js";
107
- import jo from "./index189.js";
108
- import Lo from "./index190.js";
109
- import Ro from "./index191.js";
110
- import Fo from "./index192.js";
111
- import Bo from "./index193.js";
112
- import Do from "./index194.js";
113
- import Mo from "./index195.js";
114
- import qo from "./index196.js";
115
- import Go from "./index197.js";
116
- import Vo from "./index198.js";
117
- import Ho from "./index199.js";
118
- import Jo from "./index200.js";
119
- import Ko from "./index201.js";
120
- import Qo from "./index202.js";
121
- import Uo from "./index203.js";
1
+ import L from "./index88.js";
2
+ import R from "./index89.js";
3
+ import F from "./index90.js";
4
+ import B from "./index91.js";
5
+ import D from "./index92.js";
6
+ import M from "./index93.js";
7
+ import q from "./index94.js";
8
+ import G from "./index95.js";
9
+ import V from "./index96.js";
10
+ import H from "./index97.js";
11
+ import J from "./index98.js";
12
+ import K from "./index99.js";
13
+ import Q from "./index100.js";
14
+ import U from "./index101.js";
15
+ import W from "./index102.js";
16
+ import X from "./index103.js";
17
+ import Y from "./index104.js";
18
+ import Z from "./index105.js";
19
+ import z from "./index106.js";
20
+ import ss from "./index107.js";
21
+ import os from "./index108.js";
22
+ import _s from "./index109.js";
23
+ import ts from "./index110.js";
24
+ import is from "./index111.js";
25
+ import rs from "./index112.js";
26
+ import es from "./index113.js";
27
+ import cs from "./index114.js";
28
+ import as from "./index115.js";
29
+ import ms from "./index116.js";
30
+ import gs from "./index117.js";
31
+ import vs from "./index118.js";
32
+ import ns from "./index119.js";
33
+ import ls from "./index120.js";
34
+ import fs from "./index121.js";
35
+ import bs from "./index122.js";
36
+ import ps from "./index123.js";
37
+ import ds from "./index124.js";
38
+ import us from "./index125.js";
39
+ import hs from "./index126.js";
40
+ import ks from "./index127.js";
41
+ import xs from "./index128.js";
42
+ import As from "./index129.js";
43
+ import Is from "./index130.js";
44
+ import ws from "./index131.js";
45
+ import ys from "./index132.js";
46
+ import Ps from "./index133.js";
47
+ import Ns from "./index134.js";
48
+ import Cs from "./index135.js";
49
+ import Os from "./index136.js";
50
+ import $s from "./index137.js";
51
+ import Es from "./index138.js";
52
+ import Ss from "./index139.js";
53
+ import Ts from "./index140.js";
54
+ import js from "./index141.js";
55
+ import Ls from "./index142.js";
56
+ import Rs from "./index143.js";
57
+ import Fs from "./index144.js";
58
+ import Bs from "./index145.js";
59
+ import Ds from "./index146.js";
60
+ import Ms from "./index147.js";
61
+ import qs from "./index148.js";
62
+ import Gs from "./index149.js";
63
+ import Vs from "./index150.js";
64
+ import Hs from "./index151.js";
65
+ import Js from "./index152.js";
66
+ import Ks from "./index153.js";
67
+ import Qs from "./index154.js";
68
+ import Us from "./index155.js";
69
+ import Ws from "./index156.js";
70
+ import Xs from "./index157.js";
71
+ import Ys from "./index158.js";
72
+ import Zs from "./index159.js";
73
+ import zs from "./index160.js";
74
+ import so from "./index161.js";
75
+ import oo from "./index162.js";
76
+ import _o from "./index163.js";
77
+ import to from "./index164.js";
78
+ import io from "./index165.js";
79
+ import ro from "./index166.js";
80
+ import eo from "./index167.js";
81
+ import co from "./index168.js";
82
+ import ao from "./index169.js";
83
+ import mo from "./index170.js";
84
+ import go from "./index171.js";
85
+ import vo from "./index172.js";
86
+ import no from "./index173.js";
87
+ import lo from "./index174.js";
88
+ import fo from "./index175.js";
89
+ import bo from "./index176.js";
90
+ import po from "./index177.js";
91
+ import uo from "./index178.js";
92
+ import ho from "./index179.js";
93
+ import ko from "./index180.js";
94
+ import xo from "./index181.js";
95
+ import Ao from "./index182.js";
96
+ import Io from "./index183.js";
97
+ import wo from "./index184.js";
98
+ import yo from "./index185.js";
99
+ import Po from "./index186.js";
100
+ import No from "./index187.js";
101
+ import Co from "./index188.js";
102
+ import Oo from "./index189.js";
103
+ import $o from "./index190.js";
104
+ import Eo from "./index191.js";
105
+ import So from "./index192.js";
106
+ import To from "./index193.js";
107
+ import jo from "./index194.js";
108
+ import Lo from "./index195.js";
109
+ import Ro from "./index196.js";
110
+ import Fo from "./index197.js";
111
+ import Bo from "./index198.js";
112
+ import Do from "./index199.js";
113
+ import Mo from "./index200.js";
114
+ import qo from "./index201.js";
115
+ import Go from "./index202.js";
116
+ import Vo from "./index203.js";
117
+ import Ho from "./index204.js";
118
+ import Jo from "./index205.js";
119
+ import Ko from "./index206.js";
120
+ import Qo from "./index207.js";
121
+ import Uo from "./index208.js";
122
122
  import a from "react";
123
- import { ReactSVG as Wo } from "./index204.js";
124
- import { getA11yNameAttributes as Xo } from "./index81.js";
125
- import { useAccessiblePress as Yo } from "./index67.js";
126
- import "./index72.js";
123
+ import { ReactSVG as Wo } from "./index209.js";
124
+ import { getA11yNameAttributes as Xo } from "./index86.js";
125
+ import { useAccessiblePress as Yo } from "./index72.js";
126
+ import "./index77.js";
127
127
  function m() {
128
128
  return m = Object.assign ? Object.assign.bind() : function(s) {
129
129
  for (var t = 1; t < arguments.length; t++) {
package/dist/index60.js CHANGED
@@ -1,122 +1,96 @@
1
- import e, { useState as p, useRef as g, useEffect as I } from "react";
2
- import { Button as x } from "./index4.js";
3
- const n = 40, f = 7, y = 3, T = Array.from({
4
- length: 12
5
- }, (r, o) => String(o + 1).padStart(2, "0")), w = Array.from({
6
- length: 60
7
- }, (r, o) => String(o).padStart(2, "0")), M = ["AM", "PM"], h = ({
8
- items: r,
9
- selectedIndex: o,
10
- onSelect: d,
11
- automationId: u = ""
1
+ import t from "react";
2
+ /* empty css */
3
+ const n = ({
4
+ element: e,
5
+ animationDuration: d,
6
+ baseColor: s,
7
+ highlightColor: m
12
8
  }) => {
13
- const l = g(null), s = g(null);
14
- I(() => {
15
- l.current && l.current.scrollTo({
16
- top: o * n,
17
- behavior: "smooth"
18
- });
19
- }, [o]);
20
- const a = () => {
21
- l.current && (s.current && clearTimeout(s.current), s.current = setTimeout(() => {
22
- const t = l.current;
23
- if (!t) return;
24
- const c = Math.round(t.scrollTop / n), m = Math.max(0, Math.min(r.length - 1, c));
25
- t.scrollTo({
26
- top: m * n,
27
- behavior: "smooth"
28
- }), m !== o && d(m);
29
- }, 100));
30
- }, i = (t) => {
31
- d(t), l.current?.scrollTo({
32
- top: t * n,
33
- behavior: "smooth"
34
- });
9
+ const i = {
10
+ width: typeof e.width == "number" ? `${e.width}px` : e.width,
11
+ height: typeof e.height == "number" ? `${e.height}px` : e.height,
12
+ borderRadius: e.borderRadius ? typeof e.borderRadius == "number" ? `${e.borderRadius}px` : e.borderRadius : void 0,
13
+ margin: e.margin,
14
+ "--shimmer-duration": `${d}s`,
15
+ "--shimmer-base-color": s,
16
+ "--shimmer-highlight-color": m
17
+ }, r = `se-design-shimmer-element se-design-shimmer-${e.type}`;
18
+ return /* @__PURE__ */ t.createElement("div", {
19
+ className: r,
20
+ style: i
21
+ }, e.children && e.children.map((a, p) => /* @__PURE__ */ t.createElement(n, {
22
+ key: p,
23
+ element: a,
24
+ animationDuration: d,
25
+ baseColor: s,
26
+ highlightColor: m
27
+ })));
28
+ }, y = ({
29
+ container: e,
30
+ animationDuration: d,
31
+ baseColor: s,
32
+ highlightColor: m
33
+ }) => {
34
+ const i = {
35
+ display: "flex",
36
+ flexDirection: e.direction || "column",
37
+ gap: typeof e.gap == "number" ? `${e.gap}px` : e.gap,
38
+ padding: e.padding,
39
+ margin: e.margin,
40
+ alignItems: e.alignItems,
41
+ flex: e.flex
35
42
  };
36
- return /* @__PURE__ */ e.createElement("div", {
37
- className: "w-14"
38
- }, /* @__PURE__ */ e.createElement("div", {
39
- ref: l,
40
- className: "overflow-y-auto [&::-webkit-scrollbar]:hidden",
41
- onScroll: a,
42
- style: {
43
- height: f * n,
44
- paddingTop: y * n,
45
- paddingBottom: y * n,
46
- scrollSnapType: "y mandatory",
47
- scrollbarWidth: "none"
48
- }
49
- }, r.map((t, c) => /* @__PURE__ */ e.createElement("div", {
50
- key: t,
51
- className: `flex items-center justify-center cursor-pointer select-none transition-colors h-10 ${c === o ? "text-[var(--color-blue-500)] font-semibold" : "text-[var(--color-gray-700)] hover:text-[var(--color-blue-500)]"}`,
52
- onClick: () => i(c),
53
- style: {
54
- scrollSnapAlign: "center"
55
- },
56
- "data-automation-id": `${u}-item-${c}`
57
- }, t))));
58
- }, $ = ({
59
- initialHour: r = 12,
60
- initialMinute: o = 0,
61
- onApply: d,
62
- ctaLabel: u = "Apply",
63
- onClose: l,
64
- className: s = "",
65
- automationId: a = "timepicker"
43
+ return /* @__PURE__ */ t.createElement("div", {
44
+ className: `se-design-shimmer-container ${e.className || ""}`,
45
+ style: i
46
+ }, e.children.map((r, a) => r.type === "container" ? /* @__PURE__ */ t.createElement(y, {
47
+ key: a,
48
+ container: r,
49
+ animationDuration: d,
50
+ baseColor: s,
51
+ highlightColor: m
52
+ }) : /* @__PURE__ */ t.createElement(n, {
53
+ key: a,
54
+ element: r,
55
+ animationDuration: d,
56
+ baseColor: s,
57
+ highlightColor: m
58
+ })));
59
+ }, l = ({
60
+ structure: e,
61
+ className: d = "",
62
+ animationDuration: s = 3,
63
+ baseColor: m = "var(--color-gray-700)",
64
+ highlightColor: i = "var(--color-gray-600)",
65
+ width: r,
66
+ height: a
66
67
  }) => {
67
- const [i, t] = p(() => r === 0 ? 11 : r > 12 ? r - 12 - 1 : r - 1), [c, m] = p(Math.max(0, Math.min(59, o ?? 0))), [v, E] = p(
68
- () => r >= 12 ? 1 : 0
69
- // 0-11 = AM, 12-23 = PM
70
- ), b = () => {
71
- const S = v === 1 ? i + 12 : i;
72
- d?.({
73
- hour: S + 1,
74
- minute: c
75
- }), l?.();
68
+ const p = {
69
+ width: r ? typeof r == "number" ? `${r}px` : r : "100%",
70
+ height: a ? typeof a == "number" ? `${a}px` : a : "auto",
71
+ "--shimmer-duration": `${s}s`,
72
+ "--shimmer-base-color": m,
73
+ "--shimmer-highlight-color": i
76
74
  };
77
- return /* @__PURE__ */ e.createElement("div", {
78
- className: `se-design-timepicker-container w-full min-w-[216px] bg-[var(--color-white)] rounded-xl shadow-md border border-[var(--color-gray-400)] overflow-hidden ${s}`
79
- }, /* @__PURE__ */ e.createElement("div", {
80
- className: "se-design-timepicker-content w-full relative p-4"
81
- }, /* @__PURE__ */ e.createElement("div", {
82
- className: "absolute left-4 right-4 top-1/2 -translate-y-1/2 h-10 bg-[var(--color-blue-50)] rounded-lg pointer-events-none z-0"
83
- }), /* @__PURE__ */ e.createElement("div", {
84
- className: "flex justify-between gap-2 relative z-10"
85
- }, /* @__PURE__ */ e.createElement(h, {
86
- items: T,
87
- selectedIndex: i,
88
- onSelect: t,
89
- automationId: `${a}-hours`
90
- }), /* @__PURE__ */ e.createElement("div", {
91
- className: "w-px bg-[var(--color-gray-200)]",
92
- style: {
93
- height: f * n
94
- }
95
- }), /* @__PURE__ */ e.createElement(h, {
96
- items: w,
97
- selectedIndex: c,
98
- onSelect: m,
99
- automationId: `${a}-minutes`
100
- }), /* @__PURE__ */ e.createElement("div", {
101
- className: "w-px bg-[var(--color-gray-200)]",
102
- style: {
103
- height: f * n
104
- }
105
- }), /* @__PURE__ */ e.createElement(h, {
106
- items: M,
107
- selectedIndex: v,
108
- onSelect: E,
109
- automationId: `${a}-periods`
110
- }))), /* @__PURE__ */ e.createElement("div", {
111
- className: "se-design-timepicker-footer flex justify-end p-3 border-t border-[var(--color-gray-200)]"
112
- }, /* @__PURE__ */ e.createElement(x, {
113
- label: u,
114
- type: "primary",
115
- onClick: b,
116
- automationId: `${a}-apply-button`
75
+ return /* @__PURE__ */ t.createElement("div", {
76
+ className: `se-design-shimmer-loader ${d}`,
77
+ style: p
78
+ }, e.map((c, o) => c.type === "container" ? /* @__PURE__ */ t.createElement(y, {
79
+ key: o,
80
+ container: c,
81
+ animationDuration: s,
82
+ baseColor: m,
83
+ highlightColor: i
84
+ }) : /* @__PURE__ */ t.createElement(n, {
85
+ key: o,
86
+ element: c,
87
+ animationDuration: s,
88
+ baseColor: m,
89
+ highlightColor: i
117
90
  })));
118
91
  };
119
92
  export {
120
- $ as TimePicker
93
+ l as ShimmerLoader,
94
+ l as default
121
95
  };
122
96
  //# sourceMappingURL=index60.js.map