se-design 1.0.81 → 1.0.83-dev.0

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 (429) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/components/MessageBar/index.d.ts +20 -1
  3. package/dist/components/NLSearch/ClearAiFiltersBar.d.ts +21 -0
  4. package/dist/components/NLSearch/NLDynamicChip.d.ts +18 -0
  5. package/dist/components/NLSearch/NLSearchInput.d.ts +21 -0
  6. package/dist/components/NLSearch/index.d.ts +6 -0
  7. package/dist/components/index.d.ts +2 -0
  8. package/dist/index.js +131 -124
  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 +2 -2
  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 +1 -1
  42. package/dist/index115.js.map +1 -1
  43. package/dist/index116.js +2 -2
  44. package/dist/index116.js.map +1 -1
  45. package/dist/index117.js +2 -2
  46. package/dist/index117.js.map +1 -1
  47. package/dist/index118.js +2 -2
  48. package/dist/index118.js.map +1 -1
  49. package/dist/index119.js +2 -2
  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 +2 -2
  55. package/dist/index121.js.map +1 -1
  56. package/dist/index122.js +2 -2
  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 +1 -1
  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 +2 -2
  71. package/dist/index129.js.map +1 -1
  72. package/dist/index13.js +2 -2
  73. package/dist/index130.js +1 -1
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index131.js +1 -1
  76. package/dist/index131.js.map +1 -1
  77. package/dist/index132.js +1 -1
  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 +2 -2
  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 +1 -1
  88. package/dist/index137.js.map +1 -1
  89. package/dist/index138.js +2 -2
  90. package/dist/index138.js.map +1 -1
  91. package/dist/index139.js +2 -2
  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 +1 -1
  96. package/dist/index141.js.map +1 -1
  97. package/dist/index142.js +1 -1
  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 +2 -2
  106. package/dist/index146.js.map +1 -1
  107. package/dist/index147.js +1 -1
  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 +2 -2
  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 +1 -1
  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 +2 -2
  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 +1 -1
  128. package/dist/index157.js.map +1 -1
  129. package/dist/index158.js +2 -2
  130. package/dist/index158.js.map +1 -1
  131. package/dist/index159.js +1 -1
  132. package/dist/index159.js.map +1 -1
  133. package/dist/index16.js +3 -3
  134. package/dist/index160.js +1 -1
  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 +1 -1
  143. package/dist/index164.js.map +1 -1
  144. package/dist/index165.js +1 -1
  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 +2 -2
  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 +2 -2
  186. package/dist/index185.js.map +1 -1
  187. package/dist/index186.js +1 -1
  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 +2 -2
  192. package/dist/index188.js.map +1 -1
  193. package/dist/index189.js +2 -2
  194. package/dist/index189.js.map +1 -1
  195. package/dist/index19.js +5 -5
  196. package/dist/index190.js +1 -1
  197. package/dist/index190.js.map +1 -1
  198. package/dist/index191.js +1 -1
  199. package/dist/index191.js.map +1 -1
  200. package/dist/index192.js +2 -2
  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 +1 -1
  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/index200.js +2 -2
  217. package/dist/index200.js.map +1 -1
  218. package/dist/index201.js +1 -1
  219. package/dist/index201.js.map +1 -1
  220. package/dist/index202.js +2 -2
  221. package/dist/index202.js.map +1 -1
  222. package/dist/index203.js +149 -2
  223. package/dist/index203.js.map +1 -1
  224. package/dist/index204.js +9 -2
  225. package/dist/index204.js.map +1 -1
  226. package/dist/index205.js +6 -2
  227. package/dist/index205.js.map +1 -1
  228. package/dist/index206.js +5 -149
  229. package/dist/index206.js.map +1 -1
  230. package/dist/index207.js +41 -4
  231. package/dist/index207.js.map +1 -1
  232. package/dist/index208.js +24 -0
  233. package/dist/index208.js.map +1 -0
  234. package/dist/index215.js +26 -0
  235. package/dist/index215.js.map +1 -0
  236. package/dist/index216.js +71 -0
  237. package/dist/index216.js.map +1 -0
  238. package/dist/{index221.js → index224.js} +1 -1
  239. package/dist/{index221.js.map → index224.js.map} +1 -1
  240. package/dist/index23.js +4 -4
  241. package/dist/index232.js +1233 -43
  242. package/dist/index232.js.map +1 -1
  243. package/dist/index235.js +46 -0
  244. package/dist/index235.js.map +1 -0
  245. package/dist/index244.js +168 -8
  246. package/dist/index244.js.map +1 -1
  247. package/dist/index245.js +3 -9
  248. package/dist/index245.js.map +1 -1
  249. package/dist/index247.js +18 -169
  250. package/dist/index247.js.map +1 -1
  251. package/dist/index248.js +10 -11
  252. package/dist/index248.js.map +1 -1
  253. package/dist/index249.js +8 -4
  254. package/dist/index249.js.map +1 -1
  255. package/dist/index25.js +3 -3
  256. package/dist/index250.js +4 -5
  257. package/dist/index250.js.map +1 -1
  258. package/dist/index251.js +168 -36
  259. package/dist/index251.js.map +1 -1
  260. package/dist/index252.js +11 -2
  261. package/dist/index252.js.map +1 -1
  262. package/dist/index253.js +5 -7
  263. package/dist/index253.js.map +1 -1
  264. package/dist/index254.js +5 -326
  265. package/dist/index254.js.map +1 -1
  266. package/dist/index255.js +36 -48
  267. package/dist/index255.js.map +1 -1
  268. package/dist/index256.js +2 -2
  269. package/dist/index257.js +7 -75
  270. package/dist/index257.js.map +1 -1
  271. package/dist/index258.js +308 -74
  272. package/dist/index258.js.map +1 -1
  273. package/dist/index259.js +45 -47
  274. package/dist/index259.js.map +1 -1
  275. package/dist/index260.js +2 -8
  276. package/dist/index260.js.map +1 -1
  277. package/dist/index261.js +75 -4
  278. package/dist/index261.js.map +1 -1
  279. package/dist/index262.js +89 -48
  280. package/dist/index262.js.map +1 -1
  281. package/dist/index263.js +52 -2
  282. package/dist/index263.js.map +1 -1
  283. package/dist/index264.js +8 -2
  284. package/dist/index264.js.map +1 -1
  285. package/dist/index265.js +8 -0
  286. package/dist/index265.js.map +1 -0
  287. package/dist/index266.js +55 -0
  288. package/dist/index266.js.map +1 -0
  289. package/dist/index267.js +5 -0
  290. package/dist/index267.js.map +1 -0
  291. package/dist/index268.js +5 -0
  292. package/dist/index268.js.map +1 -0
  293. package/dist/index27.js +1 -1
  294. package/dist/index28.js +4 -4
  295. package/dist/index29.js +3 -3
  296. package/dist/index3.js +3 -3
  297. package/dist/index30.js +4 -4
  298. package/dist/index32.js +10 -11
  299. package/dist/index33.js +1 -1
  300. package/dist/index35.js +4 -4
  301. package/dist/index36.js +5 -5
  302. package/dist/index38.js +3 -3
  303. package/dist/index39.js +4 -4
  304. package/dist/index4.js +3 -3
  305. package/dist/index40.js +1 -1
  306. package/dist/index42.js +7 -8
  307. package/dist/index43.js +95 -57
  308. package/dist/index43.js.map +1 -1
  309. package/dist/index45.js +4 -4
  310. package/dist/index46.js +142 -193
  311. package/dist/index46.js.map +1 -1
  312. package/dist/index47.js +21 -38
  313. package/dist/index47.js.map +1 -1
  314. package/dist/index48.js +36 -33
  315. package/dist/index48.js.map +1 -1
  316. package/dist/index50.js +189 -78
  317. package/dist/index50.js.map +1 -1
  318. package/dist/index51.js +36 -459
  319. package/dist/index51.js.map +1 -1
  320. package/dist/index52.js +33 -98
  321. package/dist/index52.js.map +1 -1
  322. package/dist/index53.js +151 -36
  323. package/dist/index53.js.map +1 -1
  324. package/dist/index54.js +84 -36
  325. package/dist/index54.js.map +1 -1
  326. package/dist/index55.js +456 -88
  327. package/dist/index55.js.map +1 -1
  328. package/dist/index56.js +96 -161
  329. package/dist/index56.js.map +1 -1
  330. package/dist/index57.js +35 -146
  331. package/dist/index57.js.map +1 -1
  332. package/dist/index58.js +38 -33
  333. package/dist/index58.js.map +1 -1
  334. package/dist/index59.js +89 -83
  335. package/dist/index59.js.map +1 -1
  336. package/dist/index6.js +123 -123
  337. package/dist/index60.js +157 -113
  338. package/dist/index60.js.map +1 -1
  339. package/dist/index61.js +143 -61
  340. package/dist/index61.js.map +1 -1
  341. package/dist/index62.js +33 -152
  342. package/dist/index62.js.map +1 -1
  343. package/dist/index63.js +80 -312
  344. package/dist/index63.js.map +1 -1
  345. package/dist/index64.js +118 -45
  346. package/dist/index64.js.map +1 -1
  347. package/dist/index65.js +62 -140
  348. package/dist/index65.js.map +1 -1
  349. package/dist/index66.js +152 -12
  350. package/dist/index66.js.map +1 -1
  351. package/dist/index67.js +316 -44
  352. package/dist/index67.js.map +1 -1
  353. package/dist/index68.js +44 -82
  354. package/dist/index68.js.map +1 -1
  355. package/dist/index69.js +143 -18
  356. package/dist/index69.js.map +1 -1
  357. package/dist/index7.js +9 -10
  358. package/dist/index70.js +9 -63
  359. package/dist/index70.js.map +1 -1
  360. package/dist/index71.js +45 -26
  361. package/dist/index71.js.map +1 -1
  362. package/dist/index72.js +78 -102
  363. package/dist/index72.js.map +1 -1
  364. package/dist/index73.js +18 -61
  365. package/dist/index73.js.map +1 -1
  366. package/dist/index74.js +63 -18
  367. package/dist/index74.js.map +1 -1
  368. package/dist/index75.js +27 -5
  369. package/dist/index75.js.map +1 -1
  370. package/dist/index76.js +102 -48
  371. package/dist/index76.js.map +1 -1
  372. package/dist/index77.js +58 -20
  373. package/dist/index77.js.map +1 -1
  374. package/dist/index78.js +19 -7
  375. package/dist/index78.js.map +1 -1
  376. package/dist/index79.js +5 -23
  377. package/dist/index79.js.map +1 -1
  378. package/dist/index80.js +51 -16
  379. package/dist/index80.js.map +1 -1
  380. package/dist/index81.js +23 -8
  381. package/dist/index81.js.map +1 -1
  382. package/dist/index82.js +7 -40
  383. package/dist/index82.js.map +1 -1
  384. package/dist/index84.js +2 -68
  385. package/dist/index84.js.map +1 -1
  386. package/dist/index85.js +2 -21
  387. package/dist/index85.js.map +1 -1
  388. package/dist/index86.js +5 -0
  389. package/dist/index86.js.map +1 -0
  390. package/dist/index87.js +1 -1
  391. package/dist/index87.js.map +1 -1
  392. package/dist/index88.js +2 -2
  393. package/dist/index88.js.map +1 -1
  394. package/dist/index89.js +1 -1
  395. package/dist/index89.js.map +1 -1
  396. package/dist/index9.js +5 -5
  397. package/dist/index90.js +2 -2
  398. package/dist/index90.js.map +1 -1
  399. package/dist/index91.js +1 -1
  400. package/dist/index91.js.map +1 -1
  401. package/dist/index92.js +1 -1
  402. package/dist/index92.js.map +1 -1
  403. package/dist/index93.js +1 -1
  404. package/dist/index93.js.map +1 -1
  405. package/dist/index94.js +1 -1
  406. package/dist/index94.js.map +1 -1
  407. package/dist/index95.js +1 -1
  408. package/dist/index95.js.map +1 -1
  409. package/dist/index96.js +1 -1
  410. package/dist/index96.js.map +1 -1
  411. package/dist/index97.js +1 -1
  412. package/dist/index97.js.map +1 -1
  413. package/dist/index98.js +1 -1
  414. package/dist/index98.js.map +1 -1
  415. package/dist/index99.js +1 -1
  416. package/dist/index99.js.map +1 -1
  417. package/package.json +1 -1
  418. package/dist/index229.js +0 -1236
  419. package/dist/index229.js.map +0 -1
  420. package/dist/index241.js +0 -173
  421. package/dist/index241.js.map +0 -1
  422. package/dist/index242.js +0 -7
  423. package/dist/index242.js.map +0 -1
  424. package/dist/index246.js +0 -8
  425. package/dist/index246.js.map +0 -1
  426. package/dist/index49.js +0 -152
  427. package/dist/index49.js.map +0 -1
  428. package/dist/index83.js +0 -9
  429. package/dist/index83.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
5
+ //# sourceMappingURL=index268.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index268.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index27.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { ShimmerLoader as c } from "./index55.js";
2
+ import { ShimmerLoader as c } from "./index59.js";
3
3
  /* empty css */
4
4
  const f = (r) => {
5
5
  const {
package/dist/index28.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import i, { useMemo as D, useRef as j, useEffect as m } from "react";
2
2
  import { Icon as M } from "./index6.js";
3
- import { getA11yNameAttributes as $ } from "./index78.js";
4
- import { useFocusTrap as k } from "./index72.js";
5
- import { useDismissOnEscape as z } from "./index79.js";
6
- import { useFocusSentinel as T } from "./index84.js";
3
+ import { getA11yNameAttributes as $ } from "./index82.js";
4
+ import { useFocusTrap as k } from "./index76.js";
5
+ import { useDismissOnEscape as z } from "./index215.js";
6
+ import { useFocusSentinel as T } from "./index216.js";
7
7
  /* empty css */
8
8
  function u() {
9
9
  return u = Object.assign ? Object.assign.bind() : function(s) {
package/dist/index29.js CHANGED
@@ -2,9 +2,9 @@ import r, { useState as $, useMemo as j, useRef as F, useEffect as B } from "rea
2
2
  import { Icon as L } from "./index6.js";
3
3
  import { Popover as z } from "./index19.js";
4
4
  import { MenuList as H } from "./index18.js";
5
- import { useStableId as U } from "./index83.js";
6
- import "./index72.js";
7
- import { useTabsA11y as V, getPanelId as q } from "./index73.js";
5
+ import { useStableId as U } from "./index205.js";
6
+ import "./index76.js";
7
+ import { useTabsA11y as V, getPanelId as q } from "./index77.js";
8
8
  /* empty css */
9
9
  function d() {
10
10
  return d = Object.assign ? Object.assign.bind() : function(i) {
package/dist/index3.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import P, { forwardRef as x } from "react";
2
- import { getA11yNameAttributes as N } from "./index78.js";
3
- import { useAccessiblePress as O } from "./index67.js";
4
- import "./index72.js";
2
+ import { getA11yNameAttributes as N } from "./index82.js";
3
+ import { useAccessiblePress as O } from "./index71.js";
4
+ import "./index76.js";
5
5
  function o() {
6
6
  return o = Object.assign ? Object.assign.bind() : function(e) {
7
7
  for (var t = 1; t < arguments.length; t++) {
package/dist/index30.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import e, { forwardRef as K } from "react";
2
2
  import { Icon as M } from "./index6.js";
3
3
  import { Button as d } from "./index4.js";
4
- import { useStableId as B } from "./index83.js";
5
- import { getRegionAttributes as Q } from "./index66.js";
6
- import { useAccessiblePress as U } from "./index67.js";
7
- import "./index72.js";
4
+ import { useStableId as B } from "./index205.js";
5
+ import { getRegionAttributes as Q } from "./index70.js";
6
+ import { useAccessiblePress as U } from "./index71.js";
7
+ import "./index76.js";
8
8
  /* empty css */
9
9
  function m() {
10
10
  return m = Object.assign ? Object.assign.bind() : function(a) {
package/dist/index32.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e from "react";
2
2
  import { Button as N } from "./index4.js";
3
3
  import { Badge as I } from "./index10.js";
4
- import { Icon as d } from "./index6.js";
4
+ import { Icon as g } from "./index6.js";
5
5
  /* empty css */
6
6
  const t = {
7
7
  widgetCtn: "flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]",
@@ -21,16 +21,16 @@ const t = {
21
21
  requestFeatureImageCtn: "w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]",
22
22
  requestFeatureDescriptionCtn: "flex flex-col"
23
23
  }, B = ({
24
- widgetClassName: g = "",
24
+ widgetClassName: d = "",
25
25
  widgetType: a = "general",
26
26
  widgetTitle: r = "",
27
27
  widgetDescription: l = "",
28
28
  widgetImage: p,
29
- hasImage: f = !1,
29
+ hasImage: x = !1,
30
30
  hasButtonCta: n = !1,
31
31
  hasLinkCta: i = !1,
32
32
  ctaText: o = "",
33
- hasBadge: x = !1,
33
+ hasBadge: f = !1,
34
34
  badgeText: w = "",
35
35
  buttonBgColor: u = "secondary",
36
36
  onCtaClick: b,
@@ -38,7 +38,7 @@ const t = {
38
38
  webinarDateInfo: c,
39
39
  webinarSpeaker: s
40
40
  }) => {
41
- const E = x && /* @__PURE__ */ e.createElement(I, {
41
+ const E = f && /* @__PURE__ */ e.createElement(I, {
42
42
  label: w,
43
43
  className: t.widgetBadge,
44
44
  bgColor: "var(--color-yellow-50)",
@@ -52,14 +52,14 @@ const t = {
52
52
  label: o,
53
53
  className: `${t.widgetButtonCta} mt-[4px]`,
54
54
  onClick: b
55
- })), C = f && /* @__PURE__ */ e.createElement("div", {
55
+ })), C = x && /* @__PURE__ */ e.createElement("div", {
56
56
  className: `${t.widgetImageCtn} widget-image-ctn`
57
57
  }, /* @__PURE__ */ e.createElement("img", {
58
58
  src: p,
59
59
  alt: "widget-image"
60
60
  }));
61
61
  return /* @__PURE__ */ e.createElement("div", {
62
- className: `${t.widgetCtn} ${g} widget-ctn`,
62
+ className: `${t.widgetCtn} ${d} widget-ctn`,
63
63
  onClick: v
64
64
  }, a !== "general" && C, /* @__PURE__ */ e.createElement("div", {
65
65
  className: t.descriptionCtn
@@ -71,14 +71,14 @@ const t = {
71
71
  className: t.webinarInfoCtn
72
72
  }, s && /* @__PURE__ */ e.createElement("div", {
73
73
  className: `${t.webinarDescriptionInfo} align-baseline`
74
- }, /* @__PURE__ */ e.createElement(d, {
74
+ }, /* @__PURE__ */ e.createElement(g, {
75
75
  name: "people",
76
76
  className: "relative top-[2px]"
77
77
  }), /* @__PURE__ */ e.createElement("span", {
78
78
  className: t.webinarSpeaker
79
79
  }, s)), c && /* @__PURE__ */ e.createElement("div", {
80
80
  className: `${t.webinarTimeInfo} align-baseline mb-[4px]`
81
- }, /* @__PURE__ */ e.createElement(d, {
81
+ }, /* @__PURE__ */ e.createElement(g, {
82
82
  name: "clock",
83
83
  className: "relative top-[2px]"
84
84
  }), /* @__PURE__ */ e.createElement("span", {
@@ -96,7 +96,6 @@ const t = {
96
96
  }, l), m)) : m));
97
97
  };
98
98
  export {
99
- B as Widget,
100
- B as default
99
+ B as Widget
101
100
  };
102
101
  //# sourceMappingURL=index32.js.map
package/dist/index33.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e, { useRef as y } from "react";
2
- import { useStableId as N } from "./index83.js";
2
+ import { useStableId as N } from "./index205.js";
3
3
  function I(a) {
4
4
  const {
5
5
  label: s,
package/dist/index35.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import e, { useState as h, useEffect as E } from "react";
2
2
  import { Icon as N } from "./index6.js";
3
- import { useStableId as $ } from "./index83.js";
4
- import { getRegionAttributes as I } from "./index66.js";
5
- import { useAccessiblePress as _ } from "./index67.js";
6
- import "./index72.js";
3
+ import { useStableId as $ } from "./index205.js";
4
+ import { getRegionAttributes as I } from "./index70.js";
5
+ import { useAccessiblePress as _ } from "./index71.js";
6
+ import "./index76.js";
7
7
  function r() {
8
8
  return r = Object.assign ? Object.assign.bind() : function(n) {
9
9
  for (var s = 1; s < arguments.length; s++) {
package/dist/index36.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import e, { useState as k, useEffect as w } from "react";
2
2
  import { Icon as x } from "./index6.js";
3
- import { useStableId as F } from "./index83.js";
4
- import { getA11yNameAttributes as P } from "./index78.js";
5
- import { getRegionAttributes as V } from "./index66.js";
6
- import { useAccessiblePress as q } from "./index67.js";
7
- import "./index72.js";
3
+ import { useStableId as F } from "./index205.js";
4
+ import { getA11yNameAttributes as P } from "./index82.js";
5
+ import { getRegionAttributes as V } from "./index70.js";
6
+ import { useAccessiblePress as q } from "./index71.js";
7
+ import "./index76.js";
8
8
  function a() {
9
9
  return a = Object.assign ? Object.assign.bind() : function(i) {
10
10
  for (var o = 1; o < arguments.length; o++) {
package/dist/index38.js CHANGED
@@ -3,9 +3,9 @@ import { Popover as we } from "./index19.js";
3
3
  import { Icon as Ee } from "./index6.js";
4
4
  import { Checkbox as ke } from "./index23.js";
5
5
  import { Button as G } from "./index4.js";
6
- import "./index72.js";
7
- import { useCombobox as be } from "./index68.js";
8
- import { useStableId as Ce } from "./index83.js";
6
+ import "./index76.js";
7
+ import { useCombobox as be } from "./index72.js";
8
+ import { useStableId as Ce } from "./index205.js";
9
9
  /* empty css */
10
10
  function g() {
11
11
  return g = Object.assign ? Object.assign.bind() : function(v) {
package/dist/index39.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import e from "react";
2
- import { useStableId as A } from "./index83.js";
3
- import { mergeIds as P } from "./index207.js";
4
- import { getA11yNameAttributes as _ } from "./index78.js";
5
- import "./index72.js";
2
+ import { useStableId as A } from "./index205.js";
3
+ import { mergeIds as P } from "./index206.js";
4
+ import { getA11yNameAttributes as _ } from "./index82.js";
5
+ import "./index76.js";
6
6
  /* empty css */
7
7
  function G({
8
8
  value: l,
package/dist/index4.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import r, { forwardRef as I } from "react";
2
- import { getA11yNameAttributes as R } from "./index78.js";
3
- import { useAccessiblePress as z } from "./index67.js";
4
- import "./index72.js";
2
+ import { getA11yNameAttributes as R } from "./index82.js";
3
+ import { useAccessiblePress as z } from "./index71.js";
4
+ import "./index76.js";
5
5
  import { Icon as p } from "./index6.js";
6
6
  /* empty css */
7
7
  function c() {
package/dist/index40.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import a, { useState as d, useRef as $, useEffect as r, useMemo as D } from "react";
2
2
  import { Icon as g } from "./index6.js";
3
3
  import { LabelChip as F } from "./index11.js";
4
- import { debounce as L } from "./index221.js";
4
+ import { debounce as L } from "./index224.js";
5
5
  /* empty css */
6
6
  function z(p) {
7
7
  const {
package/dist/index42.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import e, { useState as g, useRef as p } from "react";
2
2
  import { Icon as c } from "./index6.js";
3
- import { ProgressBar as f } from "./index41.js";
3
+ import { ProgressBar as x } from "./index41.js";
4
4
  /* empty css */
5
5
  const r = {
6
6
  gettingStartedWidgetCtn: "border border-[var(--color-gray-200)] rounded-[12px] w-[385px] p-4",
@@ -14,7 +14,7 @@ const r = {
14
14
  }) => {
15
15
  const [n, l] = g(!1), o = p(null), i = () => {
16
16
  l(!n);
17
- }, d = (t) => t ? "var(--color-green-500)" : "var(--color-gray-200)";
17
+ }, m = (t) => t ? "var(--color-green-500)" : "var(--color-gray-200)";
18
18
  return /* @__PURE__ */ e.createElement("div", {
19
19
  className: `${r.gettingStartedWidgetCtn} ${s} getting-started-widget-ctn`
20
20
  }, /* @__PURE__ */ e.createElement("div", {
@@ -27,7 +27,7 @@ const r = {
27
27
  onClick: i
28
28
  })), /* @__PURE__ */ e.createElement("div", {
29
29
  className: "mt-[12px]"
30
- }, /* @__PURE__ */ e.createElement(f, {
30
+ }, /* @__PURE__ */ e.createElement(x, {
31
31
  totalTasks: a.length,
32
32
  completedTasks: a.filter((t) => t.isComplete).length,
33
33
  progressBarCtnClassName: "get-started-progress-bar-ctn"
@@ -37,19 +37,18 @@ const r = {
37
37
  style: {
38
38
  maxHeight: n ? `${o.current?.scrollHeight}px` : "0px"
39
39
  }
40
- }, a.map((t, m) => /* @__PURE__ */ e.createElement("div", {
41
- key: m,
40
+ }, a.map((t, d) => /* @__PURE__ */ e.createElement("div", {
41
+ key: d,
42
42
  className: r.actionItemCtn
43
43
  }, /* @__PURE__ */ e.createElement(c, {
44
44
  name: "checked-circle",
45
- stroke: d(t.isComplete)
45
+ stroke: m(t.isComplete)
46
46
  }), /* @__PURE__ */ e.createElement("span", {
47
47
  className: t.isComplete ? "text-[var(--color-gray-500)]" : "text-[var(--color-gray-900)] cursor-pointer",
48
48
  onClick: t?.handleActionItemClick
49
49
  }, t.label)))));
50
50
  };
51
51
  export {
52
- E as GetStartedWidget,
53
- E as default
52
+ E as GetStartedWidget
54
53
  };
55
54
  //# sourceMappingURL=index42.js.map
package/dist/index43.js CHANGED
@@ -1,77 +1,115 @@
1
- import e, { useState as p } from "react";
2
- import { Icon as a } from "./index6.js";
3
- import { Button as w } from "./index4.js";
1
+ import t, { useState as $, useRef as T } from "react";
2
+ import "./index76.js";
3
+ import { useDismissOnEscape as j } from "./index215.js";
4
+ import { Icon as f } from "./index6.js";
5
+ import { Button as A } from "./index4.js";
4
6
  /* empty css */
5
- const r = {
7
+ function a() {
8
+ return a = Object.assign ? Object.assign.bind() : function(s) {
9
+ for (var o = 1; o < arguments.length; o++) {
10
+ var r = arguments[o];
11
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (s[n] = r[n]);
12
+ }
13
+ return s;
14
+ }, a.apply(null, arguments);
15
+ }
16
+ const d = {
17
+ info: {
18
+ stroke: "var(--color-yellow-700)",
19
+ rotation: "180"
20
+ },
21
+ alert: {
22
+ stroke: "var(--color-black)",
23
+ rotation: "0"
24
+ },
25
+ nudge: {
26
+ stroke: "var(--color-white)",
27
+ rotation: "180"
28
+ }
29
+ }, e = {
6
30
  messageBarCtn: "min-h-[45px] fixed top-0 w-full flex items-center justify-center py-2",
7
31
  messageCtn: "flex items-center justify-center gap-2 flex-wrap px-4 pr-12",
8
32
  info: "bg-[var(--color-yellow-50)]",
9
- alert: "bg-[var(--color-red-500)]",
33
+ alert: "bg-[var(--color-red-50)]",
10
34
  nudge: "bg-[var(--color-blue-500)]",
11
35
  infoMessage: "text-[var(--color-yellow-700)] text-center",
12
- alertMessage: "text-[var(--color-white)] text-center",
13
- closeIconCtn: "absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1",
14
- customInfoClassBtn: "bg-[var(--color-yellow-50)] text-[var(--color-yellow-700)] hover:bg-[var(--color-yellow-50)] border border-[var(--color-yellow-700)] hover:border-[var(--color-yellow-900)]",
15
- customAlertClassBtn: "bg-[var(--color-red-500)] text-[var(--color-white)] hover:bg-[var(--color-red-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]",
16
- customNudgeClassBtn: "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]"
17
- }, B = ({
18
- messageBarCtnClassName: l = "",
36
+ alertMessage: "text-[var(--color-black)] text-center",
37
+ nudgeMessage: "text-[var(--color-white)] text-center",
38
+ closeIconCtn: "absolute right-[12px] cursor-pointer rounded-full p-1",
39
+ closeIconCtnInfo: "hover:bg-[var(--color-gray-200)]",
40
+ closeIconCtnAlert: "hover:bg-[var(--color-gray-200)]",
41
+ closeIconCtnNudge: "hover:bg-[var(--color-blue-700)]"
42
+ }, v = {
43
+ info: "blue",
44
+ alert: "red",
45
+ nudge: "white"
46
+ }, U = ({
47
+ messageBarCtnClassName: s = "",
19
48
  messageBarType: o = "info",
20
- message: s = "",
21
- hasCloseIcon: c = !1,
22
- hasButton: n = !1,
23
- buttonLabel: i = "",
24
- buttonOnClick: m = () => {
49
+ message: r = "",
50
+ hasCloseIcon: n = !1,
51
+ hasButton: b = !1,
52
+ buttonLabel: C = "",
53
+ buttonOnClick: p = () => {
25
54
  },
26
- handleClose: t = () => {
55
+ handleClose: l = () => {
27
56
  },
28
- automationId: u = ""
57
+ automationId: I = "",
58
+ iconProps: c,
59
+ buttonProps: h,
60
+ closeButtonAriaLabel: k = "Close message"
29
61
  }) => {
30
- const [v, b] = p(!0), d = e.useCallback(() => {
31
- b(!1);
32
- const h = setTimeout(() => {
33
- t?.();
62
+ const [i, x] = $(!0), m = T(null), u = t.useCallback(() => {
63
+ x(!1);
64
+ const O = setTimeout(() => {
65
+ l?.();
34
66
  }, 300);
35
- return () => clearTimeout(h);
36
- }, [t]), f = o === "info" ? r.infoMessage : r.alertMessage, g = e.useMemo(() => {
37
- switch (o) {
38
- case "info":
39
- return r.customInfoClassBtn;
40
- case "alert":
41
- return r.customAlertClassBtn;
42
- case "nudge":
43
- return r.customNudgeClassBtn;
44
- default:
45
- return "";
46
- }
47
- }, [o]);
48
- return /* @__PURE__ */ e.createElement("div", {
49
- className: `se-design-message-bar ${l} ${r.messageBarCtn} ${r[o]} ${v ? "show" : "hide"}`,
50
- "data-automation-id": u
51
- }, /* @__PURE__ */ e.createElement("div", {
52
- className: r.messageCtn
53
- }, /* @__PURE__ */ e.createElement("div", {
54
- className: "inline-flex items-center"
55
- }, /* @__PURE__ */ e.createElement("span", {
56
- className: f
57
- }, /* @__PURE__ */ e.createElement(a, {
67
+ return () => clearTimeout(O);
68
+ }, [l]);
69
+ j({
70
+ containerRef: m,
71
+ onDismiss: u,
72
+ enabled: n && i
73
+ });
74
+ const w = {
75
+ info: e.infoMessage,
76
+ alert: e.alertMessage,
77
+ nudge: e.nudgeMessage
78
+ }[o] ?? e.infoMessage, E = {
79
+ info: e.closeIconCtnInfo,
80
+ alert: e.closeIconCtnAlert,
81
+ nudge: e.closeIconCtnNudge
82
+ }[o] ?? e.closeIconCtnInfo, N = o === "nudge" ? "var(--color-white)" : "var(--color-gray-700)", _ = v[o] ?? v.info, g = d[o] ?? d.info, M = c !== null, y = {
58
83
  name: "info",
59
- className: "inline-block h-fit relative top-[3px] mr-1"
60
- }), s, n && /* @__PURE__ */ e.createElement(w, {
61
- label: i,
84
+ stroke: g.stroke,
85
+ rotation: g.rotation,
86
+ className: "shrink-0",
87
+ ...c
88
+ };
89
+ return /* @__PURE__ */ t.createElement("div", {
90
+ ref: m,
91
+ className: `se-design-message-bar ${s} ${e.messageBarCtn} ${e[o]} ${i ? "show" : "hide"}`,
92
+ "data-automation-id": I
93
+ }, /* @__PURE__ */ t.createElement("div", {
94
+ className: e.messageCtn
95
+ }, M && /* @__PURE__ */ t.createElement(f, y), /* @__PURE__ */ t.createElement("span", {
96
+ className: `${w} break-words min-w-0`
97
+ }, r), b && /* @__PURE__ */ t.createElement(A, a({
98
+ label: C,
62
99
  type: "primary",
63
100
  size: "sm",
64
- onClick: m,
65
- className: `${g} ml-2 alert-btn`,
66
- automationId: "message-bar-cta"
67
- })))), c && /* @__PURE__ */ e.createElement(a, {
101
+ theme: _,
102
+ onClick: p,
103
+ className: "alert-btn"
104
+ }, h))), n && /* @__PURE__ */ t.createElement(f, {
68
105
  name: "close",
69
- className: r.closeIconCtn,
70
- onClick: d
106
+ className: `${e.closeIconCtn} ${E}`,
107
+ stroke: N,
108
+ onClick: u,
109
+ ariaLabel: k
71
110
  }));
72
111
  };
73
112
  export {
74
- B as MessageBar,
75
- B as default
113
+ U as MessageBar
76
114
  };
77
115
  //# sourceMappingURL=index43.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index43.js","sources":["../src/components/MessageBar/index.tsx"],"sourcesContent":["import React, { FC, useState } from 'react';\nimport { Map } from 'src/utils/common.types';\nimport { Icon } from '../Icon';\nimport { Button } from '../Button';\nimport './style.scss';\n\nexport interface MessageBarProps {\n messageBarCtnClassName?: string;\n messageBarType: 'info' | 'alert' | 'nudge';\n message: string;\n hasCloseIcon?: boolean;\n hasButton?: boolean,\n buttonLabel: string | '',\n buttonOnClick?: () => void,\n handleClose?: () => void,\n automationId?: string;\n}\n\nconst classNames: Map = {\n messageBarCtn: \"min-h-[45px] fixed top-0 w-full flex items-center justify-center py-2\",\n messageCtn: \"flex items-center justify-center gap-2 flex-wrap px-4 pr-12\",\n info: \"bg-[var(--color-yellow-50)]\",\n alert: \"bg-[var(--color-red-500)]\",\n nudge: \"bg-[var(--color-blue-500)]\",\n infoMessage: \"text-[var(--color-yellow-700)] text-center\", \n alertMessage: \"text-[var(--color-white)] text-center\",\n closeIconCtn: \"absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1\",\n customInfoClassBtn: \"bg-[var(--color-yellow-50)] text-[var(--color-yellow-700)] hover:bg-[var(--color-yellow-50)] border border-[var(--color-yellow-700)] hover:border-[var(--color-yellow-900)]\",\n customAlertClassBtn: \"bg-[var(--color-red-500)] text-[var(--color-white)] hover:bg-[var(--color-red-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]\",\n customNudgeClassBtn: \"bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]\",\n};\n\nexport const MessageBar: FC<MessageBarProps> = ({\n messageBarCtnClassName = \"\",\n messageBarType = 'info',\n message = '',\n hasCloseIcon = false,\n hasButton = false,\n buttonLabel = '',\n buttonOnClick = () => {},\n handleClose = () => {},\n automationId = ''\n}) => {\n const [visible, setVisible] = useState(true);\n\n const handleClickOnCloseIcon = React.useCallback(() => {\n setVisible(false);\n const timer = setTimeout(() => {\n handleClose?.();\n }, 300);\n return () => clearTimeout(timer);\n }, [handleClose]);\n\n const messageClass = messageBarType === 'info' ? classNames.infoMessage : classNames.alertMessage;\n \n const buttonClassName = React.useMemo(() => {\n switch(messageBarType) {\n case 'info': return classNames.customInfoClassBtn;\n case 'alert': return classNames.customAlertClassBtn;\n case 'nudge': return classNames.customNudgeClassBtn;\n default: return '';\n }\n }, [messageBarType]);\n\n // const iconName = messageBarType === 'info' ? \"info\" : \"info-white\";\n // const closeIconName = messageBarType === 'info' ? \"close\" : \"white-close\";\n\n return (\n <div className={`se-design-message-bar ${messageBarCtnClassName} ${classNames.messageBarCtn} ${classNames[messageBarType]} ${visible ? \"show\" : \"hide\"}`} data-automation-id={automationId}>\n <div className={classNames.messageCtn}>\n <div className=\"inline-flex items-center\">\n <span className={messageClass}>\n <Icon name={\"info\"} className=\"inline-block h-fit relative top-[3px] mr-1\"/>\n {message}\n {hasButton && (\n <Button \n label={buttonLabel} \n type='primary' \n size=\"sm\" \n onClick={buttonOnClick}\n className={`${buttonClassName} ml-2 alert-btn`}\n automationId=\"message-bar-cta\"\n />\n )}\n </span>\n </div>\n </div>\n {hasCloseIcon && (\n <Icon \n name={\"close\"} \n className={classNames.closeIconCtn} \n onClick={handleClickOnCloseIcon} \n />\n )}\n </div>\n );\n};\n\nexport default MessageBar;"],"names":["React__default","useState","Icon","Button","classNames","messageBarCtn","messageCtn","info","alert","nudge","infoMessage","alertMessage","closeIconCtn","customInfoClassBtn","customAlertClassBtn","customNudgeClassBtn","MessageBar","messageBarCtnClassName","messageBarType","message","hasCloseIcon","hasButton","buttonLabel","buttonOnClick","handleClose","automationId","visible","setVisible","handleClickOnCloseIcon","React","useCallback","timer","setTimeout","clearTimeout","messageClass","buttonClassName","useMemo","createElement","className","name","label","type","size","onClick"],"mappings":"AAkBA,OAAAA,KAAA,YAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,IAAkB;AAAA,EACtBC,eAAe;AAAA,EACfC,YAAY;AAAA,EACZC,MAAM;AAAA,EACNC,OAAO;AAAA,EACPC,OAAO;AAAA,EACPC,aAAa;AAAA,EACbC,cAAc;AAAA,EACdC,cAAc;AAAA,EACdC,oBAAoB;AAAA,EACpBC,qBAAqB;AAAA,EACrBC,qBAAqB;AACvB,GAEaC,IAAkCA,CAAC;AAAA,EAC9CC,wBAAAA,IAAyB;AAAA,EACzBC,gBAAAA,IAAiB;AAAA,EACjBC,SAAAA,IAAU;AAAA,EACVC,cAAAA,IAAe;AAAA,EACfC,WAAAA,IAAY;AAAA,EACZC,aAAAA,IAAc;AAAA,EACdC,eAAAA,IAAgBA,MAAM;AAAA,EAAC;AAAA,EACvBC,aAAAA,IAAcA,MAAM;AAAA,EAAC;AAAA,EACrBC,cAAAA,IAAe;AACjB,MAAM;AACJ,QAAM,CAACC,GAASC,CAAU,IAAI1B,EAAS,EAAI,GAErC2B,IAAyBC,EAAMC,YAAY,MAAM;AACrDH,IAAAA,EAAW,EAAK;AAChB,UAAMI,IAAQC,WAAW,MAAM;AAC7BR,MAAAA,IAAAA;AAAAA,IACF,GAAG,GAAG;AACN,WAAO,MAAMS,aAAaF,CAAK;AAAA,EACjC,GAAG,CAACP,CAAW,CAAC,GAEVU,IAAehB,MAAmB,SAASd,EAAWM,cAAcN,EAAWO,cAE/EwB,IAAkBN,EAAMO,QAAQ,MAAM;AAC1C,YAAOlB,GAAAA;AAAAA,MACL,KAAK;AAAQ,eAAOd,EAAWS;AAAAA,MAC/B,KAAK;AAAS,eAAOT,EAAWU;AAAAA,MAChC,KAAK;AAAS,eAAOV,EAAWW;AAAAA,MAChC;AAAS,eAAO;AAAA,IAAA;AAAA,EAEpB,GAAG,CAACG,CAAc,CAAC;AAKnB,SACEW,gBAAAA,EAAAQ,cAAA,OAAA;AAAA,IAAKC,WAAW,yBAAyBrB,CAAsB,IAAIb,EAAWC,aAAa,IAAID,EAAWc,CAAc,CAAC,IAAIQ,IAAU,SAAS,MAAM;AAAA,IAAI,sBAAoBD;AAAAA,EAAAA,GAC5KI,gBAAAA,EAAAQ,cAAA,OAAA;AAAA,IAAKC,WAAWlC,EAAWE;AAAAA,EAAAA,GACzBuB,gBAAAA,EAAAQ,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAA,GACbT,gBAAAA,EAAAQ,cAAA,QAAA;AAAA,IAAMC,WAAWJ;AAAAA,EAAAA,GACfL,gBAAAA,EAAAQ,cAACnC,GAAI;AAAA,IAACqC,MAAM;AAAA,IAAQD,WAAU;AAAA,EAAA,CAA6C,GAC1EnB,GACAE,KACCQ,gBAAAA,EAAAQ,cAAClC,GAAM;AAAA,IACLqC,OAAOlB;AAAAA,IACPmB,MAAK;AAAA,IACLC,MAAK;AAAA,IACLC,SAASpB;AAAAA,IACTe,WAAW,GAAGH,CAAe;AAAA,IAC7BV,cAAa;AAAA,EAAA,CACd,CAEC,CACH,CACF,GACJL,KACCS,gBAAAA,EAAAQ,cAACnC,GAAI;AAAA,IACHqC,MAAM;AAAA,IACND,WAAWlC,EAAWQ;AAAAA,IACtB+B,SAASf;AAAAA,EAAAA,CACV,CAEA;AAET;"}
1
+ {"version":3,"file":"index43.js","sources":["../src/components/MessageBar/index.tsx"],"sourcesContent":["import React, { FC, useRef, useState } from 'react';\nimport { Map } from 'src/utils/common.types';\nimport { useDismissOnEscape } from '../../utils/a11y';\nimport { Icon, IconProps } from '../Icon';\nimport { Button, ButtonProps } from '../Button';\nimport './style.scss';\n\nexport type MessageBarType = 'info' | 'alert' | 'nudge';\n\nexport interface MessageBarProps {\n messageBarCtnClassName?: string;\n messageBarType: MessageBarType;\n message: string;\n hasCloseIcon?: boolean;\n hasButton?: boolean;\n buttonLabel: string | '';\n buttonOnClick?: () => void;\n handleClose?: () => void;\n automationId?: string;\n /**\n * Override the leading icon. Merged on top of the variant default\n * (name + fill color derived from `messageBarType`).\n * Pass `null` to suppress the leading icon entirely.\n */\n iconProps?: Partial<IconProps> | null;\n /**\n * Override props for the CTA button. Spread after the variant defaults\n * (label/onClick/className/type/size), so any field can be replaced —\n * including `iconProps` to add an icon to the button.\n */\n buttonProps?: Partial<ButtonProps>;\n /**\n * Accessible name for the close icon. Defaults to \"Close message\".\n */\n closeButtonAriaLabel?: string;\n}\n\n/**\n * Per-variant defaults for the leading icon. Single `info` glyph everywhere;\n * stroke matches the variant's text color. `info` and `nudge` render rotated\n * 180° to read as inverted; `alert` keeps the default orientation.\n */\nconst DEFAULT_ICON_BY_TYPE: Record<MessageBarType, { stroke: string; rotation: '0' | '180' }> = {\n info: { stroke: 'var(--color-yellow-700)', rotation: '180' },\n alert: { stroke: 'var(--color-black)', rotation: '0' },\n nudge: { stroke: 'var(--color-white)', rotation: '180' }\n};\n\nconst classNames: Map = {\n messageBarCtn: \"min-h-[45px] fixed top-0 w-full flex items-center justify-center py-2\",\n messageCtn: \"flex items-center justify-center gap-2 flex-wrap px-4 pr-12\",\n info: \"bg-[var(--color-yellow-50)]\",\n alert: \"bg-[var(--color-red-50)]\",\n nudge: \"bg-[var(--color-blue-500)]\",\n infoMessage: \"text-[var(--color-yellow-700)] text-center\",\n alertMessage: \"text-[var(--color-black)] text-center\",\n nudgeMessage: \"text-[var(--color-white)] text-center\",\n closeIconCtn: \"absolute right-[12px] cursor-pointer rounded-full p-1\",\n closeIconCtnInfo: \"hover:bg-[var(--color-gray-200)]\",\n closeIconCtnAlert: \"hover:bg-[var(--color-gray-200)]\",\n closeIconCtnNudge: \"hover:bg-[var(--color-blue-700)]\",\n};\n\n/**\n * Per-variant default Button theme. Picked so the CTA surface has a\n * non-text contrast of >= 3:1 against the bar background (WCAG 1.4.11).\n * Consumers can override via `buttonProps`.\n */\nconst DEFAULT_BUTTON_THEME_BY_TYPE: Record<MessageBarType, ButtonProps['theme']> = {\n info: 'blue',\n alert: 'red',\n nudge: 'white'\n};\n\nexport const MessageBar: FC<MessageBarProps> = ({\n messageBarCtnClassName = \"\",\n messageBarType = 'info',\n message = '',\n hasCloseIcon = false,\n hasButton = false,\n buttonLabel = '',\n buttonOnClick = () => {},\n handleClose = () => {},\n automationId = '',\n iconProps,\n buttonProps,\n closeButtonAriaLabel = 'Close message'\n}) => {\n const [visible, setVisible] = useState(true);\n const containerRef = useRef<HTMLDivElement>(null);\n\n const handleClickOnCloseIcon = React.useCallback(() => {\n setVisible(false);\n const timer = setTimeout(() => {\n handleClose?.();\n }, 300);\n return () => clearTimeout(timer);\n }, [handleClose]);\n\n // SR announcements: pending shared live-announcer component.\n useDismissOnEscape({\n containerRef,\n onDismiss: handleClickOnCloseIcon,\n enabled: hasCloseIcon && visible\n });\n\n const messageClass = {\n info: classNames.infoMessage,\n alert: classNames.alertMessage,\n nudge: classNames.nudgeMessage\n }[messageBarType] ?? classNames.infoMessage;\n\n const closeIconHoverClass = {\n info: classNames.closeIconCtnInfo,\n alert: classNames.closeIconCtnAlert,\n nudge: classNames.closeIconCtnNudge\n }[messageBarType] ?? classNames.closeIconCtnInfo;\n\n const closeIconStroke = messageBarType === 'nudge' ? 'var(--color-white)' : 'var(--color-gray-700)';\n\n const defaultButtonTheme = DEFAULT_BUTTON_THEME_BY_TYPE[messageBarType] ?? DEFAULT_BUTTON_THEME_BY_TYPE.info;\n\n const variantIcon = DEFAULT_ICON_BY_TYPE[messageBarType] ?? DEFAULT_ICON_BY_TYPE.info;\n const showLeadingIcon = iconProps !== null;\n const mergedIconProps: IconProps = {\n name: 'info',\n stroke: variantIcon.stroke,\n rotation: variantIcon.rotation,\n className: 'shrink-0',\n ...iconProps\n };\n\n return (\n <div\n ref={containerRef}\n className={`se-design-message-bar ${messageBarCtnClassName} ${classNames.messageBarCtn} ${classNames[messageBarType]} ${visible ? \"show\" : \"hide\"}`}\n data-automation-id={automationId}\n >\n <div className={classNames.messageCtn}>\n {showLeadingIcon && <Icon {...mergedIconProps} />}\n <span className={`${messageClass} break-words min-w-0`}>{message}</span>\n {hasButton && (\n <Button\n label={buttonLabel}\n type='primary'\n size=\"sm\"\n theme={defaultButtonTheme}\n onClick={buttonOnClick}\n className=\"alert-btn\"\n {...buttonProps}\n />\n )}\n </div>\n {hasCloseIcon && (\n <Icon\n name={\"close\"}\n className={`${classNames.closeIconCtn} ${closeIconHoverClass}`}\n stroke={closeIconStroke}\n onClick={handleClickOnCloseIcon}\n ariaLabel={closeButtonAriaLabel}\n />\n )}\n </div>\n );\n};\n\nexport default MessageBar;"],"names":["DEFAULT_ICON_BY_TYPE","info","stroke","rotation","alert","nudge","classNames","messageBarCtn","messageCtn","infoMessage","alertMessage","nudgeMessage","closeIconCtn","closeIconCtnInfo","closeIconCtnAlert","closeIconCtnNudge","DEFAULT_BUTTON_THEME_BY_TYPE","MessageBar","messageBarCtnClassName","messageBarType","message","hasCloseIcon","hasButton","buttonLabel","buttonOnClick","handleClose","automationId","iconProps","buttonProps","closeButtonAriaLabel","visible","setVisible","useState","containerRef","useRef","handleClickOnCloseIcon","React","useCallback","timer","setTimeout","clearTimeout","useDismissOnEscape","onDismiss","enabled","messageClass","closeIconHoverClass","closeIconStroke","defaultButtonTheme","variantIcon","showLeadingIcon","mergedIconProps","name","className","createElement","ref","Icon","Button","_extends","label","type","size","theme","onClick","ariaLabel"],"mappings":"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"}
package/dist/index45.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import e, { useState as S, useRef as k, useCallback as P, useEffect as Y } from "react";
2
2
  /* empty css */
3
3
  import { Icon as x } from "./index6.js";
4
- import { useStableId as Z } from "./index83.js";
5
- import { getA11yNameAttributes as L } from "./index78.js";
6
- import "./index72.js";
7
- import { useCombobox as ee } from "./index68.js";
4
+ import { useStableId as Z } from "./index205.js";
5
+ import { getA11yNameAttributes as L } from "./index82.js";
6
+ import "./index76.js";
7
+ import { useCombobox as ee } from "./index72.js";
8
8
  function u() {
9
9
  return u = Object.assign ? Object.assign.bind() : function(o) {
10
10
  for (var i = 1; i < arguments.length; i++) {