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

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 (323) 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.52hLHqtl.js +671 -0
  6. package/dist/chunks/index.B1zCXH4b.js +1 -0
  7. package/dist/chunks/index.BFOvovu2.js +1 -0
  8. package/dist/chunks/index.BZPx6jYI.js +8 -0
  9. package/dist/chunks/index.C-8GI_iQ.js +5 -0
  10. package/dist/chunks/index.C4zsfJoH.js +1 -0
  11. package/dist/chunks/index.CHQFbaeH.js +41 -0
  12. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  13. package/dist/chunks/index.Cdy_UEl-.js +1 -0
  14. package/dist/chunks/index.D-9nbSdR.js +205 -0
  15. package/dist/chunks/{index.styled.D_VcbV29.js → index.D0q0M2nK.js} +264 -326
  16. package/dist/chunks/index.D2jUN9AV.js +1 -0
  17. package/dist/chunks/index.D6z7cYa5.js +1 -0
  18. package/dist/chunks/index.DDo7KIbo.js +60 -0
  19. package/dist/chunks/index.DHAJ5bcO.js +1531 -0
  20. package/dist/chunks/index.DMhXgOEz.js +1 -0
  21. package/dist/chunks/index.DS2YScMD.js +27 -0
  22. package/dist/chunks/index.DYrg31YP.js +354 -0
  23. package/dist/chunks/index.Dh7jK0Mq.js +777 -0
  24. package/dist/chunks/index.DjUJriOp.js +1 -0
  25. package/dist/chunks/index.HA10ghBA.js +152 -0
  26. package/dist/chunks/index.Zd9j6m3g.js +1 -0
  27. package/dist/chunks/index.ak1mD2js.js +1 -0
  28. package/dist/chunks/index.eUOZnpu6.js +13 -0
  29. package/dist/chunks/index.nObpX_Vm.js +71 -0
  30. package/dist/chunks/index.vLV8RYs2.js +288 -0
  31. package/dist/components/Accordion/index.cjs.js +1 -1
  32. package/dist/components/Accordion/index.es.js +289 -425
  33. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  36. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  38. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +22 -24
  39. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  40. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  42. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  43. package/dist/components/BottomSheet/index.cjs.js +1 -1
  44. package/dist/components/BottomSheet/index.es.js +1 -1
  45. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  46. package/dist/components/Button/BaseButton/index.es.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  48. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  50. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  52. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  54. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  55. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  56. package/dist/components/Button/SingleButton/index.es.js +1 -1
  57. package/dist/components/Button/index.cjs.js +1 -1
  58. package/dist/components/Button/index.es.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  60. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  62. package/dist/components/Chips/ChipItem/index.es.js +21 -23
  63. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  64. package/dist/components/Chips/ChipItem/index.styled.es.js +19 -21
  65. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  66. package/dist/components/Chips/ChipsFrame/index.es.js +10 -10
  67. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  68. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  69. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  70. package/dist/components/Control/CheckMark/index.es.js +16 -18
  71. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  72. package/dist/components/Control/RadioButton/index.es.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  74. package/dist/components/Control/RadioButton/index.styled.es.js +16 -18
  75. package/dist/components/Control/Switch/index.cjs.js +1 -1
  76. package/dist/components/Control/Switch/index.d.ts +37 -9
  77. package/dist/components/Control/Switch/index.es.js +189 -84
  78. package/dist/components/Control/index.cjs.js +1 -1
  79. package/dist/components/Control/index.d.ts +2 -1
  80. package/dist/components/Control/index.es.js +4 -4
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +18 -20
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +18 -20
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +18 -20
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -20
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +18 -20
  93. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +27 -29
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  97. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  99. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +11 -11
  101. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/BaseDatePicker/index.es.js +26 -28
  103. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  105. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  106. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +16 -18
  107. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  108. package/dist/components/Input/NumberInput/index.es.js +48 -50
  109. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  110. package/dist/components/Input/PostfixInput/index.util.es.js +19 -21
  111. package/dist/components/Input/TextField/index.cjs.js +1 -1
  112. package/dist/components/Input/TextField/index.es.js +10 -10
  113. package/dist/components/Input/index.cjs.js +1 -1
  114. package/dist/components/Input/index.es.js +27 -29
  115. package/dist/components/{Modal → LegacyModal}/BaseModal/index.cjs.js +1 -1
  116. package/dist/components/{Modal → LegacyModal}/BaseModal/index.es.js +2 -2
  117. package/dist/components/LegacyModal/index.cjs.js +1 -0
  118. package/dist/components/LegacyModal/index.d.ts +31 -0
  119. package/dist/components/LegacyModal/index.es.js +9 -0
  120. package/dist/components/List/index.cjs.js +1 -1
  121. package/dist/components/List/index.es.js +8 -8
  122. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  123. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  124. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  125. package/dist/components/Loading/ProgressBar/index.styled.es.js +17 -19
  126. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  127. package/dist/components/Loading/Spinner/index.es.js +1 -1
  128. package/dist/components/Loading/index.cjs.js +1 -1
  129. package/dist/components/Loading/index.es.js +1 -1
  130. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  131. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  132. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  133. package/dist/components/MiniButton/IconMiniButton/index.d.ts +1 -1
  134. package/dist/components/MiniButton/IconMiniButton/index.es.js +34 -31
  135. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  136. package/dist/components/MiniButton/UnderLineMiniButton/index.d.ts +1 -0
  137. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +36 -31
  138. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  139. package/dist/components/MiniButton/common/index.styled.es.js +18 -20
  140. package/dist/components/Modal/index.cjs.js +1 -1
  141. package/dist/components/Modal/index.d.ts +14 -27
  142. package/dist/components/Modal/index.es.js +99 -7
  143. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  144. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  145. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  146. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  147. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  148. package/dist/components/Navigation/PageNavigationBar/index.es.js +10 -10
  149. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  150. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  151. package/dist/components/Navigation/index.cjs.js +1 -1
  152. package/dist/components/Navigation/index.es.js +10 -10
  153. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  154. package/dist/components/OverlayRoot/index.es.js +16 -18
  155. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  156. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  157. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  158. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  159. package/dist/components/SelectBox/index.cjs.js +1 -1
  160. package/dist/components/SelectBox/index.es.js +14 -14
  161. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  162. package/dist/components/SelectBox/index.styled.es.js +23 -25
  163. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  164. package/dist/components/Tabs/FillTabs/index.es.js +18 -20
  165. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  166. package/dist/components/Tabs/TextTabs/index.d.ts +15 -11
  167. package/dist/components/Tabs/TextTabs/index.es.js +51 -64
  168. package/dist/components/Tabs/index.cjs.js +1 -1
  169. package/dist/components/Tabs/index.es.js +5 -4
  170. package/dist/components/Tag/index.cjs.js +1 -1
  171. package/dist/components/Tag/index.es.js +1 -1
  172. package/dist/components/Tag/index.styled.cjs.js +1 -1
  173. package/dist/components/Tag/index.styled.es.js +16 -18
  174. package/dist/components/Terms/index.cjs.js +1 -1
  175. package/dist/components/Terms/index.es.js +14 -15
  176. package/dist/components/TextArea/index.cjs.js +1 -0
  177. package/dist/components/TextArea/index.d.ts +80 -0
  178. package/dist/components/TextArea/index.es.js +30 -0
  179. package/dist/components/Title/index.cjs.js +1 -1
  180. package/dist/components/Title/index.es.js +1 -1
  181. package/dist/components/Title/index.styled.cjs.js +1 -1
  182. package/dist/components/Title/index.styled.es.js +20 -22
  183. package/dist/components/Toast/index.cjs.js +1 -0
  184. package/dist/components/Toast/index.d.ts +5 -0
  185. package/dist/components/Toast/index.es.js +36 -0
  186. package/dist/components/index.cjs.js +1 -1
  187. package/dist/components/index.d.ts +6 -3
  188. package/dist/components/index.es.js +154 -120
  189. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  190. package/dist/components/ui/bottomSheet.es.js +76 -71
  191. package/dist/components/ui/button.cjs.js +1 -1
  192. package/dist/components/ui/button.es.js +4 -4
  193. package/dist/components/ui/checkbox.cjs.js +1 -0
  194. package/dist/components/ui/checkbox.d.ts +9 -0
  195. package/dist/components/ui/checkbox.es.js +445 -0
  196. package/dist/components/ui/dialog.cjs.js +1 -1
  197. package/dist/components/ui/dialog.es.js +30 -30
  198. package/dist/components/ui/drawer.cjs.js +1 -1
  199. package/dist/components/ui/drawer.es.js +2 -2
  200. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  201. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  202. package/dist/components/ui/impact-tooltip.es.js +387 -0
  203. package/dist/components/ui/share-ui.cjs.js +1 -1
  204. package/dist/components/ui/share-ui.es.js +2 -2
  205. package/dist/components/ui/tooltip.cjs.js +1 -0
  206. package/dist/components/ui/tooltip.d.ts +9 -0
  207. package/dist/components/ui/tooltip.es.js +392 -0
  208. package/dist/components/ui/typography.cjs.js +1 -1
  209. package/dist/components/ui/typography.es.js +3 -3
  210. package/dist/core/Colors/index.cjs.js +1 -1
  211. package/dist/core/Colors/index.d.ts +0 -4
  212. package/dist/core/Colors/index.es.js +4 -8
  213. package/dist/core/Display/Mobile.cjs.js +1 -1
  214. package/dist/core/Display/Mobile.es.js +1 -1
  215. package/dist/core/Display/Pc.cjs.js +1 -1
  216. package/dist/core/Display/Pc.es.js +1 -1
  217. package/dist/core/Display/index.styled.cjs.js +1 -1
  218. package/dist/core/Display/index.styled.es.js +17 -19
  219. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  220. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  221. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  222. package/dist/hooks/useLayoutIsMobile.es.js +17 -19
  223. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  224. package/dist/icons/src/aliases/aliases.d.ts +9 -9
  225. package/dist/icons/src/aliases/aliases.es.js +44 -44
  226. package/dist/icons/src/aliases/index.cjs.js +1 -1
  227. package/dist/icons/src/aliases/index.es.js +88 -88
  228. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  229. package/dist/icons/src/aliases/prefixed.d.ts +11 -11
  230. package/dist/icons/src/aliases/prefixed.es.js +48 -48
  231. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  232. package/dist/icons/src/aliases/suffixed.d.ts +16 -16
  233. package/dist/icons/src/aliases/suffixed.es.js +46 -46
  234. package/dist/icons/src/icons/index.cjs.js +1 -1
  235. package/dist/icons/src/icons/index.d.ts +11 -11
  236. package/dist/icons/src/icons/index.es.js +50 -50
  237. package/dist/index.cjs.js +1 -1
  238. package/dist/index.es.js +379 -345
  239. package/dist/lib/utils.cjs.js +1 -1
  240. package/dist/lib/utils.es.js +2761 -2
  241. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  242. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  243. package/dist/library/BasicLayout/Footer.es.js +35 -34
  244. package/dist/library/BasicLayout/index.cjs.js +1 -1
  245. package/dist/library/BasicLayout/index.d.ts +1 -1
  246. package/dist/library/BasicLayout/index.es.js +20 -22
  247. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  248. package/dist/library/BasicLayout/index.styled.es.js +45 -47
  249. package/dist/library/Lottie/index.cjs.js +1 -1
  250. package/dist/library/Lottie/index.es.js +116 -116
  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 +17 -19
  257. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  258. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +17 -19
  259. package/dist/utils/index.cjs.js +1 -1
  260. package/dist/utils/index.es.js +8 -8
  261. package/package.json +22 -15
  262. package/dist/chunks/index.B0KRXeX3.js +0 -205
  263. package/dist/chunks/index.BiFBNKMb.js +0 -51
  264. package/dist/chunks/index.C4mr2-78.js +0 -1
  265. package/dist/chunks/index.CAOufkQO.js +0 -1072
  266. package/dist/chunks/index.Dazlhpef.js +0 -45
  267. package/dist/chunks/index.DnJQUgiG.js +0 -1
  268. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  269. package/dist/chunks/index.styled.DX1B4OiV.js +0 -412
  270. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  271. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  272. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  273. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  274. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  275. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  276. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  277. package/dist/components/Control/CheckBox/index.es.js +0 -96
  278. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  279. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  280. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  281. package/dist/components/Control/Switch/index.styled.cjs.js +0 -32
  282. package/dist/components/Control/Switch/index.styled.d.ts +0 -15
  283. package/dist/components/Control/Switch/index.styled.es.js +0 -42
  284. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.cjs.js +0 -8
  285. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.d.ts +0 -9
  286. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.es.js +0 -14
  287. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  288. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  289. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  290. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  291. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  292. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  293. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  294. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  295. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  296. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  297. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  298. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  299. package/dist/components/ToastMessage/index.cjs.js +0 -1
  300. package/dist/components/ToastMessage/index.d.ts +0 -1
  301. package/dist/components/ToastMessage/index.es.js +0 -4
  302. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  303. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  304. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  305. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  306. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  307. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  308. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  309. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  310. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  311. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  312. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  313. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  314. package/dist/components/Tooltip/index.cjs.js +0 -1
  315. package/dist/components/Tooltip/index.d.ts +0 -6
  316. package/dist/components/Tooltip/index.es.js +0 -6
  317. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.d.ts +0 -0
  318. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.cjs.js +0 -0
  319. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.d.ts +0 -0
  320. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.es.js +0 -0
  321. /package/dist/components/{Modal → LegacyModal}/index.styled.cjs.js +0 -0
  322. /package/dist/components/{Modal → LegacyModal}/index.styled.d.ts +0 -0
  323. /package/dist/components/{Modal → LegacyModal}/index.styled.es.js +0 -0
@@ -1,511 +1,375 @@
1
- import { j as d } from "../../chunks/jsx-runtime.Drh4NO5G.js";
2
- import * as l from "react";
3
- import C from "react";
4
- import { c as V, u as M, a as z, b as U, P as ue, d as me } from "../../chunks/index.B0KRXeX3.js";
5
- import { u as E } from "../../chunks/index.DLcqcWxM.js";
6
- import "react-dom";
7
- import { c as $ } from "../../chunks/utils.B9KdtH6G.js";
1
+ import { j as c } from "../../chunks/jsx-runtime.Drh4NO5G.js";
2
+ import * as d from "react";
3
+ import f from "react";
4
+ import { c as V, a as L, P as w, b as U, u as ue } from "../../chunks/index.D-9nbSdR.js";
5
+ import { c as fe, u as P } from "../../chunks/index.DLcqcWxM.js";
6
+ import { P as me } from "../../chunks/index.nObpX_Vm.js";
7
+ import { u as Y } from "../../chunks/index.eUOZnpu6.js";
8
+ import { cn as D } from "../../lib/utils.es.js";
8
9
  import "../../icons/src/icons/Alarm_fill.es.js";
9
10
  import "../../icons/src/icons/Calendar.es.js";
11
+ import "../../icons/src/icons/Cancel.es.js";
12
+ import "../../icons/src/icons/Cancel_circle.es.js";
13
+ import "../../icons/src/icons/Cart_fill.es.js";
10
14
  import "../../icons/src/icons/Check.es.js";
11
15
  import Ce from "../../icons/src/icons/Chevron_down.es.js";
12
- import "../../icons/src/icons/Cancel_circle.es.js";
13
16
  import "../../icons/src/icons/Chevron_right.es.js";
14
17
  import "../../icons/src/icons/Chevron_up.es.js";
15
18
  import "../../icons/src/icons/Double_Chevron_left.es.js";
16
- import "../../icons/src/icons/Cart_fill.es.js";
19
+ import "../../icons/src/icons/Chevron_left.es.js";
20
+ import "../../icons/src/icons/Double_Chevron_right.es.js";
17
21
  import "../../icons/src/icons/Eye_fill.es.js";
18
22
  import "../../icons/src/icons/Eye_slash_fill.es.js";
19
- import "../../icons/src/icons/Double_Chevron_right.es.js";
23
+ import "../../icons/src/icons/Filter.es.js";
20
24
  import "../../icons/src/icons/Information.es.js";
21
25
  import "../../icons/src/icons/Menu.es.js";
22
- import "../../icons/src/icons/More.es.js";
23
26
  import "../../icons/src/icons/Person_fill.es.js";
24
27
  import "../../icons/src/icons/Plus.es.js";
25
28
  import "../../icons/src/icons/Question_circle.es.js";
26
29
  import "../../icons/src/icons/Search.es.js";
27
- import "../../icons/src/icons/Filter.es.js";
28
- import "../../icons/src/icons/Cancel.es.js";
29
- import "../../icons/src/icons/Store.es.js";
30
+ import "../../icons/src/icons/Re.es.js";
30
31
  import "../../icons/src/icons/Setting_fill.es.js";
32
+ import "../../icons/src/icons/More.es.js";
33
+ import "../../icons/src/icons/Store.es.js";
31
34
  import "../../icons/src/icons/Share.es.js";
32
- import "../../icons/src/icons/Chevron_left.es.js";
33
- import "../../icons/src/icons/Re.es.js";
34
35
  // @__NO_SIDE_EFFECTS__
35
- function q(e) {
36
- const t = /* @__PURE__ */ ve(e), r = l.forwardRef((n, o) => {
37
- const { children: i, ...a } = n, s = l.Children.toArray(i), c = s.find(ge);
38
- if (c) {
39
- const p = c.props.children, m = s.map((u) => u === c ? l.Children.count(p) > 1 ? l.Children.only(null) : l.isValidElement(p) ? p.props.children : null : u);
40
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: l.isValidElement(p) ? l.cloneElement(p, void 0, m) : null });
36
+ function z(e) {
37
+ const o = /* @__PURE__ */ xe(e), t = d.forwardRef((n, r) => {
38
+ const { children: i, ...s } = n, a = d.Children.toArray(i), p = a.find(ge);
39
+ if (p) {
40
+ const u = p.props.children, C = a.map((x) => x === p ? d.Children.count(u) > 1 ? d.Children.only(null) : d.isValidElement(u) ? u.props.children : null : x);
41
+ return /* @__PURE__ */ c.jsx(o, { ...s, ref: r, children: d.isValidElement(u) ? d.cloneElement(u, void 0, C) : null });
41
42
  }
42
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: i });
43
+ return /* @__PURE__ */ c.jsx(o, { ...s, ref: r, children: i });
43
44
  });
44
- return r.displayName = `${e}.Slot`, r;
45
+ return t.displayName = `${e}.Slot`, t;
45
46
  }
46
47
  // @__NO_SIDE_EFFECTS__
47
- function ve(e) {
48
- const t = l.forwardRef((r, n) => {
49
- const { children: o, ...i } = r, a = l.isValidElement(o) ? ye(o) : void 0, s = E(a, n);
50
- if (l.isValidElement(o)) {
51
- const c = be(i, o.props);
52
- return o.type !== l.Fragment && (c.ref = s), l.cloneElement(o, c);
48
+ function xe(e) {
49
+ const o = d.forwardRef((t, n) => {
50
+ const { children: r, ...i } = t;
51
+ if (d.isValidElement(r)) {
52
+ const s = Ae(r), a = be(i, r.props);
53
+ return r.type !== d.Fragment && (a.ref = n ? fe(n, s) : s), d.cloneElement(r, a);
53
54
  }
54
- return l.Children.count(o) > 1 ? l.Children.only(null) : null;
55
+ return d.Children.count(r) > 1 ? d.Children.only(null) : null;
55
56
  });
56
- return t.displayName = `${e}.SlotClone`, t;
57
+ return o.displayName = `${e}.SlotClone`, o;
57
58
  }
58
- var xe = Symbol("radix.slottable");
59
+ var ve = Symbol("radix.slottable");
59
60
  function ge(e) {
60
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xe;
61
+ return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ve;
61
62
  }
62
- function be(e, t) {
63
- const r = { ...t };
64
- for (const n in t) {
65
- const o = e[n], i = t[n];
66
- /^on[A-Z]/.test(n) ? o && i ? r[n] = (...s) => {
67
- const c = i(...s);
68
- return o(...s), c;
69
- } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...i } : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
63
+ function be(e, o) {
64
+ const t = { ...o };
65
+ for (const n in o) {
66
+ const r = e[n], i = o[n];
67
+ /^on[A-Z]/.test(n) ? r && i ? t[n] = (...a) => {
68
+ const p = i(...a);
69
+ return r(...a), p;
70
+ } : r && (t[n] = r) : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
70
71
  }
71
- return { ...e, ...r };
72
+ return { ...e, ...t };
72
73
  }
73
- function ye(e) {
74
- var n, o;
75
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
76
- return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
74
+ function Ae(e) {
75
+ var n, r;
76
+ let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
77
+ return t ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = o && "isReactWarning" in o && o.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
77
78
  }
78
79
  function he(e) {
79
- const t = e + "CollectionProvider", [r, n] = V(t), [o, i] = r(
80
- t,
80
+ const o = e + "CollectionProvider", [t, n] = V(o), [r, i] = t(
81
+ o,
81
82
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
82
- ), a = (x) => {
83
- const { scope: v, children: b } = x, f = C.useRef(null), g = C.useRef(/* @__PURE__ */ new Map()).current;
84
- return /* @__PURE__ */ d.jsx(o, { scope: v, itemMap: g, collectionRef: f, children: b });
83
+ ), s = (v) => {
84
+ const { scope: m, children: b } = v, l = f.useRef(null), g = f.useRef(/* @__PURE__ */ new Map()).current;
85
+ return /* @__PURE__ */ c.jsx(r, { scope: m, itemMap: g, collectionRef: l, children: b });
85
86
  };
86
- a.displayName = t;
87
- const s = e + "CollectionSlot", c = /* @__PURE__ */ q(s), p = C.forwardRef(
88
- (x, v) => {
89
- const { scope: b, children: f } = x, g = i(s, b), y = E(v, g.collectionRef);
90
- return /* @__PURE__ */ d.jsx(c, { ref: y, children: f });
87
+ s.displayName = o;
88
+ const a = e + "CollectionSlot", p = /* @__PURE__ */ z(a), u = f.forwardRef(
89
+ (v, m) => {
90
+ const { scope: b, children: l } = v, g = i(a, b), A = P(m, g.collectionRef);
91
+ return /* @__PURE__ */ c.jsx(p, { ref: A, children: l });
91
92
  }
92
93
  );
93
- p.displayName = s;
94
- const m = e + "CollectionItemSlot", u = "data-radix-collection-item", R = /* @__PURE__ */ q(m), A = C.forwardRef(
95
- (x, v) => {
96
- const { scope: b, children: f, ...g } = x, y = C.useRef(null), w = E(v, y), I = i(m, b);
97
- return C.useEffect(() => (I.itemMap.set(y, { ref: y, ...g }), () => void I.itemMap.delete(y))), /* @__PURE__ */ d.jsx(R, { [u]: "", ref: w, children: f });
94
+ u.displayName = a;
95
+ const C = e + "CollectionItemSlot", x = "data-radix-collection-item", I = /* @__PURE__ */ z(C), R = f.forwardRef(
96
+ (v, m) => {
97
+ const { scope: b, children: l, ...g } = v, A = f.useRef(null), N = P(m, A), y = i(C, b);
98
+ return f.useEffect(() => (y.itemMap.set(A, { ref: A, ...g }), () => void y.itemMap.delete(A))), /* @__PURE__ */ c.jsx(I, { [x]: "", ref: N, children: l });
98
99
  }
99
100
  );
100
- A.displayName = m;
101
- function S(x) {
102
- const v = i(e + "CollectionConsumer", x);
103
- return C.useCallback(() => {
104
- const f = v.collectionRef.current;
105
- if (!f) return [];
106
- const g = Array.from(f.querySelectorAll(`[${u}]`));
107
- return Array.from(v.itemMap.values()).sort(
108
- (I, O) => g.indexOf(I.ref.current) - g.indexOf(O.ref.current)
101
+ R.displayName = C;
102
+ function _(v) {
103
+ const m = i(e + "CollectionConsumer", v);
104
+ return f.useCallback(() => {
105
+ const l = m.collectionRef.current;
106
+ if (!l) return [];
107
+ const g = Array.from(l.querySelectorAll(`[${x}]`));
108
+ return Array.from(m.itemMap.values()).sort(
109
+ (y, T) => g.indexOf(y.ref.current) - g.indexOf(T.ref.current)
109
110
  );
110
- }, [v.collectionRef, v.itemMap]);
111
+ }, [m.collectionRef, m.itemMap]);
111
112
  }
112
113
  return [
113
- { Provider: a, Slot: p, ItemSlot: A },
114
- S,
114
+ { Provider: s, Slot: u, ItemSlot: R },
115
+ _,
115
116
  n
116
117
  ];
117
118
  }
118
- // @__NO_SIDE_EFFECTS__
119
- function Ae(e) {
120
- const t = /* @__PURE__ */ Re(e), r = l.forwardRef((n, o) => {
121
- const { children: i, ...a } = n, s = l.Children.toArray(i), c = s.find(Ee);
122
- if (c) {
123
- const p = c.props.children, m = s.map((u) => u === c ? l.Children.count(p) > 1 ? l.Children.only(null) : l.isValidElement(p) ? p.props.children : null : u);
124
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: l.isValidElement(p) ? l.cloneElement(p, void 0, m) : null });
125
- }
126
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: i });
127
- });
128
- return r.displayName = `${e}.Slot`, r;
129
- }
130
- // @__NO_SIDE_EFFECTS__
131
- function Re(e) {
132
- const t = l.forwardRef((r, n) => {
133
- const { children: o, ...i } = r, a = l.isValidElement(o) ? we(o) : void 0, s = E(a, n);
134
- if (l.isValidElement(o)) {
135
- const c = Se(i, o.props);
136
- return o.type !== l.Fragment && (c.ref = s), l.cloneElement(o, c);
137
- }
138
- return l.Children.count(o) > 1 ? l.Children.only(null) : null;
139
- });
140
- return t.displayName = `${e}.SlotClone`, t;
141
- }
142
- var Ie = Symbol("radix.slottable");
143
- function Ee(e) {
144
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ie;
145
- }
146
- function Se(e, t) {
147
- const r = { ...t };
148
- for (const n in t) {
149
- const o = e[n], i = t[n];
150
- /^on[A-Z]/.test(n) ? o && i ? r[n] = (...s) => {
151
- const c = i(...s);
152
- return o(...s), c;
153
- } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...i } : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
154
- }
155
- return { ...e, ...r };
156
- }
157
- function we(e) {
158
- var n, o;
159
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
160
- return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
161
- }
162
- var Ne = [
163
- "a",
164
- "button",
165
- "div",
166
- "form",
167
- "h2",
168
- "h3",
169
- "img",
170
- "input",
171
- "label",
172
- "li",
173
- "nav",
174
- "ol",
175
- "p",
176
- "select",
177
- "span",
178
- "svg",
179
- "ul"
180
- ], Y = Ne.reduce((e, t) => {
181
- const r = /* @__PURE__ */ Ae(`Primitive.${t}`), n = l.forwardRef((o, i) => {
182
- const { asChild: a, ...s } = o, c = a ? r : t;
183
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(c, { ...s, ref: i });
184
- });
185
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
186
- }, {});
187
- // @__NO_SIDE_EFFECTS__
188
- function Pe(e) {
189
- const t = /* @__PURE__ */ _e(e), r = l.forwardRef((n, o) => {
190
- const { children: i, ...a } = n, s = l.Children.toArray(i), c = s.find(Oe);
191
- if (c) {
192
- const p = c.props.children, m = s.map((u) => u === c ? l.Children.count(p) > 1 ? l.Children.only(null) : l.isValidElement(p) ? p.props.children : null : u);
193
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: l.isValidElement(p) ? l.cloneElement(p, void 0, m) : null });
194
- }
195
- return /* @__PURE__ */ d.jsx(t, { ...a, ref: o, children: i });
196
- });
197
- return r.displayName = `${e}.Slot`, r;
198
- }
199
- // @__NO_SIDE_EFFECTS__
200
- function _e(e) {
201
- const t = l.forwardRef((r, n) => {
202
- const { children: o, ...i } = r, a = l.isValidElement(o) ? $e(o) : void 0, s = E(a, n);
203
- if (l.isValidElement(o)) {
204
- const c = Te(i, o.props);
205
- return o.type !== l.Fragment && (c.ref = s), l.cloneElement(o, c);
206
- }
207
- return l.Children.count(o) > 1 ? l.Children.only(null) : null;
208
- });
209
- return t.displayName = `${e}.SlotClone`, t;
210
- }
211
- var je = Symbol("radix.slottable");
212
- function Oe(e) {
213
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === je;
214
- }
215
- function Te(e, t) {
216
- const r = { ...t };
217
- for (const n in t) {
218
- const o = e[n], i = t[n];
219
- /^on[A-Z]/.test(n) ? o && i ? r[n] = (...s) => {
220
- const c = i(...s);
221
- return o(...s), c;
222
- } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...i } : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
223
- }
224
- return { ...e, ...r };
225
- }
226
- function $e(e) {
227
- var n, o;
228
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
229
- return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
230
- }
231
- var De = [
232
- "a",
233
- "button",
234
- "div",
235
- "form",
236
- "h2",
237
- "h3",
238
- "img",
239
- "input",
240
- "label",
241
- "li",
242
- "nav",
243
- "ol",
244
- "p",
245
- "select",
246
- "span",
247
- "svg",
248
- "ul"
249
- ], L = De.reduce((e, t) => {
250
- const r = /* @__PURE__ */ Pe(`Primitive.${t}`), n = l.forwardRef((o, i) => {
251
- const { asChild: a, ...s } = o, c = a ? r : t;
252
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(c, { ...s, ref: i });
253
- });
254
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
255
- }, {}), P = "Collapsible", [Ve, J] = V(P), [Me, k] = Ve(P), Q = l.forwardRef(
256
- (e, t) => {
119
+ var E = "Collapsible", [Re, Z] = V(E), [Ie, $] = Re(E), J = d.forwardRef(
120
+ (e, o) => {
257
121
  const {
258
- __scopeCollapsible: r,
122
+ __scopeCollapsible: t,
259
123
  open: n,
260
- defaultOpen: o,
124
+ defaultOpen: r,
261
125
  disabled: i,
262
- onOpenChange: a,
263
- ...s
264
- } = e, [c, p] = M({
126
+ onOpenChange: s,
127
+ ...a
128
+ } = e, [p, u] = L({
265
129
  prop: n,
266
- defaultProp: o ?? !1,
267
- onChange: a,
268
- caller: P
130
+ defaultProp: r ?? !1,
131
+ onChange: s,
132
+ caller: E
269
133
  });
270
- return /* @__PURE__ */ d.jsx(
271
- Me,
134
+ return /* @__PURE__ */ c.jsx(
135
+ Ie,
272
136
  {
273
- scope: r,
137
+ scope: t,
274
138
  disabled: i,
275
- contentId: z(),
276
- open: c,
277
- onOpenToggle: l.useCallback(() => p((m) => !m), [p]),
278
- children: /* @__PURE__ */ d.jsx(
279
- L.div,
139
+ contentId: Y(),
140
+ open: p,
141
+ onOpenToggle: d.useCallback(() => u((C) => !C), [u]),
142
+ children: /* @__PURE__ */ c.jsx(
143
+ w.div,
280
144
  {
281
- "data-state": H(c),
145
+ "data-state": F(p),
282
146
  "data-disabled": i ? "" : void 0,
283
- ...s,
284
- ref: t
147
+ ...a,
148
+ ref: o
285
149
  }
286
150
  )
287
151
  }
288
152
  );
289
153
  }
290
154
  );
291
- Q.displayName = P;
292
- var X = "CollapsibleTrigger", ee = l.forwardRef(
293
- (e, t) => {
294
- const { __scopeCollapsible: r, ...n } = e, o = k(X, r);
295
- return /* @__PURE__ */ d.jsx(
296
- L.button,
155
+ J.displayName = E;
156
+ var Q = "CollapsibleTrigger", X = d.forwardRef(
157
+ (e, o) => {
158
+ const { __scopeCollapsible: t, ...n } = e, r = $(Q, t);
159
+ return /* @__PURE__ */ c.jsx(
160
+ w.button,
297
161
  {
298
162
  type: "button",
299
- "aria-controls": o.contentId,
300
- "aria-expanded": o.open || !1,
301
- "data-state": H(o.open),
302
- "data-disabled": o.disabled ? "" : void 0,
303
- disabled: o.disabled,
163
+ "aria-controls": r.contentId,
164
+ "aria-expanded": r.open || !1,
165
+ "data-state": F(r.open),
166
+ "data-disabled": r.disabled ? "" : void 0,
167
+ disabled: r.disabled,
304
168
  ...n,
305
- ref: t,
306
- onClick: U(e.onClick, o.onOpenToggle)
169
+ ref: o,
170
+ onClick: U(e.onClick, r.onOpenToggle)
307
171
  }
308
172
  );
309
173
  }
310
174
  );
311
- ee.displayName = X;
312
- var W = "CollapsibleContent", te = l.forwardRef(
313
- (e, t) => {
314
- const { forceMount: r, ...n } = e, o = k(W, e.__scopeCollapsible);
315
- return /* @__PURE__ */ d.jsx(ue, { present: r || o.open, children: ({ present: i }) => /* @__PURE__ */ d.jsx(Le, { ...n, ref: t, present: i }) });
175
+ X.displayName = Q;
176
+ var H = "CollapsibleContent", ee = d.forwardRef(
177
+ (e, o) => {
178
+ const { forceMount: t, ...n } = e, r = $(H, e.__scopeCollapsible);
179
+ return /* @__PURE__ */ c.jsx(me, { present: t || r.open, children: ({ present: i }) => /* @__PURE__ */ c.jsx(ye, { ...n, ref: o, present: i }) });
316
180
  }
317
181
  );
318
- te.displayName = W;
319
- var Le = l.forwardRef((e, t) => {
320
- const { __scopeCollapsible: r, present: n, children: o, ...i } = e, a = k(W, r), [s, c] = l.useState(n), p = l.useRef(null), m = E(t, p), u = l.useRef(0), R = u.current, A = l.useRef(0), S = A.current, x = a.open || s, v = l.useRef(x), b = l.useRef(void 0);
321
- return l.useEffect(() => {
322
- const f = requestAnimationFrame(() => v.current = !1);
323
- return () => cancelAnimationFrame(f);
324
- }, []), me(() => {
325
- const f = p.current;
326
- if (f) {
182
+ ee.displayName = H;
183
+ var ye = d.forwardRef((e, o) => {
184
+ const { __scopeCollapsible: t, present: n, children: r, ...i } = e, s = $(H, t), [a, p] = d.useState(n), u = d.useRef(null), C = P(o, u), x = d.useRef(0), I = x.current, R = d.useRef(0), _ = R.current, v = s.open || a, m = d.useRef(v), b = d.useRef(void 0);
185
+ return d.useEffect(() => {
186
+ const l = requestAnimationFrame(() => m.current = !1);
187
+ return () => cancelAnimationFrame(l);
188
+ }, []), ue(() => {
189
+ const l = u.current;
190
+ if (l) {
327
191
  b.current = b.current || {
328
- transitionDuration: f.style.transitionDuration,
329
- animationName: f.style.animationName
330
- }, f.style.transitionDuration = "0s", f.style.animationName = "none";
331
- const g = f.getBoundingClientRect();
332
- u.current = g.height, A.current = g.width, v.current || (f.style.transitionDuration = b.current.transitionDuration, f.style.animationName = b.current.animationName), c(n);
192
+ transitionDuration: l.style.transitionDuration,
193
+ animationName: l.style.animationName
194
+ }, l.style.transitionDuration = "0s", l.style.animationName = "none";
195
+ const g = l.getBoundingClientRect();
196
+ x.current = g.height, R.current = g.width, m.current || (l.style.transitionDuration = b.current.transitionDuration, l.style.animationName = b.current.animationName), p(n);
333
197
  }
334
- }, [a.open, n]), /* @__PURE__ */ d.jsx(
335
- L.div,
198
+ }, [s.open, n]), /* @__PURE__ */ c.jsx(
199
+ w.div,
336
200
  {
337
- "data-state": H(a.open),
338
- "data-disabled": a.disabled ? "" : void 0,
339
- id: a.contentId,
340
- hidden: !x,
201
+ "data-state": F(s.open),
202
+ "data-disabled": s.disabled ? "" : void 0,
203
+ id: s.contentId,
204
+ hidden: !v,
341
205
  ...i,
342
- ref: m,
206
+ ref: C,
343
207
  style: {
344
- "--radix-collapsible-content-height": R ? `${R}px` : void 0,
345
- "--radix-collapsible-content-width": S ? `${S}px` : void 0,
208
+ "--radix-collapsible-content-height": I ? `${I}px` : void 0,
209
+ "--radix-collapsible-content-width": _ ? `${_}px` : void 0,
346
210
  ...e.style
347
211
  },
348
- children: x && o
212
+ children: v && r
349
213
  }
350
214
  );
351
215
  });
352
- function H(e) {
216
+ function F(e) {
353
217
  return e ? "open" : "closed";
354
218
  }
355
- var ke = Q, We = ee, He = te, Fe = l.createContext(void 0);
356
- function Be(e) {
357
- const t = l.useContext(Fe);
358
- return e || t || "ltr";
219
+ var _e = J, Ne = X, we = ee, Pe = d.createContext(void 0);
220
+ function je(e) {
221
+ const o = d.useContext(Pe);
222
+ return e || o || "ltr";
359
223
  }
360
- var h = "Accordion", Ge = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [F, Ke, Ze] = he(h), [_, Mt] = V(h, [
361
- Ze,
362
- J
363
- ]), B = J(), oe = C.forwardRef(
364
- (e, t) => {
365
- const { type: r, ...n } = e, o = n, i = n;
366
- return /* @__PURE__ */ d.jsx(F.Provider, { scope: e.__scopeAccordion, children: r === "multiple" ? /* @__PURE__ */ d.jsx(Ye, { ...i, ref: t }) : /* @__PURE__ */ d.jsx(Ue, { ...o, ref: t }) });
224
+ var h = "Accordion", Ee = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [W, Se, Oe] = he(h), [S, _o] = V(h, [
225
+ Oe,
226
+ Z
227
+ ]), B = Z(), oe = f.forwardRef(
228
+ (e, o) => {
229
+ const { type: t, ...n } = e, r = n, i = n;
230
+ return /* @__PURE__ */ c.jsx(W.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ c.jsx(ke, { ...i, ref: o }) : /* @__PURE__ */ c.jsx(De, { ...r, ref: o }) });
367
231
  }
368
232
  );
369
233
  oe.displayName = h;
370
- var [ne, qe] = _(h), [re, ze] = _(
234
+ var [te, Te] = S(h), [ne, Me] = S(
371
235
  h,
372
236
  { collapsible: !1 }
373
- ), Ue = C.forwardRef(
374
- (e, t) => {
237
+ ), De = f.forwardRef(
238
+ (e, o) => {
375
239
  const {
376
- value: r,
240
+ value: t,
377
241
  defaultValue: n,
378
- onValueChange: o = () => {
242
+ onValueChange: r = () => {
379
243
  },
380
244
  collapsible: i = !1,
381
- ...a
382
- } = e, [s, c] = M({
383
- prop: r,
245
+ ...s
246
+ } = e, [a, p] = L({
247
+ prop: t,
384
248
  defaultProp: n ?? "",
385
- onChange: o,
249
+ onChange: r,
386
250
  caller: h
387
251
  });
388
- return /* @__PURE__ */ d.jsx(
389
- ne,
252
+ return /* @__PURE__ */ c.jsx(
253
+ te,
390
254
  {
391
255
  scope: e.__scopeAccordion,
392
- value: C.useMemo(() => s ? [s] : [], [s]),
393
- onItemOpen: c,
394
- onItemClose: C.useCallback(() => i && c(""), [i, c]),
395
- children: /* @__PURE__ */ d.jsx(re, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ d.jsx(ie, { ...a, ref: t }) })
256
+ value: f.useMemo(() => a ? [a] : [], [a]),
257
+ onItemOpen: p,
258
+ onItemClose: f.useCallback(() => i && p(""), [i, p]),
259
+ children: /* @__PURE__ */ c.jsx(ne, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ c.jsx(re, { ...s, ref: o }) })
396
260
  }
397
261
  );
398
262
  }
399
- ), Ye = C.forwardRef((e, t) => {
263
+ ), ke = f.forwardRef((e, o) => {
400
264
  const {
401
- value: r,
265
+ value: t,
402
266
  defaultValue: n,
403
- onValueChange: o = () => {
267
+ onValueChange: r = () => {
404
268
  },
405
269
  ...i
406
- } = e, [a, s] = M({
407
- prop: r,
270
+ } = e, [s, a] = L({
271
+ prop: t,
408
272
  defaultProp: n ?? [],
409
- onChange: o,
273
+ onChange: r,
410
274
  caller: h
411
- }), c = C.useCallback(
412
- (m) => s((u = []) => [...u, m]),
413
- [s]
414
- ), p = C.useCallback(
415
- (m) => s((u = []) => u.filter((R) => R !== m)),
416
- [s]
275
+ }), p = f.useCallback(
276
+ (C) => a((x = []) => [...x, C]),
277
+ [a]
278
+ ), u = f.useCallback(
279
+ (C) => a((x = []) => x.filter((I) => I !== C)),
280
+ [a]
417
281
  );
418
- return /* @__PURE__ */ d.jsx(
419
- ne,
282
+ return /* @__PURE__ */ c.jsx(
283
+ te,
420
284
  {
421
285
  scope: e.__scopeAccordion,
422
- value: a,
423
- onItemOpen: c,
424
- onItemClose: p,
425
- children: /* @__PURE__ */ d.jsx(re, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ d.jsx(ie, { ...i, ref: t }) })
286
+ value: s,
287
+ onItemOpen: p,
288
+ onItemClose: u,
289
+ children: /* @__PURE__ */ c.jsx(ne, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c.jsx(re, { ...i, ref: o }) })
426
290
  }
427
291
  );
428
- }), [Je, j] = _(h), ie = C.forwardRef(
429
- (e, t) => {
430
- const { __scopeAccordion: r, disabled: n, dir: o, orientation: i = "vertical", ...a } = e, s = C.useRef(null), c = E(s, t), p = Ke(r), u = Be(o) === "ltr", R = U(e.onKeyDown, (A) => {
292
+ }), [Ve, O] = S(h), re = f.forwardRef(
293
+ (e, o) => {
294
+ const { __scopeAccordion: t, disabled: n, dir: r, orientation: i = "vertical", ...s } = e, a = f.useRef(null), p = P(a, o), u = Se(t), x = je(r) === "ltr", I = U(e.onKeyDown, (R) => {
431
295
  var K;
432
- if (!Ge.includes(A.key)) return;
433
- const S = A.target, x = p().filter((T) => {
434
- var Z;
435
- return !((Z = T.ref.current) != null && Z.disabled);
436
- }), v = x.findIndex((T) => T.ref.current === S), b = x.length;
437
- if (v === -1) return;
438
- A.preventDefault();
439
- let f = v;
440
- const g = 0, y = b - 1, w = () => {
441
- f = v + 1, f > y && (f = g);
442
- }, I = () => {
443
- f = v - 1, f < g && (f = y);
296
+ if (!Ee.includes(R.key)) return;
297
+ const _ = R.target, v = u().filter((M) => {
298
+ var q;
299
+ return !((q = M.ref.current) != null && q.disabled);
300
+ }), m = v.findIndex((M) => M.ref.current === _), b = v.length;
301
+ if (m === -1) return;
302
+ R.preventDefault();
303
+ let l = m;
304
+ const g = 0, A = b - 1, N = () => {
305
+ l = m + 1, l > A && (l = g);
306
+ }, y = () => {
307
+ l = m - 1, l < g && (l = A);
444
308
  };
445
- switch (A.key) {
309
+ switch (R.key) {
446
310
  case "Home":
447
- f = g;
311
+ l = g;
448
312
  break;
449
313
  case "End":
450
- f = y;
314
+ l = A;
451
315
  break;
452
316
  case "ArrowRight":
453
- i === "horizontal" && (u ? w() : I());
317
+ i === "horizontal" && (x ? N() : y());
454
318
  break;
455
319
  case "ArrowDown":
456
- i === "vertical" && w();
320
+ i === "vertical" && N();
457
321
  break;
458
322
  case "ArrowLeft":
459
- i === "horizontal" && (u ? I() : w());
323
+ i === "horizontal" && (x ? y() : N());
460
324
  break;
461
325
  case "ArrowUp":
462
- i === "vertical" && I();
326
+ i === "vertical" && y();
463
327
  break;
464
328
  }
465
- const O = f % b;
466
- (K = x[O].ref.current) == null || K.focus();
329
+ const T = l % b;
330
+ (K = v[T].ref.current) == null || K.focus();
467
331
  });
468
- return /* @__PURE__ */ d.jsx(
469
- Je,
332
+ return /* @__PURE__ */ c.jsx(
333
+ Ve,
470
334
  {
471
- scope: r,
335
+ scope: t,
472
336
  disabled: n,
473
- direction: o,
337
+ direction: r,
474
338
  orientation: i,
475
- children: /* @__PURE__ */ d.jsx(F.Slot, { scope: r, children: /* @__PURE__ */ d.jsx(
476
- Y.div,
339
+ children: /* @__PURE__ */ c.jsx(W.Slot, { scope: t, children: /* @__PURE__ */ c.jsx(
340
+ w.div,
477
341
  {
478
- ...a,
342
+ ...s,
479
343
  "data-orientation": i,
480
- ref: c,
481
- onKeyDown: n ? void 0 : R
344
+ ref: p,
345
+ onKeyDown: n ? void 0 : I
482
346
  }
483
347
  ) })
484
348
  }
485
349
  );
486
350
  }
487
- ), N = "AccordionItem", [Qe, G] = _(N), le = C.forwardRef(
488
- (e, t) => {
489
- const { __scopeAccordion: r, value: n, ...o } = e, i = j(N, r), a = qe(N, r), s = B(r), c = z(), p = n && a.value.includes(n) || !1, m = i.disabled || e.disabled;
490
- return /* @__PURE__ */ d.jsx(
491
- Qe,
351
+ ), j = "AccordionItem", [Le, G] = S(j), ie = f.forwardRef(
352
+ (e, o) => {
353
+ const { __scopeAccordion: t, value: n, ...r } = e, i = O(j, t), s = Te(j, t), a = B(t), p = Y(), u = n && s.value.includes(n) || !1, C = i.disabled || e.disabled;
354
+ return /* @__PURE__ */ c.jsx(
355
+ Le,
492
356
  {
493
- scope: r,
494
- open: p,
495
- disabled: m,
496
- triggerId: c,
497
- children: /* @__PURE__ */ d.jsx(
498
- ke,
357
+ scope: t,
358
+ open: u,
359
+ disabled: C,
360
+ triggerId: p,
361
+ children: /* @__PURE__ */ c.jsx(
362
+ _e,
499
363
  {
500
364
  "data-orientation": i.orientation,
501
- "data-state": fe(p),
502
- ...s,
503
- ...o,
504
- ref: t,
505
- disabled: m,
506
- open: p,
507
- onOpenChange: (u) => {
508
- u ? a.onItemOpen(n) : a.onItemClose(n);
365
+ "data-state": pe(u),
366
+ ...a,
367
+ ...r,
368
+ ref: o,
369
+ disabled: C,
370
+ open: u,
371
+ onOpenChange: (x) => {
372
+ x ? s.onItemOpen(n) : s.onItemClose(n);
509
373
  }
510
374
  }
511
375
  )
@@ -513,52 +377,52 @@ var [ne, qe] = _(h), [re, ze] = _(
513
377
  );
514
378
  }
515
379
  );
516
- le.displayName = N;
517
- var se = "AccordionHeader", ce = C.forwardRef(
518
- (e, t) => {
519
- const { __scopeAccordion: r, ...n } = e, o = j(h, r), i = G(se, r);
520
- return /* @__PURE__ */ d.jsx(
521
- Y.h3,
380
+ ie.displayName = j;
381
+ var ce = "AccordionHeader", se = f.forwardRef(
382
+ (e, o) => {
383
+ const { __scopeAccordion: t, ...n } = e, r = O(h, t), i = G(ce, t);
384
+ return /* @__PURE__ */ c.jsx(
385
+ w.h3,
522
386
  {
523
- "data-orientation": o.orientation,
524
- "data-state": fe(i.open),
387
+ "data-orientation": r.orientation,
388
+ "data-state": pe(i.open),
525
389
  "data-disabled": i.disabled ? "" : void 0,
526
390
  ...n,
527
- ref: t
391
+ ref: o
528
392
  }
529
393
  );
530
394
  }
531
395
  );
532
- ce.displayName = se;
533
- var D = "AccordionTrigger", ae = C.forwardRef(
534
- (e, t) => {
535
- const { __scopeAccordion: r, ...n } = e, o = j(h, r), i = G(D, r), a = ze(D, r), s = B(r);
536
- return /* @__PURE__ */ d.jsx(F.ItemSlot, { scope: r, children: /* @__PURE__ */ d.jsx(
537
- We,
396
+ se.displayName = ce;
397
+ var k = "AccordionTrigger", ae = f.forwardRef(
398
+ (e, o) => {
399
+ const { __scopeAccordion: t, ...n } = e, r = O(h, t), i = G(k, t), s = Me(k, t), a = B(t);
400
+ return /* @__PURE__ */ c.jsx(W.ItemSlot, { scope: t, children: /* @__PURE__ */ c.jsx(
401
+ Ne,
538
402
  {
539
- "aria-disabled": i.open && !a.collapsible || void 0,
540
- "data-orientation": o.orientation,
403
+ "aria-disabled": i.open && !s.collapsible || void 0,
404
+ "data-orientation": r.orientation,
541
405
  id: i.triggerId,
542
- ...s,
406
+ ...a,
543
407
  ...n,
544
- ref: t
408
+ ref: o
545
409
  }
546
410
  ) });
547
411
  }
548
412
  );
549
- ae.displayName = D;
550
- var de = "AccordionContent", pe = C.forwardRef(
551
- (e, t) => {
552
- const { __scopeAccordion: r, ...n } = e, o = j(h, r), i = G(de, r), a = B(r);
553
- return /* @__PURE__ */ d.jsx(
554
- He,
413
+ ae.displayName = k;
414
+ var le = "AccordionContent", de = f.forwardRef(
415
+ (e, o) => {
416
+ const { __scopeAccordion: t, ...n } = e, r = O(h, t), i = G(le, t), s = B(t);
417
+ return /* @__PURE__ */ c.jsx(
418
+ we,
555
419
  {
556
420
  role: "region",
557
421
  "aria-labelledby": i.triggerId,
558
- "data-orientation": o.orientation,
559
- ...a,
422
+ "data-orientation": r.orientation,
423
+ ...s,
560
424
  ...n,
561
- ref: t,
425
+ ref: o,
562
426
  style: {
563
427
  "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
564
428
  "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
@@ -568,39 +432,39 @@ var de = "AccordionContent", pe = C.forwardRef(
568
432
  );
569
433
  }
570
434
  );
571
- pe.displayName = de;
572
- function fe(e) {
435
+ de.displayName = le;
436
+ function pe(e) {
573
437
  return e ? "open" : "closed";
574
438
  }
575
- var Xe = oe, et = le, tt = ce, ot = ae, nt = pe;
576
- const rt = l.forwardRef(
577
- ({ ...e }, t) => /* @__PURE__ */ d.jsx(Xe, { ref: t, "data-slot": "accordion", ...e })
439
+ var $e = oe, He = ie, Fe = se, We = ae, Be = de;
440
+ const Ge = d.forwardRef(
441
+ ({ ...e }, o) => /* @__PURE__ */ c.jsx($e, { ref: o, "data-slot": "accordion", ...e })
578
442
  );
579
- rt.displayName = "Accordion";
580
- function Lt({ className: e, ...t }) {
581
- return /* @__PURE__ */ d.jsx(et, { "data-slot": "accordion-item", className: e, ...t });
443
+ Ge.displayName = "Accordion";
444
+ function No({ className: e, ...o }) {
445
+ return /* @__PURE__ */ c.jsx(He, { "data-slot": "accordion-item", className: e, ...o });
582
446
  }
583
- function kt({
447
+ function wo({
584
448
  className: e,
585
- children: t,
586
- customIcon: r,
449
+ children: o,
450
+ customIcon: t,
587
451
  ...n
588
452
  }) {
589
- return /* @__PURE__ */ d.jsx(tt, { className: "flex w-full", children: /* @__PURE__ */ d.jsxs(
590
- ot,
453
+ return /* @__PURE__ */ c.jsx(Fe, { className: "flex w-full", children: /* @__PURE__ */ c.jsxs(
454
+ We,
591
455
  {
592
456
  "data-slot": "accordion-trigger",
593
- className: $(
457
+ className: D(
594
458
  "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-center justify-between gap-[3px] py-[15px] text-left transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none [&[data-state=open]>svg]:-rotate-180",
595
459
  e
596
460
  ),
597
461
  ...n,
598
462
  children: [
599
- t,
600
- r ?? /* @__PURE__ */ d.jsx(
463
+ o,
464
+ t ?? /* @__PURE__ */ c.jsx(
601
465
  Ce,
602
466
  {
603
- className: $(
467
+ className: D(
604
468
  "pointer-events-none shrink-0 text-gray-200 transition-transform duration-300",
605
469
  "h-3.75 w-3.75 md:h-5 md:w-5"
606
470
  )
@@ -610,20 +474,20 @@ function kt({
610
474
  }
611
475
  ) });
612
476
  }
613
- function Wt({ className: e, children: t, ...r }) {
614
- return /* @__PURE__ */ d.jsx(
615
- nt,
477
+ function Po({ className: e, children: o, ...t }) {
478
+ return /* @__PURE__ */ c.jsx(
479
+ Be,
616
480
  {
617
481
  "data-slot": "accordion-content",
618
482
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",
619
- ...r,
620
- children: /* @__PURE__ */ d.jsx("div", { className: $("bg-gray-25 rounded-[10px] px-[20px] py-[15px]", e), children: t })
483
+ ...t,
484
+ children: /* @__PURE__ */ c.jsx("div", { className: D("bg-gray-25 rounded-[10px] px-[20px] py-[15px]", e), children: o })
621
485
  }
622
486
  );
623
487
  }
624
488
  export {
625
- rt as Accordion,
626
- Wt as AccordionContent,
627
- Lt as AccordionItem,
628
- kt as AccordionTrigger
489
+ Ge as Accordion,
490
+ Po as AccordionContent,
491
+ No as AccordionItem,
492
+ wo as AccordionTrigger
629
493
  };