@pfct/purple 1.5.0-rc.1 → 1.5.0-rc.10

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 (325) hide show
  1. package/dist/Icon/utils/svgr-cli.template.d.ts +7 -0
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/clsx.C11secjj.js +1 -0
  4. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  5. package/dist/chunks/index.1jpVsLW3.js +1 -0
  6. package/dist/chunks/index.B0nfUjLZ.js +374 -0
  7. package/dist/chunks/index.BCUPRn9W.js +5 -0
  8. package/dist/chunks/index.BGQJ5UjQ.js +1 -0
  9. package/dist/chunks/index.BKQj6Ros.js +1 -0
  10. package/dist/chunks/index.BX-VsGjT.js +1 -0
  11. package/dist/chunks/index.BZCoWHJr.js +41 -0
  12. package/dist/chunks/index.BZPx6jYI.js +8 -0
  13. package/dist/chunks/index.Bi2dd8ax.js +354 -0
  14. package/dist/chunks/index.BrP7bNBb.js +35 -0
  15. package/dist/chunks/index.CL8HuWEm.js +154 -0
  16. package/dist/chunks/{index.styled.D_VcbV29.js → index.Ca_yAFix.js} +266 -328
  17. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  18. package/dist/chunks/index.Cg4EOYHb.js +71 -0
  19. package/dist/chunks/index.CuQJFSqG.js +82 -0
  20. package/dist/chunks/index.D2jUN9AV.js +1 -0
  21. package/dist/chunks/index.DB6HVhpz.js +1 -0
  22. package/dist/chunks/index.DG2yRD83.js +27 -0
  23. package/dist/chunks/index.DLeNytVF.js +9 -0
  24. package/dist/chunks/index.DMhXgOEz.js +1 -0
  25. package/dist/chunks/index.DaxnLcvM.js +1 -0
  26. package/dist/chunks/index.Dh7jK0Mq.js +777 -0
  27. package/dist/chunks/index.DqB4vTTG.js +1 -0
  28. package/dist/chunks/index.F4-yWY3F.js +1335 -0
  29. package/dist/chunks/index.R27B_vrp.js +1 -0
  30. package/dist/chunks/index.Sb_wKSRC.js +13 -0
  31. package/dist/chunks/index.Zd9j6m3g.js +1 -0
  32. package/dist/chunks/index.kG55MjaG.js +659 -0
  33. package/dist/components/Accordion/index.cjs.js +1 -1
  34. package/dist/components/Accordion/index.es.js +266 -445
  35. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  36. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  37. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  38. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  39. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  40. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +24 -26
  41. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  42. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  43. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  44. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  45. package/dist/components/BottomSheet/index.cjs.js +1 -1
  46. package/dist/components/BottomSheet/index.es.js +1 -1
  47. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  48. package/dist/components/Button/BaseButton/index.es.js +1 -1
  49. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  50. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  51. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  52. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  53. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  54. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  55. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  56. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  57. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  58. package/dist/components/Button/SingleButton/index.es.js +1 -1
  59. package/dist/components/Button/index.cjs.js +1 -1
  60. package/dist/components/Button/index.es.js +1 -1
  61. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  62. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  63. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  64. package/dist/components/Chips/ChipItem/index.es.js +20 -22
  65. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  66. package/dist/components/Chips/ChipItem/index.styled.es.js +21 -23
  67. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  68. package/dist/components/Chips/ChipsFrame/index.es.js +12 -12
  69. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  70. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  71. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  72. package/dist/components/Control/CheckMark/index.es.js +18 -20
  73. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  74. package/dist/components/Control/RadioButton/index.es.js +1 -1
  75. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  76. package/dist/components/Control/RadioButton/index.styled.es.js +18 -20
  77. package/dist/components/Control/Switch/index.cjs.js +1 -1
  78. package/dist/components/Control/Switch/index.d.ts +37 -9
  79. package/dist/components/Control/Switch/index.es.js +190 -84
  80. package/dist/components/Control/index.cjs.js +1 -1
  81. package/dist/components/Control/index.d.ts +2 -1
  82. package/dist/components/Control/index.es.js +4 -4
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +20 -22
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
  93. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
  95. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +29 -31
  97. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  99. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  101. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +16 -16
  103. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/BaseDatePicker/index.es.js +28 -30
  105. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  106. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  107. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  108. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
  109. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  110. package/dist/components/Input/NumberInput/index.es.js +50 -52
  111. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  112. package/dist/components/Input/PostfixInput/index.util.es.js +21 -23
  113. package/dist/components/Input/TextField/index.cjs.js +1 -1
  114. package/dist/components/Input/TextField/index.es.js +12 -12
  115. package/dist/components/Input/index.cjs.js +1 -1
  116. package/dist/components/Input/index.es.js +29 -31
  117. package/dist/components/{Modal → LegacyModal}/BaseModal/index.cjs.js +1 -1
  118. package/dist/components/{Modal → LegacyModal}/BaseModal/index.es.js +2 -2
  119. package/dist/components/LegacyModal/index.cjs.js +1 -0
  120. package/dist/components/LegacyModal/index.d.ts +31 -0
  121. package/dist/components/LegacyModal/index.es.js +9 -0
  122. package/dist/components/List/index.cjs.js +1 -1
  123. package/dist/components/List/index.es.js +8 -8
  124. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  125. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  126. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  127. package/dist/components/Loading/ProgressBar/index.styled.es.js +19 -21
  128. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  129. package/dist/components/Loading/Spinner/index.es.js +1 -1
  130. package/dist/components/Loading/index.cjs.js +1 -1
  131. package/dist/components/Loading/index.es.js +1 -1
  132. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  133. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  134. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  135. package/dist/components/MiniButton/IconMiniButton/index.d.ts +1 -1
  136. package/dist/components/MiniButton/IconMiniButton/index.es.js +34 -31
  137. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  138. package/dist/components/MiniButton/UnderLineMiniButton/index.d.ts +1 -0
  139. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +36 -31
  140. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  141. package/dist/components/MiniButton/common/index.styled.es.js +20 -22
  142. package/dist/components/Modal/index.cjs.js +1 -1
  143. package/dist/components/Modal/index.d.ts +14 -27
  144. package/dist/components/Modal/index.es.js +99 -7
  145. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  146. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  147. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  148. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  149. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  150. package/dist/components/Navigation/PageNavigationBar/index.es.js +12 -12
  151. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  152. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  153. package/dist/components/Navigation/index.cjs.js +1 -1
  154. package/dist/components/Navigation/index.es.js +12 -12
  155. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  156. package/dist/components/OverlayRoot/index.es.js +18 -20
  157. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  158. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  159. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  160. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  161. package/dist/components/SelectBox/index.cjs.js +1 -1
  162. package/dist/components/SelectBox/index.es.js +16 -16
  163. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  164. package/dist/components/SelectBox/index.styled.es.js +25 -27
  165. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  166. package/dist/components/Tabs/FillTabs/index.es.js +20 -22
  167. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  168. package/dist/components/Tabs/TextTabs/index.d.ts +15 -11
  169. package/dist/components/Tabs/TextTabs/index.es.js +53 -66
  170. package/dist/components/Tabs/index.cjs.js +1 -1
  171. package/dist/components/Tabs/index.es.js +5 -4
  172. package/dist/components/Tag/index.cjs.js +1 -1
  173. package/dist/components/Tag/index.es.js +1 -1
  174. package/dist/components/Tag/index.styled.cjs.js +1 -1
  175. package/dist/components/Tag/index.styled.es.js +18 -20
  176. package/dist/components/Terms/index.cjs.js +1 -1
  177. package/dist/components/Terms/index.es.js +16 -17
  178. package/dist/components/TextArea/index.cjs.js +1 -0
  179. package/dist/components/TextArea/index.d.ts +80 -0
  180. package/dist/components/TextArea/index.es.js +30 -0
  181. package/dist/components/Title/index.cjs.js +1 -1
  182. package/dist/components/Title/index.es.js +1 -1
  183. package/dist/components/Title/index.styled.cjs.js +1 -1
  184. package/dist/components/Title/index.styled.es.js +22 -24
  185. package/dist/components/Toast/index.cjs.js +1 -0
  186. package/dist/components/Toast/index.d.ts +5 -0
  187. package/dist/components/Toast/index.es.js +36 -0
  188. package/dist/components/index.cjs.js +1 -1
  189. package/dist/components/index.d.ts +6 -3
  190. package/dist/components/index.es.js +156 -122
  191. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  192. package/dist/components/ui/bottomSheet.es.js +76 -71
  193. package/dist/components/ui/button.cjs.js +1 -1
  194. package/dist/components/ui/button.es.js +4 -4
  195. package/dist/components/ui/checkbox.cjs.js +1 -0
  196. package/dist/components/ui/checkbox.d.ts +9 -0
  197. package/dist/components/ui/checkbox.es.js +446 -0
  198. package/dist/components/ui/dialog.cjs.js +1 -1
  199. package/dist/components/ui/dialog.es.js +30 -30
  200. package/dist/components/ui/drawer.cjs.js +1 -1
  201. package/dist/components/ui/drawer.es.js +2 -2
  202. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  203. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  204. package/dist/components/ui/impact-tooltip.es.js +672 -0
  205. package/dist/components/ui/share-ui.cjs.js +1 -1
  206. package/dist/components/ui/share-ui.es.js +2 -2
  207. package/dist/components/ui/tooltip.cjs.js +1 -0
  208. package/dist/components/ui/tooltip.d.ts +9 -0
  209. package/dist/components/ui/tooltip.es.js +771 -0
  210. package/dist/components/ui/typography.cjs.js +1 -1
  211. package/dist/components/ui/typography.es.js +3 -3
  212. package/dist/core/Colors/index.cjs.js +1 -1
  213. package/dist/core/Colors/index.d.ts +0 -4
  214. package/dist/core/Colors/index.es.js +4 -8
  215. package/dist/core/Display/Mobile.cjs.js +1 -1
  216. package/dist/core/Display/Mobile.es.js +1 -1
  217. package/dist/core/Display/Pc.cjs.js +1 -1
  218. package/dist/core/Display/Pc.es.js +1 -1
  219. package/dist/core/Display/index.styled.cjs.js +1 -1
  220. package/dist/core/Display/index.styled.es.js +19 -21
  221. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  222. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  223. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  224. package/dist/hooks/useLayoutIsMobile.es.js +19 -21
  225. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  226. package/dist/icons/src/aliases/aliases.d.ts +11 -11
  227. package/dist/icons/src/aliases/aliases.es.js +46 -46
  228. package/dist/icons/src/aliases/index.cjs.js +1 -1
  229. package/dist/icons/src/aliases/index.es.js +92 -92
  230. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  231. package/dist/icons/src/aliases/prefixed.d.ts +16 -16
  232. package/dist/icons/src/aliases/prefixed.es.js +46 -46
  233. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  234. package/dist/icons/src/aliases/suffixed.d.ts +18 -18
  235. package/dist/icons/src/aliases/suffixed.es.js +48 -48
  236. package/dist/icons/src/icons/index.cjs.js +1 -1
  237. package/dist/icons/src/icons/index.d.ts +15 -15
  238. package/dist/icons/src/icons/index.es.js +44 -44
  239. package/dist/index.cjs.js +1 -1
  240. package/dist/index.es.js +379 -345
  241. package/dist/lib/utils.cjs.js +1 -1
  242. package/dist/lib/utils.es.js +2729 -2
  243. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  244. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  245. package/dist/library/BasicLayout/Footer.es.js +37 -36
  246. package/dist/library/BasicLayout/index.cjs.js +1 -1
  247. package/dist/library/BasicLayout/index.d.ts +1 -1
  248. package/dist/library/BasicLayout/index.es.js +22 -24
  249. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  250. package/dist/library/BasicLayout/index.styled.es.js +47 -49
  251. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  252. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  253. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  254. package/dist/utils/GenerateColorStyle/index.es.js +8 -8
  255. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  256. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +19 -21
  257. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  258. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +19 -21
  259. package/dist/utils/index.cjs.js +1 -1
  260. package/dist/utils/index.es.js +8 -8
  261. package/package.json +16 -9
  262. package/dist/chunks/index.B0KRXeX3.js +0 -205
  263. package/dist/chunks/index.BIcga6m3.js +0 -1
  264. package/dist/chunks/index.BiFBNKMb.js +0 -51
  265. package/dist/chunks/index.C4mr2-78.js +0 -1
  266. package/dist/chunks/index.CAOufkQO.js +0 -1072
  267. package/dist/chunks/index.DLcqcWxM.js +0 -29
  268. package/dist/chunks/index.Dazlhpef.js +0 -45
  269. package/dist/chunks/index.DnJQUgiG.js +0 -1
  270. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  271. package/dist/chunks/index.styled.DX1B4OiV.js +0 -412
  272. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  273. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  274. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  275. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  276. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  277. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  278. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  279. package/dist/components/Control/CheckBox/index.es.js +0 -96
  280. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  281. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  282. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  283. package/dist/components/Control/Switch/index.styled.cjs.js +0 -32
  284. package/dist/components/Control/Switch/index.styled.d.ts +0 -15
  285. package/dist/components/Control/Switch/index.styled.es.js +0 -42
  286. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.cjs.js +0 -8
  287. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.d.ts +0 -9
  288. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.es.js +0 -14
  289. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  290. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  291. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  292. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  293. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  294. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  295. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  296. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  297. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  298. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  299. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  300. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  301. package/dist/components/ToastMessage/index.cjs.js +0 -1
  302. package/dist/components/ToastMessage/index.d.ts +0 -1
  303. package/dist/components/ToastMessage/index.es.js +0 -4
  304. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  305. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  306. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  307. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  308. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  309. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  310. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  311. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  312. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  313. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  314. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  315. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  316. package/dist/components/Tooltip/index.cjs.js +0 -1
  317. package/dist/components/Tooltip/index.d.ts +0 -6
  318. package/dist/components/Tooltip/index.es.js +0 -6
  319. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.d.ts +0 -0
  320. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.cjs.js +0 -0
  321. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.d.ts +0 -0
  322. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.es.js +0 -0
  323. /package/dist/components/{Modal → LegacyModal}/index.styled.cjs.js +0 -0
  324. /package/dist/components/{Modal → LegacyModal}/index.styled.d.ts +0 -0
  325. /package/dist/components/{Modal → LegacyModal}/index.styled.es.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";const y=require("react"),E=require("./index.BKQj6Ros.js"),g=require("./index.BGQJ5UjQ.js");function P(e){if(e&&typeof e=="object"&&"default"in e)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=P(y);function R(e,n){return a.useReducer((t,r)=>n[t][r]??t,e)}var A=e=>{const{present:n,children:t}=e,r=S(n),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=E.useComposedRefs(r.ref,v(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};A.displayName="Presence";function S(e){const[n,t]=a.useState(),r=a.useRef(null),i=a.useRef(e),u=a.useRef("none"),p=e?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect2(()=>{const o=r.current,d=i.current;if(d!==e){const f=u.current,s=l(o);e?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),g.useLayoutEffect2(()=>{if(n){let o;const d=n.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(CSS.escape(s.animationName));if(s.target===n&&M&&(c("ANIMATION_END"),!i.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",o=d.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},f=s=>{s.target===n&&(u.current=l(r.current))};return n.addEventListener("animationstart",f),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{d.clearTimeout(o),n.removeEventListener("animationstart",f),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{r.current=o?getComputedStyle(o):null,t(o)},[])}}function l(e){return(e==null?void 0:e.animationName)||"none"}function v(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}exports.Presence=A;
@@ -0,0 +1,13 @@
1
+ import * as o from "react";
2
+ import { u as e } from "./index.CL8HuWEm.js";
3
+ var s = o[" useId ".trim().toString()] || (() => {
4
+ }), i = 0;
5
+ function c(t) {
6
+ const [r, u] = o.useState(s());
7
+ return e(() => {
8
+ u((a) => a ?? String(i++));
9
+ }, [t]), t || (r ? `radix-${r}` : "");
10
+ }
11
+ export {
12
+ c as u
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react");function o(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=o(c);function s(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
@@ -0,0 +1,659 @@
1
+ import * as c from "react";
2
+ import { useState as ge } from "react";
3
+ import { c as H } from "./index.DLeNytVF.js";
4
+ import { P as re, d as ye } from "./index.CL8HuWEm.js";
5
+ import { u as ne } from "./index.CuQJFSqG.js";
6
+ import { a as pe, u as ae } from "./index.BrP7bNBb.js";
7
+ import { j as oe } from "./jsx-runtime.Drh4NO5G.js";
8
+ var be = "DismissableLayer", U = "dismissableLayer.update", Ee = "dismissableLayer.pointerDownOutside", we = "dismissableLayer.focusOutside", Z, ie = c.createContext({
9
+ layers: /* @__PURE__ */ new Set(),
10
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
+ branches: /* @__PURE__ */ new Set()
12
+ }), Se = c.forwardRef(
13
+ (e, t) => {
14
+ const {
15
+ disableOutsidePointerEvents: r = !1,
16
+ onEscapeKeyDown: n,
17
+ onPointerDownOutside: a,
18
+ onFocusOutside: o,
19
+ onInteractOutside: s,
20
+ onDismiss: i,
21
+ ...g
22
+ } = e, l = c.useContext(ie), [f, h] = c.useState(null), d = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, b] = c.useState({}), S = ne(t, (m) => h(m)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), p = u.indexOf(v), E = f ? u.indexOf(f) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, C = E >= p, y = Re((m) => {
23
+ const L = m.target, x = [...l.branches].some((j) => j.contains(L));
24
+ !C || x || (a == null || a(m), s == null || s(m), m.defaultPrevented || i == null || i());
25
+ }, d), R = Le((m) => {
26
+ const L = m.target;
27
+ [...l.branches].some((j) => j.contains(L)) || (o == null || o(m), s == null || s(m), m.defaultPrevented || i == null || i());
28
+ }, d);
29
+ return pe((m) => {
30
+ E === l.layers.size - 1 && (n == null || n(m), !m.defaultPrevented && i && (m.preventDefault(), i()));
31
+ }, d), c.useEffect(() => {
32
+ if (f)
33
+ return r && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Z = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), q(), () => {
34
+ r && l.layersWithOutsidePointerEventsDisabled.size === 1 && (d.body.style.pointerEvents = Z);
35
+ };
36
+ }, [f, d, r, l]), c.useEffect(() => () => {
37
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), q());
38
+ }, [f, l]), c.useEffect(() => {
39
+ const m = () => b({});
40
+ return document.addEventListener(U, m), () => document.removeEventListener(U, m);
41
+ }, []), /* @__PURE__ */ oe.jsx(
42
+ re.div,
43
+ {
44
+ ...g,
45
+ ref: S,
46
+ style: {
47
+ pointerEvents: w ? C ? "auto" : "none" : void 0,
48
+ ...e.style
49
+ },
50
+ onFocusCapture: H(e.onFocusCapture, R.onFocusCapture),
51
+ onBlurCapture: H(e.onBlurCapture, R.onBlurCapture),
52
+ onPointerDownCapture: H(
53
+ e.onPointerDownCapture,
54
+ y.onPointerDownCapture
55
+ )
56
+ }
57
+ );
58
+ }
59
+ );
60
+ Se.displayName = be;
61
+ var Ce = "DismissableLayerBranch", Pe = c.forwardRef((e, t) => {
62
+ const r = c.useContext(ie), n = c.useRef(null), a = ne(t, n);
63
+ return c.useEffect(() => {
64
+ const o = n.current;
65
+ if (o)
66
+ return r.branches.add(o), () => {
67
+ r.branches.delete(o);
68
+ };
69
+ }, [r.branches]), /* @__PURE__ */ oe.jsx(re.div, { ...e, ref: a });
70
+ });
71
+ Pe.displayName = Ce;
72
+ function Re(e, t = globalThis == null ? void 0 : globalThis.document) {
73
+ const r = ae(e), n = c.useRef(!1), a = c.useRef(() => {
74
+ });
75
+ return c.useEffect(() => {
76
+ const o = (i) => {
77
+ if (i.target && !n.current) {
78
+ let g = function() {
79
+ ce(
80
+ Ee,
81
+ r,
82
+ l,
83
+ { discrete: !0 }
84
+ );
85
+ };
86
+ const l = { originalEvent: i };
87
+ i.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = g, t.addEventListener("click", a.current, { once: !0 })) : g();
88
+ } else
89
+ t.removeEventListener("click", a.current);
90
+ n.current = !1;
91
+ }, s = window.setTimeout(() => {
92
+ t.addEventListener("pointerdown", o);
93
+ }, 0);
94
+ return () => {
95
+ window.clearTimeout(s), t.removeEventListener("pointerdown", o), t.removeEventListener("click", a.current);
96
+ };
97
+ }, [t, r]), {
98
+ // ensures we check React component tree (not just DOM tree)
99
+ onPointerDownCapture: () => n.current = !0
100
+ };
101
+ }
102
+ function Le(e, t = globalThis == null ? void 0 : globalThis.document) {
103
+ const r = ae(e), n = c.useRef(!1);
104
+ return c.useEffect(() => {
105
+ const a = (o) => {
106
+ o.target && !n.current && ce(we, r, { originalEvent: o }, {
107
+ discrete: !1
108
+ });
109
+ };
110
+ return t.addEventListener("focusin", a), () => t.removeEventListener("focusin", a);
111
+ }, [t, r]), {
112
+ onFocusCapture: () => n.current = !0,
113
+ onBlurCapture: () => n.current = !1
114
+ };
115
+ }
116
+ function q() {
117
+ const e = new CustomEvent(U);
118
+ document.dispatchEvent(e);
119
+ }
120
+ function ce(e, t, r, { discrete: n }) {
121
+ const a = r.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
122
+ t && a.addEventListener(e, t, { once: !0 }), n ? ye(a, o) : a.dispatchEvent(o);
123
+ }
124
+ var X = 0;
125
+ function bt() {
126
+ c.useEffect(() => {
127
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
128
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Q()), document.body.insertAdjacentElement("beforeend", e[1] ?? Q()), X++, () => {
129
+ X === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), X--;
130
+ };
131
+ }, []);
132
+ }
133
+ function Q() {
134
+ const e = document.createElement("span");
135
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
136
+ }
137
+ var P = function() {
138
+ return P = Object.assign || function(t) {
139
+ for (var r, n = 1, a = arguments.length; n < a; n++) {
140
+ r = arguments[n];
141
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
142
+ }
143
+ return t;
144
+ }, P.apply(this, arguments);
145
+ };
146
+ function ue(e, t) {
147
+ var r = {};
148
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
149
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
150
+ for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
151
+ t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
152
+ return r;
153
+ }
154
+ function ke(e, t, r) {
155
+ if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
156
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
157
+ return e.concat(o || Array.prototype.slice.call(t));
158
+ }
159
+ var N = "right-scroll-bar-position", I = "width-before-scroll-bar", Ae = "with-scroll-bars-hidden", Oe = "--removed-body-scroll-bar-size";
160
+ function Y(e, t) {
161
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
162
+ }
163
+ function De(e, t) {
164
+ var r = ge(function() {
165
+ return {
166
+ // value
167
+ value: e,
168
+ // last callback
169
+ callback: t,
170
+ // "memoized" public interface
171
+ facade: {
172
+ get current() {
173
+ return r.value;
174
+ },
175
+ set current(n) {
176
+ var a = r.value;
177
+ a !== n && (r.value = n, r.callback(n, a));
178
+ }
179
+ }
180
+ };
181
+ })[0];
182
+ return r.callback = t, r.facade;
183
+ }
184
+ var xe = typeof window < "u" ? c.useLayoutEffect : c.useEffect, K = /* @__PURE__ */ new WeakMap();
185
+ function Be(e, t) {
186
+ var r = De(null, function(n) {
187
+ return e.forEach(function(a) {
188
+ return Y(a, n);
189
+ });
190
+ });
191
+ return xe(function() {
192
+ var n = K.get(r);
193
+ if (n) {
194
+ var a = new Set(n), o = new Set(e), s = r.current;
195
+ a.forEach(function(i) {
196
+ o.has(i) || Y(i, null);
197
+ }), o.forEach(function(i) {
198
+ a.has(i) || Y(i, s);
199
+ });
200
+ }
201
+ K.set(r, e);
202
+ }, [e]), r;
203
+ }
204
+ function Te(e) {
205
+ return e;
206
+ }
207
+ function Me(e, t) {
208
+ t === void 0 && (t = Te);
209
+ var r = [], n = !1, a = {
210
+ read: function() {
211
+ if (n)
212
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
213
+ return r.length ? r[r.length - 1] : e;
214
+ },
215
+ useMedium: function(o) {
216
+ var s = t(o, n);
217
+ return r.push(s), function() {
218
+ r = r.filter(function(i) {
219
+ return i !== s;
220
+ });
221
+ };
222
+ },
223
+ assignSyncMedium: function(o) {
224
+ for (n = !0; r.length; ) {
225
+ var s = r;
226
+ r = [], s.forEach(o);
227
+ }
228
+ r = {
229
+ push: function(i) {
230
+ return o(i);
231
+ },
232
+ filter: function() {
233
+ return r;
234
+ }
235
+ };
236
+ },
237
+ assignMedium: function(o) {
238
+ n = !0;
239
+ var s = [];
240
+ if (r.length) {
241
+ var i = r;
242
+ r = [], i.forEach(o), s = r;
243
+ }
244
+ var g = function() {
245
+ var f = s;
246
+ s = [], f.forEach(o);
247
+ }, l = function() {
248
+ return Promise.resolve().then(g);
249
+ };
250
+ l(), r = {
251
+ push: function(f) {
252
+ s.push(f), l();
253
+ },
254
+ filter: function(f) {
255
+ return s = s.filter(f), r;
256
+ }
257
+ };
258
+ }
259
+ };
260
+ return a;
261
+ }
262
+ function We(e) {
263
+ e === void 0 && (e = {});
264
+ var t = Me(null);
265
+ return t.options = P({ async: !0, ssr: !1 }, e), t;
266
+ }
267
+ var se = function(e) {
268
+ var t = e.sideCar, r = ue(e, ["sideCar"]);
269
+ if (!t)
270
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
271
+ var n = t.read();
272
+ if (!n)
273
+ throw new Error("Sidecar medium not found");
274
+ return c.createElement(n, P({}, r));
275
+ };
276
+ se.isSideCarExport = !0;
277
+ function Ne(e, t) {
278
+ return e.useMedium(t), se;
279
+ }
280
+ var le = We(), _ = function() {
281
+ }, F = c.forwardRef(function(e, t) {
282
+ var r = c.useRef(null), n = c.useState({
283
+ onScrollCapture: _,
284
+ onWheelCapture: _,
285
+ onTouchMoveCapture: _
286
+ }), a = n[0], o = n[1], s = e.forwardProps, i = e.children, g = e.className, l = e.removeScrollBar, f = e.enabled, h = e.shards, d = e.sideCar, b = e.noIsolation, S = e.inert, u = e.allowPinchZoom, v = e.as, p = v === void 0 ? "div" : v, E = e.gapMode, w = ue(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = d, y = Be([r, t]), R = P(P({}, w), a);
287
+ return c.createElement(
288
+ c.Fragment,
289
+ null,
290
+ f && c.createElement(C, { sideCar: le, removeScrollBar: l, shards: h, noIsolation: b, inert: S, setCallbacks: o, allowPinchZoom: !!u, lockRef: r, gapMode: E }),
291
+ s ? c.cloneElement(c.Children.only(i), P(P({}, R), { ref: y })) : c.createElement(p, P({}, R, { className: g, ref: y }), i)
292
+ );
293
+ });
294
+ F.defaultProps = {
295
+ enabled: !0,
296
+ removeScrollBar: !0,
297
+ inert: !1
298
+ };
299
+ F.classNames = {
300
+ fullWidth: I,
301
+ zeroRight: N
302
+ };
303
+ var Ie = function() {
304
+ if (typeof __webpack_nonce__ < "u")
305
+ return __webpack_nonce__;
306
+ };
307
+ function Fe() {
308
+ if (!document)
309
+ return null;
310
+ var e = document.createElement("style");
311
+ e.type = "text/css";
312
+ var t = Ie();
313
+ return t && e.setAttribute("nonce", t), e;
314
+ }
315
+ function je(e, t) {
316
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
317
+ }
318
+ function He(e) {
319
+ var t = document.head || document.getElementsByTagName("head")[0];
320
+ t.appendChild(e);
321
+ }
322
+ var Xe = function() {
323
+ var e = 0, t = null;
324
+ return {
325
+ add: function(r) {
326
+ e == 0 && (t = Fe()) && (je(t, r), He(t)), e++;
327
+ },
328
+ remove: function() {
329
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
330
+ }
331
+ };
332
+ }, Ye = function() {
333
+ var e = Xe();
334
+ return function(t, r) {
335
+ c.useEffect(function() {
336
+ return e.add(t), function() {
337
+ e.remove();
338
+ };
339
+ }, [t && r]);
340
+ };
341
+ }, fe = function() {
342
+ var e = Ye(), t = function(r) {
343
+ var n = r.styles, a = r.dynamic;
344
+ return e(n, a), null;
345
+ };
346
+ return t;
347
+ }, _e = {
348
+ left: 0,
349
+ top: 0,
350
+ right: 0,
351
+ gap: 0
352
+ }, z = function(e) {
353
+ return parseInt(e || "", 10) || 0;
354
+ }, ze = function(e) {
355
+ var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
356
+ return [z(r), z(n), z(a)];
357
+ }, Ve = function(e) {
358
+ if (e === void 0 && (e = "margin"), typeof window > "u")
359
+ return _e;
360
+ var t = ze(e), r = document.documentElement.clientWidth, n = window.innerWidth;
361
+ return {
362
+ left: t[0],
363
+ top: t[1],
364
+ right: t[2],
365
+ gap: Math.max(0, n - r + t[2] - t[0])
366
+ };
367
+ }, Ue = fe(), D = "data-scroll-locked", Ge = function(e, t, r, n) {
368
+ var a = e.left, o = e.top, s = e.right, i = e.gap;
369
+ return r === void 0 && (r = "margin"), `
370
+ .`.concat(Ae, ` {
371
+ overflow: hidden `).concat(n, `;
372
+ padding-right: `).concat(i, "px ").concat(n, `;
373
+ }
374
+ body[`).concat(D, `] {
375
+ overflow: hidden `).concat(n, `;
376
+ overscroll-behavior: contain;
377
+ `).concat([
378
+ t && "position: relative ".concat(n, ";"),
379
+ r === "margin" && `
380
+ padding-left: `.concat(a, `px;
381
+ padding-top: `).concat(o, `px;
382
+ padding-right: `).concat(s, `px;
383
+ margin-left:0;
384
+ margin-top:0;
385
+ margin-right: `).concat(i, "px ").concat(n, `;
386
+ `),
387
+ r === "padding" && "padding-right: ".concat(i, "px ").concat(n, ";")
388
+ ].filter(Boolean).join(""), `
389
+ }
390
+
391
+ .`).concat(N, ` {
392
+ right: `).concat(i, "px ").concat(n, `;
393
+ }
394
+
395
+ .`).concat(I, ` {
396
+ margin-right: `).concat(i, "px ").concat(n, `;
397
+ }
398
+
399
+ .`).concat(N, " .").concat(N, ` {
400
+ right: 0 `).concat(n, `;
401
+ }
402
+
403
+ .`).concat(I, " .").concat(I, ` {
404
+ margin-right: 0 `).concat(n, `;
405
+ }
406
+
407
+ body[`).concat(D, `] {
408
+ `).concat(Oe, ": ").concat(i, `px;
409
+ }
410
+ `);
411
+ }, $ = function() {
412
+ var e = parseInt(document.body.getAttribute(D) || "0", 10);
413
+ return isFinite(e) ? e : 0;
414
+ }, Ze = function() {
415
+ c.useEffect(function() {
416
+ return document.body.setAttribute(D, ($() + 1).toString()), function() {
417
+ var e = $() - 1;
418
+ e <= 0 ? document.body.removeAttribute(D) : document.body.setAttribute(D, e.toString());
419
+ };
420
+ }, []);
421
+ }, qe = function(e) {
422
+ var t = e.noRelative, r = e.noImportant, n = e.gapMode, a = n === void 0 ? "margin" : n;
423
+ Ze();
424
+ var o = c.useMemo(function() {
425
+ return Ve(a);
426
+ }, [a]);
427
+ return c.createElement(Ue, { styles: Ge(o, !t, a, r ? "" : "!important") });
428
+ }, G = !1;
429
+ if (typeof window < "u")
430
+ try {
431
+ var B = Object.defineProperty({}, "passive", {
432
+ get: function() {
433
+ return G = !0, !0;
434
+ }
435
+ });
436
+ window.addEventListener("test", B, B), window.removeEventListener("test", B, B);
437
+ } catch {
438
+ G = !1;
439
+ }
440
+ var k = G ? { passive: !1 } : !1, Qe = function(e) {
441
+ return e.tagName === "TEXTAREA";
442
+ }, de = function(e, t) {
443
+ if (!(e instanceof Element))
444
+ return !1;
445
+ var r = window.getComputedStyle(e);
446
+ return (
447
+ // not-not-scrollable
448
+ r[t] !== "hidden" && // contains scroll inside self
449
+ !(r.overflowY === r.overflowX && !Qe(e) && r[t] === "visible")
450
+ );
451
+ }, Ke = function(e) {
452
+ return de(e, "overflowY");
453
+ }, $e = function(e) {
454
+ return de(e, "overflowX");
455
+ }, J = function(e, t) {
456
+ var r = t.ownerDocument, n = t;
457
+ do {
458
+ typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
459
+ var a = ve(e, n);
460
+ if (a) {
461
+ var o = he(e, n), s = o[1], i = o[2];
462
+ if (s > i)
463
+ return !0;
464
+ }
465
+ n = n.parentNode;
466
+ } while (n && n !== r.body);
467
+ return !1;
468
+ }, Je = function(e) {
469
+ var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
470
+ return [
471
+ t,
472
+ r,
473
+ n
474
+ ];
475
+ }, et = function(e) {
476
+ var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
477
+ return [
478
+ t,
479
+ r,
480
+ n
481
+ ];
482
+ }, ve = function(e, t) {
483
+ return e === "v" ? Ke(t) : $e(t);
484
+ }, he = function(e, t) {
485
+ return e === "v" ? Je(t) : et(t);
486
+ }, tt = function(e, t) {
487
+ return e === "h" && t === "rtl" ? -1 : 1;
488
+ }, rt = function(e, t, r, n, a) {
489
+ var o = tt(e, window.getComputedStyle(t).direction), s = o * n, i = r.target, g = t.contains(i), l = !1, f = s > 0, h = 0, d = 0;
490
+ do {
491
+ var b = he(e, i), S = b[0], u = b[1], v = b[2], p = u - v - o * S;
492
+ (S || p) && ve(e, i) && (h += p, d += S), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
493
+ } while (
494
+ // portaled content
495
+ !g && i !== document.body || // self content
496
+ g && (t.contains(i) || t === i)
497
+ );
498
+ return (f && Math.abs(h) < 1 || !f && Math.abs(d) < 1) && (l = !0), l;
499
+ }, T = function(e) {
500
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
501
+ }, ee = function(e) {
502
+ return [e.deltaX, e.deltaY];
503
+ }, te = function(e) {
504
+ return e && "current" in e ? e.current : e;
505
+ }, nt = function(e, t) {
506
+ return e[0] === t[0] && e[1] === t[1];
507
+ }, at = function(e) {
508
+ return `
509
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
510
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
511
+ `);
512
+ }, ot = 0, A = [];
513
+ function it(e) {
514
+ var t = c.useRef([]), r = c.useRef([0, 0]), n = c.useRef(), a = c.useState(ot++)[0], o = c.useState(fe)[0], s = c.useRef(e);
515
+ c.useEffect(function() {
516
+ s.current = e;
517
+ }, [e]), c.useEffect(function() {
518
+ if (e.inert) {
519
+ document.body.classList.add("block-interactivity-".concat(a));
520
+ var u = ke([e.lockRef.current], (e.shards || []).map(te), !0).filter(Boolean);
521
+ return u.forEach(function(v) {
522
+ return v.classList.add("allow-interactivity-".concat(a));
523
+ }), function() {
524
+ document.body.classList.remove("block-interactivity-".concat(a)), u.forEach(function(v) {
525
+ return v.classList.remove("allow-interactivity-".concat(a));
526
+ });
527
+ };
528
+ }
529
+ }, [e.inert, e.lockRef.current, e.shards]);
530
+ var i = c.useCallback(function(u, v) {
531
+ if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
532
+ return !s.current.allowPinchZoom;
533
+ var p = T(u), E = r.current, w = "deltaX" in u ? u.deltaX : E[0] - p[0], C = "deltaY" in u ? u.deltaY : E[1] - p[1], y, R = u.target, m = Math.abs(w) > Math.abs(C) ? "h" : "v";
534
+ if ("touches" in u && m === "h" && R.type === "range")
535
+ return !1;
536
+ var L = J(m, R);
537
+ if (!L)
538
+ return !0;
539
+ if (L ? y = m : (y = m === "v" ? "h" : "v", L = J(m, R)), !L)
540
+ return !1;
541
+ if (!n.current && "changedTouches" in u && (w || C) && (n.current = y), !y)
542
+ return !0;
543
+ var x = n.current || y;
544
+ return rt(x, v, u, x === "h" ? w : C);
545
+ }, []), g = c.useCallback(function(u) {
546
+ var v = u;
547
+ if (!(!A.length || A[A.length - 1] !== o)) {
548
+ var p = "deltaY" in v ? ee(v) : T(v), E = t.current.filter(function(y) {
549
+ return y.name === v.type && (y.target === v.target || v.target === y.shadowParent) && nt(y.delta, p);
550
+ })[0];
551
+ if (E && E.should) {
552
+ v.cancelable && v.preventDefault();
553
+ return;
554
+ }
555
+ if (!E) {
556
+ var w = (s.current.shards || []).map(te).filter(Boolean).filter(function(y) {
557
+ return y.contains(v.target);
558
+ }), C = w.length > 0 ? i(v, w[0]) : !s.current.noIsolation;
559
+ C && v.cancelable && v.preventDefault();
560
+ }
561
+ }
562
+ }, []), l = c.useCallback(function(u, v, p, E) {
563
+ var w = { name: u, delta: v, target: p, should: E, shadowParent: ct(p) };
564
+ t.current.push(w), setTimeout(function() {
565
+ t.current = t.current.filter(function(C) {
566
+ return C !== w;
567
+ });
568
+ }, 1);
569
+ }, []), f = c.useCallback(function(u) {
570
+ r.current = T(u), n.current = void 0;
571
+ }, []), h = c.useCallback(function(u) {
572
+ l(u.type, ee(u), u.target, i(u, e.lockRef.current));
573
+ }, []), d = c.useCallback(function(u) {
574
+ l(u.type, T(u), u.target, i(u, e.lockRef.current));
575
+ }, []);
576
+ c.useEffect(function() {
577
+ return A.push(o), e.setCallbacks({
578
+ onScrollCapture: h,
579
+ onWheelCapture: h,
580
+ onTouchMoveCapture: d
581
+ }), document.addEventListener("wheel", g, k), document.addEventListener("touchmove", g, k), document.addEventListener("touchstart", f, k), function() {
582
+ A = A.filter(function(u) {
583
+ return u !== o;
584
+ }), document.removeEventListener("wheel", g, k), document.removeEventListener("touchmove", g, k), document.removeEventListener("touchstart", f, k);
585
+ };
586
+ }, []);
587
+ var b = e.removeScrollBar, S = e.inert;
588
+ return c.createElement(
589
+ c.Fragment,
590
+ null,
591
+ S ? c.createElement(o, { styles: at(a) }) : null,
592
+ b ? c.createElement(qe, { gapMode: e.gapMode }) : null
593
+ );
594
+ }
595
+ function ct(e) {
596
+ for (var t = null; e !== null; )
597
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
598
+ return t;
599
+ }
600
+ const ut = Ne(le, it);
601
+ var st = c.forwardRef(function(e, t) {
602
+ return c.createElement(F, P({}, e, { ref: t, sideCar: ut }));
603
+ });
604
+ st.classNames = F.classNames;
605
+ var lt = function(e) {
606
+ if (typeof document > "u")
607
+ return null;
608
+ var t = Array.isArray(e) ? e[0] : e;
609
+ return t.ownerDocument.body;
610
+ }, O = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), W = {}, V = 0, me = function(e) {
611
+ return e && (e.host || me(e.parentNode));
612
+ }, ft = function(e, t) {
613
+ return t.map(function(r) {
614
+ if (e.contains(r))
615
+ return r;
616
+ var n = me(r);
617
+ return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
618
+ }).filter(function(r) {
619
+ return !!r;
620
+ });
621
+ }, dt = function(e, t, r, n) {
622
+ var a = ft(t, Array.isArray(e) ? e : [e]);
623
+ W[r] || (W[r] = /* @__PURE__ */ new WeakMap());
624
+ var o = W[r], s = [], i = /* @__PURE__ */ new Set(), g = new Set(a), l = function(h) {
625
+ !h || i.has(h) || (i.add(h), l(h.parentNode));
626
+ };
627
+ a.forEach(l);
628
+ var f = function(h) {
629
+ !h || g.has(h) || Array.prototype.forEach.call(h.children, function(d) {
630
+ if (i.has(d))
631
+ f(d);
632
+ else
633
+ try {
634
+ var b = d.getAttribute(n), S = b !== null && b !== "false", u = (O.get(d) || 0) + 1, v = (o.get(d) || 0) + 1;
635
+ O.set(d, u), o.set(d, v), s.push(d), u === 1 && S && M.set(d, !0), v === 1 && d.setAttribute(r, "true"), S || d.setAttribute(n, "true");
636
+ } catch (p) {
637
+ console.error("aria-hidden: cannot operate on ", d, p);
638
+ }
639
+ });
640
+ };
641
+ return f(t), i.clear(), V++, function() {
642
+ s.forEach(function(h) {
643
+ var d = O.get(h) - 1, b = o.get(h) - 1;
644
+ O.set(h, d), o.set(h, b), d || (M.has(h) || h.removeAttribute(n), M.delete(h)), b || h.removeAttribute(r);
645
+ }), V--, V || (O = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), W = {});
646
+ };
647
+ }, Et = function(e, t, r) {
648
+ r === void 0 && (r = "data-aria-hidden");
649
+ var n = Array.from(Array.isArray(e) ? e : [e]), a = lt(e);
650
+ return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live]"))), dt(n, a, r, "aria-hidden")) : function() {
651
+ return null;
652
+ };
653
+ };
654
+ export {
655
+ Se as D,
656
+ st as R,
657
+ Et as h,
658
+ bt as u
659
+ };