se-design 1.0.72 → 1.0.73-dev2

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 (330) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/assets/typographyMixin.scss +8 -0
  3. package/dist/components/BreadCrumbs/index.d.ts +3 -1
  4. package/dist/components/CustomAccordion/index.d.ts +3 -0
  5. package/dist/components/Icon/index.d.ts +7 -7
  6. package/dist/components/NavigationBar/TabButton.d.ts +1 -1
  7. package/dist/components/Pagination/index.d.ts +1 -0
  8. package/dist/components/Popover/index.d.ts +2 -2
  9. package/dist/components/TableLayout/index.d.ts +4 -0
  10. package/dist/components/Tabs/index.d.ts +6 -1
  11. package/dist/index.js +132 -128
  12. package/dist/index.js.map +1 -1
  13. package/dist/index100.js +1 -1
  14. package/dist/index100.js.map +1 -1
  15. package/dist/index101.js +2 -2
  16. package/dist/index101.js.map +1 -1
  17. package/dist/index102.js +1 -1
  18. package/dist/index102.js.map +1 -1
  19. package/dist/index103.js +1 -1
  20. package/dist/index103.js.map +1 -1
  21. package/dist/index104.js +2 -2
  22. package/dist/index104.js.map +1 -1
  23. package/dist/index105.js +1 -1
  24. package/dist/index105.js.map +1 -1
  25. package/dist/index106.js +2 -2
  26. package/dist/index106.js.map +1 -1
  27. package/dist/index107.js +1 -1
  28. package/dist/index107.js.map +1 -1
  29. package/dist/index108.js +1 -1
  30. package/dist/index108.js.map +1 -1
  31. package/dist/index109.js +1 -1
  32. package/dist/index109.js.map +1 -1
  33. package/dist/index110.js +2 -2
  34. package/dist/index110.js.map +1 -1
  35. package/dist/index111.js +1 -1
  36. package/dist/index111.js.map +1 -1
  37. package/dist/index112.js +2 -2
  38. package/dist/index112.js.map +1 -1
  39. package/dist/index113.js +2 -2
  40. package/dist/index113.js.map +1 -1
  41. package/dist/index114.js +1 -1
  42. package/dist/index114.js.map +1 -1
  43. package/dist/index115.js +2 -2
  44. package/dist/index115.js.map +1 -1
  45. package/dist/index116.js +2 -2
  46. package/dist/index116.js.map +1 -1
  47. package/dist/index117.js +1 -1
  48. package/dist/index117.js.map +1 -1
  49. package/dist/index118.js +1 -1
  50. package/dist/index118.js.map +1 -1
  51. package/dist/index119.js +1 -1
  52. package/dist/index119.js.map +1 -1
  53. package/dist/index120.js +2 -2
  54. package/dist/index120.js.map +1 -1
  55. package/dist/index121.js +2 -2
  56. package/dist/index121.js.map +1 -1
  57. package/dist/index122.js +2 -2
  58. package/dist/index122.js.map +1 -1
  59. package/dist/index123.js +1 -1
  60. package/dist/index123.js.map +1 -1
  61. package/dist/index124.js +1 -1
  62. package/dist/index124.js.map +1 -1
  63. package/dist/index125.js +1 -1
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +1 -1
  66. package/dist/index126.js.map +1 -1
  67. package/dist/index127.js +1 -1
  68. package/dist/index127.js.map +1 -1
  69. package/dist/index128.js +1 -1
  70. package/dist/index128.js.map +1 -1
  71. package/dist/index129.js +1 -1
  72. package/dist/index129.js.map +1 -1
  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 +1 -1
  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 +1 -1
  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 +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 +2 -2
  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 +2 -2
  98. package/dist/index142.js.map +1 -1
  99. package/dist/index143.js +2 -2
  100. package/dist/index143.js.map +1 -1
  101. package/dist/index144.js +2 -2
  102. package/dist/index144.js.map +1 -1
  103. package/dist/index145.js +2 -2
  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 +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 +1 -1
  112. package/dist/index149.js.map +1 -1
  113. package/dist/index15.js +2 -2
  114. package/dist/index150.js +1 -1
  115. package/dist/index150.js.map +1 -1
  116. package/dist/index151.js +1 -1
  117. package/dist/index151.js.map +1 -1
  118. package/dist/index152.js +1 -1
  119. package/dist/index152.js.map +1 -1
  120. package/dist/index153.js +1 -1
  121. package/dist/index153.js.map +1 -1
  122. package/dist/index154.js +1 -1
  123. package/dist/index154.js.map +1 -1
  124. package/dist/index155.js +1 -1
  125. package/dist/index155.js.map +1 -1
  126. package/dist/index156.js +1 -1
  127. package/dist/index156.js.map +1 -1
  128. package/dist/index157.js +1 -1
  129. package/dist/index157.js.map +1 -1
  130. package/dist/index158.js +1 -1
  131. package/dist/index158.js.map +1 -1
  132. package/dist/index159.js +1 -1
  133. package/dist/index159.js.map +1 -1
  134. package/dist/index160.js +1 -1
  135. package/dist/index160.js.map +1 -1
  136. package/dist/index161.js +1 -1
  137. package/dist/index161.js.map +1 -1
  138. package/dist/index162.js +1 -1
  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 +2 -2
  155. package/dist/index170.js.map +1 -1
  156. package/dist/index171.js +2 -2
  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 +2 -2
  163. package/dist/index174.js.map +1 -1
  164. package/dist/index175.js +2 -2
  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 +160 -156
  175. package/dist/index18.js.map +1 -1
  176. package/dist/index180.js +1 -1
  177. package/dist/index180.js.map +1 -1
  178. package/dist/index181.js +1 -1
  179. package/dist/index181.js.map +1 -1
  180. package/dist/index182.js +1 -1
  181. package/dist/index182.js.map +1 -1
  182. package/dist/index183.js +1 -1
  183. package/dist/index183.js.map +1 -1
  184. package/dist/index184.js +2 -2
  185. package/dist/index184.js.map +1 -1
  186. package/dist/index185.js +2 -2
  187. package/dist/index185.js.map +1 -1
  188. package/dist/index186.js +2 -2
  189. package/dist/index186.js.map +1 -1
  190. package/dist/index187.js +2 -149
  191. package/dist/index187.js.map +1 -1
  192. package/dist/index188.js +149 -9
  193. package/dist/index188.js.map +1 -1
  194. package/dist/index189.js +8 -5
  195. package/dist/index189.js.map +1 -1
  196. package/dist/index190.js +5 -4
  197. package/dist/index190.js.map +1 -1
  198. package/dist/index191.js +8 -0
  199. package/dist/index191.js.map +1 -0
  200. package/dist/{index193.js → index194.js} +1 -1
  201. package/dist/{index193.js.map → index194.js.map} +1 -1
  202. package/dist/{index195.js → index196.js} +3 -3
  203. package/dist/{index195.js.map → index196.js.map} +1 -1
  204. package/dist/{index197.js → index198.js} +1 -1
  205. package/dist/{index197.js.map → index198.js.map} +1 -1
  206. package/dist/{index205.js → index206.js} +1 -1
  207. package/dist/{index205.js.map → index206.js.map} +1 -1
  208. package/dist/index21.js +34 -30
  209. package/dist/index21.js.map +1 -1
  210. package/dist/{index213.js → index214.js} +1 -1
  211. package/dist/{index213.js.map → index214.js.map} +1 -1
  212. package/dist/index217.js +42 -42
  213. package/dist/index217.js.map +1 -1
  214. package/dist/index22.js +3 -3
  215. package/dist/index228.js +1 -1
  216. package/dist/index229.js +20 -52
  217. package/dist/index229.js.map +1 -1
  218. package/dist/index230.js +52 -20
  219. package/dist/index230.js.map +1 -1
  220. package/dist/index24.js +2 -2
  221. package/dist/index27.js +2 -2
  222. package/dist/index28.js +119 -60
  223. package/dist/index28.js.map +1 -1
  224. package/dist/index29.js +1 -1
  225. package/dist/index3.js +1 -1
  226. package/dist/index30.js +56 -41
  227. package/dist/index30.js.map +1 -1
  228. package/dist/index31.js +11 -10
  229. package/dist/index32.js +59 -44
  230. package/dist/index32.js.map +1 -1
  231. package/dist/index34.js +1 -1
  232. package/dist/index35.js +56 -49
  233. package/dist/index35.js.map +1 -1
  234. package/dist/index37.js +2 -2
  235. package/dist/index38.js +3 -3
  236. package/dist/index39.js +1 -1
  237. package/dist/index40.js +1 -1
  238. package/dist/index40.js.map +1 -1
  239. package/dist/index41.js +8 -7
  240. package/dist/index42.js +7 -6
  241. package/dist/index43.js +18 -18
  242. package/dist/index43.js.map +1 -1
  243. package/dist/index44.js +3 -3
  244. package/dist/index45.js +4 -4
  245. package/dist/index48.js +53 -56
  246. package/dist/index48.js.map +1 -1
  247. package/dist/index49.js +35 -25
  248. package/dist/index49.js.map +1 -1
  249. package/dist/index5.js +294 -307
  250. package/dist/index5.js.map +1 -1
  251. package/dist/index50.js +48 -48
  252. package/dist/index50.js.map +1 -1
  253. package/dist/index51.js +2 -2
  254. package/dist/index54.js +20 -19
  255. package/dist/index54.js.map +1 -1
  256. package/dist/index56.js +1 -1
  257. package/dist/index57.js +13 -9
  258. package/dist/index57.js.map +1 -1
  259. package/dist/index6.js +8 -7
  260. package/dist/index62.js +1 -1
  261. package/dist/index63.js +1 -1
  262. package/dist/index64.js +3 -2
  263. package/dist/index66.js +1 -1
  264. package/dist/index69.js +59 -5
  265. package/dist/index69.js.map +1 -1
  266. package/dist/index70.js +5 -9
  267. package/dist/index70.js.map +1 -1
  268. package/dist/index71.js +12 -0
  269. package/dist/index71.js.map +1 -0
  270. package/dist/index73.js +2 -2
  271. package/dist/index73.js.map +1 -1
  272. package/dist/index74.js +2 -2
  273. package/dist/index74.js.map +1 -1
  274. package/dist/index75.js +2 -2
  275. package/dist/index75.js.map +1 -1
  276. package/dist/index76.js +1 -1
  277. package/dist/index76.js.map +1 -1
  278. package/dist/index77.js +1 -1
  279. package/dist/index77.js.map +1 -1
  280. package/dist/index78.js +1 -1
  281. package/dist/index78.js.map +1 -1
  282. package/dist/index79.js +1 -1
  283. package/dist/index79.js.map +1 -1
  284. package/dist/index8.js +3 -3
  285. package/dist/index80.js +1 -1
  286. package/dist/index80.js.map +1 -1
  287. package/dist/index81.js +1 -1
  288. package/dist/index81.js.map +1 -1
  289. package/dist/index82.js +1 -1
  290. package/dist/index82.js.map +1 -1
  291. package/dist/index83.js +1 -1
  292. package/dist/index83.js.map +1 -1
  293. package/dist/index84.js +1 -1
  294. package/dist/index84.js.map +1 -1
  295. package/dist/index85.js +1 -1
  296. package/dist/index85.js.map +1 -1
  297. package/dist/index86.js +1 -1
  298. package/dist/index86.js.map +1 -1
  299. package/dist/index87.js +1 -1
  300. package/dist/index87.js.map +1 -1
  301. package/dist/index88.js +1 -1
  302. package/dist/index88.js.map +1 -1
  303. package/dist/index89.js +1 -1
  304. package/dist/index89.js.map +1 -1
  305. package/dist/index90.js +1 -1
  306. package/dist/index90.js.map +1 -1
  307. package/dist/index91.js +1 -1
  308. package/dist/index91.js.map +1 -1
  309. package/dist/index92.js +1 -1
  310. package/dist/index92.js.map +1 -1
  311. package/dist/index93.js +1 -1
  312. package/dist/index93.js.map +1 -1
  313. package/dist/index94.js +1 -1
  314. package/dist/index94.js.map +1 -1
  315. package/dist/index95.js +1 -1
  316. package/dist/index95.js.map +1 -1
  317. package/dist/index96.js +1 -1
  318. package/dist/index96.js.map +1 -1
  319. package/dist/index97.js +1 -1
  320. package/dist/index97.js.map +1 -1
  321. package/dist/index98.js +1 -1
  322. package/dist/index98.js.map +1 -1
  323. package/dist/index99.js +2 -2
  324. package/dist/index99.js.map +1 -1
  325. package/package.json +1 -1
  326. package/dist/components/NavigationBar/useTabsA11y.d.ts +0 -36
  327. package/dist/index216.js +0 -35
  328. package/dist/index216.js.map +0 -1
  329. package/dist/index72.js +0 -5
  330. package/dist/index72.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index18.js","sources":["../src/components/Popover/index.tsx"],"sourcesContent":["import React, { useState, useRef, ReactNode, useEffect, forwardRef, ForwardedRef, useImperativeHandle } from 'react';\nimport ReactDOM from 'react-dom';\nimport { getA11yNameAttributes, useDismissOnFocusOut } from '../../utils/a11y';\n\nexport interface PopoverHandle {\n togglePopover: () => void;\n}\n\nexport interface PopoverProps {\n className?: string;\n automationId?: string;\n popoverContentAutomationId?: string;\n renderPopoverContents: (props: { closePopoverCb: () => void }) => ReactNode;\n renderPopoverSrcElement: (props: { displayPopover: boolean; togglePopover: () => void }) => ReactNode;\n position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';\n onPopoverToggle?: (displayPopover: boolean) => void;\n contentWidth?: 'full' | 'max';\n isPopoverOpen?: boolean;\n disabled?: boolean;\n isWithPortal?: boolean;\n noBorder?: boolean;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n sourceRole?: 'button' | 'combobox';\n popoverContentStyleProperty?: React.CSSProperties;\n disableClickToggle?: boolean;\n disableAutoClose?: boolean;\n}\n\nexport const Popover = forwardRef<PopoverHandle, PopoverProps>(\n (\n {\n className = '',\n automationId = '',\n position = 'bottom-center',\n popoverContentAutomationId = '',\n contentWidth = 'max',\n renderPopoverContents,\n renderPopoverSrcElement,\n onPopoverToggle,\n isPopoverOpen,\n disabled = false,\n isWithPortal = false,\n ariaLabel,\n ariaLabelledBy,\n sourceRole = 'button',\n popoverContentStyleProperty = {\n zIndex: 1000,\n borderColor: 'var(--color-gray-200)',\n color: 'var(--color-gray-900)',\n backgroundColor: 'var(--color-white)'\n },\n disableClickToggle = false,\n noBorder = false,\n disableAutoClose = false,\n ...props\n },\n ref: ForwardedRef<PopoverHandle>\n ) => {\n const [displayPopover, setDisplayPopover] = useState(false);\n const [popoverPosition, setPopoverPosition] = useState(position);\n const [isSrcElementVisible, setIsSrcElementVisible] = useState(false);\n const srcElementRef = useRef<HTMLDivElement>(null);\n const popoverContentRef = useRef<HTMLDivElement>(null);\n\n // Compute accessible name/description props with correct precedence\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy: undefined // Popover doesn't support describedBy yet\n });\n\n // Use shared focus-out dismissal for non-portal popovers.\n // Portal content lives outside the wrapper, so portal uses a dedicated onBlur fallback below.\n const { onBlurCapture: onDismissBlurCapture } = useDismissOnFocusOut<HTMLDivElement>({\n disabled: !displayPopover || disableAutoClose || isWithPortal,\n onFocusOut: () => setDisplayPopover(false),\n closeOnEscape: false\n });\n\n const [portalPosition, setPortalPosition] = useState({ top: 0, left: 0 });\n\n const calculatePositionOfPopover = (position: string = 'bottom-center') => {\n if (!srcElementRef.current) return { top: 0, left: 0 };\n\n let localPosition = position;\n\n const srcRect = srcElementRef.current.getBoundingClientRect();\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Calculate position for portal\n let top = 0;\n let left = 0;\n\n switch (localPosition) {\n case 'bottom-left':\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n case 'bottom-right':\n top = srcRect.bottom;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'bottom-center':\n top = srcRect.bottom;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n case 'top-left':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.left;\n break;\n case 'top-right':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'top-center':\n top = srcRect.top - srcRect.height * 1.9;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n default:\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n }\n\n // Get popover dimensions if available\n const popoverRect = popoverContentRef.current?.getBoundingClientRect();\n const popoverWidth = popoverRect?.width || 0;\n const popoverHeight = popoverRect?.height || 0;\n\n // Adjust center positions to account for popover width\n if (localPosition === 'bottom-center' || localPosition === 'top-center') {\n // Center the popover by subtracting half its width from the source center\n left = left - popoverWidth / 2;\n }\n\n // Adjust position to keep popover within viewport bounds\n // Horizontal adjustments\n if (left + popoverWidth > viewportWidth) {\n // Popover extends beyond right edge, shift it left\n left = Math.max(0, viewportWidth - popoverWidth);\n }\n if (left < 0) {\n // Popover extends beyond left edge, shift it right\n left = 0;\n }\n\n // Vertical adjustments\n if (top + popoverHeight > viewportHeight) {\n // Popover extends beyond bottom edge\n // Try to position it above the source element\n const spaceAbove = srcRect.top;\n const spaceBelow = viewportHeight - srcRect.bottom;\n\n if (spaceAbove >= popoverHeight || spaceAbove > spaceBelow) {\n // Position above if there's enough space or more space above\n top = srcRect.top - popoverHeight;\n // Ensure it doesn't go above viewport\n if (top < 0) {\n top = 0;\n }\n } else {\n // Keep at bottom but adjust to fit within viewport\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n if (top < 0) {\n // Popover extends beyond top edge, position it below the source element\n top = srcRect.bottom;\n // Ensure it doesn't go below viewport\n if (top + popoverHeight > viewportHeight) {\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n\n return { top, left };\n };\n\n useEffect(() => {\n if (onPopoverToggle) {\n onPopoverToggle(displayPopover);\n }\n\n if (displayPopover && !isWithPortal) {\n // Add click listener for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickListener, true);\n }\n checkPopoverPosition();\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickListener, true);\n }\n };\n } else if (displayPopover && isWithPortal) {\n // Add click/scroll listeners for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickAndScrollListenerWithPortal, true);\n window.addEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n // When disableAutoClose is true, still listen to scroll for repositioning\n window.addEventListener('scroll', scrollListenerForRepositioning);\n }\n // Always add resize listener for repositioning\n window.addEventListener('resize', resizeListenerWithPortal);\n\n // Initial position calculation\n const timeout1 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n checkSourceVisibility();\n\n if (position) {\n setPortalPosition(position);\n }\n }, 0);\n\n // Recalculate after popover is rendered to get accurate dimensions\n const timeout2 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }, 10);\n\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickAndScrollListenerWithPortal, true);\n window.removeEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n window.removeEventListener('scroll', scrollListenerForRepositioning);\n }\n window.removeEventListener('resize', resizeListenerWithPortal);\n clearTimeout(timeout1);\n clearTimeout(timeout2);\n };\n }\n }, [displayPopover, isWithPortal, disableAutoClose]);\n\n const checkSourceVisibility = () => {\n if (!srcElementRef.current) {\n setIsSrcElementVisible(false);\n return;\n }\n\n const rec = srcElementRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const viewportWidth = window.innerWidth;\n\n const isVisible = rec.top < viewportHeight && rec.bottom > 0 && rec.left < viewportWidth && rec.right > 0;\n\n setIsSrcElementVisible(isVisible);\n };\n\n useEffect(() => {\n setDisplayPopover(isPopoverOpen ?? false);\n }, [isPopoverOpen]);\n\n useEffect(() => {\n // Focus first focusable element when popover opens\n if (displayPopover && popoverContentRef.current) {\n setTimeout(() => {\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n const firstFocusable = popoverContentRef.current?.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable && document.activeElement === srcElementRef.current) {\n firstFocusable.focus();\n }\n }, 0);\n }\n }, [displayPopover]);\n\n //Function to check popover position\n const checkPopoverPosition = () => {\n if (!popoverContentRef.current) return;\n\n const popoverRect = popoverContentRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n\n if (popoverRect?.bottom > viewportHeight) {\n setPopoverPosition(\n position.includes('left') ? 'top-left' : position.includes('right') ? 'top-right' : 'top-center'\n );\n } else if (popoverRect?.top < 0) {\n // If popover extends beyond top of viewport, switch to bottom position\n setPopoverPosition(\n position.includes('left') ? 'bottom-left' : position.includes('right') ? 'bottom-right' : 'bottom-center'\n );\n }\n };\n\n const clickListener = (event: MouseEvent) => {\n const currentDropRef = srcElementRef.current;\n if (!currentDropRef) return;\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = popoverContentRef.current?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if (disableAutoClose) return;\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const clickAndScrollListenerWithPortal = (event: Event) => {\n const currentDropRef = srcElementRef.current;\n const currentPopoverRef = popoverContentRef.current;\n if (!currentDropRef) return;\n checkSourceVisibility();\n\n // Recalculate position on scroll\n if (event.type === 'scroll' && displayPopover) {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = currentPopoverRef?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n if (disableAutoClose) return;\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const resizeListenerWithPortal = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const scrollListenerForRepositioning = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const togglePopover = () => {\n setDisplayPopover((displayPopover) => !displayPopover);\n };\n\n const handleArrowKeyNavigation = (e: React.KeyboardEvent, container: HTMLDivElement | null) => {\n if (!container) return;\n\n // Find all focusable elements within the popover content\n // This includes elements with role=\"menuitem\", role=\"option\", tabIndex >= 0, etc.\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n\n const focusableElements = Array.from(container.querySelectorAll<HTMLElement>(focusableSelectors)).filter((el) => {\n // Filter out disabled and hidden elements\n const style = window.getComputedStyle(el);\n return (\n !el.hasAttribute('disabled') &&\n !el.hasAttribute('aria-disabled') &&\n style.display !== 'none' &&\n style.visibility !== 'hidden' &&\n (el.tabIndex >= 0 || el.hasAttribute('role'))\n );\n });\n\n if (focusableElements.length === 0) return;\n\n const currentIndex = focusableElements.findIndex((el) => el === document.activeElement);\n let nextIndex = -1;\n\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex < focusableElements.length - 1 ? currentIndex + 1 : 0;\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex > 0 ? currentIndex - 1 : focusableElements.length - 1;\n } else if (e.key === 'Home') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = 0;\n } else if (e.key === 'End') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = focusableElements.length - 1;\n }\n\n if (nextIndex >= 0 && focusableElements[nextIndex]) {\n focusableElements[nextIndex].focus();\n } else if (currentIndex === -1 && focusableElements.length > 0) {\n // If no element is currently focused, focus the first one\n focusableElements[0].focus();\n }\n };\n\n const handlePopoverContentKeyDown = (e: React.KeyboardEvent) => {\n // Allow Escape key to close popover when focus is on content\n if (e.key === 'Escape') {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n srcElementRef.current?.focus();\n } else if (e.key === 'Tab') {\n // Close popover when Tab exits the menu\n setDisplayPopover(false);\n if (e.shiftKey) {\n // Shift+Tab: prevent default (would go to wrapper) and focus trigger instead\n e.preventDefault();\n srcElementRef.current?.focus();\n }\n // Forward Tab: do NOT preventDefault — browser moves focus to next element naturally\n } else if (e.key === 'ArrowDown' || e.key === 'ArrowUp' || e.key === 'Home' || e.key === 'End') {\n // Handle arrow key navigation for focusable elements inside popover\n handleArrowKeyNavigation(e, popoverContentRef.current);\n } else if (e.key === 'Enter' || e.key === ' ') {\n // Prevent Enter/Space from bubbling to wrapper (mirrors click stopPropagation)\n e.stopPropagation();\n }\n };\n\n useImperativeHandle(ref, () => ({ togglePopover }), []);\n\n const popoverContentStyle = {\n 'bottom-left': { left: '0', top: '100%' },\n 'bottom-right': { right: '0', top: '100%' },\n 'bottom-center': { left: '50%', transform: 'translateX(-50%)', top: '100%' },\n 'top-left': { left: '0', bottom: '100%' },\n 'top-right': { right: '0', bottom: '100%' },\n 'top-center': { left: '50%', transform: 'translateX(-50%)', bottom: '100%' }\n };\n const popoverContentClasses = noBorder ? '' : 'shadow-md border rounded-md';\n\n return (\n <div\n className={\n 'se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md' +\n (className.length > 0 ? ` ${className}` : '') +\n (displayPopover ? ' open' : '') +\n (disabled ? ' opacity-50 cursor-not-allowed pointer-events-none' : '')\n }\n ref={srcElementRef}\n onClick={(e) => {\n if (disabled || disableClickToggle) return;\n e.stopPropagation();\n togglePopover();\n }}\n onKeyDown={(e) => {\n if (disabled) return;\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n e.stopPropagation();\n const wasOpen = displayPopover;\n togglePopover();\n // Focus first focusable element when opening\n if (!wasOpen) {\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n } else if (e.key === 'Escape' && displayPopover) {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n } else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && displayPopover) {\n // Handle arrow keys when popover is open\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n handleArrowKeyNavigation(e, currentRef);\n }\n } else if (e.key === 'ArrowDown' && !displayPopover) {\n // Open popover and focus first item when ArrowDown is pressed\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(true);\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n }}\n onBlurCapture={onDismissBlurCapture}\n onBlur={(e) => {\n // Portal content is rendered outside wrapper, so keep explicit check for that case.\n if (!displayPopover || disableAutoClose || !isWithPortal) return;\n\n const nextFocused = e.relatedTarget as Node | null;\n const isFocusInSource = !!(nextFocused && srcElementRef.current?.contains(nextFocused));\n const isFocusInPopover = !!(nextFocused && popoverContentRef.current?.contains(nextFocused));\n\n // Close only when focus leaves both source and portal content.\n if (!isFocusInSource && !isFocusInPopover) {\n setDisplayPopover(false);\n }\n }}\n role={sourceRole}\n aria-expanded={disableClickToggle ? undefined : displayPopover ? 'true' : 'false'}\n aria-haspopup={disableClickToggle ? undefined : sourceRole === 'combobox' ? 'listbox' : 'true'}\n tabIndex={disabled || disableClickToggle ? -1 : 0}\n aria-disabled={disabled ? 'true' : 'false'}\n {...accessibleNameProps}\n data-automation-id={automationId}\n {...props}\n >\n {renderPopoverSrcElement({ displayPopover, togglePopover })}\n\n {displayPopover && !isWithPortal && (\n <div\n className={`popover-content absolute ${popoverContentClasses} z-[1000] ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n ...popoverContentStyleProperty,\n ...popoverContentStyle[popoverPosition]\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>\n )}\n {isWithPortal &&\n displayPopover &&\n isSrcElementVisible &&\n ReactDOM.createPortal(\n <div\n className={`popover-content-with-portal ${popoverContentClasses} ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n position: 'fixed',\n top: portalPosition.top,\n left: portalPosition.left,\n ...popoverContentStyleProperty\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>,\n document.body\n )}\n </div>\n );\n }\n);\n"],"names":["Popover","className","automationId","position","popoverContentAutomationId","contentWidth","renderPopoverContents","renderPopoverSrcElement","onPopoverToggle","isPopoverOpen","disabled","isWithPortal","ariaLabel","ariaLabelledBy","sourceRole","popoverContentStyleProperty","zIndex","borderColor","color","backgroundColor","disableClickToggle","noBorder","disableAutoClose","props","ref","displayPopover","setDisplayPopover","useState","popoverPosition","setPopoverPosition","isSrcElementVisible","setIsSrcElementVisible","srcElementRef","useRef","popoverContentRef","accessibleNameProps","getA11yNameAttributes","ariaDescribedBy","undefined","onBlurCapture","onDismissBlurCapture","useDismissOnFocusOut","onFocusOut","closeOnEscape","portalPosition","setPortalPosition","top","left","calculatePositionOfPopover","current","localPosition","srcRect","getBoundingClientRect","viewportWidth","window","innerWidth","viewportHeight","innerHeight","bottom","right","width","height","popoverRect","popoverWidth","popoverHeight","Math","max","spaceAbove","spaceBelow","useEffect","document","body","addEventListener","clickListener","checkPopoverPosition","removeEventListener","scrollListenerForRepositioning","clickAndScrollListenerWithPortal","resizeListenerWithPortal","timeout1","setTimeout","checkSourceVisibility","timeout2","clearTimeout","rec","isVisible","focusableSelectors","join","firstFocusable","querySelector","activeElement","focus","includes","event","currentDropRef","target","isSourcePopover","contains","isPopoverContent","closestPopoverWrapper","closest","isAnotherPopoverSource","isNestedPopover","currentPopoverRef","type","togglePopover","handleArrowKeyNavigation","e","container","focusableElements","Array","from","querySelectorAll","filter","el","style","getComputedStyle","hasAttribute","display","visibility","tabIndex","length","currentIndex","findIndex","nextIndex","key","preventDefault","stopPropagation","handlePopoverContentKeyDown","shiftKey","useImperativeHandle","popoverContentStyle","transform","popoverContentClasses","React","createElement","_extends","onClick","onKeyDown","wasOpen","currentRef","onBlur","nextFocused","relatedTarget","isFocusInSource","isFocusInPopover","role","closePopoverCb","ReactDOM","createPortal"],"mappings":";;;;;;;;;;;;;AA6BO,MAAMA,wBACX,CACE;AAAA,EACEC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AAAA,EACfC,UAAAA,IAAW;AAAA,EACXC,4BAAAA,IAA6B;AAAA,EAC7BC,cAAAA,IAAe;AAAA,EACfC,uBAAAA;AAAAA,EACAC,yBAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,EACXC,cAAAA,IAAe;AAAA,EACfC,WAAAA;AAAAA,EACAC,gBAAAA;AAAAA,EACAC,YAAAA,IAAa;AAAA,EACbC,6BAAAA,IAA8B;AAAA,IAC5BC,QAAQ;AAAA,IACRC,aAAa;AAAA,IACbC,OAAO;AAAA,IACPC,iBAAiB;AAAA,EAAA;AAAA,EAEnBC,oBAAAA,IAAqB;AAAA,EACrBC,UAAAA,IAAW;AAAA,EACXC,kBAAAA,IAAmB;AAAA,EACnB,GAAGC;AACL,GACAC,OACG;AACH,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAS,EAAK,GACpD,CAACC,GAAiBC,CAAkB,IAAIF,EAASxB,CAAQ,GACzD,CAAC2B,IAAqBC,CAAsB,IAAIJ,EAAS,EAAK,GAC9DK,IAAgBC,EAAuB,IAAI,GAC3CC,IAAoBD,EAAuB,IAAI,GAG/CE,KAAs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XxG,KAAKU;AAAAA,IACL,sBAAoB9B;AAAAA,EAAAA,GAEnBE,EAAsB;AAAA,IAAE6I,gBAAgBA,MAAMzH,EAAkB,EAAK;AAAA,EAAA,CAAG,CACtE,GACL4C,SAASC,IACX,CACC;AAET,CACF;"}
1
+ {"version":3,"file":"index18.js","sources":["../src/components/Popover/index.tsx"],"sourcesContent":["import React, { useState, useRef, ReactNode, useEffect, forwardRef, ForwardedRef, useImperativeHandle } from 'react';\nimport ReactDOM from 'react-dom';\nimport { getA11yNameAttributes, useDismissOnFocusOut } from '../../utils/a11y';\n\nconst focusableSelectors = [\n '[role=\"menuitem\"]', '[role=\"option\"]', '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]', 'button:not([disabled])', 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\nexport interface PopoverHandle {\n togglePopover: (focusFirst?: boolean) => void;\n}\n\nexport interface PopoverProps {\n className?: string;\n automationId?: string;\n popoverContentAutomationId?: string;\n renderPopoverContents: (props: { closePopoverCb: () => void }) => ReactNode;\n renderPopoverSrcElement: (props: { displayPopover: boolean; togglePopover: (focusFirst?: boolean) => void }) => ReactNode;\n position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';\n onPopoverToggle?: (displayPopover: boolean) => void;\n contentWidth?: 'full' | 'max';\n isPopoverOpen?: boolean;\n disabled?: boolean;\n isWithPortal?: boolean;\n noBorder?: boolean;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n sourceRole?: 'button' | 'combobox';\n popoverContentStyleProperty?: React.CSSProperties;\n disableClickToggle?: boolean;\n disableAutoClose?: boolean;\n}\n\nexport const Popover = forwardRef<PopoverHandle, PopoverProps>(\n (\n {\n className = '',\n automationId = '',\n position = 'bottom-center',\n popoverContentAutomationId = '',\n contentWidth = 'max',\n renderPopoverContents,\n renderPopoverSrcElement,\n onPopoverToggle,\n isPopoverOpen,\n disabled = false,\n isWithPortal = false,\n ariaLabel,\n ariaLabelledBy,\n sourceRole = 'button',\n popoverContentStyleProperty = {\n zIndex: 1000,\n borderColor: 'var(--color-gray-200)',\n color: 'var(--color-gray-900)',\n backgroundColor: 'var(--color-white)'\n },\n disableClickToggle = false,\n noBorder = false,\n disableAutoClose = false,\n ...props\n },\n ref: ForwardedRef<PopoverHandle>\n ) => {\n const [displayPopover, setDisplayPopover] = useState(false);\n const [popoverPosition, setPopoverPosition] = useState(position);\n const [isSrcElementVisible, setIsSrcElementVisible] = useState(false);\n const srcElementRef = useRef<HTMLDivElement>(null);\n const popoverContentRef = useRef<HTMLDivElement>(null);\n\n // Compute accessible name/description props with correct precedence\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy: undefined // Popover doesn't support describedBy yet\n });\n\n // Use shared focus-out dismissal for non-portal popovers.\n // Portal content lives outside the wrapper, so portal uses a dedicated onBlur fallback below.\n const { onBlurCapture: onDismissBlurCapture } = useDismissOnFocusOut<HTMLDivElement>({\n disabled: !displayPopover || disableAutoClose || isWithPortal,\n onFocusOut: () => setDisplayPopover(false),\n closeOnEscape: false\n });\n\n const [portalPosition, setPortalPosition] = useState({ top: 0, left: 0 });\n\n const calculatePositionOfPopover = (position: string = 'bottom-center') => {\n if (!srcElementRef.current) return { top: 0, left: 0 };\n\n let localPosition = position;\n\n const srcRect = srcElementRef.current.getBoundingClientRect();\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Calculate position for portal\n let top = 0;\n let left = 0;\n\n switch (localPosition) {\n case 'bottom-left':\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n case 'bottom-right':\n top = srcRect.bottom;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'bottom-center':\n top = srcRect.bottom;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n case 'top-left':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.left;\n break;\n case 'top-right':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'top-center':\n top = srcRect.top - srcRect.height * 1.9;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n default:\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n }\n\n // Get popover dimensions if available\n const popoverRect = popoverContentRef.current?.getBoundingClientRect();\n const popoverWidth = popoverRect?.width || 0;\n const popoverHeight = popoverRect?.height || 0;\n\n // Adjust center positions to account for popover width\n if (localPosition === 'bottom-center' || localPosition === 'top-center') {\n // Center the popover by subtracting half its width from the source center\n left = left - popoverWidth / 2;\n }\n\n // Adjust position to keep popover within viewport bounds\n // Horizontal adjustments\n if (left + popoverWidth > viewportWidth) {\n // Popover extends beyond right edge, shift it left\n left = Math.max(0, viewportWidth - popoverWidth);\n }\n if (left < 0) {\n // Popover extends beyond left edge, shift it right\n left = 0;\n }\n\n // Vertical adjustments\n if (top + popoverHeight > viewportHeight) {\n // Popover extends beyond bottom edge\n // Try to position it above the source element\n const spaceAbove = srcRect.top;\n const spaceBelow = viewportHeight - srcRect.bottom;\n\n if (spaceAbove >= popoverHeight || spaceAbove > spaceBelow) {\n // Position above if there's enough space or more space above\n top = srcRect.top - popoverHeight;\n // Ensure it doesn't go above viewport\n if (top < 0) {\n top = 0;\n }\n } else {\n // Keep at bottom but adjust to fit within viewport\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n if (top < 0) {\n // Popover extends beyond top edge, position it below the source element\n top = srcRect.bottom;\n // Ensure it doesn't go below viewport\n if (top + popoverHeight > viewportHeight) {\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n\n return { top, left };\n };\n\n useEffect(() => {\n if (onPopoverToggle) {\n onPopoverToggle(displayPopover);\n }\n\n if (displayPopover && !isWithPortal) {\n // Add click listener for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickListener, true);\n }\n checkPopoverPosition();\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickListener, true);\n }\n };\n } else if (displayPopover && isWithPortal) {\n // Add click/scroll listeners for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickAndScrollListenerWithPortal, true);\n window.addEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n // When disableAutoClose is true, still listen to scroll for repositioning\n window.addEventListener('scroll', scrollListenerForRepositioning);\n }\n // Always add resize listener for repositioning\n window.addEventListener('resize', resizeListenerWithPortal);\n\n // Initial position calculation\n const timeout1 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n checkSourceVisibility();\n\n if (position) {\n setPortalPosition(position);\n }\n }, 0);\n\n // Recalculate after popover is rendered to get accurate dimensions\n const timeout2 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }, 10);\n\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickAndScrollListenerWithPortal, true);\n window.removeEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n window.removeEventListener('scroll', scrollListenerForRepositioning);\n }\n window.removeEventListener('resize', resizeListenerWithPortal);\n clearTimeout(timeout1);\n clearTimeout(timeout2);\n };\n }\n }, [displayPopover, isWithPortal, disableAutoClose]);\n\n const checkSourceVisibility = () => {\n if (!srcElementRef.current) {\n setIsSrcElementVisible(false);\n return;\n }\n\n const rec = srcElementRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const viewportWidth = window.innerWidth;\n\n const isVisible = rec.top < viewportHeight && rec.bottom > 0 && rec.left < viewportWidth && rec.right > 0;\n\n setIsSrcElementVisible(isVisible);\n };\n\n useEffect(() => {\n setDisplayPopover(isPopoverOpen ?? false);\n }, [isPopoverOpen]);\n\n useEffect(() => {\n // Focus first focusable element when popover opens\n if (displayPopover && popoverContentRef.current) {\n setTimeout(() => {\n const firstFocusable = popoverContentRef.current?.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable && document.activeElement === srcElementRef.current) {\n firstFocusable.focus();\n }\n }, 0);\n }\n }, [displayPopover]);\n\n //Function to check popover position\n const checkPopoverPosition = () => {\n if (!popoverContentRef.current) return;\n\n const popoverRect = popoverContentRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n\n if (popoverRect?.bottom > viewportHeight) {\n setPopoverPosition(\n position.includes('left') ? 'top-left' : position.includes('right') ? 'top-right' : 'top-center'\n );\n } else if (popoverRect?.top < 0) {\n // If popover extends beyond top of viewport, switch to bottom position\n setPopoverPosition(\n position.includes('left') ? 'bottom-left' : position.includes('right') ? 'bottom-right' : 'bottom-center'\n );\n }\n };\n\n const clickListener = (event: MouseEvent) => {\n const currentDropRef = srcElementRef.current;\n if (!currentDropRef) return;\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = popoverContentRef.current?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if (disableAutoClose) return;\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const clickAndScrollListenerWithPortal = (event: Event) => {\n const currentDropRef = srcElementRef.current;\n const currentPopoverRef = popoverContentRef.current;\n if (!currentDropRef) return;\n checkSourceVisibility();\n\n // Recalculate position on scroll\n if (event.type === 'scroll' && displayPopover) {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = currentPopoverRef?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n if (disableAutoClose) return;\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const resizeListenerWithPortal = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const scrollListenerForRepositioning = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const togglePopover = (focusFirst = false) => {\n const wasOpen = displayPopover;\n setDisplayPopover((prev) => !prev);\n if (!wasOpen && focusFirst) {\n setTimeout(() => {\n const firstFocusable = popoverContentRef.current?.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) firstFocusable.focus();\n }, 50);\n }\n };\n\n const handleArrowKeyNavigation = (e: React.KeyboardEvent, container: HTMLDivElement | null) => {\n if (!container) return;\n\n // Find all focusable elements within the popover content\n // This includes elements with role=\"menuitem\", role=\"option\", tabIndex >= 0, etc.\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n\n const focusableElements = Array.from(container.querySelectorAll<HTMLElement>(focusableSelectors)).filter((el) => {\n // Filter out disabled and hidden elements\n const style = window.getComputedStyle(el);\n return (\n !el.hasAttribute('disabled') &&\n !el.hasAttribute('aria-disabled') &&\n style.display !== 'none' &&\n style.visibility !== 'hidden' &&\n (el.tabIndex >= 0 || el.hasAttribute('role'))\n );\n });\n\n if (focusableElements.length === 0) return;\n\n const currentIndex = focusableElements.findIndex((el) => el === document.activeElement);\n let nextIndex = -1;\n\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex < focusableElements.length - 1 ? currentIndex + 1 : 0;\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex > 0 ? currentIndex - 1 : focusableElements.length - 1;\n } else if (e.key === 'Home') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = 0;\n } else if (e.key === 'End') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = focusableElements.length - 1;\n }\n\n if (nextIndex >= 0 && focusableElements[nextIndex]) {\n focusableElements[nextIndex].focus();\n } else if (currentIndex === -1 && focusableElements.length > 0) {\n // If no element is currently focused, focus the first one\n focusableElements[0].focus();\n }\n };\n\n const handlePopoverContentKeyDown = (e: React.KeyboardEvent) => {\n // Allow Escape key to close popover when focus is on content\n if (e.key === 'Escape') {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n srcElementRef.current?.focus();\n } else if (e.key === 'Tab') {\n // Close popover when Tab exits the menu\n setDisplayPopover(false);\n if (e.shiftKey) {\n // Shift+Tab: prevent default (would go to wrapper) and focus trigger instead\n e.preventDefault();\n srcElementRef.current?.focus();\n }\n // Forward Tab: do NOT preventDefault — browser moves focus to next element naturally\n } else if (e.key === 'ArrowDown' || e.key === 'ArrowUp' || e.key === 'Home' || e.key === 'End') {\n // Handle arrow key navigation for focusable elements inside popover\n handleArrowKeyNavigation(e, popoverContentRef.current);\n } else if (e.key === 'Enter' || e.key === ' ') {\n // Prevent Enter/Space from bubbling to wrapper (mirrors click stopPropagation)\n e.stopPropagation();\n }\n };\n\n useImperativeHandle(ref, () => ({ togglePopover }), []);\n\n const popoverContentStyle = {\n 'bottom-left': { left: '0', top: '100%' },\n 'bottom-right': { right: '0', top: '100%' },\n 'bottom-center': { left: '50%', transform: 'translateX(-50%)', top: '100%' },\n 'top-left': { left: '0', bottom: '100%' },\n 'top-right': { right: '0', bottom: '100%' },\n 'top-center': { left: '50%', transform: 'translateX(-50%)', bottom: '100%' }\n };\n const popoverContentClasses = noBorder ? '' : 'shadow-md border rounded-md';\n\n return (\n <div\n className={\n 'se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md' +\n (className.length > 0 ? ` ${className}` : '') +\n (displayPopover ? ' open' : '') +\n (disabled ? ' opacity-50 cursor-not-allowed pointer-events-none' : '')\n }\n ref={srcElementRef}\n onClick={(e) => {\n if (disabled || disableClickToggle) return;\n e.stopPropagation();\n togglePopover();\n }}\n onKeyDown={(e) => {\n if (disabled || disableClickToggle) return;\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n e.stopPropagation();\n const wasOpen = displayPopover;\n togglePopover();\n // Focus first focusable element when opening\n if (!wasOpen) {\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n } else if (e.key === 'Escape' && displayPopover) {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n } else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && displayPopover) {\n // Handle arrow keys when popover is open\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n handleArrowKeyNavigation(e, currentRef);\n }\n } else if (e.key === 'ArrowDown' && !displayPopover) {\n // Open popover and focus first item when ArrowDown is pressed\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(true);\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n }}\n onBlurCapture={onDismissBlurCapture}\n onBlur={(e) => {\n // Portal content is rendered outside wrapper, so keep explicit check for that case.\n if (!displayPopover || disableAutoClose || !isWithPortal) return;\n\n const nextFocused = e.relatedTarget as Node | null;\n const isFocusInSource = !!(nextFocused && srcElementRef.current?.contains(nextFocused));\n const isFocusInPopover = !!(nextFocused && popoverContentRef.current?.contains(nextFocused));\n\n // Close only when focus leaves both source and portal content.\n if (!isFocusInSource && !isFocusInPopover) {\n setDisplayPopover(false);\n }\n }}\n role={disableClickToggle ? 'none' : sourceRole}\n aria-expanded={disableClickToggle ? undefined : displayPopover ? 'true' : 'false'}\n aria-haspopup={disableClickToggle ? undefined : sourceRole === 'combobox' ? 'listbox' : 'true'}\n tabIndex={disabled || disableClickToggle ? -1 : 0}\n aria-disabled={disableClickToggle ? undefined : disabled ? 'true' : 'false'}\n {...accessibleNameProps}\n data-automation-id={automationId}\n {...props}\n >\n {renderPopoverSrcElement({ displayPopover, togglePopover })}\n\n {displayPopover && !isWithPortal && (\n <div\n className={`popover-content absolute ${popoverContentClasses} z-[1000] ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n ...popoverContentStyleProperty,\n ...popoverContentStyle[popoverPosition]\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>\n )}\n {isWithPortal &&\n displayPopover &&\n isSrcElementVisible &&\n ReactDOM.createPortal(\n <div\n className={`popover-content-with-portal ${popoverContentClasses} ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n position: 'fixed',\n top: portalPosition.top,\n left: portalPosition.left,\n ...popoverContentStyleProperty\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>,\n document.body\n )}\n </div>\n );\n }\n);\n"],"names":["focusableSelectors","join","Popover","className","automationId","position","popoverContentAutomationId","contentWidth","renderPopoverContents","renderPopoverSrcElement","onPopoverToggle","isPopoverOpen","disabled","isWithPortal","ariaLabel","ariaLabelledBy","sourceRole","popoverContentStyleProperty","zIndex","borderColor","color","backgroundColor","disableClickToggle","noBorder","disableAutoClose","props","ref","displayPopover","setDisplayPopover","useState","popoverPosition","setPopoverPosition","isSrcElementVisible","setIsSrcElementVisible","srcElementRef","useRef","popoverContentRef","accessibleNameProps","getA11yNameAttributes","ariaDescribedBy","undefined","onBlurCapture","onDismissBlurCapture","useDismissOnFocusOut","onFocusOut","closeOnEscape","portalPosition","setPortalPosition","top","left","calculatePositionOfPopover","current","localPosition","srcRect","getBoundingClientRect","viewportWidth","window","innerWidth","viewportHeight","innerHeight","bottom","right","width","height","popoverRect","popoverWidth","popoverHeight","Math","max","spaceAbove","spaceBelow","useEffect","document","body","addEventListener","clickListener","checkPopoverPosition","removeEventListener","scrollListenerForRepositioning","clickAndScrollListenerWithPortal","resizeListenerWithPortal","timeout1","setTimeout","checkSourceVisibility","timeout2","clearTimeout","rec","isVisible","firstFocusable","querySelector","activeElement","focus","includes","event","currentDropRef","target","isSourcePopover","contains","isPopoverContent","closestPopoverWrapper","closest","isAnotherPopoverSource","isNestedPopover","currentPopoverRef","type","togglePopover","focusFirst","wasOpen","prev","handleArrowKeyNavigation","e","container","focusableElements","Array","from","querySelectorAll","filter","el","style","getComputedStyle","hasAttribute","display","visibility","tabIndex","length","currentIndex","findIndex","nextIndex","key","preventDefault","stopPropagation","handlePopoverContentKeyDown","shiftKey","useImperativeHandle","popoverContentStyle","transform","popoverContentClasses","React","createElement","_extends","onClick","onKeyDown","currentRef","onBlur","nextFocused","relatedTarget","isFocusInSource","isFocusInPopover","role","closePopoverCb","ReactDOM","createPortal"],"mappings":";;;;;;;;;;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AAAA,EAAAA,GAChBqB,EAAK,GAERhB,EAAwB;AAAA,IAAEkB,gBAAAA;AAAAA,IAAgB8E,eAAAA;AAAAA,EAAAA,CAAe,GAEzD9E,KAAkB,CAACd,KAClB4H,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEvI,WAAW,4BAA4BqI,CAAqB,aAC1DjI,KAAgB,SAAS,WAAW,OAAO;AAAA,IAE7C+G,OAAO;AAAA,MACL,GAAGrG;AAAAA,MACH,GAAGqH,GAAoBxG,CAAe;AAAA,IAAA;AAAA,IAExC8G,SAAU9B,CAAAA,MAAMA,EAAEoB,gBAAAA;AAAAA,IAClBW,WAAWV;AAAAA,IACXzG,KAAKU;AAAAA,IACL,sBAAoB9B;AAAAA,EAAAA,GAEnBE,EAAsB;AAAA,IAAE6I,gBAAgBA,MAAMzH,EAAkB,EAAK;AAAA,EAAA,CAAG,CACtE,GAENf,KACCc,KACAK,MACAsH,gBAAAA,GAASC,aACPd,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEvI,WAAW,+BAA+BqI,CAAqB,IAC7DjI,KAAgB,SAAS,WAAW,OAAO;AAAA,IAE7C+G,OAAO;AAAA,MACLjH,UAAU;AAAA,MACV2C,KAAKF,EAAeE;AAAAA,MACpBC,MAAMH,EAAeG;AAAAA,MACrB,GAAGhC;AAAAA,IAAAA;AAAAA,IAEL2H,SAAU9B,CAAAA,MAAMA,EAAEoB,gBAAAA;AAAAA,IAClBW,WAAWV;AAAAA,IACXzG,KAAKU;AAAAA,IACL,sBAAoB9B;AAAAA,EAAAA,GAEnBE,EAAsB;AAAA,IAAE6I,gBAAgBA,MAAMzH,EAAkB,EAAK;AAAA,EAAA,CAAG,CACtE,GACL4C,SAASC,IACX,CACC;AAET,CACF;"}
package/dist/index180.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4447%206.36364L8.30181%2013.6364L5.05505%2010.3306'%20stroke='currentColor'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
1
+ const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.78076%203.5625H9.54862M1.78671%206.6684H14.2153M1.78671%209.77778H14.2153M1.78671%2012.8837H14.2153'%20stroke='black'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index180.js","sources":["../src/assets/icons/tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4447%206.36364L8.30181%2013.6364L5.05505%2010.3306'%20stroke='currentColor'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_108"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"index180.js","sources":["../src/assets/icons/text-field.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.78076%203.5625H9.54862M1.78671%206.6684H14.2153M1.78671%209.77778H14.2153M1.78671%2012.8837H14.2153'%20stroke='black'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e\""],"names":["__vite_glob_0_107"],"mappings":"AAAA,MAAAA,IAAe;"}
package/dist/index181.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.25439%208.51893H14.7454M4.88658%208.51893V10.0756M11.1132%208.51893V10.0756M4.88658%204.88674V2.81121C4.88658%202.23807%205.35121%201.77344%205.92435%201.77344H10.0754C10.6486%201.77344%2011.1132%202.23807%2011.1132%202.81121V4.88674M13.7076%204.88674H2.29216C1.71902%204.88674%201.25439%205.35137%201.25439%205.92451V13.1889C1.25439%2013.762%201.71902%2014.2266%202.29216%2014.2266H13.7076C14.2808%2014.2266%2014.7454%2013.762%2014.7454%2013.1889V5.92451C14.7454%205.35137%2014.2808%204.88674%2013.7076%204.88674Z'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e";
1
+ const e = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4447%206.36364L8.30181%2013.6364L5.05505%2010.3306'%20stroke='currentColor'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index181.js","sources":["../src/assets/icons/title-field.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.25439%208.51893H14.7454M4.88658%208.51893V10.0756M11.1132%208.51893V10.0756M4.88658%204.88674V2.81121C4.88658%202.23807%205.35121%201.77344%205.92435%201.77344H10.0754C10.6486%201.77344%2011.1132%202.23807%2011.1132%202.81121V4.88674M13.7076%204.88674H2.29216C1.71902%204.88674%201.25439%205.35137%201.25439%205.92451V13.1889C1.25439%2013.762%201.71902%2014.2266%202.29216%2014.2266H13.7076C14.2808%2014.2266%2014.7454%2013.762%2014.7454%2013.1889V5.92451C14.7454%205.35137%2014.2808%204.88674%2013.7076%204.88674Z'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e\""],"names":["__vite_glob_0_109"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"index181.js","sources":["../src/assets/icons/tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4447%206.36364L8.30181%2013.6364L5.05505%2010.3306'%20stroke='currentColor'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_108"],"mappings":"AAAA,MAAAA,IAAe;"}
package/dist/index182.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "data:image/svg+xml,%3csvg%20width='35'%20height='43'%20viewBox='0%200%2035%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8801_133423)'%3e%3crect%20x='0.5625'%20y='0.25'%20width='33.5'%20height='41.5'%20rx='1.75'%20fill='%23F4FAFF'%20stroke='%231088E7'%20stroke-width='0.5'/%3e%3cg%20clip-path='url(%23clip1_8801_133423)'%3e%3cpath%20d='M7.81283%2010.5007C8.57025%2010.5007%209.18426%209.88666%209.18426%209.12924C9.18426%208.37182%208.57025%207.75781%207.81283%207.75781C7.05542%207.75781%206.44141%208.37182%206.44141%209.12924C6.44141%209.88666%207.05542%2010.5007%207.81283%2010.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2011.4141C6.57792%2011.4141%205.51811%2012.1688%205.07031%2013.2426H10.5577C10.1099%2012.1688%209.0501%2011.4141%207.81401%2011.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip2_8801_133423)'%3e%3cpath%20d='M7.81283%2020.5007C8.57025%2020.5007%209.18426%2019.8867%209.18426%2019.1292C9.18426%2018.3718%208.57025%2017.7578%207.81283%2017.7578C7.05542%2017.7578%206.44141%2018.3718%206.44141%2019.1292C6.44141%2019.8867%207.05542%2020.5007%207.81283%2020.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2021.4141C6.57792%2021.4141%205.51811%2022.1688%205.07031%2023.2426H10.5577C10.1099%2022.1688%209.0501%2021.4141%207.81401%2021.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip3_8801_133423)'%3e%3cpath%20d='M7.81283%2030.5007C8.57025%2030.5007%209.18426%2029.8867%209.18426%2029.1292C9.18426%2028.3718%208.57025%2027.7578%207.81283%2027.7578C7.05542%2027.7578%206.44141%2028.3718%206.44141%2029.1292C6.44141%2029.8867%207.05542%2030.5007%207.81283%2030.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2031.4141C6.57792%2031.4141%205.51811%2032.1688%205.07031%2033.2426H10.5577C10.1099%2032.1688%209.0501%2031.4141%207.81401%2031.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20d='M12.3125%2012H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2022H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2032H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%209H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2019H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2029H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8801_133423'%3e%3crect%20width='34.6287'%20height='42.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%207)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2017)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2027)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
1
+ const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.25439%208.51893H14.7454M4.88658%208.51893V10.0756M11.1132%208.51893V10.0756M4.88658%204.88674V2.81121C4.88658%202.23807%205.35121%201.77344%205.92435%201.77344H10.0754C10.6486%201.77344%2011.1132%202.23807%2011.1132%202.81121V4.88674M13.7076%204.88674H2.29216C1.71902%204.88674%201.25439%205.35137%201.25439%205.92451V13.1889C1.25439%2013.762%201.71902%2014.2266%202.29216%2014.2266H13.7076C14.2808%2014.2266%2014.7454%2013.762%2014.7454%2013.1889V5.92451C14.7454%205.35137%2014.2808%204.88674%2013.7076%204.88674Z'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index182.js","sources":["../src/assets/icons/upload-csv.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='35'%20height='43'%20viewBox='0%200%2035%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8801_133423)'%3e%3crect%20x='0.5625'%20y='0.25'%20width='33.5'%20height='41.5'%20rx='1.75'%20fill='%23F4FAFF'%20stroke='%231088E7'%20stroke-width='0.5'/%3e%3cg%20clip-path='url(%23clip1_8801_133423)'%3e%3cpath%20d='M7.81283%2010.5007C8.57025%2010.5007%209.18426%209.88666%209.18426%209.12924C9.18426%208.37182%208.57025%207.75781%207.81283%207.75781C7.05542%207.75781%206.44141%208.37182%206.44141%209.12924C6.44141%209.88666%207.05542%2010.5007%207.81283%2010.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2011.4141C6.57792%2011.4141%205.51811%2012.1688%205.07031%2013.2426H10.5577C10.1099%2012.1688%209.0501%2011.4141%207.81401%2011.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip2_8801_133423)'%3e%3cpath%20d='M7.81283%2020.5007C8.57025%2020.5007%209.18426%2019.8867%209.18426%2019.1292C9.18426%2018.3718%208.57025%2017.7578%207.81283%2017.7578C7.05542%2017.7578%206.44141%2018.3718%206.44141%2019.1292C6.44141%2019.8867%207.05542%2020.5007%207.81283%2020.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2021.4141C6.57792%2021.4141%205.51811%2022.1688%205.07031%2023.2426H10.5577C10.1099%2022.1688%209.0501%2021.4141%207.81401%2021.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip3_8801_133423)'%3e%3cpath%20d='M7.81283%2030.5007C8.57025%2030.5007%209.18426%2029.8867%209.18426%2029.1292C9.18426%2028.3718%208.57025%2027.7578%207.81283%2027.7578C7.05542%2027.7578%206.44141%2028.3718%206.44141%2029.1292C6.44141%2029.8867%207.05542%2030.5007%207.81283%2030.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2031.4141C6.57792%2031.4141%205.51811%2032.1688%205.07031%2033.2426H10.5577C10.1099%2032.1688%209.0501%2031.4141%207.81401%2031.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20d='M12.3125%2012H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2022H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2032H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%209H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2019H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2029H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8801_133423'%3e%3crect%20width='34.6287'%20height='42.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%207)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2017)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2027)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_110"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"index182.js","sources":["../src/assets/icons/title-field.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M1.25439%208.51893H14.7454M4.88658%208.51893V10.0756M11.1132%208.51893V10.0756M4.88658%204.88674V2.81121C4.88658%202.23807%205.35121%201.77344%205.92435%201.77344H10.0754C10.6486%201.77344%2011.1132%202.23807%2011.1132%202.81121V4.88674M13.7076%204.88674H2.29216C1.71902%204.88674%201.25439%205.35137%201.25439%205.92451V13.1889C1.25439%2013.762%201.71902%2014.2266%202.29216%2014.2266H13.7076C14.2808%2014.2266%2014.7454%2013.762%2014.7454%2013.1889V5.92451C14.7454%205.35137%2014.2808%204.88674%2013.7076%204.88674Z'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e\""],"names":["__vite_glob_0_109"],"mappings":"AAAA,MAAAA,IAAe;"}
package/dist/index183.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_16652_76962)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.91%2049.82C38.6674%2049.82%2049.82%2038.6674%2049.82%2024.91C49.82%2011.1526%2038.6674%200%2024.91%200C11.1526%200%200%2011.1526%200%2024.91C0%2038.6674%2011.1526%2049.82%2024.91%2049.82ZM24.91%2011.1205C26.384%2011.1205%2027.5789%2012.3155%2027.5789%2013.7895V25.3548C27.5789%2026.8288%2026.384%2028.0238%2024.91%2028.0238C23.436%2028.0238%2022.2411%2026.8288%2022.2411%2025.3548V13.7895C22.2411%2012.3155%2023.436%2011.1205%2024.91%2011.1205ZM28.4686%2035.1409C28.4686%2037.1063%2026.8753%2038.6995%2024.91%2038.6995C22.9447%2038.6995%2021.3514%2037.1063%2021.3514%2035.1409C21.3514%2033.1756%2022.9447%2031.5823%2024.91%2031.5823C26.8753%2031.5823%2028.4686%2033.1756%2028.4686%2035.1409Z'%20fill='%23FC2F60'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_16652_76962'%3e%3crect%20width='49.82'%20height='49.82'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
1
+ const e = "data:image/svg+xml,%3csvg%20width='35'%20height='43'%20viewBox='0%200%2035%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8801_133423)'%3e%3crect%20x='0.5625'%20y='0.25'%20width='33.5'%20height='41.5'%20rx='1.75'%20fill='%23F4FAFF'%20stroke='%231088E7'%20stroke-width='0.5'/%3e%3cg%20clip-path='url(%23clip1_8801_133423)'%3e%3cpath%20d='M7.81283%2010.5007C8.57025%2010.5007%209.18426%209.88666%209.18426%209.12924C9.18426%208.37182%208.57025%207.75781%207.81283%207.75781C7.05542%207.75781%206.44141%208.37182%206.44141%209.12924C6.44141%209.88666%207.05542%2010.5007%207.81283%2010.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2011.4141C6.57792%2011.4141%205.51811%2012.1688%205.07031%2013.2426H10.5577C10.1099%2012.1688%209.0501%2011.4141%207.81401%2011.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip2_8801_133423)'%3e%3cpath%20d='M7.81283%2020.5007C8.57025%2020.5007%209.18426%2019.8867%209.18426%2019.1292C9.18426%2018.3718%208.57025%2017.7578%207.81283%2017.7578C7.05542%2017.7578%206.44141%2018.3718%206.44141%2019.1292C6.44141%2019.8867%207.05542%2020.5007%207.81283%2020.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2021.4141C6.57792%2021.4141%205.51811%2022.1688%205.07031%2023.2426H10.5577C10.1099%2022.1688%209.0501%2021.4141%207.81401%2021.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip3_8801_133423)'%3e%3cpath%20d='M7.81283%2030.5007C8.57025%2030.5007%209.18426%2029.8867%209.18426%2029.1292C9.18426%2028.3718%208.57025%2027.7578%207.81283%2027.7578C7.05542%2027.7578%206.44141%2028.3718%206.44141%2029.1292C6.44141%2029.8867%207.05542%2030.5007%207.81283%2030.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2031.4141C6.57792%2031.4141%205.51811%2032.1688%205.07031%2033.2426H10.5577C10.1099%2032.1688%209.0501%2031.4141%207.81401%2031.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20d='M12.3125%2012H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2022H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2032H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%209H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2019H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2029H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8801_133423'%3e%3crect%20width='34.6287'%20height='42.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%207)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2017)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2027)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index183.js","sources":["../src/assets/icons/warning.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_16652_76962)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.91%2049.82C38.6674%2049.82%2049.82%2038.6674%2049.82%2024.91C49.82%2011.1526%2038.6674%200%2024.91%200C11.1526%200%200%2011.1526%200%2024.91C0%2038.6674%2011.1526%2049.82%2024.91%2049.82ZM24.91%2011.1205C26.384%2011.1205%2027.5789%2012.3155%2027.5789%2013.7895V25.3548C27.5789%2026.8288%2026.384%2028.0238%2024.91%2028.0238C23.436%2028.0238%2022.2411%2026.8288%2022.2411%2025.3548V13.7895C22.2411%2012.3155%2023.436%2011.1205%2024.91%2011.1205ZM28.4686%2035.1409C28.4686%2037.1063%2026.8753%2038.6995%2024.91%2038.6995C22.9447%2038.6995%2021.3514%2037.1063%2021.3514%2035.1409C21.3514%2033.1756%2022.9447%2031.5823%2024.91%2031.5823C26.8753%2031.5823%2028.4686%2033.1756%2028.4686%2035.1409Z'%20fill='%23FC2F60'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_16652_76962'%3e%3crect%20width='49.82'%20height='49.82'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_111"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"index183.js","sources":["../src/assets/icons/upload-csv.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='35'%20height='43'%20viewBox='0%200%2035%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8801_133423)'%3e%3crect%20x='0.5625'%20y='0.25'%20width='33.5'%20height='41.5'%20rx='1.75'%20fill='%23F4FAFF'%20stroke='%231088E7'%20stroke-width='0.5'/%3e%3cg%20clip-path='url(%23clip1_8801_133423)'%3e%3cpath%20d='M7.81283%2010.5007C8.57025%2010.5007%209.18426%209.88666%209.18426%209.12924C9.18426%208.37182%208.57025%207.75781%207.81283%207.75781C7.05542%207.75781%206.44141%208.37182%206.44141%209.12924C6.44141%209.88666%207.05542%2010.5007%207.81283%2010.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2011.4141C6.57792%2011.4141%205.51811%2012.1688%205.07031%2013.2426H10.5577C10.1099%2012.1688%209.0501%2011.4141%207.81401%2011.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip2_8801_133423)'%3e%3cpath%20d='M7.81283%2020.5007C8.57025%2020.5007%209.18426%2019.8867%209.18426%2019.1292C9.18426%2018.3718%208.57025%2017.7578%207.81283%2017.7578C7.05542%2017.7578%206.44141%2018.3718%206.44141%2019.1292C6.44141%2019.8867%207.05542%2020.5007%207.81283%2020.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2021.4141C6.57792%2021.4141%205.51811%2022.1688%205.07031%2023.2426H10.5577C10.1099%2022.1688%209.0501%2021.4141%207.81401%2021.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip3_8801_133423)'%3e%3cpath%20d='M7.81283%2030.5007C8.57025%2030.5007%209.18426%2029.8867%209.18426%2029.1292C9.18426%2028.3718%208.57025%2027.7578%207.81283%2027.7578C7.05542%2027.7578%206.44141%2028.3718%206.44141%2029.1292C6.44141%2029.8867%207.05542%2030.5007%207.81283%2030.5007Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81401%2031.4141C6.57792%2031.4141%205.51811%2032.1688%205.07031%2033.2426H10.5577C10.1099%2032.1688%209.0501%2031.4141%207.81401%2031.4141Z'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20d='M12.3125%2012H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2022H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2032H30.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%209H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2019H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12.3125%2029H19.3125'%20stroke='%231088E7'%20stroke-width='0.5'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8801_133423'%3e%3crect%20width='34.6287'%20height='42.5'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%207)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2017)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_8801_133423'%3e%3crect%20width='7'%20height='7'%20fill='white'%20transform='translate(4.3125%2027)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_110"],"mappings":"AAAA,MAAAA,IAAe;"}