@apollion-dsi/core 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +47 -21
  2. package/lib/chunks/chunk-26IFGRDF.esm.js +5 -0
  3. package/lib/chunks/{chunk-TAVNLEMI.esm.js → chunk-2BXBMNBD.esm.js} +5 -5
  4. package/lib/chunks/chunk-2NX55TTL.esm.js +1 -0
  5. package/lib/chunks/chunk-34F43UAI.esm.js +4 -0
  6. package/lib/chunks/chunk-34N4XNXU.esm.js +15 -0
  7. package/lib/chunks/chunk-3KZGQZXT.esm.js +94 -0
  8. package/lib/chunks/chunk-432W3QJX.esm.js +4 -0
  9. package/lib/chunks/chunk-43YSWDK6.esm.js +1 -0
  10. package/lib/chunks/chunk-4RPR6CZT.esm.js +1 -0
  11. package/lib/chunks/{chunk-BKF5RIHP.esm.js → chunk-4XERQINB.esm.js} +1 -1
  12. package/lib/chunks/{chunk-TGTH3E4X.esm.js → chunk-5BGSGGUV.esm.js} +1 -1
  13. package/lib/chunks/chunk-5H2LWL6K.esm.js +1 -0
  14. package/lib/chunks/chunk-5HHC44UU.esm.js +1 -0
  15. package/lib/chunks/chunk-6XWL3BHB.esm.js +3 -0
  16. package/lib/chunks/chunk-76C7AHBV.esm.js +1 -0
  17. package/lib/chunks/chunk-7ASEEZ7M.esm.js +15 -0
  18. package/lib/chunks/chunk-7WVLGVVA.esm.js +1 -0
  19. package/lib/chunks/{chunk-G3IXCOJI.esm.js → chunk-A4BXGJYW.esm.js} +1 -1
  20. package/lib/chunks/chunk-A6R3W3MH.esm.js +1 -0
  21. package/lib/chunks/chunk-APD22JEO.esm.js +1 -0
  22. package/lib/chunks/chunk-BSTXG3RR.esm.js +6 -0
  23. package/lib/chunks/chunk-BZYZXUVU.esm.js +142 -0
  24. package/lib/chunks/chunk-C7QM23W2.esm.js +1 -0
  25. package/lib/chunks/chunk-CCZVMA2I.esm.js +40 -0
  26. package/lib/chunks/chunk-CL2HK4JL.esm.js +61 -0
  27. package/lib/chunks/chunk-DDWCOMUN.esm.js +7 -0
  28. package/lib/chunks/chunk-DEAQAH6B.esm.js +171 -0
  29. package/lib/chunks/chunk-EDGVNBGB.esm.js +1 -0
  30. package/lib/chunks/chunk-EEBGH4FW.esm.js +23 -0
  31. package/lib/chunks/chunk-EFHY5LLY.esm.js +1 -0
  32. package/lib/chunks/{chunk-5XXISYUW.esm.js → chunk-EGC6TYNS.esm.js} +4 -4
  33. package/lib/chunks/chunk-EXUN3ZYF.esm.js +1 -0
  34. package/lib/chunks/chunk-FLFOQPKD.esm.js +72 -0
  35. package/lib/chunks/chunk-FPQOBUTR.esm.js +1 -0
  36. package/lib/chunks/{chunk-V77X6UJ2.esm.js → chunk-H6RGCTRX.esm.js} +1 -1
  37. package/lib/chunks/chunk-HW4IUAPQ.esm.js +1 -0
  38. package/lib/chunks/{chunk-D43MLNCQ.esm.js → chunk-HX3TYUGD.esm.js} +1 -1
  39. package/lib/chunks/{chunk-WTRTFZV6.esm.js → chunk-HZRGN3R2.esm.js} +1 -1
  40. package/lib/chunks/chunk-IEGER4VB.esm.js +9 -0
  41. package/lib/chunks/{chunk-XNBK5E7D.esm.js → chunk-ILBHBMWO.esm.js} +2 -2
  42. package/lib/chunks/chunk-IT4J7I6H.esm.js +1 -0
  43. package/lib/chunks/{chunk-TR4PVAXI.esm.js → chunk-J6WU4PU3.esm.js} +1 -1
  44. package/lib/chunks/chunk-JBISNWMI.esm.js +67 -0
  45. package/lib/chunks/chunk-JOKVE3IX.esm.js +1 -0
  46. package/lib/chunks/chunk-KB2USQJE.esm.js +1 -0
  47. package/lib/chunks/{chunk-SKV75I6W.esm.js → chunk-L4FPPJHH.esm.js} +1 -1
  48. package/lib/chunks/chunk-LEDRBAW5.esm.js +1 -0
  49. package/lib/chunks/{chunk-XNCMA56H.esm.js → chunk-LQLFWLYH.esm.js} +14 -10
  50. package/lib/chunks/{chunk-BYYMKYCC.esm.js → chunk-MJ7ZMPLR.esm.js} +1 -1
  51. package/lib/chunks/chunk-N3QTL6BB.esm.js +1 -0
  52. package/lib/chunks/chunk-NSZRKCOX.esm.js +1 -0
  53. package/lib/chunks/chunk-O7OKMTNU.esm.js +104 -0
  54. package/lib/chunks/{chunk-6H6SEPAI.esm.js → chunk-OVWQSCBW.esm.js} +15 -15
  55. package/lib/chunks/chunk-Q6KSPMLW.esm.js +1 -0
  56. package/lib/chunks/chunk-QNQ4OW7T.esm.js +4 -0
  57. package/lib/chunks/{chunk-KDYOOGW7.esm.js → chunk-QYMXU5YD.esm.js} +1 -1
  58. package/lib/chunks/chunk-RWDJBOAC.esm.js +5 -0
  59. package/lib/chunks/{chunk-3XS7RVYS.esm.js → chunk-SASIBVD2.esm.js} +3 -3
  60. package/lib/chunks/chunk-T4NQQFTY.esm.js +1 -0
  61. package/lib/chunks/chunk-TDVKGVGD.esm.js +1 -0
  62. package/lib/chunks/chunk-TG5BCBO4.esm.js +1 -0
  63. package/lib/chunks/chunk-TJ52MNVI.esm.js +1 -0
  64. package/lib/chunks/{chunk-3HHYBI4E.esm.js → chunk-TN4BCWOH.esm.js} +1 -1
  65. package/lib/chunks/chunk-TVJISBND.esm.js +1 -0
  66. package/lib/chunks/chunk-UXSHB2H7.esm.js +6 -0
  67. package/lib/chunks/chunk-V5ZKDMDH.esm.js +1 -0
  68. package/lib/chunks/chunk-VTTPJS32.esm.js +14 -0
  69. package/lib/chunks/chunk-VUHSUILC.esm.js +1 -0
  70. package/lib/chunks/{chunk-WAHR5LIT.esm.js → chunk-VVZ6FCG7.esm.js} +1 -1
  71. package/lib/chunks/chunk-WSEDBJO3.esm.js +38 -0
  72. package/lib/chunks/chunk-WUOHPB5R.esm.js +1 -0
  73. package/lib/chunks/chunk-XD7WY5I4.esm.js +7 -0
  74. package/lib/chunks/chunk-YQPAZ6ZQ.esm.js +81 -0
  75. package/lib/containers/Base/Base.style.d.ts +144 -144
  76. package/lib/containers/Base/index.esm.js +1 -1
  77. package/lib/containers/Card/index.esm.js +1 -1
  78. package/lib/containers/Content/index.esm.js +1 -1
  79. package/lib/containers/Flex/Flex.style.d.ts +145 -145
  80. package/lib/containers/Flex/index.esm.js +1 -1
  81. package/lib/containers/Grid/Grid.style.d.ts +3 -3
  82. package/lib/containers/Grid/index.esm.js +1 -1
  83. package/lib/containers/Notification/Notification.interface.d.ts +1 -1
  84. package/lib/containers/Notification/Notification.style.d.ts +1156 -1156
  85. package/lib/containers/Notification/index.esm.js +1 -1
  86. package/lib/containers/Paper/Paper.style.d.ts +9 -9
  87. package/lib/containers/Paper/index.esm.js +1 -1
  88. package/lib/containers/Scroll/Scroll.style.d.ts +8 -8
  89. package/lib/containers/Scroll/index.esm.js +1 -1
  90. package/lib/containers/index.esm.js +1 -1
  91. package/lib/dataDisplay/DataTable/DataTable.d.ts +1 -1
  92. package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +53 -0
  93. package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +82 -4
  94. package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +137 -4
  95. package/lib/dataDisplay/DataTable/DataTable.props.d.ts +4 -2
  96. package/lib/dataDisplay/DataTable/DataTable.style.d.ts +71 -31
  97. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  98. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  99. package/lib/dataDisplay/Table/TableBody/index.esm.js +1 -1
  100. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  101. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  102. package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +9 -9
  103. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  104. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  105. package/lib/dataDisplay/Table/TableHeader/index.esm.js +1 -1
  106. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  107. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  108. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  109. package/lib/dataDisplay/Table/TableRow/index.esm.js +1 -1
  110. package/lib/dataDisplay/Table/index.esm.js +1 -1
  111. package/lib/dataDisplay/Tabs/Tabs.style.d.ts +25 -25
  112. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  113. package/lib/dataDisplay/index.esm.js +1 -1
  114. package/lib/elements/Avatar/Avatar.style.d.ts +4 -4
  115. package/lib/elements/Avatar/index.esm.js +1 -1
  116. package/lib/elements/Button/Button.style.d.ts +7 -7
  117. package/lib/elements/Button/index.esm.js +1 -1
  118. package/lib/elements/Calendar/Calendar.d.ts +30 -0
  119. package/lib/elements/Calendar/Calendar.interface.d.ts +37 -0
  120. package/lib/elements/Calendar/Calendar.style.d.ts +17 -0
  121. package/lib/elements/Calendar/index.d.ts +13 -0
  122. package/lib/elements/Calendar/index.esm.js +1 -0
  123. package/lib/elements/Dropdown/Dropdown.d.ts +8 -2
  124. package/lib/elements/Dropdown/index.esm.js +1 -1
  125. package/lib/elements/Icon/Icon.style.d.ts +2 -2
  126. package/lib/elements/Icon/index.esm.js +1 -1
  127. package/lib/elements/IconButton/IconButton.style.d.ts +8 -8
  128. package/lib/elements/IconButton/index.esm.js +1 -1
  129. package/lib/elements/Image/index.esm.js +1 -1
  130. package/lib/elements/Label/Label.style.d.ts +4 -4
  131. package/lib/elements/Label/index.esm.js +1 -1
  132. package/lib/elements/Link/Link.d.ts +19 -8
  133. package/lib/elements/Link/Link.interface.d.ts +33 -12
  134. package/lib/elements/Link/Link.style.d.ts +38 -690
  135. package/lib/elements/Link/index.esm.js +1 -1
  136. package/lib/elements/List/List.style.d.ts +8 -8
  137. package/lib/elements/List/index.esm.js +1 -1
  138. package/lib/elements/Modal/Modal.style.d.ts +4317 -4317
  139. package/lib/elements/Modal/index.esm.js +1 -1
  140. package/lib/elements/Popover/index.esm.js +1 -1
  141. package/lib/elements/ProgressBar/ProgressBar.style.d.ts +10 -10
  142. package/lib/elements/ProgressBar/index.esm.js +1 -1
  143. package/lib/elements/Spinner/Spinner.style.d.ts +2 -2
  144. package/lib/elements/Spinner/index.esm.js +1 -1
  145. package/lib/elements/Svg/index.esm.js +1 -1
  146. package/lib/elements/Text/Text.props.d.ts +140 -140
  147. package/lib/elements/Text/Text.style.d.ts +2 -2
  148. package/lib/elements/Text/index.esm.js +1 -1
  149. package/lib/elements/Tooltip/Tooltip.d.ts +6 -6
  150. package/lib/elements/Tooltip/Tooltip.interface.d.ts +14 -6
  151. package/lib/elements/Tooltip/Tooltip.style.d.ts +15 -10
  152. package/lib/elements/Tooltip/index.esm.js +1 -1
  153. package/lib/elements/index.esm.js +1 -1
  154. package/lib/factory/BorderFactory/BorderFactory.d.ts +1 -1
  155. package/lib/factory/ContainerFactory/ContainerFactory.d.ts +1 -1
  156. package/lib/factory/DeepFactory/DeepFactory.d.ts +1 -1
  157. package/lib/factory/DeepFactory/index.esm.js +1 -1
  158. package/lib/factory/FlexFactory/FlexFactory.d.ts +1 -1
  159. package/lib/factory/FontFactory/FontFactory.d.ts +1 -1
  160. package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +1 -1
  161. package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
  162. package/lib/factory/SizeFactory/SizeFactory.d.ts +1 -1
  163. package/lib/factory/SpacingFactory/SpacingFactory.d.ts +1 -1
  164. package/lib/factory/System/System.d.ts +2 -4
  165. package/lib/factory/System/System.interface.d.ts +2 -2
  166. package/lib/factory/System/index.esm.js +1 -1
  167. package/lib/factory/index.esm.js +1 -1
  168. package/lib/form/Checkbox/Checkbox.style.d.ts +11 -11
  169. package/lib/form/Checkbox/index.esm.js +1 -1
  170. package/lib/form/Field/Field.d.ts +2 -1
  171. package/lib/form/Field/Field.interface.d.ts +4 -4
  172. package/lib/form/Field/Field.props.d.ts +39 -0
  173. package/lib/form/Field/Field.style.d.ts +16 -16
  174. package/lib/form/Field/index.esm.js +1 -1
  175. package/lib/form/FieldGroup/index.esm.js +1 -1
  176. package/lib/form/Form/Form.helpers.d.ts +11 -8
  177. package/lib/form/Form/Form.interface.d.ts +24 -20
  178. package/lib/form/Form/Form.style.d.ts +10 -10
  179. package/lib/form/Form/index.esm.js +1 -1
  180. package/lib/form/Input/Input.style.d.ts +22 -22
  181. package/lib/form/Input/index.esm.js +1 -1
  182. package/lib/form/InputCurrency/index.esm.js +1 -1
  183. package/lib/form/InputDate/InputDate.d.ts +21 -11
  184. package/lib/form/InputDate/InputDate.interface.d.ts +67 -0
  185. package/lib/form/InputDate/buildSyntheticEvent.d.ts +26 -0
  186. package/lib/form/InputDate/index.d.ts +9 -2
  187. package/lib/form/InputDate/index.esm.js +1 -1
  188. package/lib/form/InputMask/index.esm.js +1 -1
  189. package/lib/form/InputRange/InputRange.style.d.ts +24 -24
  190. package/lib/form/InputRange/index.esm.js +1 -1
  191. package/lib/form/InputSelect/DropdownIndicator.d.ts +1 -1
  192. package/lib/form/InputSelect/InputSelect.interface.d.ts +1 -1
  193. package/lib/form/InputSelect/index.esm.js +1 -1
  194. package/lib/form/Radio/Radio.style.d.ts +9 -9
  195. package/lib/form/Radio/index.esm.js +1 -1
  196. package/lib/form/TextArea/TextArea.style.d.ts +21 -21
  197. package/lib/form/TextArea/index.esm.js +1 -1
  198. package/lib/form/UploadCard/UploadCard.style.d.ts +39 -39
  199. package/lib/form/UploadCard/index.esm.js +1 -1
  200. package/lib/form/index.esm.js +1 -1
  201. package/lib/hooks/index.esm.js +1 -1
  202. package/lib/hooks/useMediaQuery/index.esm.js +1 -1
  203. package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
  204. package/lib/hooks/useScript/index.esm.js +1 -1
  205. package/lib/icons/Icons/categoryInterface.d.ts +1 -0
  206. package/lib/icons/Icons/index.d.ts +1 -0
  207. package/lib/icons/Icons/index.esm.js +1 -1
  208. package/lib/icons/index.esm.js +1 -1
  209. package/lib/index.d.ts +27 -14
  210. package/lib/index.esm.js +1 -1
  211. package/lib/index.js +1 -1262
  212. package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +12 -12
  213. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  214. package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +12 -12
  215. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  216. package/lib/layouts/index.esm.js +1 -1
  217. package/lib/scenario/CircleComponent/index.esm.js +1 -1
  218. package/lib/scenario/RectComponent/index.esm.js +1 -1
  219. package/lib/scenario/index.esm.js +1 -1
  220. package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +1 -1
  221. package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +1 -1
  222. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  223. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  224. package/lib/skeleton/index.esm.js +1 -1
  225. package/lib/themes/Colors/Colors.helpers.d.ts +56 -4
  226. package/lib/themes/Colors/index.esm.js +1 -1
  227. package/lib/themes/Deep/index.esm.js +1 -1
  228. package/lib/themes/Depth/index.esm.js +1 -1
  229. package/lib/themes/Dimension/Dimension.interface.d.ts +24 -0
  230. package/lib/themes/Dimension/Dimension.props.d.ts +36 -0
  231. package/lib/themes/Dimension/index.d.ts +10 -0
  232. package/lib/themes/Dimension/index.esm.js +1 -0
  233. package/lib/themes/Foundation/Foundation.helpers.d.ts +32 -0
  234. package/lib/themes/Foundation/Foundation.interface.d.ts +84 -0
  235. package/lib/themes/Foundation/index.d.ts +17 -0
  236. package/lib/themes/Foundation/index.esm.js +1 -0
  237. package/lib/themes/GlobalStyle/GlobalStyle.d.ts +1 -1
  238. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  239. package/lib/themes/Semantic/Semantic.helpers.d.ts +50 -0
  240. package/lib/themes/Semantic/Semantic.interface.d.ts +131 -0
  241. package/lib/themes/Semantic/index.d.ts +18 -0
  242. package/lib/themes/Semantic/index.esm.js +1 -0
  243. package/lib/themes/Spacing/Spacing.props.d.ts +32 -1
  244. package/lib/themes/Spacing/index.esm.js +1 -1
  245. package/lib/themes/Surface/Surface.d.ts +46 -0
  246. package/lib/themes/Surface/Surface.helpers.d.ts +52 -0
  247. package/lib/themes/Surface/Surface.interface.d.ts +20 -0
  248. package/lib/themes/Surface/index.d.ts +18 -0
  249. package/lib/themes/Surface/index.esm.js +1 -0
  250. package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +69 -0
  251. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  252. package/lib/themes/index.d.ts +4 -0
  253. package/lib/themes/index.esm.js +1 -1
  254. package/lib/utils/components/Breakpoints/index.esm.js +1 -1
  255. package/lib/utils/components/index.esm.js +1 -1
  256. package/lib/vendors/Culori/component.d.ts +26 -0
  257. package/lib/vendors/Culori/index.d.ts +2 -0
  258. package/lib/vendors/Culori/interface.d.ts +28 -0
  259. package/lib/vendors/DateFns/component.d.ts +30 -0
  260. package/lib/vendors/DateFns/index.d.ts +2 -0
  261. package/lib/vendors/DateFns/interface.d.ts +14 -0
  262. package/lib/vendors/Deepmerge/component.d.ts +11 -0
  263. package/lib/vendors/Deepmerge/index.d.ts +1 -0
  264. package/lib/vendors/Deepmerge/interface.d.ts +10 -0
  265. package/lib/vendors/EmotionIsPropValid/component.d.ts +12 -0
  266. package/lib/vendors/EmotionIsPropValid/index.d.ts +1 -0
  267. package/lib/vendors/EmotionIsPropValid/interface.d.ts +9 -0
  268. package/lib/vendors/FastDeepEqual/component.d.ts +11 -0
  269. package/lib/vendors/FastDeepEqual/index.d.ts +1 -0
  270. package/lib/vendors/FastDeepEqual/interface.d.ts +9 -0
  271. package/lib/vendors/FloatingUI/component.d.ts +34 -0
  272. package/lib/vendors/FloatingUI/index.d.ts +2 -0
  273. package/lib/vendors/FloatingUI/interface.d.ts +18 -0
  274. package/lib/vendors/FramerMotion/component.d.ts +20 -0
  275. package/lib/vendors/FramerMotion/index.d.ts +2 -0
  276. package/lib/vendors/FramerMotion/interface.d.ts +15 -0
  277. package/lib/vendors/LodashDebounce/component.d.ts +11 -0
  278. package/lib/vendors/LodashDebounce/index.d.ts +2 -0
  279. package/lib/vendors/LodashDebounce/interface.d.ts +11 -0
  280. package/lib/vendors/Nanoid/component.d.ts +13 -0
  281. package/lib/vendors/Nanoid/index.d.ts +2 -0
  282. package/lib/vendors/Nanoid/interface.d.ts +11 -0
  283. package/lib/vendors/ObjectHash/component.d.ts +9 -0
  284. package/lib/vendors/ObjectHash/index.d.ts +2 -0
  285. package/lib/vendors/ObjectHash/interface.d.ts +8 -0
  286. package/lib/vendors/ReactContentLoader/component.d.ts +15 -0
  287. package/lib/vendors/ReactContentLoader/index.d.ts +2 -0
  288. package/lib/vendors/ReactContentLoader/interface.d.ts +10 -0
  289. package/lib/vendors/ReactDayPicker/component.d.ts +17 -0
  290. package/lib/vendors/ReactDayPicker/index.d.ts +2 -0
  291. package/lib/vendors/ReactDayPicker/interface.d.ts +19 -0
  292. package/lib/vendors/ReactHookForm/component.d.ts +27 -0
  293. package/lib/vendors/ReactHookForm/index.d.ts +2 -0
  294. package/lib/vendors/ReactHookForm/interface.d.ts +25 -0
  295. package/lib/vendors/ReactSelect/component.d.ts +17 -0
  296. package/lib/vendors/ReactSelect/index.d.ts +2 -0
  297. package/lib/vendors/ReactSelect/interface.d.ts +17 -0
  298. package/lib/vendors/StyledComponents/component.d.ts +21 -0
  299. package/lib/vendors/StyledComponents/index.d.ts +2 -0
  300. package/lib/vendors/StyledComponents/interface.d.ts +27 -0
  301. package/lib/vendors/StyledNormalize/component.d.ts +10 -0
  302. package/lib/vendors/StyledNormalize/index.d.ts +1 -0
  303. package/lib/vendors/StyledNormalize/interface.d.ts +9 -0
  304. package/lib/vendors/TanstackReactTable/component.d.ts +23 -0
  305. package/lib/vendors/TanstackReactTable/index.d.ts +2 -0
  306. package/lib/vendors/TanstackReactTable/interface.d.ts +24 -0
  307. package/lib/vendors/TanstackReactVirtual/component.d.ts +16 -0
  308. package/lib/vendors/TanstackReactVirtual/index.d.ts +2 -0
  309. package/lib/vendors/TanstackReactVirtual/interface.d.ts +14 -0
  310. package/lib/vendors/Zod/component.d.ts +18 -0
  311. package/lib/vendors/Zod/index.d.ts +2 -0
  312. package/lib/vendors/Zod/interface.d.ts +6 -0
  313. package/package.json +57 -24
  314. package/lib/chunks/chunk-2B3RKGV2.esm.js +0 -1
  315. package/lib/chunks/chunk-4PCG2KFF.esm.js +0 -1
  316. package/lib/chunks/chunk-4WBZAWFH.esm.js +0 -0
  317. package/lib/chunks/chunk-4Z3FXC7B.esm.js +0 -5
  318. package/lib/chunks/chunk-6KYLIXBS.esm.js +0 -1
  319. package/lib/chunks/chunk-6RNKPTEX.esm.js +0 -40
  320. package/lib/chunks/chunk-7PD7R2RB.esm.js +0 -15
  321. package/lib/chunks/chunk-7VYSPE3B.esm.js +0 -14
  322. package/lib/chunks/chunk-CH7BVIBG.esm.js +0 -1
  323. package/lib/chunks/chunk-CSVGEHXH.esm.js +0 -1
  324. package/lib/chunks/chunk-DAFBKFTS.esm.js +0 -67
  325. package/lib/chunks/chunk-DEAAQK5J.esm.js +0 -5
  326. package/lib/chunks/chunk-DP6AXK72.esm.js +0 -1
  327. package/lib/chunks/chunk-E4GPRFIB.esm.js +0 -1
  328. package/lib/chunks/chunk-ELYUJKST.esm.js +0 -1
  329. package/lib/chunks/chunk-ERLPEOAG.esm.js +0 -7
  330. package/lib/chunks/chunk-EWFUWYNO.esm.js +0 -81
  331. package/lib/chunks/chunk-FVRWVTQD.esm.js +0 -7
  332. package/lib/chunks/chunk-G3PLMKGA.esm.js +0 -6
  333. package/lib/chunks/chunk-G5M2X3TX.esm.js +0 -7
  334. package/lib/chunks/chunk-GWCDFVWM.esm.js +0 -1
  335. package/lib/chunks/chunk-HK3DHNXU.esm.js +0 -38
  336. package/lib/chunks/chunk-I2E5B4NH.esm.js +0 -1
  337. package/lib/chunks/chunk-IA7RR4C7.esm.js +0 -136
  338. package/lib/chunks/chunk-JIDBKHKA.esm.js +0 -9
  339. package/lib/chunks/chunk-JTQYUIZP.esm.js +0 -1
  340. package/lib/chunks/chunk-KEQXETSP.esm.js +0 -1
  341. package/lib/chunks/chunk-L6UB7RUM.esm.js +0 -104
  342. package/lib/chunks/chunk-LXG3BZB5.esm.js +0 -1
  343. package/lib/chunks/chunk-LZTZMWTK.esm.js +0 -67
  344. package/lib/chunks/chunk-NGODVNJB.esm.js +0 -61
  345. package/lib/chunks/chunk-OMBZMCKV.esm.js +0 -1
  346. package/lib/chunks/chunk-OXD4QSRP.esm.js +0 -1
  347. package/lib/chunks/chunk-PZYCW5IZ.esm.js +0 -4
  348. package/lib/chunks/chunk-Q3FXXXUX.esm.js +0 -1
  349. package/lib/chunks/chunk-QUHHEZMP.esm.js +0 -1
  350. package/lib/chunks/chunk-QZYXRYI7.esm.js +0 -4
  351. package/lib/chunks/chunk-RMTAUQ4Q.esm.js +0 -0
  352. package/lib/chunks/chunk-SAVXHMAA.esm.js +0 -6
  353. package/lib/chunks/chunk-SHDMTEPB.esm.js +0 -46
  354. package/lib/chunks/chunk-SR7ARLZ4.esm.js +0 -1
  355. package/lib/chunks/chunk-UJDBHSL7.esm.js +0 -1
  356. package/lib/chunks/chunk-VTRVGJA6.esm.js +0 -3
  357. package/lib/chunks/chunk-WOI7ZDPE.esm.js +0 -94
  358. package/lib/chunks/chunk-WTWPQ4EL.esm.js +0 -1
  359. package/lib/chunks/chunk-WZALORLW.esm.js +0 -1
  360. package/lib/chunks/chunk-XFQI4QU6.esm.js +0 -1
  361. package/lib/chunks/chunk-XW52MLHU.esm.js +0 -15
  362. /package/lib/chunks/{chunk-4H6GW4MC.esm.js → chunk-CWRWYU7D.esm.js} +0 -0
@@ -1,67 +0,0 @@
1
- import{a as i,o as x}from"./chunk-LZTZMWTK.esm.js";import{a as p}from"./chunk-XNBK5E7D.esm.js";import{a as d}from"./chunk-VTRVGJA6.esm.js";import{a}from"./chunk-ELYUJKST.esm.js";import{b as s}from"./chunk-JB7G6UGV.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import f,{css as b}from"styled-components";var n=a("input")`
2
- position: absolute;
3
- left: 0;
4
- top: 0;
5
- margin: 0;
6
- opacity: 0;
7
- cursor: pointer;
8
- `,t=f(d).attrs(o=>({alignItems:"center",justifyContent:"center",borderRadius:"micro",borderWidth:"thin",boderStyle:"solid",borderColor:"information",deep:-1,mr:"small",...o}))`
9
- width: 20px;
10
- height: 20px;
11
- flex-shrink: 0;
12
- transition: ${({theme:o})=>o.animation.transitions.short};
13
- `;function k({variant:o,theme:r}){let e=r.colors.information;return o==="success"&&(e=r.colors.success),o==="error"&&(e=r.colors.danger),b`
14
- color: ${e.dark};
15
-
16
- & > ${t} {
17
- border: 1px solid ${e.dark};
18
- }
19
-
20
- &:hover > ${t}, &:focus > ${t} {
21
- border-color: ${e.action};
22
- box-shadow: ${r.depth("level-zero")};
23
- }
24
-
25
- & > ${n}:checked ~ ${t} {
26
- border-color: ${e.base};
27
- background-color: ${e.base};
28
- box-shadow: ${r.depth("level-zero")};
29
- }
30
- `}c(k,"checkboxVariantStyle");function $({theme:o,disabled:r}){return r&&b`
31
- color: ${o.colors.neutral[50]};
32
-
33
- & > ${n}:disabled {
34
- cursor: default;
35
-
36
- & ~ ${t} {
37
- background-color: ${o.colors.neutral[10]};
38
- border-color: ${o.colors.neutral[10]};
39
- box-shadow: none;
40
-
41
- & > ${i} {
42
- ${s({color:"neutral.50"})}
43
- }
44
- }
45
- }
46
- `}c($,"disabledStyle");var h=a("label")`
47
- position: relative;
48
- display: inline-flex;
49
- flex-direction: row;
50
- cursor: pointer;
51
- align-items: center;
52
- margin: ${({theme:o})=>o.spacing(0,8,"medium",0)};
53
- transition: ${({theme:o})=>o.animation.transitions.short};
54
-
55
- & > ${n} ~ ${t} > ${i} {
56
- ${s({color:"neutral.0"})}
57
- opacity: 0;
58
- }
59
-
60
- /* Mostra o check quando o input nativo está :checked */
61
- & > ${n}:checked ~ ${t} > ${i} {
62
- opacity: 1;
63
- }
64
-
65
- ${k}
66
- ${$}
67
- `;import l from"react";var m=c(({label:o=null,variant:r="default",...e})=>l.createElement(h,{variant:r,disabled:e.disabled},l.createElement(n,{...e,type:"checkbox",hidden:!0}),l.createElement(t,null,l.createElement(x,{name:"check",size:"small"})),typeof o=="string"?l.createElement(p,{color:null},o):o),"CheckboxComponent");m.displayName="Checkbox";export{n as a,t as b,h as c,m as d};
@@ -1,5 +0,0 @@
1
- import{a}from"./chunk-WTWPQ4EL.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import o from"styled-components";var n=i((r,e)=>({gridTemplateColumns:e.columns,gridTemplateRows:e.rows,gridTemplateAreas:e.areas,gap:e.gap?r.spacing(e.gap):void 0,gridColumnGap:e.columnGap?r.spacing(e.columnGap):void 0,gridRowGap:e.rowGap?r.spacing(e.rowGap):void 0}),"getGridProps"),f=i(({medias:r,theme:e})=>r?"xs"in r?Object.keys(r).reduce((d,t)=>({...d,[e.breakpoints.up(t)]:n(e,r[t])}),{}):n(e,r):{},"setGridBreakpoints"),G=o(a)`
2
- display: grid;
3
-
4
- ${f}
5
- `;export{f as a,G as b};
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-GZONWSRB.esm.js";var i={multiplier:.25,alias:{zero:0,micro:1,xs:2,small:3,medium:4,large:7,xl:11,xxl:18,giant:29}};function c({multiplier:t=.25,alias:r}){return(...p)=>p.map(n=>{let a=typeof n=="string"?r[n]:n;return`${t*a}rem`}).join(" ")}e(c,"createSpacing");export{i as a,c as b};
@@ -1 +0,0 @@
1
- import a from"react";import y from"styled-components";var e=y.tbody``;var o=a.forwardRef((t,r)=>a.createElement(e,{ref:r},t.children));o.displayName="TableBody";export{e as a,o as b};
@@ -1 +0,0 @@
1
- import{a as A}from"./chunk-TGTH3E4X.esm.js";import{a as c,b as f}from"./chunk-752Z7BQF.esm.js";import{a as K,b as g}from"./chunk-BNB3KNKE.esm.js";import{a as u,b as x}from"./chunk-W663AGNE.esm.js";import{a as t,b as e}from"./chunk-A6Z2M2XU.esm.js";import{a,d as i}from"./chunk-U27SLYIV.esm.js";import{a as n,b as s}from"./chunk-JB7G6UGV.esm.js";import{a as m,b as p}from"./chunk-GP7NECT4.esm.js";import{a as y,b as l}from"./chunk-WAHR5LIT.esm.js";import{a as d,b as F}from"./chunk-OEH5ARPF.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import S from"@emotion/is-prop-valid";import v from"styled-components";var h=new Set([...m,...t,...u,...a,...n,...y,...c,...d,...K,"variant","active"]),P=r(o=>!h.has(o)&&S(o),"shouldForwardProp"),b=r((o=>v(o).withConfig({shouldForwardProp:P})),"styled"),w=["a","div","span","input","button"],C={};w.forEach(o=>{C[o]=b(o)(p({position:"relative"}),F,x,i,e,f,s,l,g,A)});export{b as a,C as b};
@@ -1,7 +0,0 @@
1
- import{a as r}from"./chunk-GZONWSRB.esm.js";import d from"react";import t from"styled-components";var o=t.thead`
2
- width: 100%;
3
- background: ${({theme:a})=>a.colors.neutral[0]};
4
- position: sticky;
5
- top: 0;
6
- z-index: 1;
7
- `;var e=r(a=>d.createElement(o,{...a},a.children),"TableHeaderComponent");e.displayName="TableHeader";export{o as a,e as b};
@@ -1,81 +0,0 @@
1
- import{o as I}from"./chunk-LZTZMWTK.esm.js";import{a as y,b as D}from"./chunk-6KYLIXBS.esm.js";import{e as S}from"./chunk-5XXISYUW.esm.js";import{e as T}from"./chunk-V77X6UJ2.esm.js";import{a as F}from"./chunk-BE2JDTVA.esm.js";import{a as $,d as P}from"./chunk-XNBK5E7D.esm.js";import{a as k}from"./chunk-3HHYBI4E.esm.js";import{a as c}from"./chunk-VTRVGJA6.esm.js";import{a as z}from"./chunk-TAVNLEMI.esm.js";import{a as v,b}from"./chunk-WTWPQ4EL.esm.js";import{a as E}from"./chunk-44EW3LMK.esm.js";import{d as h}from"./chunk-V5AWVNU6.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import s,{css as p}from"styled-components";var K=p`
2
- max-width: 30rem;
3
- min-width: 20rem;
4
- `,U=p`
5
- max-width: 40rem;
6
- min-width: 20rem;
7
- `,X=p`
8
- max-width: 55rem;
9
- min-width: 40rem;
10
- `,Z=p`
11
- max-width: 75rem;
12
- min-width: 40rem;
13
- `,_=p`
14
- width: 95%;
15
- `;function R({size:t}){switch(t){case"small":return K;case"medium":return X;case"large":return Z;default:return U}}r(R,"modalSize");function oo({variant:t,theme:e}){let n=e.colors[t];return p`
16
- --baseColor: ${n.base};
17
- --lightColor: ${n.light};
18
- --actionColor: ${n.action};
19
- `}r(oo,"modalVariantColor");var O=s(b).attrs({p:"large",borderRadius:"md",bgColor:"neutral.0"})`
20
- ${_};
21
-
22
- ${oo};
23
-
24
- ${({theme:t})=>t.breakpoints.up("sm")} {
25
- ${R};
26
- }
27
- `,j=s(c)`
28
- max-height: 84vh;
29
- overflow: hidden;
30
- `,H=s(c)`
31
- & ${$} {
32
- flex: 1;
33
- }
34
-
35
- & ${y} {
36
- padding: 0.3rem;
37
- color: var(--baseColor);
38
-
39
- &:only-child {
40
- margin-left: auto;
41
- }
42
- }
43
-
44
- & ${y}:active {
45
- color: var(--actionColor);
46
- background-color: var(--lightColor);
47
- }
48
-
49
- & ${y}:hover {
50
- background-color: var(--lightColor);
51
- }
52
- `,V=s(v)`
53
- flex: 1;
54
- display: flex;
55
- overscroll-behavior: none;
56
- overflow: hidden;
57
- `,G=s(c).attrs({borderRadius:"circular"})`
58
- background-color: var(--lightColor);
59
-
60
- & svg {
61
- color: var(--baseColor);
62
- width: 1.25rem;
63
- height: 1.25rem;
64
-
65
- g {
66
- fill: var(--baseColor);
67
- }
68
- }
69
- `,L=s(v)`
70
- z-index: 9999;
71
- display: flex;
72
- justify-content: center;
73
- align-items: center;
74
- position: fixed;
75
- top: 0;
76
- left: 0;
77
- right: 0;
78
- bottom: 0;
79
- `,W=s(b)`
80
- will-change: opacity;
81
- `;import o,{cloneElement as eo,isValidElement as to,useEffect as ro,useState as no}from"react";import{createPortal as lo}from"react-dom";import{AnimatePresence as ao}from"framer-motion";var N=r(({isOpen:t,onDismiss:e,...n})=>{if(!t&&!e)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[i,d]=no(!1);return ro(()=>{d(!0)},[]),!i||!h?null:lo(o.createElement(ao,null,t?o.createElement(L,{"data-testid":"modal-container"},o.createElement(W,{absoluteFill:!0,bgColor:"neutral.180","data-testid":"modal-overlay",onClick:e,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0}}),o.createElement(mo,{onDismiss:e,...n})):null),h)},"ModalBaseComponent"),io=r(({defaultOpen:t,trigger:e,isOpen:n,onDismiss:i,onModalOpen:d,...m})=>{let{active:l,disable:u,enable:C,toggle:g}=F(t,{onActive:d});return(n||i)&&E.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),o.createElement(o.Fragment,null,r(()=>{let a=null;if(typeof e=="function"&&(a=e({isOpen:l,open:C})),to(e)&&(a=eo(e,{onClick:g})),a===null)throw new Error('"trigger" prop is not a valid element');return a},"renderTrigger")(),o.createElement(N,{isOpen:l,onDismiss:u,...m}))},"ModalTriggerVariant"),mo=r(({noCloseButton:t,primaryButton:e,secondaryButton:n,primaryText:i,secondaryText:d,onDismiss:m,primaryAction:l,secondaryAction:u,children:C,tagline:g,variant:M,footer:a,title:w,size:Y,icon:B})=>{let{isMobile:x}=T(),q=r(()=>{l({close:m})},"handlePrimary"),A=r(()=>{u({close:m})},"handleSecondary"),J=r(()=>{let f={onClick:q,fullWidth:a==="full"||x,"data-testid":"modal-confirm-button"};return e?o.cloneElement(e,f):o.createElement(S,{color:M,...f},i)},"renderPrimaryButton");return o.createElement(O,{size:Y,variant:M,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"200%",opacity:0}},o.createElement(j,{gap:"medium"},o.createElement(H,{gap:"xs"},o.createElement(k,{opener:B&&o.createElement(G,{justifyContent:"center",alignItems:"center",p:"micro"},B),closer:!t&&o.createElement(D,{onClick:m,"data-testid":"modal-close-button",icon:o.createElement(I,{name:"times"}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"})},w&&o.createElement(P,{variant:"h4",area:"title",color:"neutral.170",text:w})),g&&o.createElement(P,{variant:"meta",color:"secondary.dark",area:"tagline"},g)),o.createElement(V,{py:"medium"},o.createElement(z,null,C)),(l||u)&&o.createElement(c,{flexDirection:x?"column-reverse":"row",justifyContent:a==="expanded"?"between":"end",gap:"medium"},u&&r(()=>{if(a==="full")return null;let f={onClick:A,fullWidth:x,"data-testid":"modal-cancel-button"};return n?o.cloneElement(n,f):o.createElement(S,{variant:"outlined",color:"secondary",...f},d)},"renderSecondaryButton")(),l&&J())))},"ModalDialog"),Q=r(({noCloseButton:t=!1,secondaryText:e="Cancelar",primaryText:n="Confirmar",variant:i="primary",footer:d="right",...m})=>{let l={noCloseButton:t,secondaryText:e,primaryText:n,variant:i,footer:d,...m};return l!=null&&l.trigger?o.createElement(io,{...l}):o.createElement(N,{...l})},"ModalComponent");Q.displayName="Modal";export{O as a,j as b,H as c,V as d,G as e,L as f,W as g,Q as h};
@@ -1,7 +0,0 @@
1
- import{c as p}from"./chunk-5XXISYUW.esm.js";import{a as k}from"./chunk-XNBK5E7D.esm.js";import{a as L}from"./chunk-ELYUJKST.esm.js";import{b as l}from"./chunk-752Z7BQF.esm.js";import{b as c}from"./chunk-JB7G6UGV.esm.js";import{b as y}from"./chunk-GP7NECT4.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import o,{forwardRef as h}from"react";import{Link as x}from"react-router-dom";import B from"styled-components";var S=L(x)(c,y({cursor:"pointer"}),l({textDecoration:"underline",fontFamily:"main"})),g=B.a(c,y({cursor:"pointer"}),l({textDecoration:"underline",fontFamily:"main"})),E=L(x)`
2
- ${p};
3
- ${l({lineHeight:"tight"})};
4
- `,I=B.a`
5
- ${p};
6
- ${l({lineHeight:"tight"})};
7
- `;var d=f(({href:t,to:n})=>t?{pathname:t}:n,"getRoute"),H=f(t=>t?/^(https?:)?\/\//i.test(t)||/^(mailto|tel|sms):/i.test(t):!1,"isExternalHref"),b={target:"_blank",rel:"noopener noreferrer"},F=h(({text:t,children:n,variant:r="contained",color:m="primary",to:i,href:e,...a},s)=>{if(H(e))return o.createElement(I,{...a,...b,variant:r,color:m,href:e,ref:s},o.createElement(k,{fontWeight:"bold",lineHeight:"tight"},n||t));let C=d({href:e,to:i});return o.createElement(E,{...a,variant:r,color:m,to:C,ref:s},o.createElement(k,{fontWeight:"bold",lineHeight:"tight"},n||t))}),u=h(({text:t,children:n,color:r="primary",to:m,href:i,...e},a)=>{if(H(i))return o.createElement(g,{...e,...b,color:r,href:i,ref:a},n||t);let s=d({href:i,to:m});return o.createElement(S,{...e,color:r,to:s,ref:a},n||t)});u.Button=F;u.displayName="Link";export{S as a,g as b,E as c,I as d,u as e};
@@ -1,6 +0,0 @@
1
- import{a as b,b as f}from"./chunk-XFQI4QU6.esm.js";import{b as n}from"./chunk-4Z3FXC7B.esm.js";import{a as T}from"./chunk-CDRLVSLF.esm.js";import{d as a}from"./chunk-XNBK5E7D.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import o from"react";import d from"styled-components";var i=d.tfoot`
2
- width: 100%;
3
- & > ${b} {
4
- background-color: ${({theme:r})=>r.colors.getColor(r.colors.neutral[20])};
5
- }
6
- `;var l=m(r=>{let{columnSum:e}=o.useContext(T),p=e.index!==void 0?o.createElement(f,null,Array.from({length:e.index+1},(s,t)=>e.index===t?o.createElement(n,{key:t},o.createElement(a,{variant:"h6"},e.sum)):e.index-1===t?o.createElement(n,{key:t},o.createElement(a,{variant:"h6"},"Total:")):o.createElement(n,{key:t},"\xA0"))):r.children;return o.createElement(i,{isSum:e.index!==void 0,...r},p)},"TableFooterComponent");l.displayName="TableFooter";export{i as a,l as b};
@@ -1,7 +0,0 @@
1
- import{b as d}from"./chunk-DEAAQK5J.esm.js";import{e as a}from"./chunk-V77X6UJ2.esm.js";import{a as i}from"./chunk-VTRVGJA6.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import e from"react";import s from"styled-components";var m={xs:{columns:"1fr",rows:"100%",areas:`
2
- "content"
3
- `},md:{columns:"200px 1fr",rows:"100%",areas:`
4
- "sidebar content"
5
- `}};var n=s(d).attrs({medias:m})`
6
- height: 100%;
7
- `;function f({layoutComponents:r}){let{isMobile:t}=a();return e.createElement(n,null,!t&&r.sidebar&&e.createElement(r.sidebar,null),e.createElement(i,{area:"content",width:"100%",justifyContent:t?"center":void 0},r.content&&e.createElement(r.content,null)))}o(f,"SideBarLayout");f.displayName="SideBarLayout";export{m as a,n as b,f as c};
@@ -1 +0,0 @@
1
- import{c as f}from"./chunk-V5AWVNU6.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import y,{createContext as d,useEffect as m,useState as k}from"react";import{useTheme as v}from"styled-components";var C=d({}),w=c(({children:x})=>{let{breakpoints:o}=v(),[l,h]=k({isLaptop:!1,isMobile:!1,isTablet:!1,isPortrait:!1}),n={isMobile:`(max-width: ${o.values.md}px)`,isTablet:`(min-width: ${o.values.md}px) and (max-width: ${o.values.lg}px)`,isLaptop:`(min-width: ${o.values.lg}px) and (max-width: ${o.values.xl}px)`,isPortrait:"(orientation: portrait)"};return m(()=>{var u;let t={},a=Object.keys(n),i=c(()=>{let e=a.reduce((r,s)=>(r[s]=!!(t[s]&&t[s].matches),r),{});h(e)},"handleQueryListener");if(!((u=f)!=null&&u.matchMedia))return;let p={};return a.forEach(e=>{typeof n[e]=="string"?(t[e]=f.matchMedia(n[e]),p[e]=t[e].matches):p[e]=!1}),h(p),a.forEach(e=>{if(typeof n[e]=="string")try{t[e].addEventListener("change",i)}catch(r){t[e].addListener(i)}}),()=>{a.forEach(e=>{var r,s;if(typeof n[e]=="string")try{(r=t[e])==null||r.removeEventListener("change",i)}catch(B){(s=t[e])==null||s.removeListener(i)}})}},[]),y.createElement(C.Provider,{value:l},x)},"BreakpointsProvider");export{C as a,w as b};
@@ -1,38 +0,0 @@
1
- import{a as l}from"./chunk-XNBK5E7D.esm.js";import{a as i}from"./chunk-WTWPQ4EL.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import p from"react";import y from"@tippyjs/react/headless";import c from"styled-components";function u({inverted:r,theme:o}){return r?{"--background":o.colors.grayscale[0],"--color":o.colors.neutral[170]}:{"--background":o.colors.grayscale[80],"--color":o.colors.grayscale[0]}}t(u,"getContainerStyle");var e=c(i)`
2
- position: absolute;
3
- width: 8px;
4
- height: 8px;
5
- z-index: -1;
6
-
7
- &::before {
8
- content: '';
9
- transform: rotate(45deg);
10
- background: var(--background);
11
- position: absolute;
12
- width: 8px;
13
- height: 8px;
14
- z-index: -1;
15
- }
16
- `,s=c(i)`
17
- ${u}
18
-
19
- color: var(--color);
20
- background-color: var(--background);
21
- line-height: 1;
22
-
23
- &[data-placement^='top'] > ${e} {
24
- bottom: -3px;
25
- }
26
-
27
- &[data-placement^='bottom'] > ${e} {
28
- top: -3px;
29
- }
30
-
31
- &[data-placement^='left'] > ${e} {
32
- right: -4px;
33
- }
34
-
35
- &[data-placement^='right'] > ${e} {
36
- left: -4px;
37
- }
38
- `;var d=t((r,o)=>typeof r=="string"?p.createElement(l,{...o},r):r,"getElement"),m=t(({children:r,position:o="top",content:f,inverted:x,noArrow:T,onDismiss:n,...a})=>{if(a.visible&&typeof n=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');return p.createElement(y,{render:t(g=>p.createElement(s,{inverted:x,deep:2,p:"xs",borderRadius:"xs",...g},d(f,{fontSize:"micro",lineHeight:"regular"}),!T&&p.createElement(e,{"data-popper-arrow":""})),"renderTooltip"),placement:o,onClickOutside:n,...a},d(r))},"TooltipComponent");m.displayName="Tooltip";export{e as a,s as b,m as c};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-GZONWSRB.esm.js";import{useEffect as a,useState as d}from"react";import{sha1 as p}from"object-hash";var u=r(({src:s})=>{let e=document,o=p(s),[i,n]=d(!0),c=e.getElementById(o);return a(()=>{if(c)n(!1);else{let t=e.createElement("script");t.async=!0,t.id=o,t.src=s,t.onload=()=>{n(!1)},e.body.appendChild(t)}},[]),{isLoadingScript:i}},"useScript");export{u as a};
@@ -1,136 +0,0 @@
1
- import{a as c}from"./chunk-PZYCW5IZ.esm.js";import{a as B}from"./chunk-WTRTFZV6.esm.js";import{g as H}from"./chunk-L6UB7RUM.esm.js";import{a as F}from"./chunk-E4GPRFIB.esm.js";import{a as s}from"./chunk-UJDBHSL7.esm.js";import{b as z}from"./chunk-SR7ARLZ4.esm.js";import{a as T}from"./chunk-XFQI4QU6.esm.js";import{a as v}from"./chunk-OMBZMCKV.esm.js";import{a}from"./chunk-4Z3FXC7B.esm.js";import{a as L}from"./chunk-CDRLVSLF.esm.js";import{o as $}from"./chunk-LZTZMWTK.esm.js";import{a as k,d as C}from"./chunk-XNBK5E7D.esm.js";import{a as m}from"./chunk-VTRVGJA6.esm.js";import{b as S}from"./chunk-A6Z2M2XU.esm.js";import{d as A}from"./chunk-U27SLYIV.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import t,{useEffect as ne,useState as p}from"react";import Q,{css as d}from"styled-components";function U(e){switch(e){case"Compact":return d`
2
- & ${c} {
3
- padding: ${({theme:n})=>n.spacing("micro")};
4
- }
5
- & ${a}, ${s} {
6
- padding: ${({theme:n})=>n.spacing("micro")};
7
- }
8
- `;case"Expansive":return d`
9
- & ${c} {
10
- padding: ${({theme:n})=>n.spacing("large")};
11
- }
12
- & ${a}, ${s} {
13
- padding: ${({theme:n})=>n.spacing("large")};
14
- }
15
- `;default:return d`
16
- & ${c} {
17
- padding: ${({theme:n})=>n.spacing("medium")};
18
- }
19
- & ${a}, ${s} {
20
- padding: ${({theme:n})=>n.spacing("medium")};
21
- }
22
- `}}r(U,"getSizeStyle");function P(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}r(P,"getAlignDirection");function V(e){if(typeof e=="object"){let n=e.reduce((u,l)=>{let b=`
23
- & ${a}, ${s}, ${c} {
24
- &:nth-child(${l.target}) {
25
- ${m} {
26
- text-align: ${l.direction};
27
- align-items: ${P(l.direction)}
28
- }
29
- }
30
- }
31
- `;return`${u} ${b}`},"");return d`
32
- & ${a}, ${s}, ${c} {
33
- ${m} {
34
- text-align: center;
35
- align-items: ${P("center")};
36
- }
37
- }
38
-
39
- ${n}
40
- `}return e!==void 0?d`
41
- & ${a}, ${s}, ${c} {
42
- ${m} {
43
- text-align: ${e};
44
- align-items: ${P(e)};
45
- }
46
- }
47
- `:d`
48
- & ${a}, ${s}, ${c} {
49
- ${m} {
50
- text-align: center;
51
- align-items: center;
52
- }
53
- }
54
- `}r(V,"getAlignStyle");function X(e){if(e===void 0)return d``;let n=e.map((u,l)=>u&&(u.type===void 0?`
55
- &:nth-child(${l+1}) {
56
- width: ${u.width}px;
57
- }
58
- `:`
59
- &:nth-child(${l+1}) {
60
- ${u.type}-width: ${u.width}px;
61
- }
62
- `));return d`
63
- & ${a}, ${s}, ${c} {
64
- ${n}
65
- }
66
- `}r(X,"getColumnSizeStyle");function Z(){return d`
67
- & ${a}, ${s}, ${c} {
68
- & ${k} {
69
- width: 100px;
70
- white-space: nowrap;
71
- overflow: hidden;
72
- text-overflow: ellipsis;
73
- }
74
- }
75
- `}r(Z,"getEllipsisStyle");function _(e){return e.map(n=>d`
76
- & ${T} {
77
- &:nth-child(${n+1}) {
78
- ${S({bgColor:"neutral.10"})};
79
- }
80
- }
81
- `)}r(_,"getSelectedStyle");var R=`
82
- & ${c} {
83
- position: sticky;
84
- top: 0;
85
- }
86
- `,ee=d`
87
- ${F} {
88
- & ${T} {
89
- &:nth-child(odd) {
90
- ${S({bgColor:"neutral.5"})};
91
- }
92
- }
93
- & ${a}, ${s} {
94
- ${A({borderWidth:"none"})};
95
- }
96
- }
97
- & ${c} {
98
- z-index: 10;
99
- }
100
- `,te=r(e=>`
101
- & ${T}{
102
- &:hover{
103
- & ${a}, ${s}{
104
- &:first-child{
105
- border-left: 1px solid ${e.colors.getColor(e.colors.primary,"base")};
106
- }
107
- border-bottom: 1px solid ${e.colors.getColor(e.colors.neutral[40])};
108
- }}}
109
- }
110
- `,"getHoverableProps"),I=Q.table`
111
- position: relative;
112
- border-collapse: collapse;
113
- display: table;
114
-
115
- width: ${({width:e})=>e||"100%"};
116
-
117
- ${({stickyHeader:e})=>e&&R}
118
-
119
- ${({striped:e})=>e&&ee}
120
-
121
- ${({hoverable:e,theme:n})=>e&&te(n)};
122
-
123
- ${({selected:e})=>_(e)}
124
-
125
- ${({ellipsis:e})=>e?Z():""}
126
-
127
- ${({columnSize:e})=>X(e)}
128
-
129
- ${({align:e})=>V(e)}
130
-
131
- ${({rowSize:e})=>U(e)}
132
-
133
- ${({theme:e})=>e.breakpoints.down("sm")} {
134
- overflow-x: scroll;
135
- }
136
- `;var j=r(e=>{let[n,u]=p(""),[l,b]=p([]),[E,h]=p([]),[M,w]=p("Default"),x=t.createRef();ne(()=>{let i=Array.from(x.current.children);b(i)},[]);let O=t.Children.map(e.children,(i,f)=>f===1?t.cloneElement(i,{ref:x}):i),q=r(i=>{if(i.key==="Enter"){let f=l.map((o,g)=>{let y=x.current.children[g];return n===""&&(y.style.display=""),o.innerText.toLowerCase().includes(n.toLowerCase())||(y.style.display="none"),o});b(f)}},"getFilterData"),K=l.every(i=>i.style.display==="none"),W=l.length,Y=r((i,f)=>{f&&h(o=>[...o,i]),f||h(E.filter(o=>o!==i))},"getSelected"),G=r(i=>(l.forEach((f,o)=>{let g=f.children[0].querySelectorAll("input")[0];return i&&(g.checked=!0,h(y=>[...y,o])),i||(g.checked=!1,h([])),null}),i),"getAllSelected"),J=r(i=>l.map(o=>parseInt(o.children[i].innerText,10)).reduce((o,g)=>o+g,0),"getAddLines"),N=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function D(i){switch(i){case"normal":if(W<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return r(D,"getOverflow"),t.createElement(m,{overflow:D("normal"),overflowY:D("y"),gap:4},t.createElement(m,{flexDirection:"row",justifyContent:"between",alignItems:"center"},e.title&&t.createElement(C,{color:"primary",variant:"h5","aria-hidden":"true"},e.title),t.createElement(m,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2},e.searching&&t.createElement(m,{width:"230px"},t.createElement(H,{placeholder:"Pesquisar",type:"text",value:n,name:"search",onChange:i=>u(i.target.value),onKeyDown:i=>q(i),width:"230",icon:t.createElement($,{name:"edit"}),role:"search"})),e.rowTypes&&t.createElement(v,{options:[{icon:t.createElement($,{name:"menuBars"}),title:"Layout Condensado",action:r(()=>w("Compact"),"action")},{icon:t.createElement($,{name:"menuBars"}),title:"Layout Padr\xE3o",action:r(()=>w("Expansive"),"action")},{icon:t.createElement($,{name:"menuBars"}),title:"Layout Expandido",action:r(()=>w("Default"),"action")}]},t.createElement($,{name:"menuBars",color:"primary"})),e.share&&t.createElement(v,{options:[{icon:t.createElement($,{name:"envelope"}),title:"Enviar por email",action:e.share.email},{icon:t.createElement($,{name:"shareAlt"}),title:"Compartilhar",action:e.share.social}]},t.createElement($,{name:"ellipsisH",color:"primary"})))),N&&t.createElement(B,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage}),t.createElement(I,{stickyHeader:e.stickyHeader,striped:e.striped,rowSize:M||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:E,...e},t.createElement(C,{as:"caption","aria-hidden":"false",hidden:!0},e.title),t.createElement(L.Provider,{value:{ellipsis:e.ellipsis,getSelected:Y,getAllSelected:G,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:J(e.columnSum)}:{index:void 0,sum:void 0}}},O)),K&&t.createElement(z,null))},"TableComponent");export{I as a,j as b};
@@ -1,9 +0,0 @@
1
- import{a as p}from"./chunk-XNBK5E7D.esm.js";import{b as n}from"./chunk-752Z7BQF.esm.js";import{b as m}from"./chunk-W663AGNE.esm.js";import{d as l}from"./chunk-U27SLYIV.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import y from"react";import s from"styled-components";function c(r){return r==="default"?"primary":r==="info"?"information":r}t(c,"getColorVariant");function b(r,o){var a,i;let e=c(o);return{backgroundColor:(a=r.colors[e])==null?void 0:a.light,color:(i=r.colors[e])==null?void 0:i.action}}t(b,"getColor");var f=s(p)`
2
- display: inline;
3
- align-self: flex-start;
4
-
5
- ${n({fontSize:"micro",lineHeight:"close"})}
6
- ${m({px:"small",py:"xs"})}
7
- ${l({borderRadius:"micro"})}
8
- ${({theme:r,variant:o})=>b(r,o)}
9
- `;function u(r){let{variant:o="default",text:e,children:a}=r;return y.createElement(f,{variant:o},a||e)}t(u,"Label");u.displayName="Label";export{f as a,u as b};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-VTRVGJA6.esm.js";import o from"styled-components";var t=o(r).attrs(e=>({p:"medium",borderRadius:"micro",bgColor:"neutral.0",deep:2,...e}))``;export{t as a};
@@ -1 +0,0 @@
1
- import{g as t}from"./chunk-L6UB7RUM.esm.js";import n,{forwardRef as a}from"react";var e=a((p,r)=>n.createElement(t,{type:"date",pattern:"[0-9]{2}-[0-9]{2}-[0-9]{4}",ref:r,...p}));e.displayName="InputDate";export{e as a};
@@ -1,104 +0,0 @@
1
- import{a as l,o as c}from"./chunk-LZTZMWTK.esm.js";import{a as p,b as g}from"./chunk-6KYLIXBS.esm.js";import{a as I}from"./chunk-VTRVGJA6.esm.js";import{b as y}from"./chunk-ELYUJKST.esm.js";import{b as m}from"./chunk-A6Z2M2XU.esm.js";import{b as s}from"./chunk-WAHR5LIT.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import h,{css as a}from"styled-components";function T(){return a`
2
- color: var(--dark-color);
3
- border-color: var(--border-color);
4
-
5
- ${s({deep:-1})}
6
-
7
- &:focus, &:hover {
8
- ${s({deep:0})}
9
- }
10
-
11
- &:focus + ${l} {
12
- color: var(--base-color);
13
- }
14
- `}i(T,"inputVariantStyle");var W=a`
15
- &::placeholder {
16
- color: ${({theme:o})=>o.colors.neutral[70]};
17
- }
18
-
19
- &:disabled {
20
- &::placeholder {
21
- color: var(--disabled-color);
22
- }
23
- }
24
- `,F=a`
25
- &:disabled,
26
- &:read-only {
27
- border: 1px solid var(--disabled-bg);
28
- background-color: var(--disabled-bg);
29
- color: var(--disabled-color);
30
- }
31
- &:read-only {
32
- ${s({deep:0})}
33
- }
34
- `;function A({iconPosition:o}){return o==="left"?a`
35
- & + ${p}, & + ${l} {
36
- left: 1em;
37
- right: unset;
38
- }
39
- `:null}i(A,"invertIconPosition");var B=a`
40
- &:disabled + ${l} {
41
- color: var(--disabled-color);
42
- }
43
-
44
- &:disabled + ${p} {
45
- pointer-events: none;
46
- ${m(()=>({bgColor:"grayscale.10"}))}
47
- }
48
-
49
- & + ${p} {
50
- width: intrinsic;
51
- ${m(()=>({bgColor:"grayscale.40"}))}
52
- }
53
-
54
- & + ${p}, & + ${l} {
55
- color: var(--icon-color);
56
- z-index: 100;
57
- position: absolute;
58
- align-self: center;
59
- right: 1em;
60
-
61
- & > g {
62
- fill: var(--icon-color);
63
- }
64
- }
65
- `,x=h(y.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"grayscale.0",borderWidth:"thin",borderStyle:"solid",px:"small",...o}))`
66
- -webkit-appearance: none;
67
- display: block;
68
-
69
- width: 100%;
70
-
71
- outline: none;
72
- transition: ${({theme:o})=>o.animation.transitions.short};
73
-
74
- ${T}
75
-
76
- ${B};
77
-
78
- ${A};
79
-
80
- ${F};
81
-
82
- ${W};
83
-
84
- &[type='date']::-webkit-calendar-picker-indicator {
85
- position: absolute;
86
- top: 0;
87
- left: 0;
88
- right: 0;
89
- bottom: 0;
90
- width: auto;
91
- height: auto;
92
- opacity: 0;
93
- }
94
-
95
- &[type='number']::-webkit-outer-spin-button,
96
- &[type='number']::-webkit-inner-spin-button {
97
- -webkit-appearance: none;
98
- margin: 0;
99
- }
100
-
101
- &[type='number'] {
102
- -moz-appearance: textfield;
103
- }
104
- `,f=h(I)(({theme:o,variant:r})=>{let t=o.colors.primary;r==="error"?t=o.colors.danger:r==="success"&&(t=o.colors.success);let{base:e,dark:n}=t;return{display:"flex","--base-color":e,"--dark-color":n,"--disabled-bg":o.colors.neutral[10],"--disabled-color":o.colors.neutral[50],"--icon-color":r==="default"?o.colors.neutral[100]:e,"--border-color":r==="default"?o.colors.neutral[40]:e}});f.displayName="input";import S,{forwardRef as D}from"react";import d from"react";var k={expansive:{py:"medium",fontSize:"small",borderRadius:"xs",height:54},medium:{py:"small",fontSize:"small",borderRadius:"xs",height:46},compact:{py:"xs",fontSize:"small",borderRadius:"xs",height:38},micro:{py:"micro",fontSize:"micro",borderRadius:"micro",height:26}};function $({icon:o,variant:r,clearable:t,reset:e,value:n,readOnly:u}){return t&&e&&n&&!u?d.createElement(g,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:e,"data-testid":"input-reset-button",icon:d.createElement(c,{size:"small",color:"grayscale.0",name:"times"})}):o||(r==="error"?d.createElement(c,{name:"times","data-testid":"input-icon-error"}):r==="success"?d.createElement(c,{name:"check","data-testid":"input-icon-success"}):null)}i($,"getIconComponent");var P=D(({value:o="",variant:r="default",iconPosition:t="right",size:e="medium",...n},u)=>{let{disabled:w,width:v,style:H,...C}=n,b=$({...n,value:o,variant:r,size:e,iconPosition:t}),z={...k[e],...b&&{[t==="right"?"pr":"pl"]:"xl"}};return S.createElement(f,{variant:r,width:v,flexDirection:"row"},S.createElement(x,{iconPosition:t,disabled:w,variant:r,value:o,...z,...C,ref:u}),b)});P.displayName="Input";export{T as a,W as b,F as c,A as d,x as e,f,P as g};
@@ -1 +0,0 @@
1
- import{a as V}from"./chunk-XW52MLHU.esm.js";import{b as S}from"./chunk-DEAAQK5J.esm.js";import{e as b}from"./chunk-5XXISYUW.esm.js";import{a as x}from"./chunk-VTRVGJA6.esm.js";import{g as c,n as y}from"./chunk-44EW3LMK.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import h from"styled-components";var v=h(x).attrs({as:"form",width:"100%"})``,T=h(S).attrs({as:"form",width:"100%"})``;import*as I from"yup";function N(r){return r.value||r}t(N,"normalizeValues");function k(r,n,a){let i=y(N,r);a(i,n)}t(k,"prepareSubmit");function C(r){return Object.keys(r).reduce((n,a)=>{let i=r[a].validation||I.string();return{...n,[a]:i}},{})}t(C,"getValidationSchema");var _=t(r=>r,"newField");import p,{forwardRef as z,useEffect as q,useImperativeHandle as L,useState as P}from"react";import A from"fast-deep-equal";import{useFormik as D}from"formik";import*as E from"yup";var J=t((r,n)=>{let{initialValues:a,children:i,submitLabel:R,fields:s,handleSubmit:O,conditionalFields:d,validateOnChange:w,validateOnBlur:g,medias:u,onError:l,...j}=r,Y=C(s),e=D({initialValues:{...a},validateOnBlur:g||!1,validateOnChange:w||!1,validationSchema:E.object().shape(Y),onSubmit:t((o,m)=>k(o,m,O),"onSubmit")});L(n,()=>e);let[F,B]=P(()=>e.errors);q(()=>{l&&!A(F,e.errors)&&(c(e.errors)||l(e.errors),B(e.errors))},[F,e.errors,l]);let G=u?T:v,H=t(()=>typeof i=="undefined"?p.createElement(b,{disabled:e.isSubmitting,type:"submit",text:R||"Enviar",color:"primary",area:"button"}):typeof i=="function"?i(e.values):i,"renderChildren");return p.createElement(G,{medias:u,...j,onSubmit:e.handleSubmit},Object.keys(s).map(o=>{let m=p.createElement(V,{...s[o],key:o,name:o,area:o,value:e.values[o],errors:e.errors[o],setFieldValue:e.setFieldValue}),f=d&&d[o];return f?f(e.values)?m:null:m}),H())},"FormInputComponent"),M=z(J);export{v as a,T as b,N as c,k as d,C as e,_ as f,M as g};
@@ -1,67 +0,0 @@
1
- import{a as oo}from"./chunk-G3IXCOJI.esm.js";import{b as to}from"./chunk-Q3FXXXUX.esm.js";import{a as eo}from"./chunk-Z5OQHLDW.esm.js";import{a as ro,b as no}from"./chunk-DP6AXK72.esm.js";import{a as J}from"./chunk-NQBO2D7L.esm.js";import{a as K}from"./chunk-3DUB5C4Z.esm.js";import{b as X,c as Z}from"./chunk-KT6QQ3UJ.esm.js";import{a as Q}from"./chunk-WZALORLW.esm.js";import{d as ao}from"./chunk-KDYOOGW7.esm.js";import{a as mo,b as co}from"./chunk-6KYLIXBS.esm.js";import{e as fo}from"./chunk-FVRWVTQD.esm.js";import{a as q}from"./chunk-KFFUMDHD.esm.js";import{e as B}from"./chunk-V77X6UJ2.esm.js";import{b as io}from"./chunk-GWCDFVWM.esm.js";import{a as U,d as $}from"./chunk-XNBK5E7D.esm.js";import{a as _}from"./chunk-3HHYBI4E.esm.js";import{a as P}from"./chunk-VTRVGJA6.esm.js";import{a as y,b as S}from"./chunk-WTWPQ4EL.esm.js";import{a as j}from"./chunk-ELYUJKST.esm.js";import{c as u,k as G,l as H}from"./chunk-QUHHEZMP.esm.js";import{a as Y,c as z,k as D,l as O}from"./chunk-44EW3LMK.esm.js";import{d}from"./chunk-V5AWVNU6.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import T from"react";import ut from"@emotion/is-prop-valid";import{StyleSheetManager as gt,ThemeProvider as It}from"styled-components";import vo from"deepmerge";function F(o={}){let{colors:t,breakpoints:e,spacing:n,border:i,font:a}=vo({colors:G,spacing:ro,font:eo,border:K,breakpoints:X},o),m=H(t);return{font:a,border:i,animation:J,colors:m,breakpoints:Z(e),spacing:no(n),depth:to(m),deep:oo(m)}}r(F,"createTheme");import c,{useEffect as Xo,useState as Zo}from"react";import{createPortal as ot}from"react-dom";import{AnimatePresence as tt}from"framer-motion";import b,{css as Qo,keyframes as qo}from"styled-components";import ko from"styled-components";var h=ko(y)(({theme:o,size:t})=>({fontSize:t?o.spacing(t):"inherit",display:"inline-block",lineHeight:0,"& svg":{stroke:"currentColor",fill:"currentColor",strokeWidth:0,"& g":{fill:"currentColor"}}}));import C,{forwardRef as M,useEffect as Ho,useState as jo}from"react";function so(o,t){if(typeof window!="undefined")try{window.fetch(o).then(e=>e.text()).then(e=>D(e,"svg")).then(O).then(t)}catch(e){Y.warn(`[ICON] Failed to load icon from: ${o}`)}}r(so,"getIconFromUrl");var bo=r(({cover:o,height:t,width:e})=>o&&{width:e!=null?e:"100%",height:t!=null?t:"100%",objectFit:"cover"},"imageCover"),lo=r(o=>o?z(o):"fit-content","getSizeValue"),po=j("img")`
2
- display: block;
3
- width: ${({full:o,width:t})=>o?"100%":lo(t)};
4
- height: ${({height:o})=>lo(o)};
5
- ${bo};
6
-
7
- &[src=''] {
8
- visibility: hidden;
9
- position: absolute;
10
- }
11
- `;import p,{forwardRef as zo,useState as Do}from"react";import wo from"styled-components";var uo=wo.rect`
12
- stroke: ${({theme:o})=>u(o.colors.neutral[20])};
13
- fill: ${({theme:o})=>u(o.colors.neutral[5])};
14
- `;import To from"react";function g(o){return To.createElement(uo,{...o})}r(g,"RectComponent");g.displayName="Rect";import Lo from"react";import Eo,{BulletList as $o,Code as Bo,Facebook as Fo,List as Ao}from"react-content-loader";import{useTheme as Mo}from"styled-components";function I({children:o,...t}){let{colors:e}=Mo();return Lo.createElement(Eo,{...t,viewBox:`0 0 ${t.width} ${t.height}`,backgroundColor:u(t.backgroundColor||e.neutral[10]),foregroundColor:u(t.foregroundColor||e.neutral[30])},o)}r(I,"ComposedSkeletonComponent");I.displayName="Skeleton";var Ro=Ao,Wo=$o,Vo=Bo,Yo=Fo;import go from"react";function A({width:o,height:t=13}){return go.createElement(I,{width:o,height:t},go.createElement(g,{x:0,y:0,width:o,height:t}))}r(A,"TextPresetComponent");A.displayName="TextPreset";var N=zo(({src:o,...t},e)=>p.createElement(po,{src:o,ref:e,...t})),Oo=r(({width:o=60,height:t=60})=>p.createElement(I,{height:t,width:o},p.createElement(g,{width:o,height:t})),"ImageDefaultContentLoader");function Go(o){return new Promise((t,e)=>{let n=new Image;n.onload=t,n.onerror=e,n.src=o})}r(Go,"loadImage");var Io=r(({src:o,fallback:t,threshold:e,...n})=>{let[i,a]=Do(),[m]=q({threshold:e},()=>{Go(o).then(()=>a(o)).catch(()=>console.warn(`[Failed]: error on loading image: ${o}`))}),s=typeof i=="undefined";return p.createElement(p.Fragment,null,s?t||p.createElement(Oo,{...n}):null,p.createElement(N,{src:i||"",ref:m,...n}))},"ImageLazy");Io.displayName="ImageLazy";var v=r((o,t)=>C.cloneElement(o,t),"createIcon"),Uo=M(({icon:o,name:t,iconProps:e,svgProps:n,children:i,...a},m)=>{let s=r(()=>{let l=null;return i?l=v(i,n):t?l=v(Q[t],n):o?l=v(o,n):e&&(l=ao(n)),l},"getIcon");return C.createElement(h,{...a,ref:m},s())}),_o=M(({title:o,src:t,svgProps:e,...n},i)=>{let[a,m]=jo(()=>C.createElement(N,{height:"1em",width:"1em",alt:o}));return Ho(()=>{so(t,s=>{m(v(s,e))})},[t]),C.createElement(h,{...n,ref:i},a)}),k=M(({title:o,...t},e)=>{let n={...t.iconProps||{},title:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",height:"1em",width:"1em"};return t.src?C.createElement(_o,{...t,svgProps:n,ref:e}):C.createElement(Uo,{...t,svgProps:n,ref:e})});k.displayName="Icon";var Jo=qo`
15
- 0% { width: 0; }
16
- 100% { width: 100%; }
17
- `,R=b(P)`
18
- --time: 15;
19
-
20
- width: 0;
21
- height: 0.25rem;
22
- background-color: var(--baseColor);
23
- animation: ${Jo} calc(var(--time, 15) * 1s) normal forwards;
24
- `,Co=b(P)`
25
- position: absolute;
26
- top: 0.25rem;
27
- left: 0.5rem;
28
- right: 0.5rem;
29
- `;function Ko({variant:o,theme:t}){let e=t.colors[o];return Qo`
30
- --baseColor: ${e.base};
31
- --lightColor: ${e.light};
32
- --darkColor: ${e.dark};
33
- --activeColor: ${e.active};
34
- --actionColor: ${e.action};
35
-
36
- position: relative;
37
- background-color: var(--lightColor);
38
- border-color: var(--baseColor);
39
-
40
- ${U} {
41
- color: var(--darkColor);
42
- }
43
-
44
- & ${mo} {
45
- width: intrinsic;
46
- color: var(--darkColor);
47
-
48
- &:hover {
49
- background: var(--activeColor);
50
- }
51
-
52
- &:active ${h} {
53
- color: var(--actionColor);
54
- }
55
- }
56
-
57
- &:hover ${R} {
58
- animation-play-state: paused;
59
- }
60
- `}r(Ko,"getWrapperStyle");var W=b(S)(Ko);W.displayName="div";var yo=b(P)`
61
- color: var(--darkColor);
62
-
63
- svg {
64
- width: 2rem;
65
- height: 2rem;
66
- }
67
- `;var ho=r(({type:o="block",variant:t="primary",visible:e=!0,closable:n=!0,autoClose:i=null,message:a=null,action:m=null,icon:s=null,link:l,onDismiss:x,...L})=>{let{isMobile:V}=B(),Po=r(()=>{let E=m;return typeof m=="function"&&(E=m({close:x})),E?c.cloneElement(E,{color:t,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),No=r(()=>typeof a=="function"?a({close:x}):typeof a=="string"?c.createElement($,{text:a,variant:"p",fontSize:"xs"}):a,"renderMessage");return e?c.createElement(W,{p:"medium",pr:9,round:V?0:"xs",borderWidth:V?"none":"thin",borderStyle:"solid",variant:t,"data-testid":`notification-${o}`,...L},i&&c.createElement(Co,null,c.createElement(R,{round:"micro",style:{"--time":i},onAnimationEnd:x})),c.createElement(_,{contentGap:"medium",opener:s&&c.createElement(yo,{pt:"xs",alignSelf:"start"},s),closer:Po()},L.title&&c.createElement($,{text:L.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),No(),l&&c.createElement(fo,{...l,target:"_blank"})),n&&c.createElement(co,{p:"xs",borderWidth:"none",icon:c.createElement(k,{size:"small",name:"times"}),variant:"linked",onClick:x,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})):null},"BaseNotification"),et=r(o=>{let{isMobile:t}=B(),[e,n]=Zo(!1);Xo(()=>{n(!0)},[]);let i=o.pagePosition==="top"?{top:0}:{bottom:0};return!e||!d?null:ot(c.createElement(tt,null,o.visible?c.createElement(ho,{...o,initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0},style:{...i,zIndex:1e3,margin:t?0:"1rem",position:"fixed",right:0,left:0}}):null),d)},"PageNotification"),w=r(o=>o.type==="page"?c.createElement(et,{...o}):c.createElement(ho,{...o}),"NotificationComponent");w.displayName="Notification";import f,{createContext as rt,useContext as nt,useEffect as it,useReducer as at,useState as mt}from"react";import{createPortal as ct}from"react-dom";import{AnimatePresence as ft}from"framer-motion";import{nanoid as st}from"nanoid";var xo=rt({});function lt(o,{type:t,payload:e}){switch(t){case"ADD":return[e,...o];case"REMOVE":return o.filter(n=>n.id!==e.id);default:return o}}r(lt,"NotificationReducer");var So=r(o=>{let[t,e]=at(lt,[]),n=r(a=>{e({type:"REMOVE",payload:{id:a}})},"removeNotification"),i=r(a=>{if(e({type:"ADD",payload:{id:st(),...a}}),t.length>=3){let[m]=t.slice(-1);setTimeout(()=>n(m.id),0)}},"showNotification");return f.createElement(xo.Provider,{value:{notifications:t,removeNotification:n,showNotification:i}},f.createElement(f.Fragment,null,o.children,f.createElement(dt,null)))},"NotificationsProvider");function pt(){let o=nt(xo);if(o===void 0)throw new Error("cant use useNotification hook outside of <NotificationsProvider />");return o}r(pt,"useNotification");var dt=r(()=>{let{notifications:o,removeNotification:t}=pt(),[e,n]=mt(!1);return it(()=>{n(!0)},[]),!e||!d?null:ct(f.createElement(y,{style:{position:"fixed",bottom:"1rem",right:"1rem"}},f.createElement(ft,null,o.map(({id:i,...a})=>f.createElement(S,{key:i,initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{scale:0,opacity:0,height:0},style:{minWidth:300,maxWidth:"30vw",zIndex:100}},f.createElement(y,{style:{margin:"0.5rem"}},f.createElement(w,{...a,visible:!0,closable:!0,onDismiss:()=>t(i)})))))),d)},"NotificationGroup");function Ct(o,t){return typeof t=="string"?ut(o):!0}r(Ct,"shouldForwardProp");var yt=r(({children:o,theme:t=F()})=>T.createElement(gt,{shouldForwardProp:Ct},T.createElement(It,{theme:t},T.createElement(io,null,T.createElement(So,null,o)))),"ApollionProvider");export{h as a,po as b,F as c,yt as d,uo as e,g as f,I as g,Ro as h,Wo as i,Vo as j,Yo as k,A as l,N as m,Io as n,k as o,R as p,Co as q,W as r,yo as s,w as t,So as u,pt as v,dt as w};