@apollion-dsi/core 7.4.0 → 7.5.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 (255) hide show
  1. package/lib/chunks/Dropdown.floating-BZADQ5AX.esm.js +1 -0
  2. package/lib/chunks/Notification.group-BC3U4UX6.esm.js +1 -0
  3. package/lib/chunks/Tooltip.floating-LDFMVRIA.esm.js +1 -0
  4. package/lib/chunks/{chunk-76VCAI6X.esm.js → chunk-2BWCWW2Q.esm.js} +1 -1
  5. package/lib/chunks/{chunk-66KNGOWM.esm.js → chunk-3PLVWHLK.esm.js} +1 -1
  6. package/lib/chunks/{chunk-ORJ6YPNR.esm.js → chunk-3VZTMO2Z.esm.js} +1 -1
  7. package/lib/chunks/{chunk-3CKHLCIB.esm.js → chunk-3WXII2F3.esm.js} +1 -1
  8. package/lib/chunks/{chunk-AJ7JAO2E.esm.js → chunk-46CG3ZZX.esm.js} +1 -1
  9. package/lib/chunks/chunk-4KW43QHY.esm.js +1 -0
  10. package/lib/chunks/{chunk-EX5BLQCC.esm.js → chunk-4MZWYLJH.esm.js} +1 -1
  11. package/lib/chunks/{chunk-DCIALXT7.esm.js → chunk-52O36B6T.esm.js} +1 -1
  12. package/lib/chunks/chunk-5PLSFFP6.esm.js +1 -0
  13. package/lib/chunks/chunk-7PHMFL32.esm.js +1 -0
  14. package/lib/chunks/chunk-A4QGVHIH.esm.js +1 -0
  15. package/lib/chunks/chunk-A77KMXEI.esm.js +5 -0
  16. package/lib/chunks/{chunk-25A3FLAS.esm.js → chunk-A7STAO6C.esm.js} +1 -1
  17. package/lib/chunks/{chunk-W2QR36MB.esm.js → chunk-AAZFRX52.esm.js} +1 -1
  18. package/lib/chunks/{chunk-RCBLISG5.esm.js → chunk-ATYYPKUP.esm.js} +1 -1
  19. package/lib/chunks/{chunk-DUCEY62P.esm.js → chunk-BKMH5ZKN.esm.js} +1 -1
  20. package/lib/chunks/{chunk-CAL43X4O.esm.js → chunk-BZNSA3AA.esm.js} +1 -1
  21. package/lib/chunks/{chunk-WBRRRDIA.esm.js → chunk-C7U4X56I.esm.js} +1 -1
  22. package/lib/chunks/chunk-CPQPRAAV.esm.js +1 -0
  23. package/lib/chunks/chunk-DA65U576.esm.js +1 -0
  24. package/lib/chunks/chunk-DXCL3MVA.esm.js +30 -0
  25. package/lib/chunks/{chunk-4DW5H7JW.esm.js → chunk-DYLFA33G.esm.js} +1 -1
  26. package/lib/chunks/{chunk-H7FLNZDA.esm.js → chunk-EJ245MA7.esm.js} +1 -1
  27. package/lib/chunks/{chunk-PJX5WGQP.esm.js → chunk-EYAGAJRL.esm.js} +1 -1
  28. package/lib/chunks/chunk-F3SAEVZJ.esm.js +1 -0
  29. package/lib/chunks/{chunk-UU62HUHC.esm.js → chunk-FNYS25ZX.esm.js} +1 -1
  30. package/lib/chunks/chunk-FUVFPMSI.esm.js +39 -0
  31. package/lib/chunks/{chunk-I3SLGOSW.esm.js → chunk-G5L6INCM.esm.js} +1 -1
  32. package/lib/chunks/{chunk-LWX5K4ZB.esm.js → chunk-GAQ3CPOM.esm.js} +1 -1
  33. package/lib/chunks/{chunk-5V3QEYAS.esm.js → chunk-GQZGW3EG.esm.js} +1 -1
  34. package/lib/chunks/chunk-GXGV64D2.esm.js +9 -0
  35. package/lib/chunks/{chunk-M7LEQKER.esm.js → chunk-H5EZPFXA.esm.js} +1 -1
  36. package/lib/chunks/chunk-HTYWYOZQ.esm.js +1 -0
  37. package/lib/chunks/{chunk-WB65GPFO.esm.js → chunk-IFSAA4OC.esm.js} +1 -1
  38. package/lib/chunks/{chunk-ERQXQRK3.esm.js → chunk-IQQH6HMG.esm.js} +1 -1
  39. package/lib/chunks/chunk-ITSDQBLF.esm.js +1 -0
  40. package/lib/chunks/chunk-IZHCHFTU.esm.js +1 -0
  41. package/lib/chunks/{chunk-6O6KKD7F.esm.js → chunk-J4VMAQM3.esm.js} +5 -5
  42. package/lib/chunks/{chunk-ZLURBVJC.esm.js → chunk-JNV3RCLH.esm.js} +1 -1
  43. package/lib/chunks/{chunk-O3XQX2DB.esm.js → chunk-JVFVXNCA.esm.js} +1 -1
  44. package/lib/chunks/{chunk-AIT3ZFAZ.esm.js → chunk-JVJJNNK3.esm.js} +1 -1
  45. package/lib/chunks/{chunk-TBHGVERY.esm.js → chunk-JWNC52FT.esm.js} +1 -1
  46. package/lib/chunks/{chunk-YYRMAERR.esm.js → chunk-JYFJX4EO.esm.js} +1 -1
  47. package/lib/chunks/{chunk-EJ7K3DWH.esm.js → chunk-KE4YU2FM.esm.js} +1 -1
  48. package/lib/chunks/chunk-KITEZ7OW.esm.js +1 -0
  49. package/lib/chunks/chunk-KW62FBMI.esm.js +1 -0
  50. package/lib/chunks/chunk-KXRGSB6P.esm.js +1 -0
  51. package/lib/chunks/{chunk-QW5DJCRR.esm.js → chunk-LA7VVT23.esm.js} +1 -1
  52. package/lib/chunks/{chunk-ITRAQ6Q2.esm.js → chunk-LDOM2UUN.esm.js} +1 -1
  53. package/lib/chunks/chunk-LN65BGR5.esm.js +1 -0
  54. package/lib/chunks/{chunk-XCA2HUTU.esm.js → chunk-M4EIGJZZ.esm.js} +1 -1
  55. package/lib/chunks/{chunk-ZYQJYJIC.esm.js → chunk-MKGWYKH6.esm.js} +1 -1
  56. package/lib/chunks/{chunk-F3PGPFO5.esm.js → chunk-MTJOR4UX.esm.js} +1 -1
  57. package/lib/chunks/{chunk-XBPV4MKV.esm.js → chunk-MYU2IAR3.esm.js} +1 -1
  58. package/lib/chunks/{chunk-27BUTGEI.esm.js → chunk-NGCCXGDN.esm.js} +1 -1
  59. package/lib/chunks/{chunk-F4JJQGPH.esm.js → chunk-O5TS2XER.esm.js} +1 -1
  60. package/lib/chunks/{chunk-OCOVNG7J.esm.js → chunk-OC7CKHRF.esm.js} +1 -1
  61. package/lib/chunks/{chunk-6RVYBZSW.esm.js → chunk-ODL5JUYM.esm.js} +1 -1
  62. package/lib/chunks/chunk-OOYR6EZR.esm.js +1 -0
  63. package/lib/chunks/{chunk-4D6MGQNS.esm.js → chunk-P3XOIBAC.esm.js} +1 -1
  64. package/lib/chunks/{chunk-FKMOI3V2.esm.js → chunk-PB7O2NHF.esm.js} +1 -1
  65. package/lib/chunks/{chunk-VZICXIVQ.esm.js → chunk-PCLKWRMD.esm.js} +1 -1
  66. package/lib/chunks/{chunk-XU2XD26O.esm.js → chunk-PRQOVSM6.esm.js} +4 -4
  67. package/lib/chunks/{chunk-OUNXOMM6.esm.js → chunk-Q3XFSLPE.esm.js} +1 -1
  68. package/lib/chunks/chunk-QXV2TDLZ.esm.js +1 -0
  69. package/lib/chunks/chunk-REPFMEFA.esm.js +1 -0
  70. package/lib/chunks/{chunk-VIFWWZ3H.esm.js → chunk-SPN5664Z.esm.js} +1 -1
  71. package/lib/chunks/chunk-TF3JNXQO.esm.js +1 -0
  72. package/lib/chunks/{chunk-IRI77QBK.esm.js → chunk-TWZWNWBQ.esm.js} +1 -1
  73. package/lib/chunks/chunk-U3GZABRG.esm.js +1 -0
  74. package/lib/chunks/{chunk-LZEBVXWL.esm.js → chunk-UAXSZ3UE.esm.js} +1 -1
  75. package/lib/chunks/{chunk-7DO5M7YG.esm.js → chunk-V2GA7W66.esm.js} +1 -1
  76. package/lib/chunks/{chunk-TNKYQI5Z.esm.js → chunk-VFCCRDG4.esm.js} +1 -1
  77. package/lib/chunks/chunk-VFM3QFOU.esm.js +4 -0
  78. package/lib/chunks/{chunk-AZXLTCJK.esm.js → chunk-VJ5GIFXO.esm.js} +1 -1
  79. package/lib/chunks/chunk-VR23WM3F.esm.js +1 -0
  80. package/lib/chunks/chunk-VYHY4SSS.esm.js +1 -0
  81. package/lib/chunks/{chunk-B6OC4RV2.esm.js → chunk-W4NSHFN4.esm.js} +1 -1
  82. package/lib/chunks/chunk-WCJC5AG7.esm.js +1 -0
  83. package/lib/chunks/{chunk-EF3LT3PN.esm.js → chunk-WDGATQZG.esm.js} +1 -1
  84. package/lib/chunks/{chunk-BUT67NEF.esm.js → chunk-X62RTM6B.esm.js} +1 -1
  85. package/lib/chunks/chunk-XKACWIWC.esm.js +1 -0
  86. package/lib/chunks/{chunk-3OILM5EQ.esm.js → chunk-XSULIEOF.esm.js} +1 -1
  87. package/lib/chunks/chunk-YBKS2HAY.esm.js +1 -0
  88. package/lib/chunks/chunk-Z23O3NNN.esm.js +1 -0
  89. package/lib/chunks/{chunk-YKWTGDHO.esm.js → chunk-ZDB7ECI3.esm.js} +1 -1
  90. package/lib/chunks/{chunk-PUTYJU2Z.esm.js → chunk-ZJT2WQTR.esm.js} +1 -1
  91. package/lib/containers/Base/index.esm.js +1 -1
  92. package/lib/containers/Box/index.esm.js +1 -1
  93. package/lib/containers/Card/Card.style.d.ts +16 -8
  94. package/lib/containers/Card/index.esm.js +1 -1
  95. package/lib/containers/Content/Content.interface.d.ts +7 -1
  96. package/lib/containers/Content/index.esm.js +1 -1
  97. package/lib/containers/Flex/Flex.interface.d.ts +10 -0
  98. package/lib/containers/Flex/Flex.style.d.ts +9 -4
  99. package/lib/containers/Flex/index.esm.js +1 -1
  100. package/lib/containers/Grid/index.esm.js +1 -1
  101. package/lib/containers/Notification/Notification.style.d.ts +32 -16
  102. package/lib/containers/Notification/index.esm.js +1 -1
  103. package/lib/containers/Paper/index.esm.js +1 -1
  104. package/lib/containers/Scroll/index.esm.js +1 -1
  105. package/lib/containers/index.esm.js +1 -1
  106. package/lib/dataDisplay/Accordion/index.esm.js +1 -1
  107. package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +8 -0
  108. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  109. package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +7 -1
  110. package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
  111. package/lib/dataDisplay/Meter/Meter.style.d.ts +16 -8
  112. package/lib/dataDisplay/Meter/index.esm.js +1 -1
  113. package/lib/dataDisplay/Steps/Steps.interface.d.ts +7 -0
  114. package/lib/dataDisplay/Steps/Steps.style.d.ts +48 -24
  115. package/lib/dataDisplay/Steps/index.esm.js +1 -1
  116. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  117. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  118. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  119. package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +34 -18
  120. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  121. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  122. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  123. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  124. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  125. package/lib/dataDisplay/Table/index.esm.js +1 -1
  126. package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +7 -1
  127. package/lib/dataDisplay/Tabs/Tabs.style.d.ts +80 -40
  128. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  129. package/lib/dataDisplay/index.esm.js +1 -1
  130. package/lib/elements/Avatar/index.esm.js +1 -1
  131. package/lib/elements/Button/Button.style.d.ts +16 -8
  132. package/lib/elements/Button/index.esm.js +1 -1
  133. package/lib/elements/Calendar/index.esm.js +1 -1
  134. package/lib/elements/Divider/Divider.style.d.ts +16 -8
  135. package/lib/elements/Divider/index.esm.js +1 -1
  136. package/lib/elements/Dropdown/index.esm.js +1 -1
  137. package/lib/elements/Icon/index.esm.js +1 -1
  138. package/lib/elements/IconButton/IconButton.style.d.ts +64 -32
  139. package/lib/elements/IconButton/index.esm.js +1 -1
  140. package/lib/elements/IconText/index.esm.js +1 -1
  141. package/lib/elements/Image/index.esm.js +1 -1
  142. package/lib/elements/Label/index.esm.js +1 -1
  143. package/lib/elements/Link/index.esm.js +1 -1
  144. package/lib/elements/List/List.style.d.ts +16 -8
  145. package/lib/elements/List/index.esm.js +1 -1
  146. package/lib/elements/Modal/Modal.interface.d.ts +5 -1
  147. package/lib/elements/Modal/Modal.style.d.ts +34 -18
  148. package/lib/elements/Modal/index.esm.js +1 -1
  149. package/lib/elements/Popover/index.esm.js +1 -1
  150. package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +2 -2
  151. package/lib/elements/ProgressBar/ProgressBar.style.d.ts +16 -8
  152. package/lib/elements/ProgressBar/index.esm.js +1 -1
  153. package/lib/elements/Sheet/Sheet.style.d.ts +34 -18
  154. package/lib/elements/Sheet/index.esm.js +1 -1
  155. package/lib/elements/Spinner/Spinner.style.d.ts +2 -3
  156. package/lib/elements/Spinner/index.esm.js +1 -1
  157. package/lib/elements/Svg/Svg.style.d.ts +6 -4
  158. package/lib/elements/Svg/index.esm.js +1 -1
  159. package/lib/elements/Text/index.esm.js +1 -1
  160. package/lib/elements/Tooltip/index.esm.js +1 -1
  161. package/lib/elements/index.esm.js +1 -1
  162. package/lib/factory/BackgroundFactory/index.esm.js +1 -1
  163. package/lib/factory/ColorFactory/index.esm.js +1 -1
  164. package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
  165. package/lib/factory/DeepFactory/index.esm.js +1 -1
  166. package/lib/factory/FlexFactory/FlexFactory.d.ts +7 -2
  167. package/lib/factory/FlexFactory/index.esm.js +1 -1
  168. package/lib/factory/PlacementFactory/index.esm.js +1 -1
  169. package/lib/factory/ResponsiveFactory/ResponsiveFactory.channel.d.ts +14 -0
  170. package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +1 -1
  171. package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
  172. package/lib/factory/System/index.esm.js +1 -1
  173. package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
  174. package/lib/factory/index.esm.js +1 -1
  175. package/lib/form/Checkbox/Checkbox.style.d.ts +34 -18
  176. package/lib/form/Checkbox/index.esm.js +1 -1
  177. package/lib/form/Field/Field.style.d.ts +16 -8
  178. package/lib/form/Field/index.esm.js +1 -1
  179. package/lib/form/FieldGroup/index.esm.js +1 -1
  180. package/lib/form/Form/Form.style.d.ts +16 -8
  181. package/lib/form/Form/index.esm.js +1 -1
  182. package/lib/form/Input/Input.style.d.ts +16 -8
  183. package/lib/form/Input/index.esm.js +1 -1
  184. package/lib/form/InputCurrency/InputCurrency.style.d.ts +16 -8
  185. package/lib/form/InputCurrency/index.esm.js +1 -1
  186. package/lib/form/InputDate/index.esm.js +1 -1
  187. package/lib/form/InputMask/index.esm.js +1 -1
  188. package/lib/form/InputRange/index.esm.js +1 -1
  189. package/lib/form/InputSelect/index.esm.js +1 -1
  190. package/lib/form/Option/Option.style.d.ts +16 -8
  191. package/lib/form/Option/index.esm.js +1 -1
  192. package/lib/form/Radio/index.esm.js +1 -1
  193. package/lib/form/Select/index.esm.js +1 -1
  194. package/lib/form/Switch/Switch.style.d.ts +1 -2
  195. package/lib/form/Switch/index.esm.js +1 -1
  196. package/lib/form/TextArea/TextArea.style.d.ts +16 -8
  197. package/lib/form/TextArea/index.esm.js +1 -1
  198. package/lib/form/UploadCard/UploadCard.interface.d.ts +8 -0
  199. package/lib/form/UploadCard/UploadCard.style.d.ts +16 -8
  200. package/lib/form/UploadCard/index.esm.js +1 -1
  201. package/lib/form/index.esm.js +1 -1
  202. package/lib/index.d.ts +1 -1
  203. package/lib/index.esm.js +1 -1
  204. package/lib/index.js +1 -1
  205. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  206. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  207. package/lib/layouts/index.esm.js +1 -1
  208. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  209. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  210. package/lib/skeleton/index.esm.js +1 -1
  211. package/lib/themes/Colors/Colors.helpers.d.ts +42 -10
  212. package/lib/themes/Colors/index.esm.js +1 -1
  213. package/lib/themes/Deep/index.esm.js +1 -1
  214. package/lib/themes/Depth/index.esm.js +1 -1
  215. package/lib/themes/GlobalStyle/GlobalStyle.forcedColors.d.ts +8 -0
  216. package/lib/themes/GlobalStyle/GlobalStyle.helpers.d.ts +0 -8
  217. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  218. package/lib/themes/Ground/index.esm.js +1 -1
  219. package/lib/themes/Semantic/index.esm.js +1 -1
  220. package/lib/themes/Surface/index.esm.js +1 -1
  221. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  222. package/lib/themes/index.esm.js +1 -1
  223. package/package.json +9 -5
  224. package/lib/chunks/Dropdown.floating-4F6FTG44.esm.js +0 -1
  225. package/lib/chunks/Notification.group-CQZ3M4FD.esm.js +0 -1
  226. package/lib/chunks/Tooltip.floating-FNRDGVZA.esm.js +0 -1
  227. package/lib/chunks/chunk-2TQTHAFO.esm.js +0 -1
  228. package/lib/chunks/chunk-3A7CFAN2.esm.js +0 -1
  229. package/lib/chunks/chunk-3HLIX4CZ.esm.js +0 -1
  230. package/lib/chunks/chunk-56PN4PGS.esm.js +0 -1
  231. package/lib/chunks/chunk-5JB5IV5W.esm.js +0 -1
  232. package/lib/chunks/chunk-6HQICTWR.esm.js +0 -1
  233. package/lib/chunks/chunk-AIIBSKW7.esm.js +0 -1
  234. package/lib/chunks/chunk-EIISM5F6.esm.js +0 -1
  235. package/lib/chunks/chunk-EWFZ5Y47.esm.js +0 -1
  236. package/lib/chunks/chunk-F5TUC4YS.esm.js +0 -39
  237. package/lib/chunks/chunk-FAWI4OCG.esm.js +0 -1
  238. package/lib/chunks/chunk-HLFGUNIS.esm.js +0 -1
  239. package/lib/chunks/chunk-IW7XVGH3.esm.js +0 -1
  240. package/lib/chunks/chunk-IXLTHMIQ.esm.js +0 -1
  241. package/lib/chunks/chunk-K6S7ZGCD.esm.js +0 -1
  242. package/lib/chunks/chunk-LDGYJOVP.esm.js +0 -5
  243. package/lib/chunks/chunk-MFYH5ECV.esm.js +0 -9
  244. package/lib/chunks/chunk-PBYT3TNP.esm.js +0 -1
  245. package/lib/chunks/chunk-QMB5TYEI.esm.js +0 -1
  246. package/lib/chunks/chunk-SFWLFQTS.esm.js +0 -1
  247. package/lib/chunks/chunk-VKOURTRN.esm.js +0 -4
  248. package/lib/chunks/chunk-VLUHVGID.esm.js +0 -1
  249. package/lib/chunks/chunk-VLWBOXKC.esm.js +0 -1
  250. package/lib/chunks/chunk-XAZ7GAG6.esm.js +0 -1
  251. package/lib/chunks/chunk-XEGNBICC.esm.js +0 -33
  252. package/lib/chunks/chunk-XTY6DXMK.esm.js +0 -1
  253. package/lib/chunks/chunk-Y33MAO4J.esm.js +0 -1
  254. package/lib/chunks/chunk-ZUSD6565.esm.js +0 -1
  255. package/lib/chunks/chunk-ZXGZNZQN.esm.js +0 -1
@@ -189,17 +189,40 @@ export interface ReadableTextLayer {
189
189
  * @see readableColor · ADR-010 §12 · docs/plans/plano-contraste-nativo-brasil2030.md (G2)
190
190
  */
191
191
  export declare function createReadableTextLayer(colors: ThemeColorsType, { surface, minRatio }?: ReadableTextLayerOptions): ReadableTextLayer;
192
+ /**
193
+ * `true` when the Neutral ramp runs dark → light — its `0` end is darker than
194
+ * its `170` anchor. {@link mountNeutralColors} mixes the anchor toward
195
+ * `deepLight`, so the canonical swap (`toDarkColors`, ADR-010) inverts the
196
+ * ramp: in the engine's dark theme low indices sit near black and `170` is a
197
+ * light tint. A hand-built dark theme that keeps `deepLight` light keeps the
198
+ * light-first ramp.
199
+ */
200
+ export declare function isInvertedNeutralRamp(neutral?: Partial<Record<NeutralColorsType, string>>): boolean;
201
+ /**
202
+ * Which structural index spec applies: the surface polarity (`isDarkSurface`
203
+ * over `baseLight`) crossed with the ramp orientation. Choosing by the surface
204
+ * alone inverted the engine's already-inverted dark ramp a second time and
205
+ * painted `disabled`/`muted` with its light `170` tint (visual audit
206
+ * 2026-09-29, dark axis re-baseline).
207
+ */
208
+ export type NeutralSpecKey = 'light' | 'dark' | 'inverted';
209
+ /** Resolves the {@link NeutralSpecKey} for a theme's anchors + Neutral ramp. */
210
+ export declare function neutralSpecKey(colors: ThemeColorsType): NeutralSpecKey;
192
211
  /**
193
212
  * {@link NeutralColorsType} ramp indices used for `:disabled`.
194
213
  *
195
214
  * No derived token: disabled **is** a point on the Neutral scale, chosen by
196
- * the surface mode (`isDarkSurface` over `baseLight`).
215
+ * {@link neutralSpecKey}.
197
216
  *
198
- * - **fill** — light `10` (muted on the light card); dark `170` (inverted
199
- * polarity — does not collapse into the inverted `deepLight` / Fanático bug).
217
+ * - **fill** — `light`: `10` (muted on the light card). `dark` (dark surface,
218
+ * light-first ramp): `170` — does not collapse into the inverted `deepLight`
219
+ * (Fanático bug). `inverted` (the engine's dark, `toDarkColors`): `60` — one
220
+ * step above the dark `paper` (`50` matches its lightness, lower steps sink
221
+ * into the canvas); mirrors light `10` one step below `paper`.
200
222
  * - **color** — candidates on the same ramp, first one that passes AA (≥ 4.5)
201
223
  * against the fill. Preferred order documented below; the walk covers
202
- * gray-anchored themes where the nominal pair (`140` / `80`) fails.
224
+ * gray-anchored themes where the nominal pair fails. The inverted ramp keeps
225
+ * its ink on the high indices, so it walks the light list.
203
226
  *
204
227
  * @see resolveDisabledNeutral · APOLLION-DISABLED-CONTRAST
205
228
  */
@@ -212,14 +235,18 @@ export declare const DISABLED_NEUTRAL_INDICES: {
212
235
  readonly fill: 170;
213
236
  readonly colorCandidates: readonly [80, 70, 60, 50, 40, 30, 20, 10, 90, 100];
214
237
  };
238
+ readonly inverted: {
239
+ readonly fill: 60;
240
+ readonly colorCandidates: readonly [140, 150, 160, 170, 180, 130, 120];
241
+ };
215
242
  };
216
243
  /**
217
244
  * Mode-aware structural indices for the **muted** fill (rail / chip / soft bg).
218
245
  *
219
- * Light keeps the historical `neutral.10`; dark inverts polarity (`170`) so it
220
- * does not collapse into the inverted `deepLight`. Borders and placeholders
221
- * stay on the direct Neutral ramp (`neutral.40` / `neutral.70`) — Apollion does
222
- * not invent a `border`/`placeholder` channel.
246
+ * Same fill as {@link DISABLED_NEUTRAL_INDICES} per {@link neutralSpecKey}:
247
+ * light `10`, hand-built dark `170`, engine dark (inverted ramp) `60`. Borders
248
+ * and placeholders stay on the direct Neutral ramp (`neutral.40` /
249
+ * `neutral.70`) — Apollion does not invent a `border`/`placeholder` channel.
223
250
  *
224
251
  * @see resolveStructuralNeutrals · APOLLION-STRUCTURAL-NEUTRAL
225
252
  */
@@ -230,12 +257,17 @@ export declare const STRUCTURAL_NEUTRAL_INDICES: {
230
257
  readonly dark: {
231
258
  readonly muted: 170;
232
259
  };
260
+ readonly inverted: {
261
+ readonly muted: 60;
262
+ };
233
263
  };
234
264
  /**
235
265
  * The `:disabled` fill+color pair read **only** from the theme's Neutral ramp.
236
266
  *
237
- * Assembled once in {@link createColors} → `theme.colors.disabled`.
238
- * Styled-components consume the pair; they do not recompute per render.
267
+ * Assembled once in {@link createColors} → `theme.colors.disabled`, per theme:
268
+ * the provider builds it on the light and the dark table and the mode bridge
269
+ * pairs the two (`light-dark()`, ADR-024). Styled-components consume the pair;
270
+ * they do not recompute per render.
239
271
  */
240
272
  export declare function resolveDisabledNeutral(colors: ThemeColorsType): {
241
273
  fill: string;
@@ -1 +1 @@
1
- import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _}from"../../chunks/chunk-XBPV4MKV.esm.js";import{a as G,b as H,c as I,d as J,e as K,f as L,g as M,h as N,i as O,j as P,k as Q,l as R,m as S}from"../../chunks/chunk-AZXLTCJK.esm.js";import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{I as DARK_BOOST_TAPER_MAX_L,H as DARK_ELEVATION_BOOST,n as DISABLED_NEUTRAL_INDICES,N as EDGE_ALPHA,K as HALATION_FLOORS,d as HextoRgb,M as INK_APCA_MIN,L as INK_MIX,G as LADDER_DELTAS,f as MIN_CONTRAST_AA,t as MIN_STATE_CONTRAST,l as NEUTRAL_TEXT_INDICES,X as OKABE_ITO,r as QUIET_NEUTRAL_INDICES,k as READABLE_TEXT_PALETTES,u as STATE_DELTA_L_JND,o as STRUCTURAL_NEUTRAL_INDICES,O as WASH_ALPHA,_ as accessibilityPalettes,b as apcaContrast,a as apcaLuminance,y as clampLightness,Y as colorblindPalette,g as contrastRatio,U as createColors,m as createReadableTextLayer,J as darkElevationBoostFactor,T as defaultInputColors,i as getColor,j as getContrastColor,e as getOppositeColor,V as grayscalePalette,W as highContrastPalette,w as isDarkSurface,c as mixOklch,E as mountActionColors,D as mountBaseColors,B as mountGreyscaleColors,F as mountMainColors,C as mountNeutralColors,A as mountSingleColor,v as oklchLightness,Q as oppositePolarity,h as readableColor,p as resolveDisabledNeutral,S as resolveOppositeLadder,P as resolvePolarity,s as resolveQuietPalette,q as resolveStructuralNeutrals,R as resolveSurfaceLadder,x as shiftLightness,Z as toDarkColors,z as toRgbaString};
1
+ import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $,h as aa}from"../../chunks/chunk-MYU2IAR3.esm.js";import{a as I,b as J,c as K,d as L,e as M,f as N,g as O,h as P,i as Q,j as R,k as S,l as T,m as U}from"../../chunks/chunk-VJ5GIFXO.esm.js";import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,I as G,J as H,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{K as DARK_BOOST_TAPER_MAX_L,J as DARK_ELEVATION_BOOST,p as DISABLED_NEUTRAL_INDICES,P as EDGE_ALPHA,M as HALATION_FLOORS,d as HextoRgb,O as INK_APCA_MIN,N as INK_MIX,I as LADDER_DELTAS,f as MIN_CONTRAST_AA,v as MIN_STATE_CONTRAST,l as NEUTRAL_TEXT_INDICES,Z as OKABE_ITO,t as QUIET_NEUTRAL_INDICES,k as READABLE_TEXT_PALETTES,w as STATE_DELTA_L_JND,q as STRUCTURAL_NEUTRAL_INDICES,Q as WASH_ALPHA,aa as accessibilityPalettes,b as apcaContrast,a as apcaLuminance,A as clampLightness,_ as colorblindPalette,g as contrastRatio,W as createColors,m as createReadableTextLayer,L as darkElevationBoostFactor,V as defaultInputColors,i as getColor,j as getContrastColor,e as getOppositeColor,X as grayscalePalette,Y as highContrastPalette,y as isDarkSurface,n as isInvertedNeutralRamp,c as mixOklch,G as mountActionColors,F as mountBaseColors,D as mountGreyscaleColors,H as mountMainColors,E as mountNeutralColors,C as mountSingleColor,o as neutralSpecKey,x as oklchLightness,S as oppositePolarity,h as readableColor,r as resolveDisabledNeutral,U as resolveOppositeLadder,R as resolvePolarity,u as resolveQuietPalette,s as resolveStructuralNeutrals,T as resolveSurfaceLadder,z as shiftLightness,$ as toDarkColors,B as toRgbaString};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk-ITRAQ6Q2.esm.js";import"../../chunks/chunk-XBPV4MKV.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createDeepTheme};
1
+ import{a}from"../../chunks/chunk-LDOM2UUN.esm.js";import"../../chunks/chunk-MYU2IAR3.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createDeepTheme};
@@ -1 +1 @@
1
- import"../../chunks/chunk-Z7GJDO5T.esm.js";import{a,b,c}from"../../chunks/chunk-UU62HUHC.esm.js";import"../../chunks/chunk-XBPV4MKV.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as DEPTH_SHADOW,c as createDeth,a as levelValues};
1
+ import"../../chunks/chunk-Z7GJDO5T.esm.js";import{a,b,c}from"../../chunks/chunk-FNYS25ZX.esm.js";import"../../chunks/chunk-MYU2IAR3.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as DEPTH_SHADOW,c as createDeth,a as levelValues};
@@ -0,0 +1,8 @@
1
+ import { RuleSet } from '../../vendors/StyledComponents';
2
+ /**
3
+ * `&`-scoped sibling of `forcedColorsFocusCss` (`GlobalStyle.helpers`) for a component whose own
4
+ * `outline` reset outranks the global rule (`Button`, `Input`, `TextArea`).
5
+ * Not needed where the control already draws a `:focus-visible` outline:
6
+ * forced-colors mode keeps it and only forces its color.
7
+ */
8
+ export declare function forcedColorsFocusRestoreCss(outlineOffset?: string): RuleSet<object>;
@@ -1,4 +1,3 @@
1
- import { RuleSet } from '../../vendors/StyledComponents';
2
1
  /**
3
2
  * Cascade layer holding the reset (normalize + box-sizing inheritance). Any
4
3
  * unlayered CSS beats a layered rule regardless of specificity.
@@ -13,10 +12,3 @@ export declare const RESET_LAYER = "apollion.reset";
13
12
  * `GlobalStyle` as a page-wide baseline.
14
13
  */
15
14
  export declare function forcedColorsFocusCss(): string;
16
- /**
17
- * `&`-scoped sibling of {@link forcedColorsFocusCss} for a component whose own
18
- * `outline` reset outranks the global rule (`Button`, `Input`, `TextArea`).
19
- * Not needed where the control already draws a `:focus-visible` outline:
20
- * forced-colors mode keeps it and only forces its color.
21
- */
22
- export declare function forcedColorsFocusRestoreCss(outlineOffset?: string): RuleSet<object>;
@@ -1 +1 @@
1
- import{b as a,c as b}from"../../chunks/chunk-MFYH5ECV.esm.js";import"../../chunks/chunk-B6OC4RV2.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-76VCAI6X.esm.js";import"../../chunks/chunk-ERQXQRK3.esm.js";import"../../chunks/chunk-SEPVF2TL.esm.js";import"../../chunks/chunk-ITRAQ6Q2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-LCCVFIPZ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-WB5XXCKL.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-XUZQE326.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-L7A7RA56.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-4SDDAQ6N.esm.js";import"../../chunks/chunk-R2QEO3KP.esm.js";import"../../chunks/chunk-3CKHLCIB.esm.js";import"../../chunks/chunk-H7FLNZDA.esm.js";import"../../chunks/chunk-UU62HUHC.esm.js";import"../../chunks/chunk-XBPV4MKV.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as GlobalStyle,a as GlobalStyleComponent};
1
+ import{a,b}from"../../chunks/chunk-GXGV64D2.esm.js";import"../../chunks/chunk-W4NSHFN4.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-2BWCWW2Q.esm.js";import"../../chunks/chunk-IQQH6HMG.esm.js";import"../../chunks/chunk-SEPVF2TL.esm.js";import"../../chunks/chunk-LDOM2UUN.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-LCCVFIPZ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-WB5XXCKL.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-XUZQE326.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-L7A7RA56.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-4SDDAQ6N.esm.js";import"../../chunks/chunk-R2QEO3KP.esm.js";import"../../chunks/chunk-3WXII2F3.esm.js";import"../../chunks/chunk-EJ245MA7.esm.js";import"../../chunks/chunk-FNYS25ZX.esm.js";import"../../chunks/chunk-MYU2IAR3.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as GlobalStyle,a as GlobalStyleComponent};
@@ -1 +1 @@
1
- import{a as j}from"../../chunks/chunk-F4JJQGPH.esm.js";import{a,b,c,d,e,f,g,h,i}from"../../chunks/chunk-3CKHLCIB.esm.js";import"../../chunks/chunk-H7FLNZDA.esm.js";import"../../chunks/chunk-UU62HUHC.esm.js";import"../../chunks/chunk-XBPV4MKV.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as GROUND_INK_ROLES,a as GROUND_VAR_PREFIX,j as Ground,c as ROOT_GROUND_TOKEN,i as auditGroundVars,f as groundInkPath,d as groundVar,e as groundVarRef,h as groundVars,g as isOpaqueGround};
1
+ import{a as j}from"../../chunks/chunk-O5TS2XER.esm.js";import{a,b,c,d,e,f,g,h,i}from"../../chunks/chunk-3WXII2F3.esm.js";import"../../chunks/chunk-EJ245MA7.esm.js";import"../../chunks/chunk-FNYS25ZX.esm.js";import"../../chunks/chunk-MYU2IAR3.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as GROUND_INK_ROLES,a as GROUND_VAR_PREFIX,j as Ground,c as ROOT_GROUND_TOKEN,i as auditGroundVars,f as groundInkPath,d as groundVar,e as groundVarRef,h as groundVars,g as isOpaqueGround};
@@ -1 +1 @@
1
- import"../../chunks/chunk-IA234JY2.esm.js";import{b as a}from"../../chunks/chunk-ERQXQRK3.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createSemantic};
1
+ import"../../chunks/chunk-IA234JY2.esm.js";import{b as a}from"../../chunks/chunk-IQQH6HMG.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createSemantic};
@@ -1 +1 @@
1
- import{a as b}from"../../chunks/chunk-ZYQJYJIC.esm.js";import{a}from"../../chunks/chunk-76VCAI6X.esm.js";import"../../chunks/chunk-ERQXQRK3.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as SurfaceProvider,a as invertForSurface};
1
+ import{a as b}from"../../chunks/chunk-MKGWYKH6.esm.js";import{a}from"../../chunks/chunk-2BWCWW2Q.esm.js";import"../../chunks/chunk-IQQH6HMG.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as SurfaceProvider,a as invertForSurface};
@@ -1 +1 @@
1
- import"../../chunks/chunk-4L2KOZIQ.esm.js";import{a,e as b,g as c}from"../../chunks/chunk-B6OC4RV2.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-76VCAI6X.esm.js";import"../../chunks/chunk-ERQXQRK3.esm.js";import"../../chunks/chunk-SEPVF2TL.esm.js";import"../../chunks/chunk-ITRAQ6Q2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-LCCVFIPZ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-WB5XXCKL.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-XUZQE326.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-L7A7RA56.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-4SDDAQ6N.esm.js";import"../../chunks/chunk-R2QEO3KP.esm.js";import"../../chunks/chunk-H7FLNZDA.esm.js";import"../../chunks/chunk-UU62HUHC.esm.js";import"../../chunks/chunk-XBPV4MKV.esm.js";import"../../chunks/chunk-AZXLTCJK.esm.js";import"../../chunks/chunk-2TQTHAFO.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{c as ApollionProvider,a as createTheme,b as useApollionTheme};
1
+ import"../../chunks/chunk-4L2KOZIQ.esm.js";import{a,e as b,g as c}from"../../chunks/chunk-W4NSHFN4.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-2BWCWW2Q.esm.js";import"../../chunks/chunk-IQQH6HMG.esm.js";import"../../chunks/chunk-SEPVF2TL.esm.js";import"../../chunks/chunk-LDOM2UUN.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-LCCVFIPZ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-WB5XXCKL.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-XUZQE326.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-L7A7RA56.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-4SDDAQ6N.esm.js";import"../../chunks/chunk-R2QEO3KP.esm.js";import"../../chunks/chunk-EJ245MA7.esm.js";import"../../chunks/chunk-FNYS25ZX.esm.js";import"../../chunks/chunk-MYU2IAR3.esm.js";import"../../chunks/chunk-VJ5GIFXO.esm.js";import"../../chunks/chunk-REPFMEFA.esm.js";import"../../chunks/chunk-6G22RNUO.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{c as ApollionProvider,a as createTheme,b as useApollionTheme};
@@ -1 +1 @@
1
- import"../chunks/chunk-HPMNSONF.esm.js";import"../chunks/chunk-4L2KOZIQ.esm.js";import{a as gb}from"../chunks/chunk-F4JJQGPH.esm.js";import{a as hb}from"../chunks/chunk-4E3BR56X.esm.js";import{a as ib}from"../chunks/chunk-ZYQJYJIC.esm.js";import{b as eb,c as fb}from"../chunks/chunk-MFYH5ECV.esm.js";import{a as ab,e as cb,g as db}from"../chunks/chunk-B6OC4RV2.esm.js";import{a as Ja,b as Ka,c as La,d as Ma,e as Na,f as Oa,g as Pa,h as Qa,i as Ra,j as Sa,k as Ta,l as Ua,m as Va,n as Wa,o as Xa,p as Ya,q as Za,r as _a}from"../chunks/chunk-TLIKQFOT.esm.js";import"../chunks/chunk-IA234JY2.esm.js";import{a as bb}from"../chunks/chunk-76VCAI6X.esm.js";import{b as $a}from"../chunks/chunk-ERQXQRK3.esm.js";import{b as qa}from"../chunks/chunk-SEPVF2TL.esm.js";import{a as ra}from"../chunks/chunk-ITRAQ6Q2.esm.js";import"../chunks/chunk-Z7GJDO5T.esm.js";import{a as va,b as Ea,c as Fa,d as Ga,e as Ha}from"../chunks/chunk-LCCVFIPZ.esm.js";import{a as wa,b as xa}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as ya,b as za,c as Aa,d as Ba,e as Ca,f as Da}from"../chunks/chunk-WB5XXCKL.esm.js";import{a as sa,b as ta,c as ua}from"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import{a as Ia}from"../chunks/chunk-PFLBU7HG.esm.js";import{a as la}from"../chunks/chunk-XUZQE326.esm.js";import{a as ma}from"../chunks/chunk-3DUB5C4Z.esm.js";import{a as na,b as oa,c as pa}from"../chunks/chunk-KT6QQ3UJ.esm.js";import"../chunks/chunk-L7A7RA56.esm.js";import"../chunks/chunk-HVFI7FHR.esm.js";import"../chunks/chunk-4SDDAQ6N.esm.js";import"../chunks/chunk-R2QEO3KP.esm.js";import{a as ca,b as da,c as ea,d as fa,e as ga,f as ha,g as ia,h as ja,i as ka}from"../chunks/chunk-3CKHLCIB.esm.js";import"../chunks/chunk-H7FLNZDA.esm.js";import{a as $,b as aa,c as ba}from"../chunks/chunk-UU62HUHC.esm.js";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _}from"../chunks/chunk-XBPV4MKV.esm.js";import{a as G,b as H,c as I,d as J,e as K,f as L,g as M,h as N,i as O,j as P,k as Q,l as R,m as S}from"../chunks/chunk-AZXLTCJK.esm.js";import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunks/chunk-2TQTHAFO.esm.js";import"../chunks/chunk-6G22RNUO.esm.js";import"../chunks/chunk-J6F4PMW4.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-AXUWC2WH.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{La as A11Y_ATTRIBUTE,hb as ApollionModeScript,db as ApollionProvider,I as DARK_BOOST_TAPER_MAX_L,H as DARK_ELEVATION_BOOST,Ma as DARK_SCHEME_QUERY,ta as DEFAULT_DIMENSION,Ca as DEFAULT_TEXT_SIZE,aa as DEPTH_SHADOW,sa as DIMENSION_MULTIPLIERS,n as DISABLED_NEUTRAL_INDICES,N as EDGE_ALPHA,Ea as FONT_SIZE_FLOOR_PX,da as GROUND_INK_ROLES,ca as GROUND_VAR_PREFIX,fb as GlobalStyle,eb as GlobalStyleComponent,gb as Ground,K as HALATION_FLOORS,d as HextoRgb,M as INK_APCA_MIN,L as INK_MIX,G as LADDER_DELTAS,f as MIN_CONTRAST_AA,t as MIN_STATE_CONTRAST,Ka as MODE_ATTRIBUTE,Ja as MODE_STORAGE_KEY,l as NEUTRAL_TEXT_INDICES,X as OKABE_ITO,r as QUIET_NEUTRAL_INDICES,k as READABLE_TEXT_PALETTES,ea as ROOT_GROUND_TOKEN,u as STATE_DELTA_L_JND,o as STRUCTURAL_NEUTRAL_INDICES,ib as SurfaceProvider,ya as TEXT_SIZE_ATTRIBUTE,Ba as TEXT_SIZE_MULTIPLIERS,Fa as TYPE_WEIGHT_LADDERS,O as WASH_ALPHA,Na as a11yStorageKey,_ as accessibilityPalettes,la as animation,b as apcaContrast,a as apcaLuminance,ka as auditGroundVars,na as breakpointsValues,y as clampLightness,Za as clearDocumentMode,Aa as clearDocumentTextSize,Y as colorblindPalette,g as contrastRatio,Ua as cookieAdapter,pa as createBreakpoints,U as createColors,qa as createComponentTokens,ra as createDeepTheme,ba as createDeth,Ha as createFont,Ia as createFoundation,m as createReadableTextLayer,$a as createSemantic,xa as createSpacing,ab as createTheme,J as darkElevationBoostFactor,ma as defaultInputBorder,oa as defaultInputBreakpoints,T as defaultInputColors,Ga as defaultInputFont,wa as defaultInputSpacing,i as getColor,j as getContrastColor,_a as getModeScript,ua as getMultiplierForDimension,Da as getMultiplierForTextSize,e as getOppositeColor,V as grayscalePalette,ha as groundInkPath,fa as groundVar,ga as groundVarRef,ja as groundVars,W as highContrastPalette,bb as invertForSurface,Pa as isA11yMode,w as isDarkSurface,Oa as isModePreference,ia as isOpaqueGround,$ as levelValues,Sa as localStorageAdapter,c as mixOklch,E as mountActionColors,D as mountBaseColors,B as mountGreyscaleColors,F as mountMainColors,C as mountNeutralColors,A as mountSingleColor,v as oklchLightness,Q as oppositePolarity,Qa as prefersDarkScheme,Xa as readA11yFromCookie,Ta as readCookieValue,Wa as readModeFromCookie,h as readableColor,p as resolveDisabledNeutral,Ra as resolveMode,S as resolveOppositeLadder,P as resolvePolarity,s as resolveQuietPalette,Va as resolveStorage,q as resolveStructuralNeutrals,R as resolveSurfaceLadder,x as shiftLightness,Ya as syncDocumentMode,za as syncDocumentTextSize,Z as toDarkColors,z as toRgbaString,va as typeSizing,cb as useApollionTheme};
1
+ import"../chunks/chunk-HPMNSONF.esm.js";import"../chunks/chunk-4L2KOZIQ.esm.js";import{a as ib}from"../chunks/chunk-O5TS2XER.esm.js";import{a as jb}from"../chunks/chunk-4E3BR56X.esm.js";import{a as kb}from"../chunks/chunk-MKGWYKH6.esm.js";import{a as gb,b as hb}from"../chunks/chunk-GXGV64D2.esm.js";import{a as cb,e as eb,g as fb}from"../chunks/chunk-W4NSHFN4.esm.js";import{a as La,b as Ma,c as Na,d as Oa,e as Pa,f as Qa,g as Ra,h as Sa,i as Ta,j as Ua,k as Va,l as Wa,m as Xa,n as Ya,o as Za,p as _a,q as $a,r as ab}from"../chunks/chunk-TLIKQFOT.esm.js";import"../chunks/chunk-IA234JY2.esm.js";import{a as db}from"../chunks/chunk-2BWCWW2Q.esm.js";import{b as bb}from"../chunks/chunk-IQQH6HMG.esm.js";import{b as sa}from"../chunks/chunk-SEPVF2TL.esm.js";import{a as ta}from"../chunks/chunk-LDOM2UUN.esm.js";import"../chunks/chunk-Z7GJDO5T.esm.js";import{a as xa,b as Ga,c as Ha,d as Ia,e as Ja}from"../chunks/chunk-LCCVFIPZ.esm.js";import{a as ya,b as za}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as Aa,b as Ba,c as Ca,d as Da,e as Ea,f as Fa}from"../chunks/chunk-WB5XXCKL.esm.js";import{a as ua,b as va,c as wa}from"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import{a as Ka}from"../chunks/chunk-PFLBU7HG.esm.js";import{a as na}from"../chunks/chunk-XUZQE326.esm.js";import{a as oa}from"../chunks/chunk-3DUB5C4Z.esm.js";import{a as pa,b as qa,c as ra}from"../chunks/chunk-KT6QQ3UJ.esm.js";import"../chunks/chunk-L7A7RA56.esm.js";import"../chunks/chunk-HVFI7FHR.esm.js";import"../chunks/chunk-4SDDAQ6N.esm.js";import"../chunks/chunk-R2QEO3KP.esm.js";import{a as ea,b as fa,c as ga,d as ha,e as ia,f as ja,g as ka,h as la,i as ma}from"../chunks/chunk-3WXII2F3.esm.js";import"../chunks/chunk-EJ245MA7.esm.js";import{a as ba,b as ca,c as da}from"../chunks/chunk-FNYS25ZX.esm.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $,h as aa}from"../chunks/chunk-MYU2IAR3.esm.js";import{a as I,b as J,c as K,d as L,e as M,f as N,g as O,h as P,i as Q,j as R,k as S,l as T,m as U}from"../chunks/chunk-VJ5GIFXO.esm.js";import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,I as G,J as H,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunks/chunk-REPFMEFA.esm.js";import"../chunks/chunk-6G22RNUO.esm.js";import"../chunks/chunk-J6F4PMW4.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-AXUWC2WH.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{Na as A11Y_ATTRIBUTE,jb as ApollionModeScript,fb as ApollionProvider,K as DARK_BOOST_TAPER_MAX_L,J as DARK_ELEVATION_BOOST,Oa as DARK_SCHEME_QUERY,va as DEFAULT_DIMENSION,Ea as DEFAULT_TEXT_SIZE,ca as DEPTH_SHADOW,ua as DIMENSION_MULTIPLIERS,p as DISABLED_NEUTRAL_INDICES,P as EDGE_ALPHA,Ga as FONT_SIZE_FLOOR_PX,fa as GROUND_INK_ROLES,ea as GROUND_VAR_PREFIX,hb as GlobalStyle,gb as GlobalStyleComponent,ib as Ground,M as HALATION_FLOORS,d as HextoRgb,O as INK_APCA_MIN,N as INK_MIX,I as LADDER_DELTAS,f as MIN_CONTRAST_AA,v as MIN_STATE_CONTRAST,Ma as MODE_ATTRIBUTE,La as MODE_STORAGE_KEY,l as NEUTRAL_TEXT_INDICES,Z as OKABE_ITO,t as QUIET_NEUTRAL_INDICES,k as READABLE_TEXT_PALETTES,ga as ROOT_GROUND_TOKEN,w as STATE_DELTA_L_JND,q as STRUCTURAL_NEUTRAL_INDICES,kb as SurfaceProvider,Aa as TEXT_SIZE_ATTRIBUTE,Da as TEXT_SIZE_MULTIPLIERS,Ha as TYPE_WEIGHT_LADDERS,Q as WASH_ALPHA,Pa as a11yStorageKey,aa as accessibilityPalettes,na as animation,b as apcaContrast,a as apcaLuminance,ma as auditGroundVars,pa as breakpointsValues,A as clampLightness,$a as clearDocumentMode,Ca as clearDocumentTextSize,_ as colorblindPalette,g as contrastRatio,Wa as cookieAdapter,ra as createBreakpoints,W as createColors,sa as createComponentTokens,ta as createDeepTheme,da as createDeth,Ja as createFont,Ka as createFoundation,m as createReadableTextLayer,bb as createSemantic,za as createSpacing,cb as createTheme,L as darkElevationBoostFactor,oa as defaultInputBorder,qa as defaultInputBreakpoints,V as defaultInputColors,Ia as defaultInputFont,ya as defaultInputSpacing,i as getColor,j as getContrastColor,ab as getModeScript,wa as getMultiplierForDimension,Fa as getMultiplierForTextSize,e as getOppositeColor,X as grayscalePalette,ja as groundInkPath,ha as groundVar,ia as groundVarRef,la as groundVars,Y as highContrastPalette,db as invertForSurface,Ra as isA11yMode,y as isDarkSurface,n as isInvertedNeutralRamp,Qa as isModePreference,ka as isOpaqueGround,ba as levelValues,Ua as localStorageAdapter,c as mixOklch,G as mountActionColors,F as mountBaseColors,D as mountGreyscaleColors,H as mountMainColors,E as mountNeutralColors,C as mountSingleColor,o as neutralSpecKey,x as oklchLightness,S as oppositePolarity,Sa as prefersDarkScheme,Za as readA11yFromCookie,Va as readCookieValue,Ya as readModeFromCookie,h as readableColor,r as resolveDisabledNeutral,Ta as resolveMode,U as resolveOppositeLadder,R as resolvePolarity,u as resolveQuietPalette,Xa as resolveStorage,s as resolveStructuralNeutrals,T as resolveSurfaceLadder,z as shiftLightness,_a as syncDocumentMode,Ba as syncDocumentTextSize,$ as toDarkColors,B as toRgbaString,xa as typeSizing,eb as useApollionTheme};
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@apollion-dsi/core",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Apollion Design System — Component Library",
5
5
  "homepage": "https://www.apollion.com.br",
6
6
  "license": "MIT",
7
+ "engines": {
8
+ "node": ">=22"
9
+ },
7
10
  "main": "lib/index.js",
8
11
  "module": "lib/index.esm.js",
9
12
  "types": "lib/index.d.ts",
@@ -341,10 +344,10 @@
341
344
  "test:watch": "jest --watch",
342
345
  "audit-dependencies": "yarn npm audit --severity moderate --no-deprecations",
343
346
  "coverage": "jest --coverage",
344
- "lint": "eslint src --max-warnings 0",
347
+ "lint": "eslint src --max-warnings 0 --cache --cache-strategy content --cache-location node_modules/.cache/eslint/",
345
348
  "lint:full": "eslint src",
346
349
  "lint:fix": "eslint src --fix",
347
- "check-types": "tsc --noEmit",
350
+ "check-types": "tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tsc/check-types.tsbuildinfo",
348
351
  "prettier": "prettier --check **/*.{ts,tsx} --ignore-path .gitignore --no-error-on-unmatched-pattern",
349
352
  "format": "yarn prettier --write",
350
353
  "validate": "./scripts/validate.sh",
@@ -394,10 +397,10 @@
394
397
  "zod": "4.4.3"
395
398
  },
396
399
  "optionalDependencies": {
397
- "@apollion-dsi/tokens": "7.4.0"
400
+ "@apollion-dsi/tokens": "7.5.0"
398
401
  },
399
402
  "devDependencies": {
400
- "@apollion-dsi/eslint-config": "0.10.0",
403
+ "@apollion-dsi/eslint-config": "0.11.0",
401
404
  "@axe-core/playwright": "^4.13.0",
402
405
  "@babel/core": "7.29.0",
403
406
  "@babel/preset-env": "7.29.5",
@@ -436,6 +439,7 @@
436
439
  "jest-image-snapshot": "^6.5.2",
437
440
  "jest-styled-components": "7.4.0",
438
441
  "npm-run-all": "4.1.5",
442
+ "playwright-core": "1.60.0",
439
443
  "prettier": "3.8.3",
440
444
  "react": "19.2.6",
441
445
  "react-dom": "19.2.6",
@@ -1 +0,0 @@
1
- import{b as d,c as m,d as p,e as c,f as g,g as f,h as u,j as P,k as F,l as h,m as w,n as b,o as y}from"./chunk-3437GMP7.esm.js";import{g as a}from"./chunk-L7A7RA56.esm.js";import{a as l}from"./chunk-DCIALXT7.esm.js";import"./chunk-3HLIX4CZ.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-TBHGVERY.esm.js";import"./chunk-66KNGOWM.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-EIISM5F6.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-FAWI4OCG.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-SFWLFQTS.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-XTY6DXMK.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-6RVYBZSW.esm.js";import"./chunk-W2QR36MB.esm.js";import"./chunk-3CKHLCIB.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-WBRRRDIA.esm.js";import"./chunk-H7FLNZDA.esm.js";import"./chunk-UU62HUHC.esm.js";import"./chunk-XBPV4MKV.esm.js";import"./chunk-AZXLTCJK.esm.js";import"./chunk-2TQTHAFO.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import{f as s}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{jsx as e}from"react/jsx-runtime";var K={left:"bottom-start",right:"bottom-end",center:"bottom"},N=t(({referenceEl:n,open:r,onClose:x,position:D,hoverable:v,role:M,width:R,motion:C,children:I})=>{let E=s(),i=y(n,r),{refs:H,floatingStyles:L,context:o}=F({open:r,strategy:i.strategy,onOpenChange:t(z=>{z||x()},"onOpenChange"),placement:K[D],middleware:[g(4),m(),u({padding:8})],whileElementsMounted:d,elements:{reference:n}}),{getFloatingProps:T}=w([h(o,{enabled:v,move:!1,handleClose:f()}),P(o,{outsidePress:!0,escapeKey:!0}),b(o,{role:M})]);return e(c,{root:i.root,children:e(p,{context:o,modal:!1,initialFocus:-1,children:e("div",{ref:H.setFloating,style:{...L,zIndex:a(E).dropdown},...T(),children:e(l,{p:"xs",borderRadius:"xs",deep:2,width:R,motion:C,children:I})})})})},"DropdownFloating"),k=N;export{k as default};
@@ -1 +0,0 @@
1
- import{e as h}from"./chunk-WB65GPFO.esm.js";import"./chunk-YKWTGDHO.esm.js";import"./chunk-ZMHNNJNC.esm.js";import"./chunk-KQQ7V7VG.esm.js";import{c as l}from"./chunk-KZTG5TDM.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-P3SIJHYM.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-NDIYF5SX.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-TNKYQI5Z.esm.js";import"./chunk-4D6MGQNS.esm.js";import"./chunk-EF3LT3PN.esm.js";import"./chunk-JLQDS5TS.esm.js";import"./chunk-PUTYJU2Z.esm.js";import"./chunk-7JYI2AQK.esm.js";import"./chunk-AMN6SRJS.esm.js";import"./chunk-E2U6IFPB.esm.js";import"./chunk-DAT6GD4T.esm.js";import"./chunk-VKOURTRN.esm.js";import"./chunk-PBYT3TNP.esm.js";import"./chunk-PJX5WGQP.esm.js";import"./chunk-HPMNSONF.esm.js";import"./chunk-4L2KOZIQ.esm.js";import"./chunk-F4JJQGPH.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-ZYQJYJIC.esm.js";import"./chunk-MFYH5ECV.esm.js";import{d as y}from"./chunk-B6OC4RV2.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-76VCAI6X.esm.js";import"./chunk-ERQXQRK3.esm.js";import"./chunk-SEPVF2TL.esm.js";import"./chunk-ITRAQ6Q2.esm.js";import"./chunk-Z7GJDO5T.esm.js";import"./chunk-LCCVFIPZ.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-WB5XXCKL.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-PFLBU7HG.esm.js";import"./chunk-XUZQE326.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import{g as u}from"./chunk-L7A7RA56.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-LZEBVXWL.esm.js";import"./chunk-EWFZ5Y47.esm.js";import"./chunk-KT4BKJVV.esm.js";import"./chunk-ZXGZNZQN.esm.js";import{a as o}from"./chunk-3HLIX4CZ.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-TBHGVERY.esm.js";import"./chunk-66KNGOWM.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-EIISM5F6.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-FAWI4OCG.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-SFWLFQTS.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-XTY6DXMK.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-6RVYBZSW.esm.js";import"./chunk-W2QR36MB.esm.js";import"./chunk-3CKHLCIB.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-WBRRRDIA.esm.js";import"./chunk-H7FLNZDA.esm.js";import"./chunk-UU62HUHC.esm.js";import"./chunk-XBPV4MKV.esm.js";import"./chunk-AZXLTCJK.esm.js";import"./chunk-2TQTHAFO.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import{c}from"./chunk-G5Z7USXC.esm.js";import{f as d}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";import{useEffect as C,useState as g}from"react";import{createPortal as N}from"react-dom";import{jsx as t}from"react/jsx-runtime";var v=p(({toast:n,onRemove:e})=>{let{id:i,...a}=n,[s,r]=g(!0),{mounted:m,state:f,ref:B}=l(s,{property:"grid-template-rows"});return C(()=>{m||e(i)},[m,i,e]),m?t(o,{ref:B,motion:"collapse","data-state":f,"aria-hidden":f==="closing"||void 0,style:{minWidth:300,maxWidth:"30vw"},children:t(o,{motion:"drawer-right","data-state":f,children:t(o,{style:{margin:"0.5rem"},children:t(h,{...a,visible:!0,closable:!0,onDismiss:()=>r(!1)})})})}):null},"ToastItem"),x=p(()=>{let{notifications:n,removeNotification:e}=y(),i=d(),[a,s]=g(!1);return C(()=>{s(!0)},[]),!a||!c?null:N(t(o,{style:{position:"fixed",bottom:"1rem",right:"1rem",zIndex:u(i).toast},children:n.map(r=>t(v,{toast:r,onRemove:e},r.id))}),c)},"NotificationGroup"),D=x;export{D as default};
@@ -1 +0,0 @@
1
- import{a as d,b as m,c as u,e as f,f as g,h as w,j as y,k as F,m as x,n as P,o as R}from"./chunk-3437GMP7.esm.js";import{a as T,b}from"./chunk-DUCEY62P.esm.js";import"./chunk-3HLIX4CZ.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-TBHGVERY.esm.js";import"./chunk-66KNGOWM.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-EIISM5F6.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-FAWI4OCG.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-SFWLFQTS.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-XTY6DXMK.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-6RVYBZSW.esm.js";import"./chunk-W2QR36MB.esm.js";import"./chunk-3CKHLCIB.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-WBRRRDIA.esm.js";import"./chunk-H7FLNZDA.esm.js";import"./chunk-UU62HUHC.esm.js";import"./chunk-XBPV4MKV.esm.js";import"./chunk-AZXLTCJK.esm.js";import"./chunk-2TQTHAFO.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import K from"react";import{jsx as v,jsxs as O}from"react/jsx-runtime";var N=c(({referenceEl:e,open:t,onOpenChange:h,position:C,inverted:D,noArrow:E,content:L,tooltipId:M})=>{var s,p;let o=K.useRef(null),n=R(e,t),{refs:A,floatingStyles:H,context:l,placement:I,middlewareData:r}=F({open:t,strategy:n.strategy,onOpenChange:h,placement:C,middleware:[g(8),u(),w({padding:4}),d({element:o})],whileElementsMounted:m,elements:{reference:e}}),{getFloatingProps:$}=x([y(l,{outsidePress:!0,escapeKey:!0}),P(l,{role:"tooltip"})]),a=(s=r.arrow)==null?void 0:s.x,i=(p=r.arrow)==null?void 0:p.y;return v(f,{root:n.root,children:O(b,{ref:A.setFloating,id:M,inverted:D,deep:2,p:"xs",borderRadius:"xs","data-placement":I,style:H,...$(),children:[L,!E&&v(T,{ref:o,style:{left:a!=null?`${a}px`:"",top:i!=null?`${i}px`:""}})]})})},"TooltipFloating"),Y=N;export{Y as default};
@@ -1 +0,0 @@
1
- import{o as $}from"./chunk-6G22RNUO.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var S={r:.2126729,g:.7151522,b:.072175,gamma:2.4},p={normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,loClip:.1,deltaYmin:5e-4};function pe(e){let n=e.trim().replace(/^#/,""),t=n.length===3?n.replace(/./g,o=>o+o):n;return/^[0-9a-fA-F]{6}$/.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}s(pe,"hexChannels");function j(e){let n=pe(e);if(!n)return NaN;let[t,o,r]=n.map(a=>(a/255)**S.gamma);return S.r*t+S.g*o+S.b*r}s(j,"apcaLuminance");function Y(e){return e>p.blkThrs?e:e+(p.blkThrs-e)**p.blkClmp}s(Y,"softClamp");function Xe(e,n){let t=j(e),o=j(n);if(Number.isNaN(t)||Number.isNaN(o))return NaN;let r=Y(t),a=Y(o);if(Math.abs(a-r)<p.deltaYmin)return 0;if(a>r){let u=(a**p.normBG-r**p.normTXT)*p.scaleBoW;return(u<p.loClip?0:u-p.loBoWoffset)*100}let i=(a**p.revBG-r**p.revTXT)*p.scaleWoB;return(i>-p.loClip?0:i+p.loWoBoffset)*100}s(Xe,"apcaContrast");var Q={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};var U=s((e=0)=>{let n=Math.abs(e);return n<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((n+.055)/1.055,2.4)},"srgbToLinear"),G=s((e=0)=>{let n=Math.abs(e);return n>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(n,1/2.4)-.055):e*12.92},"linearToSrgb"),te=s(({r:e,g:n,b:t,alpha:o})=>{let r={mode:"lrgb",r:U(e),g:U(n),b:U(t)};return o!==void 0&&(r.alpha=o),r},"rgbToLrgb"),re=s(({r:e,g:n,b:t,alpha:o})=>{let r={mode:"rgb",r:G(e),g:G(n),b:G(t)};return o!==void 0&&(r.alpha=o),r},"lrgbToRgb"),oe=s(({r:e=0,g:n=0,b:t=0,alpha:o})=>{let r=Math.cbrt(.412221469470763*e+.5363325372617348*n+.0514459932675022*t),a=Math.cbrt(.2119034958178252*e+.6806995506452344*n+.1073969535369406*t),i=Math.cbrt(.0883024591900564*e+.2817188391361215*n+.6299787016738222*t),u={mode:"oklab",l:.210454268309314*r+.7936177747023054*a-.0040720430116193*i,a:1.9779985324311684*r-2.42859224204858*a+.450593709617411*i,b:.0259040424655478*r+.7827717124575296*a-.8086757549230774*i};return o!==void 0&&(u.alpha=o),u},"lrgbToOklab"),ae=s(({l:e=0,a:n=0,b:t=0,alpha:o})=>{let r=Math.pow(e+.3963377773761749*n+.2158037573099136*t,3),a=Math.pow(e-.1055613458156586*n-.0638541728258133*t,3),i=Math.pow(e-.0894841775298119*n-1.2914855480194092*t,3),u={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*a+.2309699031821044*i,g:-1.2684379732850317*r+2.6097573492876887*a-.3413193760026573*i,b:-.0041960761386756*r-.7034186179359362*a+1.7076146940746117*i};return o!==void 0&&(u.alpha=o),u},"oklabToLrgb"),J=s(e=>{let n=oe(te(e));return e.r===e.b&&e.b===e.g&&(n.a=0,n.b=0),n},"rgbToOklab"),K=s(e=>re(ae(e)),"oklabToRgb"),O=s(e=>(e=e%360)<0?e+360:e,"normalizeHue"),Z=s(({l:e,a:n=0,b:t=0,alpha:o})=>{let r=Math.sqrt(n*n+t*t),a={mode:"oklch",l:e,c:r};return r&&(a.h=O(Math.atan2(t,n)*180/Math.PI)),o!==void 0&&(a.alpha=o),a},"labToLch"),ee=s(({l:e,c:n,h:t=0,alpha:o})=>{let r={mode:"oklab",l:e,a:n?n*Math.cos(t/180*Math.PI):0,b:n?n*Math.sin(t/180*Math.PI):0};return o!==void 0&&(r.alpha=o),r},"lchToLab"),xe=s(({h:e,s:n=0,l:t=0,alpha:o})=>{e=O(e!==void 0?e:0);let r=t+n*(t<.5?t:1-t),a=r-(r-t)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:a,b:2*t-r};break;case 1:i={r:a,g:r,b:2*t-r};break;case 2:i={r:2*t-r,g:r,b:a};break;case 3:i={r:2*t-r,g:a,b:r};break;case 4:i={r:a,g:2*t-r,b:r};break;case 5:i={r,g:2*t-r,b:a};break;default:i={r:2*t-r,g:2*t-r,b:2*t-r}}let u={mode:"rgb",...i};return o!==void 0&&(u.alpha=o),u},"hslToRgb"),he=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,se=s((e,n)=>{if(n===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(n===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(n===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(n===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}},"parseNumberToRgb"),ke=s(e=>{let n=e.match(he);return n?se(parseInt(n[1],16),n[1].length):void 0},"parseHex"),T="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",I=`${T}%`,X=`(?:${T}%|${T})`,ye=`(?:${T}(deg|grad|rad|turn)|${T})`,w="\\s*,\\s*",Ce=new RegExp(`^rgba?\\(\\s*${T}${w}${T}${w}${T}\\s*(?:,\\s*${X}\\s*)?\\)$`),Te=new RegExp(`^rgba?\\(\\s*${I}${w}${I}${w}${I}\\s*(?:,\\s*${X}\\s*)?\\)$`),Me=new RegExp(`^hsla?\\(\\s*${ye}${w}${I}${w}${I}\\s*(?:,\\s*${X}\\s*)?\\)$`),Re=s(e=>{let n=e.match(Ce),t=255;if(n||(n=e.match(Te),t=100),!n)return;let o={mode:"rgb",r:Number(n[1])/t,g:Number(n[2])/t,b:Number(n[3])/t};return n[4]!==void 0?o.alpha=Math.max(0,Math.min(1,Number(n[4])/100)):n[5]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+n[5]))),o},"parseRgbLegacy"),Le=s((e,n)=>{switch(n){case"deg":return+e;case"rad":return Number(e)/Math.PI*180;case"grad":return Number(e)/10*9;case"turn":return Number(e)*360;default:return NaN}},"hueToDeg"),we=s(e=>{let n=e.match(Me);if(!n)return;let t={mode:"hsl"};return n[3]!==void 0?t.h=+n[3]:n[1]!==void 0&&n[2]!==void 0&&(t.h=Le(n[1],n[2])),n[4]!==void 0&&(t.s=Math.min(Math.max(0,Number(n[4])/100),1)),n[5]!==void 0&&(t.l=Math.min(Math.max(0,Number(n[5])/100),1)),n[6]!==void 0?t.alpha=Math.max(0,Math.min(1,Number(n[6])/100)):n[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[7]))),t},"parseHslLegacy"),Ne=s(e=>{let n=Q[e.toLowerCase()];return n===void 0?void 0:se(n,6)},"parseNamed"),Ee=s(e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"parseTransparent"),g=s(e=>{var n,t,o,r;if(typeof e=="string")return(r=(o=(t=(n=ke(e))!=null?n:Re(e))!=null?t:Ne(e))!=null?o:Ee(e))!=null?r:we(e)},"parse"),Ie=s((e,n)=>e===void 0?void 0:typeof e!="object"?g(e):e.mode!==void 0?e:n?{...e,mode:n}:void 0,"prepare"),ne={rgb:{lrgb:te,oklab:J,oklch:s(e=>Z(J(e)),"oklch")},lrgb:{rgb:re,oklab:oe},hsl:{rgb:xe},oklab:{lrgb:ae,rgb:K,oklch:Z},oklch:{oklab:ee,rgb:s(e=>K(ee(e)),"rgb")}},ie=s((e,n)=>{var a,i;if(e.mode===n)return e;let t=(a=ne[e.mode])==null?void 0:a[n];if(t)return t(e);let o=(i=ne[e.mode])==null?void 0:i.rgb;if(o===void 0)throw new Error(`[vendors/Culori] sem rota de '${e.mode}' para 'rgb'`);let r=o(e);return n==="rgb"?r:ie(r,n)},"convertTo"),M=s((e="rgb")=>n=>{let t=Ie(n,e);return t===void 0?void 0:ie(t,e)},"converter"),Ae=M("rgb"),ve=M("lrgb"),$e=s(e=>Math.max(0,Math.min(1,e||0)),"clamp01"),V=s(e=>Math.round($e(e)*255),"channelTo255"),Se=s(e=>{if(e===void 0)return;let n=V(e.r),t=V(e.g),o=V(e.b);return"#"+(1<<24|n<<16|t<<8|o).toString(16).slice(1)},"serializeHex"),h=s(e=>Se(Ae(e)),"formatHex"),F=s(e=>{let n=ve(e);if(n===void 0)throw new TypeError(`[vendors/Culori] wcagLuminance: cor inv\xE1lida: ${String(e)}`);return .2126*n.r+.7152*n.g+.0722*n.b},"wcagLuminance"),A=s((e,n)=>{let t=F(e),o=F(n);return(Math.max(t,o)+.05)/(Math.min(t,o)+.05)},"wcagContrast"),Oe={rgb:["r","g","b","alpha"],oklab:["l","a","b","alpha"],oklch:["l","c","h","alpha"]},Fe=s(e=>e.map((n,t,o)=>{if(n===void 0)return n;let r=O(n);if(t===0||o[t-1]===void 0)return r;let a=r-O(o[t-1]);return Math.abs(a)<=180?a:a-360*Math.sign(a)}).reduce((n,t)=>!n.length||t===void 0||n[n.length-1]===void 0?(n.push(t),n):(n.push(t+n[n.length-1]),n),[]),"fixupHueShorter"),q=s(e=>{let n=!1,t=e.map(o=>o!==void 0?(n=!0,o):1);return n?t:e},"fixupAlpha"),_e=s(e=>e,"identityFixup"),Pe={rgb:{alpha:q},oklab:{alpha:q},oklch:{h:Fe,alpha:q}},Be=s((e,n,t)=>e+t*(n-e),"lerp"),De=s(e=>{let n=[];for(let t=0;t<e.length-1;t++){let o=e[t],r=e[t+1];o===void 0&&r===void 0?n.push(void 0):o!==void 0&&r!==void 0?n.push([o,r]):n.push(o!==void 0?[o,o]:[r,r])}return t=>{let o=t*n.length,r=t>=1?n.length-1:Math.max(Math.floor(o),0),a=n[r];return a===void 0?void 0:Be(a[0],a[1],o-r)}},"piecewiseLinear"),He=s(e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let n=1;for(;n<e.length;){if(e[n]===void 0){let t=n,o=e[n-1],r=n;for(;e[r]===void 0;)r++;let a=(e[r]-o)/(r-n+1);for(;n<r;)e[n]=o+(n+1-t)*a,n++}else e[n]<e[n-1]&&(e[n]=e[n-1]);n++}return e},"normalizePositions"),_=s((e,n="rgb")=>{let t=Oe[n];if(t===void 0)throw new Error(`[vendors/Culori] interpolate: modo n\xE3o absorvido: ${String(n)}`);let o=M(n),r=[],a=[];e.forEach(d=>{if(typeof d=="number"||typeof d=="function"||Array.isArray(d))throw new Error("[vendors/Culori] interpolate: positions/hints/easings n\xE3o absorvidos \u2014 use stops de cor.");let l=o(d);if(l===void 0)throw new TypeError(`[vendors/Culori] interpolate: stop inv\xE1lido: ${String(d)}`);r.push(l),a.push(void 0)}),He(a);let i={};t.forEach(d=>{var m;let l=(m=Pe[n][d])!=null?m:_e;i[d]=l(r.map(y=>y[d]))});let u={};t.forEach(d=>{u[d]=De(i[d])});let b=r.length-1,c=a;return d=>{if(d=Math.min(Math.max(0,d),1),d<=c[0])return r[0];if(d>c[b])return r[b];let l=0;for(;c[l]<d;)l++;let m=c[l-1],y=c[l]-m,R=(d-m)/y,L=(l-1+R)/b,C={mode:n};return t.forEach(v=>{let z=u[v](L);z!==void 0&&(C[v]=z)}),C}},"interpolate");var E=M("oklch"),me=M("rgb");function f(e,n,t){var i;let o=g(e),r=g(n);if(!o||!r)return e;let a=_([o,r],"oklch");return(i=h(a(t)))!=null?i:e}s(f,"mixOklch");function N(e){return e?typeof e=="string"?e:e.base:"#000"}s(N,"coerceToHex");var on=$(e=>{var a,i,u;let n=me(g(e));if(!n)return"0,0,0";let t=Math.round(((a=n.r)!=null?a:0)*255),o=Math.round(((i=n.g)!=null?i:0)*255),r=Math.round(((u=n.b)!=null?u:0)*255);return`${t},${o},${r}`});function an(e){var r,a;let n=N(e),t=E(g(n));if(!t)return n;let o={...t,h:(((r=t.h)!=null?r:0)+180)%360};return(a=h(o))!=null?a:n}s(an,"getOppositeColor");var D=4.5;function x(e,n){let t=g(N(e)),o=g(N(n));return!t||!o?1:A(t,o)}s(x,"contrastRatio");var P=$((e,n,t=D)=>{var u,b,c,d;let o=N(e),r=g(N(n)),a=E(g(o));if(!r||!a)return o;let i=x("#fff",n)>=x("#000",n)?.04:-.04;for(let l=0;l<25;l+=1){let m=(u=h(a))!=null?u:o,y=g(m);if(y&&A(y,r)>=t)return m;let R=Math.min(1,Math.max(0,((b=a.l)!=null?b:0)+i));if(R===((c=a.l)!=null?c:0))break;a={...a,l:R}}return(d=h(a))!=null?d:o});function Ue(e,n){return e?typeof e=="string"?e:e[n||"base"]:"black"}s(Ue,"getColor");var sn=$((e,n)=>{let t=Ue(e);if(!g(t))return t;let o=f(t,"#000",.6),r=n||"#FFFFFF",a=x(o,t)>=x(r,t)?o:r;return x(a,t)>=D?a:x("#000000",t)>=x("#FFFFFF",t)?"#000000":"#FFFFFF"}),Ge=["main","opposite","complementary","primary","secondary","tertiary","success","danger","warning","information"],Ve=[120,130,140,150,160,170,180];function fn(e,{surface:n,minRatio:t=D}={}){var i,u,b,c;let o=(u=n!=null?n:(i=e.neutral)==null?void 0:i["10"])!=null?u:"#FFFFFF",r={};for(let d of Ge){let l=(b=e[d])==null?void 0:b.base;l&&(r[d]=P(l,o,t))}let a={};for(let d of Ve){let l=(c=e.neutral)==null?void 0:c[d];l&&(a[d]=P(l,o,t))}return{palettes:r,neutral:a}}s(fn,"createReadableTextLayer");var fe={light:{fill:10,colorCandidates:[140,150,160,170,180,130,120]},dark:{fill:170,colorCandidates:[80,70,60,50,40,30,20,10,90,100]}},ue={light:{muted:10},dark:{muted:170}};function un(e){var i,u;let n=H(e.baseLight),t=n?fe.dark:fe.light,o=e.neutral,r=(i=o==null?void 0:o[t.fill])!=null?i:n?"#2a3140":"#eef1f4",a=(u=o==null?void 0:o[t.colorCandidates[0]])!=null?u:r;for(let b of t.colorCandidates){let c=o==null?void 0:o[b];if(c&&x(c,r)>=D){a=c;break}}return{fill:r,color:a}}s(un,"resolveDisabledNeutral");function dn(e){var r;let n=H(e.baseLight),t=n?ue.dark:ue.light,o=e.neutral;return{muted:(r=o==null?void 0:o[t.muted])!=null?r:n?"#2a3140":"#eef1f4"}}s(dn,"resolveStructuralNeutrals");var de={light:70,dark:110};function ln(e,n){var a,i;let t=H(e.baseLight),o=t?de.dark:de.light,r=(i=(a=e.neutral)==null?void 0:a[o])!=null?i:t?"#9aa3ad":"#6b7280";return k(r,n)}s(ln,"resolveQuietPalette");var B=1.3,qe=.05,le=.04;function W(e){var t;let n=E(g(e));return n?(t=n.l)!=null?t:0:null}s(W,"oklchLightness");function ce(e,n){if(x(e,n)>=B)return!0;let t=W(e),o=W(n);return t!==null&&o!==null&&Math.abs(t-o)>=qe}s(ce,"isPerceptibleState");function H(e){return e?x("#fff",e)>x("#000",e):!1}s(H,"isDarkSurface");function cn(e,n){var r,a;let t=E(g(e));if(!t)return e;let o=Math.min(1,Math.max(0,((r=t.l)!=null?r:0)+n));return(a=h({...t,l:o}))!=null?a:e}s(cn,"shiftLightness");function bn(e,n){var i,u,b,c;let t=E(g(e));if(!t)return e;let o=(i=t.l)!=null?i:0,r=(u=n.min)!=null?u:0,a=(b=n.max)!=null?b:1;return o>=r&&o<=a?e:(c=h({...t,l:Math.min(a,Math.max(r,o))}))!=null?c:e}s(bn,"clampLightness");function gn(e,n){let t=me(g(e));if(!t)return e;let o=Math.min(1,Math.max(0,n)),r=s(a=>Math.round((a!=null?a:0)*255),"channel");return`rgba(${r(t.r)}, ${r(t.g)}, ${r(t.b)}, ${o})`}s(gn,"toRgbaString");function be(e,n,t){var i,u,b,c;let o=E(g(e));if(!o)return null;let r={...o,l:(i=t!=null?t:o.l)!=null?i:0},a=n?le:-le;for(let d=0;d<25;d+=1){let l=Math.min(1,Math.max(0,((u=r.l)!=null?u:0)+a));if(l===((b=r.l)!=null?b:0))break;r={...r,l};let m=h(r);if(m&&x(e,m)>=B)return m}return(c=h(r))!=null?c:null}s(be,"derivePerceptibleState");function ge(e,n,t){let o=be(e,n,t);if(o&&x(e,o)>=B)return o;let r=be(e,!n);return r&&x(e,r)>=B?r:o!=null?o:r}s(ge,"perceptibleStateFor");function k(e,n){var u,b,c,d,l,m,y,R;let t=typeof e=="object"&&e!==null?e:void 0,o=N(e),r=n.deepDark,a=n.deepLight,i={base:o,dark:f(o,r,.6),action:f(o,r,.2),active:f(o,a,.6),light:f(o,a,.9),onLight:o};if(g(o)){let L=H(n.baseLight),C=ce(o,i.action);if(C||(i.action=(u=ge(o,L))!=null?u:i.action),!ce(o,i.active)){let v=C?void 0:(b=W(i.action))!=null?b:void 0;i.active=(c=ge(o,L,v))!=null?c:i.active}}if(i.onLight=P(i.action,i.light),t){let L=(d=t.action)!=null?d:i.action,C=(l=t.light)!=null?l:i.light;return{base:o,dark:(m=t.dark)!=null?m:i.dark,action:L,active:(y=t.active)!=null?y:i.active,light:C,onLight:(R=t.onLight)!=null?R:P(L,C)}}return i}s(k,"mountSingleColor");function mn(e){let n=e.deepLight,t=e.deepDark;return{0:n,5:f(n,t,.05),10:f(n,t,.1),20:f(n,t,.2),30:f(n,t,.3),40:f(n,t,.4),50:f(n,t,.5),60:f(n,t,.6),70:f(n,t,.7),80:f(n,t,.8),90:f(n,t,.9),100:f(n,t,1)}}s(mn,"mountGreyscaleColors");function pn(e){let n=e.deepLight,t=e.deepDark,o=typeof e.primary=="object"&&e.primary?e.primary.base:e.primary,r=s(i=>1/17*(i-1),"interpolation"),a=f(o,t,.5);return{0:f(a,n,r(18)),5:f(a,n,r(17.5)),10:f(a,n,r(17)),20:f(a,n,r(16)),30:f(a,n,r(15)),40:f(a,n,r(14)),50:f(a,n,r(13)),60:f(a,n,r(12)),70:f(a,n,r(11)),80:f(a,n,r(10)),90:f(a,n,r(9)),100:f(a,n,r(8)),110:f(a,n,r(7)),120:f(a,n,r(6)),130:f(a,n,r(5)),140:f(a,n,r(4)),150:f(a,n,r(3)),160:f(a,n,r(2)),170:a,180:f(a,t,.25)}}s(pn,"mountNeutralColors");function xn(e){return{main:k(e.main,e),opposite:k(e.opposite,e),complementary:k(e.complementary,e)}}s(xn,"mountBaseColors");function hn(e){return{danger:k(e.danger,e),information:k(e.information,e),success:k(e.success,e),warning:k(e.warning,e)}}s(hn,"mountActionColors");function kn(e){return{primary:k(e.primary,e),secondary:k(e.secondary,e),tertiary:k(e.tertiary,e)}}s(kn,"mountMainColors");export{g as a,M as b,j as c,Xe as d,f as e,on as f,an as g,D as h,x as i,P as j,Ue as k,sn as l,Ge as m,Ve as n,fn as o,fe as p,ue as q,un as r,dn as s,de as t,ln as u,B as v,qe as w,W as x,H as y,cn as z,bn as A,gn as B,k as C,mn as D,pn as E,xn as F,hn as G,kn as H};
@@ -1 +0,0 @@
1
- import{a as F}from"./chunk-43YSWDK6.esm.js";import{a as w,c as E}from"./chunk-QW5DJCRR.esm.js";import{f as N,h as k}from"./chunk-K6S7ZGCD.esm.js";import{a as T}from"./chunk-PJX5WGQP.esm.js";import{a as v}from"./chunk-ZXGZNZQN.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as H,useEffect as V,useMemo as A,useState as U}from"react";function s(e){return e.replace(/\D/g,"")}c(s,"removeNonDigits");function B(e,r="."){return s(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}c(B,"formatNumber");function b(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:m}=r,l=t.indexOf(n);if(l>=0){let f=t.substring(0,l),u=t.substring(l);f=B(f,o),m&&(u=`${u}00`),u=s(u).substring(0,2),t=`${f}${n}${u}`}else t=B(t),m&&(t+=`${n}00`);return t}c(b,"formatCurrency");function G(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=s(e.substring(0,t)),o=s(e.substring(t));return+`${n}.${o}`}return Number(s(e))}catch(t){return console.log("Failed to convert string to Number"),0}}c(G,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),b(t,{validate:!0,...r})}c(g,"getInitialCurrencyValue");var M=d(T).withConfig({componentId:"sc-1xhba8m-0"})(["position:absolute;right:1em;align-self:center;pointer-events:none;color:var(--icon-color);z-index:100;"]),P=d(v).withConfig({componentId:"sc-1xhba8m-1"})(["","{border-bottom-left-radius:0;border-bottom-right-radius:0;}","{border-top-left-radius:0;border-top-right-radius:0;}"],N,w);import{jsx as y,jsxs as q}from"react/jsx-runtime";var W=H(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",suffix:m,options:l,optionValue:f,onOptionChange:u,optionsLabel:R="Percent of balance",...z},D)=>{let[x,p]=U(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");V(()=>{p(i=>{let a=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return a!==i?a:i})},[r,t,n,o]);let S=A(()=>F(i=>e==null?void 0:e(i),250),[e]),I=c((i,a)=>{var h;let $=b((h=i.target.value)!=null?h:"",{validate:a,decimal:t,thousand:n,prefix:o});p($),S($)},"handleChange"),L=c(()=>{p(""),S("")},"resetValues"),O=o?`${o} ${x}`:x,C=y(k,{...z,...m&&{icon:y(M,{fontSize:"xs",fontWeight:"bold","data-testid":"input-currency-suffix",children:m})},ref:D,reset:L,value:O,onChange:I,onBlur:i=>I(i,!0)});return l!=null&&l.length?q(P,{flexDirection:"column",width:"100%",children:[C,y(E,{size:"small",label:R,options:l,value:f!=null?f:"",onChange:i=>u==null?void 0:u(i)})]}):C});W.displayName="InputCurrency";export{b as a,G as b,g as c,W as d};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-66KNGOWM.esm.js";var t=o.div,n=t;export{t as a,n as b};
@@ -1 +0,0 @@
1
- import{e as g}from"./chunk-PBYT3TNP.esm.js";import{a as k}from"./chunk-PJX5WGQP.esm.js";import{a}from"./chunk-ZXGZNZQN.esm.js";import{a as I}from"./chunk-H7FLNZDA.esm.js";import{k as v}from"./chunk-2TQTHAFO.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as K,useRef as P}from"react";var B=d(a).withConfig({componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}","{> ","{overflow-x:visible;overflow-y:visible;}}"],({theme:t})=>t.colors.edge.hairline,a,a,({theme:t})=>t.breakpoints.up("sm"),a),S=d(g).attrs(t=>{var e,n;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(n=t.borderWidth)!=null?n:"none"}}).withConfig({componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:1px;background:",";transition:",";}&&&,&&&:focus,&&&:active,&&&:hover{box-shadow:none;text-decoration:none;}"],({isActive:t,theme:e,color:n})=>t?I(e,m=>v(m.colors[n],"base")):"transparent",({theme:t})=>t.animation.transitions.short);import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:n="primary",buttonProps:m}){return f(S,{as:"button",variant:"linked",isActive:t,color:n,...m,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:n,tabHeaderProps:m,tabContentProps:H,...D},R)=>{var w;let y=L(),b=K(()=>n.map((o,i)=>({...o,id:`${y}-${i}`})),[n,y]),x=P(null),A=l(o=>t===o,"isCurrentIndex"),T=l(o=>`tab-${o}`,"tabId"),h=l(o=>`tabpanel-${o}`,"panelId"),s=(w=b[t])!=null?w:b[0],E=l(o=>{var r,p;e==null||e(o);let i=(r=x.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=i==null?void 0:i[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...m,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let i=b.length-1,r=null;o.key==="ArrowRight"?r=t>=i?0:t+1:o.key==="ArrowLeft"?r=t<=0?i:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=i),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:x,children:b.map(({id:o,buttonProps:i,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...i,id:T(o),role:"tab","aria-selected":u,"aria-controls":h(o),tabIndex:u?0:-1,onClick:l(M=>{c!==t&&(r==null||r(c,M),e==null||e(c))},"onClick")}},o)})})}),f(a,{flex:"fluid",pageShell:!0,width:"100%",role:"tabpanel",id:s?h(s.id):void 0,"aria-labelledby":s?T(s.id):void 0,...H,children:s==null?void 0:s.content})]})});W.displayName="Tabs";export{B as a,S as b,$ as c,W as d};
@@ -1 +0,0 @@
1
- import{a as n,b as a,d as f}from"./chunk-6O6KKD7F.esm.js";import{b as c}from"./chunk-4D6MGQNS.esm.js";import{o as m}from"./chunk-DAT6GD4T.esm.js";import{a as i}from"./chunk-PJX5WGQP.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";var p=r(({label:e=null,labelProps:x,variant:l="default",color:C,area:h,alignSelf:k,justifySelf:b,...t})=>s(f,{variant:l,$color:C,disabled:t.disabled,area:h,alignSelf:k,justifySelf:b,children:[o(n,{...t,type:"checkbox",hidden:!0}),o(a,{children:o(c,{icon:m,size:"small"})}),typeof e=="string"?o(i,{fontSize:"small",color:"ink.primary",...x,children:e}):e]}),"CheckboxComponent");p.displayName="Checkbox";export{p as a};
@@ -1 +0,0 @@
1
- import{b as L,c as S,d as x,e as H,f as k,h as O,i as D,j as K,k as A,m as C,n as _,o as j}from"./chunk-3437GMP7.esm.js";import{b as c,c as z,d as B,e as N,f as U}from"./chunk-IW7XVGH3.esm.js";import{h as F}from"./chunk-K6S7ZGCD.esm.js";import{b as P}from"./chunk-4D6MGQNS.esm.js";import{n as R}from"./chunk-DAT6GD4T.esm.js";import{a as T}from"./chunk-DCIALXT7.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{forwardRef as oe,useMemo as y,useState as G}from"react";function q(e,n){let a={value:n,name:e!=null?e:"",type:"text"};return{target:a,currentTarget:a,type:"change",bubbles:!0,cancelable:!0,defaultPrevented:!1,isDefaultPrevented:t(()=>!1,"isDefaultPrevented"),isPropagationStopped:t(()=>!1,"isPropagationStopped"),isTrusted:!1,persist:t(()=>{},"persist"),preventDefault:t(()=>{},"preventDefault"),stopPropagation:t(()=>{},"stopPropagation"),timeStamp:Date.now(),nativeEvent:{target:a},eventPhase:0}}t(q,"buildSyntheticEvent");import{Fragment as se,jsx as i,jsxs as le}from"react/jsx-runtime";var re="yyyy-MM-dd";function ae(e){if(!e)return;let n=B(e);return z(n)?n:void 0}t(ae,"toDate");function ie(e,n,a){let o=[];if(n&&o.push({before:n}),a&&o.push({after:a}),e&&o.push(...Array.isArray(e)?e:[e]),o.length!==0)return o.length===1?o[0]:o}t(ie,"resolveDisabled");var J=oe(({value:e,onChange:n,onValueChange:a,locale:o=N,minDate:s,maxDate:l,disabledDates:g,displayFormat:h="dd/MM/yyyy",name:m,placeholder:Q,disabled:M,readOnly:v,...W},u)=>{let[f,I]=G(!1),p=y(()=>ae(e),[e]),X=y(()=>p?c(p,h,{locale:o}):"",[p,h,o]),Y=y(()=>ie(g,s,l),[g,s,l]),[E,Z]=G(null),b=j(E,f),{floatingStyles:$,context:d,refs:V}=A({open:f,onOpenChange:I,strategy:b.strategy,elements:{reference:E},placement:"bottom-start",middleware:[k(4),S(),O({padding:8})],whileElementsMounted:L}),{getReferenceProps:ee,getFloatingProps:te}=C([D(d,{enabled:!M&&!v}),K(d,{outsidePress:!0,escapeKey:!0}),_(d,{role:"dialog"})]),ne=t(r=>{if(!r)return;let w=c(r,re);a==null||a(w),n==null||n(q(m,w)),I(!1)},"handleSelect");return le(se,{children:[i(F,{...W,ref:r=>{typeof u=="function"?u(r):u&&(u.current=r),Z(r)},type:"text",role:"combobox",disabled:M,readOnly:v,name:m,placeholder:Q,value:X,onChange:t(r=>{},"handleInputChange"),inputMode:"none",autoComplete:"off",icon:i(P,{icon:R}),iconPosition:"right",...ee({onKeyDown:t(r=>{r.key.length===1&&r.key!==" "&&r.preventDefault()},"handleKeyDown")})}),f&&i(H,{root:b.root,children:i(x,{context:d,modal:!1,initialFocus:-1,children:i("div",{ref:V.setFloating,style:$,...te(),children:i(T,{p:"xs",borderRadius:"xs",deep:3,children:i(U,{mode:"single",selected:p,onSelect:ne,locale:o,defaultMonth:p,disabled:Y,captionLayout:"dropdown",startMonth:s!=null?s:new Date(1970,0,1),endMonth:l!=null?l:new Date(2100,11,31)})})})})})]})});J.displayName="InputDate";export{J as a};
@@ -1 +0,0 @@
1
- import{a as se}from"./chunk-2FQC32AA.esm.js";import{a as ae}from"./chunk-BE2JDTVA.esm.js";import{a as ie}from"./chunk-E2U6IFPB.esm.js";import{g as ne}from"./chunk-L7A7RA56.esm.js";import{a as oe}from"./chunk-H7FLNZDA.esm.js";import{c as j,e as $,g as U,h as ee,o as re}from"./chunk-6G22RNUO.esm.js";import{a as _}from"./chunk-J6F4PMW4.esm.js";import{f as te}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var me=re((e,l)=>{var a;let s=(a=l.component.inputSelect.size[e!=null?e:"medium"])!=null?a:l.component.inputSelect.size.medium;return{padding:l.spacing(s.py,s.px),fontSize:l.font.fontSize[s.fontSize],...s.lineHeight!==void 0&&{lineHeight:l.font.lineHeight[s.lineHeight]},borderRadius:l.border.borderRadius[s.borderRadius],height:s.height}});function le(e,l,s={}){var S,y,v,R,E,z,h,M,I,g;let a=(S=e.colors.baseDark)!=null?S:"#000",O=(y=e.colors.neutral)!=null?y:{},{defaultBorderColor:m,dark:T}=(()=>{var r,o,n,d,c,f,u,k,V,L,N,A;switch(l){case"error":return{dark:(o=(r=e.colors.danger)==null?void 0:r.dark)!=null?o:a,defaultBorderColor:(d=(n=e.colors.danger)==null?void 0:n.base)!=null?d:a};case"success":return{dark:(f=(c=e.colors.success)==null?void 0:c.dark)!=null?f:a,defaultBorderColor:(k=(u=e.colors.success)==null?void 0:u.base)!=null?k:a};default:return{dark:(L=(V=e.colors.primary)==null?void 0:V.dark)!=null?L:a,defaultBorderColor:(A=(N=e.colors.edge)==null?void 0:N.border)!=null?A:a}}})(),p=(R=(v=e.colors.ink)==null?void 0:v.muted)!=null?R:a,D=(z=(E=e.colors.wash)==null?void 0:E.hover)!=null?z:a,C=e.colors.disabled.color,P=e.colors.disabled.fill,w=e.colors.muted,H=(M=(h=e.colors.ink)==null?void 0:h.secondary)!=null?M:a,B=(g=(I=e.colors.ink)==null?void 0:I.secondary)!=null?g:a,F=e.spacing("small"),x=e.spacing("micro");return{container:t((r,o)=>({...r,width:o.selectProps.width,...s,fontFamily:e.font.fontFamily.main}),"container"),control:t((r,{isDisabled:o,selectProps:n})=>{var f,u,k;let d=o?"transparent":m,c=me(n.size,e);return{...r,...c,borderColor:d,borderWidth:1,minHeight:void 0,background:o?P:(k=(u=(f=e.colors.surface)==null?void 0:f.paper)!=null?u:e.colors.baseLight)!=null?k:"#fff",boxShadow:e.depth("level-one-minus"),"&:hover, &:focus":{boxShadow:"none",borderColor:d}}},"control"),valueContainer:t((r,{isMulti:o})=>{let n=o?`calc(${x} * -1) 0`:0;return{...r,margin:n,padding:0,lineHeight:1}},"valueContainer"),input:t(r=>{var o,n;return{...r,padding:0,margin:0,fontSize:e.font.fontSize.small,color:(n=(o=e.colors.ink)==null?void 0:o.primary)!=null?n:T}},"input"),singleValue:t(r=>{var o,n;return{...r,color:(n=(o=e.colors.ink)==null?void 0:o.primary)!=null?n:T}},"singleValue"),multiValue:t(r=>({...r,margin:x,fontSize:e.font.fontSize.micro,background:w,"& svg":{color:B,strokeWidth:1},"& > div:first-of-type":{color:H}}),"multiValue"),multiValueLabel:t(r=>({...r,padding:e.spacing(0,"micro"),lineHeight:e.font.lineHeight.regular}),"multiValueLabel"),multiValueRemove:t(r=>({...r,background:D,cursor:"pointer","&:hover":{background:P}}),"multiValueRemove"),placeholder:t((r,{isDisabled:o})=>({...r,color:o?C:T}),"placeholder"),indicatorsContainer:t((r,{isDisabled:o})=>({...r,lineHeight:1,display:"inline-flex",alignItems:"center",alignSelf:"center","& > div":{paddingTop:0,paddingBottom:0},"& svg":{color:o?C:p,fontSize:"inherit",width:"1em",height:"1em"}}),"indicatorsContainer"),indicatorSeparator:t((r,{isDisabled:o})=>({...r,margin:0,height:"1rem",alignSelf:"center",borderColor:o?C:p,backgroundColor:o?C:p}),"indicatorSeparator"),menu:t(r=>{var o,n;return{...r,backgroundColor:(n=(o=e.colors.surface)==null?void 0:o.overlay)!=null?n:e.colors.baseLight,borderRadius:8,overflow:"hidden",boxShadow:e.depth("level-three"),marginTop:x,padding:0,zIndex:ne(e).dropdown}},"menu"),menuList:t(r=>{var o,n,d,c;return{...r,borderRadius:8,border:`1px solid ${(n=(o=e.colors.edge)==null?void 0:o.hairline)!=null?n:e.colors.baseLight}`,padding:0,"& div:not(:first-of-type)":{borderTop:`1px solid ${(c=(d=e.colors.edge)==null?void 0:d.hairline)!=null?c:e.colors.baseLight}`}}},"menuList"),option:t((r,o)=>{var d,c,f,u,k,V,L,N;let n="transparent";return o.isSelected&&(n=(c=(d=e.colors.wash)==null?void 0:d.selected)!=null?c:n),o.isFocused&&(n=(u=(f=e.colors.wash)==null?void 0:f.hover)!=null?u:n),{...r,color:(V=(k=e.colors.ink)==null?void 0:k.primary)!=null?V:a,backgroundColor:n,cursor:"pointer",textAlign:"left",padding:F,lineHeight:"1.2rem","&:active":{color:oe(e,A=>{var q,J,K,Q,X;return(X=(Q=(K=A.colors).getContrastColor)==null?void 0:Q.call(K,(J=(q=A.colors.primary)==null?void 0:q.base)!=null?J:"#000"))!=null?X:a}),backgroundColor:(N=(L=e.colors.primary)==null?void 0:L.base)!=null?N:a}}},"option"),clearIndicator:t(r=>({...r,cursor:"pointer"}),"clearIndicator"),dropdownIndicator:t(r=>({...r,cursor:"pointer",paddingRight:0}),"dropdownIndicator")}}t(le,"createComponentStyle");import{forwardRef as be,useImperativeHandle as Te,useMemo as Se,useState as ke}from"react";import ce,{components as G}from"react-select";import W from"react-select/async";var Y=ce;import{jsx as i,jsxs as b}from"react/jsx-runtime";function pe(e){return i(G.DropdownIndicator,{...e,children:i("div",{style:{width:24},children:b("svg",{xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",background:"0 0"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",display:"block",children:[i("defs",{}),i("g",{transform:"translate(80 50)",children:b("circle",{r:"6",fill:"#9bb6c0",transform:"scale(1.37926)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.875s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.875s"})]})}),i("g",{transform:"rotate(45 -50 122)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".9",transform:"scale(1.44176)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.75s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.75s"})]})}),i("g",{transform:"rotate(90 -15 65)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".8",transform:"scale(1.00426)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.625s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.625s"})]})}),i("g",{transform:"rotate(135 0 42)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".6",transform:"scale(1.06676)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.5s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.5s"})]})}),i("g",{transform:"rotate(180 10 25)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".5",transform:"scale(1.12926)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.375s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.375s"})]})}),i("g",{transform:"rotate(-135 20 8)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".4",transform:"scale(1.19176)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.25s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.25s"})]})}),i("g",{transform:"rotate(-90 35 -15)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".3",transform:"scale(1.25426)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.125s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.125s"})]})}),i("g",{transform:"rotate(-45 70 -72)",children:b("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".1",transform:"scale(1.31676)",children:[i("animateTransform",{attributeName:"transform",type:"scale",begin:"0s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),i("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"0s"})]})})]})})})}t(pe,"DropdownIndicator");import{useCallback as ge,useRef as ye}from"react";function Z(e,l){if(!(!e||ee(l))){if($(e))return e;if(U(e))return l.find(s=>s.value===e);if(Array.isArray(e)){if(e.every(s=>typeof s=="string"))return l.filter(s=>e.includes(s.value));if(e.every($))return e}}}t(Z,"getDefaultValue");function de(e){let l=ye(e),{active:s,disable:a,enable:O}=ae();ie(()=>{l.current=e});let m=ge(async T=>{try{O();let p=await l.current(T);if(Array.isArray(p))return p;throw new Error('"LoadOptions" prop did not return the expected result')}catch(p){_.error(p==null?void 0:p.message)}finally{a()}},[O,a]);return[s,m]}t(de,"useLoadOptions");import{jsx as ue}from"react/jsx-runtime";function Ce(e,l){let{loadingPlaceholder:s="Carregando (aguarde)...",emptyMessage:a="Sem Op\xE7\xF5es",isLoading:O,onChange:m,loadOptions:T,onItemSelect:p,variant:D,style:C,readOnly:P,value:w,hideSelectedOptions:H=!1,menuPlacement:B="bottom",placeholder:F="Selecione...",size:x="medium",...S}=e,[y,v]=ke(()=>{let{options:g,defaultValue:r}=S;return Z(r||w,g)}),R=t(g=>{v(g||[]);let r=j(g);if(m&&m(g?r:[]),S.isMulti&&p){let o=Array.isArray(y)&&y.length,n=r.length,d=t(()=>{let c=y||[];m&&m(c),v(c)},"cancelAction");if(n===0)y.forEach(c=>{p({option:c,type:"REMOVE",cancelAction:t(()=>v(f=>{let u=[...f,c];return m&&m(u),u}),"cancelAction")})});else if(n>o)p({option:r[n-1],type:"ADD",cancelAction:d});else if(n<o){let c=y.find(f=>!r.some(u=>u.value===f.value));p({option:c,type:"REMOVE",cancelAction:d})}}},"onChangeValue");se(()=>{v(w||[])},[w]),Te(l,()=>({setValue:t(g=>{R(Z(g,S.options))},"setValue")}));let[E,z]=de(T),h=te(),M=Se(()=>le(h,D,C),[h,D,C]),I={ref:l,...S,size:x,hideSelectedOptions:H,menuPlacement:B,placeholder:F,...(O||E)&&{components:{DropdownIndicator:pe,LoadingIndicator:null},placeholder:s,isDisabled:!0},closeMenuOnSelect:!S.isMulti,styles:M,value:y,noOptionsMessage:t(()=>a,"noOptionsMessage"),onChange:R,...P&&{isClearable:!1,isSearchable:!1,openMenuOnClick:!1,menuIsOpen:!1}};return T?ue(W,{...I,cacheOptions:!0,defaultOptions:!0,loadOptions:z}):ue(Y,{...I})}t(Ce,"InputSelectComponent");var fe=be(Ce);fe.displayName="InputSelect";export{le as a,fe as b};
@@ -1 +0,0 @@
1
- import{b as y}from"./chunk-IK5Z5C2R.esm.js";import{e as d}from"./chunk-XTY6DXMK.esm.js";import{b as w}from"./chunk-BNB3KNKE.esm.js";import{b as F}from"./chunk-VCMHX5VK.esm.js";import{b as c}from"./chunk-6RVYBZSW.esm.js";import{b as n}from"./chunk-W2QR36MB.esm.js";import{b as s}from"./chunk-QYL6LECA.esm.js";import{b as f}from"./chunk-WBRRRDIA.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var P=["viewportMedias"],h=["sm","md","lg","xl"],u=t((r,e)=>{let o={theme:e};return{...w(r)(),...s(r)(o),...c(r)(o),...F(r)(o),...n(r)(o),...d(r)(o),...y(r)(o),...f(r)(o)}},"getStyles"),k=t(r=>e=>{let{theme:o,...M}={...r,...e},{viewportMedias:i}=M;if(!i)return{};let m={};return h.forEach(a=>{let p=i[a];p&&(m[o.breakpoints.up(a)]=u(p,o))}),m},"ViewportMediaFactory");export{P as a,k as b};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-KT4BKJVV.esm.js";import{a as r}from"./chunk-3HLIX4CZ.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var c=o(r).withConfig({componentId:"sc-1teioay-0"})(["animation:rotate var(--apollion-motion-indicator-loop,2000ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),l=o(t).withConfig({componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:dash var(--apollion-motion-indicator-pulse,1500ms) var(--apollion-motion-easing-standard,cubic-bezier(0.42,0,0.58,1)) infinite;@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}@media (prefers-reduced-motion:reduce){animation:none;stroke-dasharray:90,150;stroke-dashoffset:-35;}"]),d=2*Math.PI*20,p=o(r).withConfig({componentId:"sc-1teioay-2"})(["transform:rotate(-90deg);"]),m=o(t).withConfig({componentId:"sc-1teioay-3"})(["fill:none;stroke:currentColor;stroke-width:4;opacity:0.2;"]),f=o(t).withConfig({componentId:"sc-1teioay-4"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-dasharray:",";animation:drain var(--countdown-duration) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) forwards;@keyframes drain{0%{stroke-dashoffset:0;}100%{stroke-dashoffset:",";}}"],d,d);import{forwardRef as k}from"react";import{jsx as n,jsxs as S}from"react/jsx-runtime";var h=k(({size:y,label:i="Carregando",variant:u="indeterminate",duration:w=15e3,cycle:C,...a},s)=>{let e=y||"1em";return u==="countdown"?S(p,{as:"svg",viewBox:"0 0 50 50",role:"timer","aria-label":i,...a,width:e,height:e,ref:s,children:[n(m,{cx:"25",cy:"25",r:"20"}),n(f,{cx:"25",cy:"25",r:"20",style:{"--countdown-duration":`${w}ms`}},C)]}):n(c,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":i,...a,width:e,height:e,ref:s,children:n(l,{cx:"25",cy:"25",r:"20"})})});h.displayName="Spinner";export{c as a,l as b,d as c,p as d,m as e,f,h as g};
@@ -1,39 +0,0 @@
1
- import{a as W}from"./chunk-M7LEQKER.esm.js";import{a as j}from"./chunk-CLU3WNVI.esm.js";import{a as c}from"./chunk-5V3QEYAS.esm.js";import{b as K}from"./chunk-I3SLGOSW.esm.js";import{a as T}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-27BUTGEI.esm.js";import{a as q}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-BUT67NEF.esm.js";import{h as V}from"./chunk-K6S7ZGCD.esm.js";import{a as A}from"./chunk-Y33MAO4J.esm.js";import{b as g}from"./chunk-4D6MGQNS.esm.js";import{F as M,K as y,Y as O,v as B,w as N}from"./chunk-DAT6GD4T.esm.js";import{a as I,e as E}from"./chunk-PJX5WGQP.esm.js";import{g as z}from"./chunk-L7A7RA56.esm.js";import{a as f}from"./chunk-ZXGZNZQN.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as L}from"./chunk-6RVYBZSW.esm.js";import{b as o,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import P,{useEffect as fe,useState as v}from"react";function re(e){switch(e){case"Compact":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("micro"),l,c,({theme:t})=>t.spacing("micro"));case"Expansive":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("large"),l,c,({theme:t})=>t.spacing("large"));default:return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("medium"),l,c,({theme:t})=>t.spacing("medium"))}}i(re,"getSizeStyle");function D(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(D,"getAlignDirection");function ae(e){if(typeof e=="object"){let t=e.reduce((u,a)=>{let x=`
2
- & ${l}, ${c}, ${s} {
3
- &:nth-child(${a.target}) {
4
- ${f} {
5
- text-align: ${a.direction};
6
- align-items: ${D(a.direction)}
7
- }
8
- }
9
- }
10
- `;return`${u} ${x}`},"");return o(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,f,D("center"),t)}return e!==void 0?o(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,f,e,D(e)):o(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,f)}i(ae,"getAlignStyle");function oe(e){if(e===void 0)return o([""]);let t=e.map((u,a)=>u&&(u.type===void 0?`
11
- &:nth-child(${a+1}) {
12
- width: ${u.width}px;
13
- }
14
- `:`
15
- &:nth-child(${a+1}) {
16
- ${u.type}-width: ${u.width}px;
17
- }
18
- `));return o(["& ",",",",","{","}"],l,c,s,t)}i(oe,"getColumnSizeStyle");function le(){return o(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,I)}i(le,"getEllipsisStyle");function ce(e){return e.map(t=>o(["& ","{&:nth-child(","){",";}}"],T,t+1,L({bgColor:"muted"})))}i(ce,"getSelectedStyle");var se=`
19
- & ${s} {
20
- position: sticky;
21
- top: 0;
22
- }
23
- `,de=o(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:",";}"],j,T,L({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s,({theme:e})=>z(e).sticky),ue=i(e=>`
24
- & ${T}{
25
- &:hover{
26
- & ${l}, ${c}{
27
- /* box-shadow inset instead of border avoids layout shift on hover
28
- (rows would get +1px taller on mouseover, causing visible
29
- drift). Visually identical to the classic border-1px. */
30
- box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
31
- &:first-child{
32
- box-shadow:
33
- inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
34
- inset 0 -1px 0 ${e.colors.edge.border};
35
- }
36
- }
37
- }
38
- }
39
- `,"getHoverableProps"),Y=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&se,({striped:e})=>e&&de,({hoverable:e,theme:t})=>e&&ue(t),({selected:e})=>ce(e),({ellipsis:e})=>e?le():"",({columnSize:e})=>oe(e),({align:e})=>ae(e),({rowSize:e})=>re(e));import{jsx as r,jsxs as C}from"react/jsx-runtime";var Z=i(e=>{let[t,u]=v(""),[a,x]=v([]),[k,w]=v([]),[G,S]=v("Default"),b=P.useRef(null);fe(()=>{if(!b.current)return;let n=Array.from(b.current.children);x(n)},[]);let J=P.Children.toArray(e.children).length>1?1:0,Q=P.Children.map(e.children,(n,m)=>m===J?P.cloneElement(n,{ref:b}):n),U=i(n=>{if(n.key==="Enter"){if(!b.current)return;let m=b.current.children,d=a.map((h,p)=>{let $=m[p];return $&&(t===""&&($.style.display=""),h.innerText.toLowerCase().includes(t.toLowerCase())||($.style.display="none")),h});x(d)}},"getFilterData"),X=a.length>0&&a.every(n=>n.style.display==="none"),_=a.length,ee=i((n,m)=>{m&&w(d=>[...d,n]),m||w(k.filter(d=>d!==n))},"getSelected"),te=i(n=>(a.forEach((m,d)=>{let h=m.children[0].querySelectorAll("input")[0];return n&&(h.checked=!0,w(p=>[...p,d])),n||(h.checked=!1,w([])),null}),n),"getAllSelected"),ne=i(n=>a.map(d=>parseInt(d.children[n].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ie=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(n){switch(n){case"normal":if(_<=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 i(H,"getOverflow"),C(f,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[C(f,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&r(E,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true",children:e.title}),C(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&r(f,{width:"230px",children:r(V,{placeholder:"Pesquisar",type:"text",value:t,name:"search",onChange:n=>u(n.target.value),onKeyDown:n=>U(n),width:"230",icon:r(g,{icon:B}),role:"search"})}),e.rowTypes&&r(A,{options:[{icon:r(g,{icon:y}),title:"Layout Condensado",action:i(()=>S("Compact"),"action")},{icon:r(g,{icon:y}),title:"Layout Padr\xE3o",action:i(()=>S("Expansive"),"action")},{icon:r(g,{icon:y}),title:"Layout Expandido",action:i(()=>S("Default"),"action")}],children:r(g,{icon:y,color:"primary"})}),e.share&&r(A,{options:[{icon:r(g,{icon:M}),title:"Enviar por email",action:e.share.email},{icon:r(g,{icon:O}),title:"Compartilhar",action:e.share.social}],children:r(g,{icon:N,color:"primary"})})]})]}),ie&&r(W,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel,linesPerPageValue:e.linesPerPageValue,onLinesPerPageChange:e.onLinesPerPageChange,onPreviousPage:e.onPreviousPage,onNextPage:e.onNextPage,canPreviousPage:e.canPreviousPage,canNextPage:e.canNextPage,previousLabel:e.previousLabel,nextLabel:e.nextLabel}),C(Y,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:G||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,children:[r(E,{as:"caption","aria-hidden":"false",hidden:!0,children:e.title}),r(q.Provider,{value:{ellipsis:e.ellipsis,getSelected:ee,getAllSelected:te,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:ne(e.columnSum)}:{index:void 0,sum:void 0}},children:Q})]}),X&&r(K,{})]})},"TableComponent");export{Y as a,Z as b};
@@ -1 +0,0 @@
1
- import{b as R}from"./chunk-IK5Z5C2R.esm.js";import{e as b}from"./chunk-XTY6DXMK.esm.js";import{b as k}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-VCMHX5VK.esm.js";import{b as l}from"./chunk-6RVYBZSW.esm.js";import{b as h}from"./chunk-W2QR36MB.esm.js";import{b as g}from"./chunk-QYL6LECA.esm.js";import{b as F}from"./chunk-WBRRRDIA.esm.js";import{o as y}from"./chunk-6G22RNUO.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var d=y(t=>t.startsWith("sm_")||t.startsWith("md_")||t.startsWith("lg_")||t.startsWith("xl_")),v=a((t,n)=>{let o={theme:n};return{...k(t)(),...g(t)(o),...l(t)(o),...S(t)(o),...h(t)(o),...b(t)(o),...R(t)(o),...F(t)(o)}},"getStyles"),p=["sm","md","lg","xl"],_=a(t=>n=>{let{theme:o,...e}={...t,...n};if(e!=null&&e.ignoreResponsive)return null;let r={};Object.keys(e).forEach(i=>{if(d(i)){let[m,c]=i.split("_"),f=e[i];m in r?r[m][c]=f:r[m]={[c]:f}}});let s={};return e!=null&&e.enableBreakpoint&&(e==null?void 0:e.enableBreakpoint)in r&&Object.assign(s,v(r[e==null?void 0:e.enableBreakpoint],o)),p.forEach(i=>{i in r&&(s[o.breakpoints.up(i)]=v(r[i],o))}),s},"ResponsiveFactory");export{_ as a};
@@ -1 +0,0 @@
1
- import{a,b as o,d as s}from"./chunk-EX5BLQCC.esm.js";import{a as e}from"./chunk-PJX5WGQP.esm.js";import{forwardRef as u}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";var m=u(({color:i="primary",border:f,size:l="medium",progress:r=0,showProgressLabel:g=!1,...P},c)=>{let p=-100+Number(r),B=Math.min(100,Math.max(0,Number(r)));return n(s,{color:i,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":B,...P,ref:c,children:[t(a,{size:l,border:f,children:t(o,{style:{transform:`translateX(${p}%)`}})}),g&&n(e,{children:[r,"%"]})]})});m.displayName="ProgressBar";export{m as a};
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk-H7FLNZDA.esm.js";import{j as V}from"./chunk-2TQTHAFO.esm.js";import{b as q,g as G}from"./chunk-AXUWC2WH.esm.js";import{a as U}from"./chunk-GZONWSRB.esm.js";import{forwardRef as Z}from"react";var s=G.div.withConfig({componentId:"sc-1ihglem-0"})(["",""],({theme:r})=>{var g,y,m,x,h,w,_,k,v,C,R,S,z,F,W,D,P,j,B,I,L,M,N,O,A,E,H;let d=(g=r.colors.baseDark)!=null?g:"#000",l=(y=r.colors.neutral)!=null?y:{},i=(x=(m=r.colors.primary)==null?void 0:m.base)!=null?x:d,Y=b(r,t=>{var o,n,a,e;return V((a=(n=(o=t.colors.primary)==null?void 0:o.base)!=null?n:t.colors.baseDark)!=null?a:"#000",(e=t.colors.baseLight)!=null?e:"#FFFFFF")}),c=(w=(h=r.colors.primary)==null?void 0:h.light)!=null?w:d,u=(k=(_=r.colors.primary)==null?void 0:_.action)!=null?k:d,p=(R=(C=(v=r.colors.disabled)==null?void 0:v.color)!=null?C:l[70])!=null?R:d,f=U(t=>b(r,o=>{var n,a,e,T;return(T=(e=(a=o.colors).getContrastColor)==null?void 0:e.call(a,(n=t(o))!=null?n:"#000"))!=null?T:d}),"contrastOn");return q(["--rdp-accent-color:",";--rdp-accent-background-color:",";--rdp-day-height:2.25rem;--rdp-day-width:2.25rem;--rdp-day_button-border-radius:",";display:inline-block;width:fit-content;font-family:",";color:",";padding:",";.rdp-root{--rdp-outline:2px solid ",";--rdp-outline-offset:2px;position:relative;}.rdp-months{display:flex;gap:",";}.rdp-month_caption{display:flex;align-items:center;justify-content:center;padding:"," 0 ",";font-size:",";font-weight:",";text-transform:capitalize;color:",";}.rdp-nav{position:absolute;top:",";right:0;display:flex;gap:",";}.rdp-dropdowns{display:flex;align-items:center;gap:",";}.rdp-dropdown_root{position:relative;display:inline-flex;align-items:center;}.rdp-dropdown{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;border:none;appearance:none;cursor:pointer;}.rdp-dropdown_root .rdp-caption_label{display:inline-flex;align-items:center;gap:",";padding:2px ",";border:1px solid ",";border-radius:",";background:",";white-space:nowrap;}.rdp-caption_label .rdp-chevron{width:0.625rem;height:0.625rem;flex-shrink:0;fill:currentColor;}.rdp-button_previous .rdp-chevron,.rdp-button_next .rdp-chevron{width:0.875rem;height:0.875rem;fill:currentColor;}.rdp-month_caption:has(.rdp-dropdowns){justify-content:flex-start;padding-right:4.5rem;}.rdp-button_previous,.rdp-button_next{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid ",";border-radius:",";background:",";color:",";cursor:pointer;transition:",";&:hover:not(:disabled){border-color:",";color:",";}&:disabled{color:",";cursor:default;}}.rdp-weekdays{display:grid;grid-template-columns:repeat(7,var(--rdp-day-width));}.rdp-weekday{width:var(--rdp-day-width);height:1.75rem;display:inline-flex;align-items:center;justify-content:center;font-size:",";font-weight:",";color:",";text-transform:uppercase;}.rdp-week{display:grid;grid-template-columns:repeat(7,var(--rdp-day-width));}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);padding:0;}.rdp-day_button{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--rdp-day_button-border-radius);background:transparent;color:inherit;font-size:",";cursor:pointer;transition:",";&:hover:not(:disabled){background:",";color:",";}&:focus-visible{outline:var(--rdp-outline);outline-offset:var(--rdp-outline-offset);}&:disabled{cursor:default;color:",";}}.rdp-today:not(.rdp-outside):not(.rdp-selected) .rdp-day_button{border-color:",";color:",";font-weight:",";}.rdp-selected .rdp-day_button,.rdp-selected .rdp-day_button:hover:not(:disabled){background:",";color:",";border-color:",";}.rdp-outside .rdp-day_button{color:",";}.rdp-disabled .rdp-day_button,.rdp-disabled .rdp-day_button:hover{color:",";background:transparent;cursor:default;}.rdp-hidden{visibility:hidden;}.rdp-range_middle .rdp-day_button{background:",";color:",";border-radius:0;}.rdp-range_start .rdp-day_button{border-top-right-radius:0;border-bottom-right-radius:0;}.rdp-range_end .rdp-day_button{border-top-left-radius:0;border-bottom-left-radius:0;}"],i,c,r.border.borderRadius.micro,r.font.fontFamily.main,(z=(S=r.colors.ink)==null?void 0:S.secondary)!=null?z:d,r.spacing("xs"),u,r.spacing("medium"),r.spacing("xs"),r.spacing("small"),r.font.fontSize.small,r.font.fontWeight.bold,(W=(F=r.colors.ink)==null?void 0:F.secondary)!=null?W:d,r.spacing("xs"),r.spacing("micro"),r.spacing("small"),r.spacing("micro"),r.spacing("xs"),(P=(D=r.colors.edge)==null?void 0:D.border)!=null?P:d,r.border.borderRadius.micro,(B=(j=r.colors.surface)==null?void 0:j.paper)!=null?B:"transparent",(L=(I=r.colors.edge)==null?void 0:I.border)!=null?L:d,r.border.borderRadius.micro,(N=(M=r.colors.surface)==null?void 0:M.paper)!=null?N:"transparent",(A=(O=r.colors.ink)==null?void 0:O.secondary)!=null?A:d,r.animation.transitions.short,i,i,p,r.font.fontSize.micro,r.font.fontWeight.bold,(H=(E=r.colors.ink)==null?void 0:E.muted)!=null?H:d,r.font.fontSize.small,r.animation.transitions.short,c,f(t=>{var o;return(o=t.colors.primary)==null?void 0:o.light}),p,u,Y,r.font.fontWeight.bold,i,f(t=>{var o;return(o=t.colors.primary)==null?void 0:o.base}),i,p,p,c,f(t=>{var o;return(o=t.colors.primary)==null?void 0:o.light}))});s.displayName="Calendar";import{format as ar,isValid as er,parse as pr,parseISO as sr}from"date-fns";import{enUS as cr,ptBR as J}from"date-fns/locale";import{DayPicker as K}from"react-day-picker";import{jsx as Q}from"react/jsx-runtime";var X=Z(({locale:r=J,...d},l)=>Q(s,{ref:l,children:Q(K,{locale:r,...d})}));X.displayName="Calendar";export{s as a,ar as b,er as c,sr as d,J as e,X as f};
@@ -1 +0,0 @@
1
- import{h as j}from"./chunk-K6S7ZGCD.esm.js";import{a as Z}from"./chunk-Y33MAO4J.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{b as I}from"./chunk-4D6MGQNS.esm.js";import{K as Q,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{f as ie}from"./chunk-PBYT3TNP.esm.js";import{e as P}from"./chunk-PJX5WGQP.esm.js";import{a as F}from"./chunk-ZXGZNZQN.esm.js";import{a as h}from"./chunk-3HLIX4CZ.esm.js";import{g as Te}from"./chunk-6G22RNUO.esm.js";import{f as Le,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import S from"react";import X from"react";var q=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),z=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(z).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],z,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(z).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;scrollbar-gutter:stable;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,q,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.muted,z,q,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),E=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],E,E,E,E),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let t=X.useRef(null);return X.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i(et,"useDebounce");var Ht=i(({column:e,labels:o})=>{var a,l;let t=X.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([s],[m])=>String(s).localeCompare(String(m))),[e,e.getFilterValue()]),n=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[t.length===0&&T(P,{variant:"meta",text:(l=o==null?void 0:o.filterNoValues)!=null?l:"Sem valores"}),t.map(([s,m])=>{let d=String(s),f=n.includes(d);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let c=f?n.filter(N=>N!==d):[...n,d];e.setFilterValue(c.length?c:void 0)}}),T(E,{}),T(P,{variant:"meta",text:`${d} (${m})`})]},d)})]})},"SelectFilter"),At=i(({column:e,labels:o})=>{var O,$;let[t,n]=(O=e.getFacetedMinMaxValues())!=null?O:[0,0],a=o!=null&&o.filterRangeMin?o.filterRangeMin(t):`min (${t})`,l=o!=null&&o.filterRangeMax?o.filterRangeMax(n):`max (${n})`,s=($=e.getFilterValue())!=null?$:[void 0,void 0],m=et(k=>{let[R,U]=k,B=R===void 0&&U===void 0;e.setFilterValue(B?void 0:k)},200),[d,f]=X.useState(s[0]!==void 0?String(s[0]):""),[c,N]=X.useState(s[1]!==void 0?String(s[1]):"");return T(ce,{children:Se(F,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T(j,{type:"number",placeholder:a,value:d,onChange:k=>{let R=k.target.value;f(R),m([R===""?void 0:Number(R),c===""?void 0:Number(c)])}}),T(P,{variant:"meta",text:"\u2014"}),T(j,{type:"number",placeholder:l,value:c,onChange:k=>{let R=k.target.value;N(R),m([d===""?void 0:Number(d),R===""?void 0:Number(R)])}})]})})},"RangeFilter"),Wt=i(({column:e,labels:o})=>{var s,m;let t=(s=e.getFilterValue())!=null?s:"",[n,a]=X.useState(t),l=et(d=>{e.setFilterValue(d||void 0)},200);return T(ce,{children:T(j,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:n,onChange:d=>{let f=d.target.value;a(f),l(f)}})})},"TextFilter"),tt=i((e,o,t,n)=>{switch(e){case"select":return T(Ht,{column:o,onClose:t,labels:n});case"range":return T(At,{column:o,onClose:t,labels:n});case"text":return T(Wt,{column:o,onClose:t,labels:n})}},"filterUIForVariant");import V,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as b,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>b(Ye,{...e,ref:o})),rt=i(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=V.forwardRef(({indeterminate:e,children:o,...t},n)=>{let a=V.useRef(null),l=n||a;return V.useEffect(()=>{l.current&&(l.current.indeterminate=e!=null?e:!1)},[l,e]),de(se,{as:"label",children:[o,b(le,{type:"checkbox",ref:l,...t}),b(E,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:i(()=>null,"header"),cell:i(({row:n})=>n.getCanExpand()?b(I,{icon:n.getIsExpanded()?He:Ae,onClick:n.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${n.depth*16}px`}}):b("span",{style:{display:"inline-block",marginLeft:`${n.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}i(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:i(({table:n})=>b(nt,{checked:n.getIsAllRowsSelected(),indeterminate:n.getIsSomeRowsSelected(),onChange:n.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:i(({row:n})=>{var a,l;return b(nt,{checked:n.getIsSelected(),indeterminate:(l=(a=n.getIsSomeSelected)==null?void 0:a.call(n))!=null?l:!1,onChange:n.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}i(it,"buildSelectableColumnDef");function $t(e,o){let t=V.useRef(null);return V.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i($t,"useDebounce");var lt=i(({globalFilter:e,setGlobalFilter:o,placeholder:t})=>{let[n,a]=V.useState(e),l=$t(s=>{o(s||"")},200);return b(j,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),l("")},value:n||"",onChange:s=>{a(s.target.value),l(s.target.value)},placeholder:t,"aria-label":t!=null?t:"Search",icon:b(I,{icon:Oe})})},"GlobalFilter"),st=i(({height:e,emptyIcon:o,emptyTitle:t="Nada foi encontrado",emptyDescription:n})=>b(Ke,{style:{height:e},children:de(F,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,b(P,{textAlign:"center",variant:"h5",text:t}),n&&b(P,{textAlign:"center",variant:"p",text:n})]})}),"EmptyTable");function pe(e,o,t){let[n,a]=V.useState(t),l=e!==void 0,s=l?e:n,m=V.useCallback(d=>{let f=typeof d=="function"?d(s):d;l||a(f),o==null||o(f)},[l,o,s]);return[s,m]}i(pe,"useHybridState");var ct=i(({pageIndex:e,pageSize:o,pageCount:t,rowCount:n,canPreviousPage:a,canNextPage:l,pageSizeOptions:s,onPrevious:m,onNext:d,onPageSizeChange:f,labels:c})=>{var U,B,H,Y,te;let N=n===0?0:e*o+1,O=Math.min((e+1)*o,n),$=(U=c==null?void 0:c.showingRange)!=null?U:((y,M,ge)=>`Mostrando ${y}-${M} de ${ge}`),k=(B=c==null?void 0:c.perPageOption)!=null?B:(y=>`${y} por p\xE1gina`),R=(H=c==null?void 0:c.perPageTrigger)!=null?H:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[b(P,{variant:"meta",text:$(N,O,n)}),de(F,{flexDirection:"row",gap:"small",alignItems:"center",children:[s.length>1&&b(Z,{position:"right",options:s.map(y=>({title:k(y),action:i(()=>f(y),"action")})),children:b(ie,{variant:"linked",size:"small",text:R(o)})}),b(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(Y=c==null?void 0:c.previous)!=null?Y:"Anterior"}),b(P,{variant:"meta",text:`${e+1} / ${Math.max(t,1)}`}),b(ie,{variant:"linked",size:"small",disabled:!l,onClick:d,text:(te=c==null?void 0:c.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(n=>(n.left="flex-start",n.center="center",n.right="flex-end",n))(_t||{});var ee={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as bt,getSortedRowModel as xt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as p,jsxs as L}from"react/jsx-runtime";function Gt(e,o){return e.map(t=>{var l,s,m,d,f;let n=t.accessor?String(t.accessor):void 0,a={id:(l=t.id)!=null?l:n||void 0,header:i(()=>t.Header,"header"),footer:t.Footer?c=>t.Footer({table:c.table}):void 0,enableSorting:!t.disableSortBy,enableResizing:!0,enableColumnFilter:t.disableFilters?!1:!!t.filterVariant,...t.filterVariant&&{filterFn:(s=t.filterFn)!=null?s:Ze[t.filterVariant]},size:(m=t.width)!=null?m:o.width,minSize:(d=t.minWidth)!=null?d:o.minWidth,maxSize:(f=t.maxWidth)!=null?f:o.maxWidth,meta:{align:t.align,selectable:t.selectable,filterVariant:t.filterVariant}};return n?a.accessorKey=n:a.accessorFn=()=>null,t.Cell&&(a.cell=c=>t.Cell({row:c.row,value:c.getValue()})),a})}i(Gt,"toTanstackColumns");function Gn(e){var Ve;let{data:o,columns:t,onRowSelect:n,onRowClick:a,selectableColumnWidth:l,selectableColumn:s,setRowColor:m,title:d,striped:f,bordered:c,searchPlaceholder:N,hasHeader:O,hasFooter:$,hasSpacingMenu:k,inputSearchComponent:R,headerLeftComponent:U=null,headerRightComponent:B=null,lastRowComponent:H,height:Y=400,spacing:te=0,paginated:y=!1,initialPagination:M,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,A=!!Pe,be=S.useMemo(()=>t.some(r=>r.filterVariant&&!r.disableFilters),[t]),[Ft,xe]=S.useState(48),[Pt,kt]=S.useState([]),[ve,Ie]=S.useState(""),[Ce,vt]=S.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=M==null?void 0:M.pageIndex)!=null?r:0,pageSize:(u=(g=M==null?void 0:M.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Mt,Dt]=pe(wt,yt,()=>me!=null?me:{}),[Et,zt]=pe(Tt,St,()=>fe!=null?fe:[]),Vt=S.useMemo(()=>{let r=Gt(t,ee),g=it(s,l),u=at(A,ne!=null?ne:l),w=[];return u&&w.push(u),g&&w.push(g),[...w,...r]},[t,s,l,A,ne]),v=Ct({data:o,columns:Vt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...A&&{expanded:Mt},...be&&{columnFilters:Et}},enableRowSelection:!!s,enableExpanding:A,...A&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...A&&{onExpandedChange:Dt},...be&&{onColumnFiltersChange:zt},getCoreRowModel:dt(),getSortedRowModel:xt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:bt()},...A&&{getExpandedRowModel:pt()},...be&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:ee.width,minSize:ee.minWidth,maxSize:ee.maxWidth}}),K=v.getRowModel().rows;Ne(()=>{if(n){let r=K.filter(g=>Ce[g.id]).map(g=>g.original);n(r)}},[Ce]);let W=Le(),Re=K.length+(H?1:0),Me=S.useCallback((r,g)=>{let u=m&&m(r),w=f&&g%2===0,x=W.colors.surface.paper;return u?x=W.colors[u].light:r.getIsSelected()&&n?x=W.colors.muted:w&&(x=W.colors.surface.sunken),{backgroundColor:x}},[m,f,W,n]),oe=Ft+te,re=S.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:w,selectable:x})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:w?W.spacing("small"):void 0,cursor:x?"pointer":void 0}}),[oe,W]),Lt=S.useCallback(({index:r,style:g})=>{if(H&&r===Re-1)return S.cloneElement(H,{style:g});let u=K[r],w={...g,...Me(u,r)};return p(z,{style:w,children:u.getVisibleCells().map(x=>{var D;let _=(D=x.column.columnDef.meta)!=null?D:{},ye=x.column.id,G;a?G=i(()=>a(u.original),"onClickAction"):n&&(G=i(()=>u.toggleSelected(),"onClickAction"));let J=re({align:_.align,hasCheckbox:ye==="checkbox",selectable:(n||a)&&_.selectable!==!1,cellProps:_.selectable!==!1?{onClick:G}:void 0});return p(q,{...J,style:{...J.style,width:x.column.getSize(),flex:`${x.column.getSize()} 0 auto`},children:ue(x.column.columnDef.cell,x.getContext())},x.id)})})},[K,re,H,a,n,Me,Re]),we=!!K.length,Nt=$&&we&&t.some(r=>"Footer"in r),De=S.useRef(null),ae=ht({count:Re,getScrollElement:i(()=>De.current,"getScrollElement"),estimateSize:i(()=>oe,"estimateSize"),overscan:5});S.useEffect(()=>{ae.measure()},[oe,ae]);let Ee=L(qe,{ref:De,style:{maxHeight:Y},bgColor:"baseLight","data-border":c,"data-default":!f&&!c,children:[p(je,{children:v.getFlatHeaders().map(r=>{var J;let g=(J=r.column.columnDef.meta)!=null?J:{},u=r.column.getCanSort(),w=r.column.getCanResize(),x=r.column.getIsSorted(),_=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),G=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return L(q,{...G,style:{...G.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(_||u)&&L(Qe,{children:[_&&p("span",{role:"presentation",onClick:D=>D.stopPropagation(),children:p(Z,{content:({close:D})=>tt(g.filterVariant,r.column,D,ke),children:p(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&p(Xe,{children:p(I,{icon:rt(x)})})]}),w&&p(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:D=>D.stopPropagation()})]},r.id)})}),we?p(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>p(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Lt({index:r.index,style:{}})},r.key))}):p(st,{...e,height:Y}),Nt&&p(h,{children:p(_e,{children:(Ve=v.getFooterGroups()[0])==null?void 0:Ve.headers.map(r=>{var w;let g=(w=r.column.columnDef.meta)!=null?w:{},u=re({align:g.align});return p(q,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),ze=y&&we&&p(Je,{children:p(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return O?L(F,{gap:"medium",children:[L(F,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[L(F,{flexDirection:"row",gap:"medium",children:[d&&p(P,{variant:"h5",color:"primary.dark",text:d}),U]}),L(F,{flexDirection:"row",gap:"medium",children:[R!=null?R:p(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:N}),B,k?p(F,{alignSelf:"center",children:p(Z,{position:"right",options:[{icon:p(I,{icon:Q}),title:"Layout Compacto",action:i(()=>xe(32),"action")},{icon:p(I,{icon:Q}),title:"Layout Padr\xE3o",action:i(()=>xe(48),"action")},{icon:p(I,{icon:Q}),title:"Layout Expandido",action:i(()=>xe(64),"action")}],children:p(I,{size:5,icon:Q,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),Ee,ze]}):L(jt,{children:[Ee,ze]})}i(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};