@apollion-dsi/core 5.10.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +13 -11
  2. package/lib/chunks/Notification.group-A2B3AOWQ.esm.js +1 -0
  3. package/lib/chunks/{chunk-ZEDZVOPC.esm.js → chunk-256WC4PP.esm.js} +1 -1
  4. package/lib/chunks/chunk-3MZJAPWM.esm.js +1 -0
  5. package/lib/chunks/{chunk-65HUSQDZ.esm.js → chunk-45MWDRNM.esm.js} +1 -1
  6. package/lib/chunks/{chunk-6DTZVTDE.esm.js → chunk-4MZWNQEG.esm.js} +1 -1
  7. package/lib/chunks/{chunk-YOPGC5J2.esm.js → chunk-52ZUY32C.esm.js} +1 -1
  8. package/lib/chunks/{chunk-PDCQBR3M.esm.js → chunk-5J3XFFOC.esm.js} +1 -1
  9. package/lib/chunks/{chunk-AW3ZCRZG.esm.js → chunk-6A67VC76.esm.js} +1 -1
  10. package/lib/chunks/{chunk-M2FRELL5.esm.js → chunk-75RZEPGR.esm.js} +1 -1
  11. package/lib/chunks/{chunk-7MTVH7NF.esm.js → chunk-AY4A3CRI.esm.js} +1 -1
  12. package/lib/chunks/{chunk-PQDT5T6V.esm.js → chunk-BLWZI2HB.esm.js} +1 -1
  13. package/lib/chunks/{chunk-RSARU4F4.esm.js → chunk-CEQ2E5NR.esm.js} +1 -1
  14. package/lib/chunks/{chunk-24X4PCRH.esm.js → chunk-CT2E5OHH.esm.js} +1 -1
  15. package/lib/chunks/{chunk-XSHQR3W5.esm.js → chunk-CYE4PE7O.esm.js} +1 -1
  16. package/lib/chunks/{chunk-H7ZXGMID.esm.js → chunk-D2BGFGF5.esm.js} +1 -1
  17. package/lib/chunks/{chunk-OX6RGQBV.esm.js → chunk-DNEZUVFF.esm.js} +1 -1
  18. package/lib/chunks/chunk-DNPDRN65.esm.js +1 -0
  19. package/lib/chunks/{chunk-S27SAVIL.esm.js → chunk-DOYOTA4M.esm.js} +1 -1
  20. package/lib/chunks/{chunk-ZSDHXESA.esm.js → chunk-DXBBCZ2G.esm.js} +1 -1
  21. package/lib/chunks/{chunk-363PMLHY.esm.js → chunk-E3DFLAI2.esm.js} +1 -1
  22. package/lib/chunks/{chunk-HPW5QY7O.esm.js → chunk-E7F7OX6L.esm.js} +1 -1
  23. package/lib/chunks/{chunk-KZL7TDC4.esm.js → chunk-EAPNLQRA.esm.js} +1 -1
  24. package/lib/chunks/{chunk-7D6Z463O.esm.js → chunk-FUQKZLIO.esm.js} +1 -1
  25. package/lib/chunks/{chunk-7YCYHCUG.esm.js → chunk-FX4N4XE3.esm.js} +1 -1
  26. package/lib/chunks/{chunk-VW237MWN.esm.js → chunk-G7MPAQNL.esm.js} +1 -1
  27. package/lib/chunks/{chunk-FIPPKZ3C.esm.js → chunk-HEPTXYI6.esm.js} +1 -1
  28. package/lib/chunks/chunk-HHMU4JQU.esm.js +1 -0
  29. package/lib/chunks/{chunk-ETH3W4PP.esm.js → chunk-HRWQDKQV.esm.js} +1 -1
  30. package/lib/chunks/{chunk-JIYX535V.esm.js → chunk-HV5DUMYV.esm.js} +1 -1
  31. package/lib/chunks/{chunk-EN4QMSDH.esm.js → chunk-I6OALESP.esm.js} +1 -1
  32. package/lib/chunks/chunk-J2WMKVZ6.esm.js +1 -0
  33. package/lib/chunks/{chunk-T2A3J6XU.esm.js → chunk-JHHHDDJX.esm.js} +1 -1
  34. package/lib/chunks/{chunk-NNPKPEER.esm.js → chunk-KZGTQCBM.esm.js} +1 -1
  35. package/lib/chunks/chunk-KZTG5TDM.esm.js +1 -0
  36. package/lib/chunks/{chunk-GWQA5Z4E.esm.js → chunk-M4OETFK4.esm.js} +1 -1
  37. package/lib/chunks/{chunk-UVCS4EZS.esm.js → chunk-MMBAI43B.esm.js} +1 -1
  38. package/lib/chunks/{chunk-GZVFLN6W.esm.js → chunk-MZXNUBS6.esm.js} +1 -1
  39. package/lib/chunks/{chunk-5F6QROAO.esm.js → chunk-N4HS4XKA.esm.js} +1 -1
  40. package/lib/chunks/chunk-NKSAICKJ.esm.js +1 -0
  41. package/lib/chunks/chunk-PXOXPLL4.esm.js +2 -0
  42. package/lib/chunks/chunk-QDLV2F2N.esm.js +1 -0
  43. package/lib/chunks/chunk-RR2TYGZC.esm.js +1 -0
  44. package/lib/chunks/{chunk-QQU6KGIF.esm.js → chunk-RSQIUWSS.esm.js} +1 -1
  45. package/lib/chunks/{chunk-MITMF2OY.esm.js → chunk-SACX6WA6.esm.js} +1 -1
  46. package/lib/chunks/chunk-SF2QSF7E.esm.js +20 -0
  47. package/lib/chunks/{chunk-LQL2LOMD.esm.js → chunk-SGFHFA5O.esm.js} +1 -1
  48. package/lib/chunks/chunk-T45OIU7I.esm.js +1 -0
  49. package/lib/chunks/{chunk-EF34DPD2.esm.js → chunk-T7HLONFV.esm.js} +1 -1
  50. package/lib/chunks/chunk-TOLIKUNQ.esm.js +1 -0
  51. package/lib/chunks/{chunk-W4JROHUU.esm.js → chunk-TV2VA222.esm.js} +1 -1
  52. package/lib/chunks/chunk-UHABJEDB.esm.js +1 -0
  53. package/lib/chunks/{chunk-LSNLFC7E.esm.js → chunk-UKGWJWRQ.esm.js} +1 -1
  54. package/lib/chunks/{chunk-YLSNRJ7L.esm.js → chunk-URJHAYIA.esm.js} +1 -1
  55. package/lib/chunks/{chunk-CDLUQDZD.esm.js → chunk-UWNCASVD.esm.js} +1 -1
  56. package/lib/chunks/{chunk-MGMYTOBZ.esm.js → chunk-VLYDLZDV.esm.js} +1 -1
  57. package/lib/chunks/{chunk-4YYV5PG5.esm.js → chunk-VNIBGIZ2.esm.js} +1 -1
  58. package/lib/chunks/chunk-VUFEYXWD.esm.js +1 -0
  59. package/lib/chunks/{chunk-LHHKVEZ7.esm.js → chunk-VZJX7POT.esm.js} +1 -1
  60. package/lib/chunks/{chunk-X5H3SR3I.esm.js → chunk-WUMLGV6U.esm.js} +1 -1
  61. package/lib/chunks/{chunk-LZCYT3JI.esm.js → chunk-WUVW6J3R.esm.js} +1 -1
  62. package/lib/chunks/{chunk-CZQSAAEA.esm.js → chunk-WYMKPFHD.esm.js} +1 -1
  63. package/lib/chunks/{chunk-D2AOC2HS.esm.js → chunk-XEUESXXM.esm.js} +1 -1
  64. package/lib/chunks/chunk-Y3SYDZIF.esm.js +1 -0
  65. package/lib/chunks/{chunk-7IW77YYH.esm.js → chunk-YHM3YIO6.esm.js} +1 -1
  66. package/lib/chunks/{chunk-GMCQ4ZLL.esm.js → chunk-Z2ESWFUW.esm.js} +1 -1
  67. package/lib/chunks/{chunk-SXOSOU46.esm.js → chunk-ZAYWAUKZ.esm.js} +1 -1
  68. package/lib/chunks/{chunk-BLJLBPUO.esm.js → chunk-ZZNJQONU.esm.js} +1 -1
  69. package/lib/chunks/{chunk-5OKRBLPE.esm.js → chunk-ZZOIX6CV.esm.js} +1 -1
  70. package/lib/containers/Base/Base.style.d.ts +2 -4
  71. package/lib/containers/Base/index.d.ts +2 -3
  72. package/lib/containers/Base/index.esm.js +1 -1
  73. package/lib/containers/Card/index.esm.js +1 -1
  74. package/lib/containers/Content/index.esm.js +1 -1
  75. package/lib/containers/Flex/Flex.style.d.ts +2 -4
  76. package/lib/containers/Flex/index.d.ts +2 -3
  77. package/lib/containers/Flex/index.esm.js +1 -1
  78. package/lib/containers/Grid/index.esm.js +1 -1
  79. package/lib/containers/Notification/Notification.d.ts +26 -2
  80. package/lib/containers/Notification/Notification.group.d.ts +10 -4
  81. package/lib/containers/Notification/Notification.interface.d.ts +4 -6
  82. package/lib/containers/Notification/Notification.style.d.ts +8 -6562
  83. package/lib/containers/Notification/index.esm.js +1 -1
  84. package/lib/containers/Paper/Paper.style.d.ts +4 -4
  85. package/lib/containers/Paper/index.esm.js +1 -1
  86. package/lib/containers/Scroll/index.esm.js +1 -1
  87. package/lib/containers/index.esm.js +1 -1
  88. package/lib/dataDisplay/DataTable/DataTable.style.d.ts +8 -8
  89. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  90. package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
  91. package/lib/dataDisplay/Meter/index.esm.js +1 -1
  92. package/lib/dataDisplay/Steps/index.esm.js +1 -1
  93. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  94. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  95. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  96. package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +4 -4
  97. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  98. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  99. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  100. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  101. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  102. package/lib/dataDisplay/Table/index.esm.js +1 -1
  103. package/lib/dataDisplay/Tabs/Tabs.style.d.ts +4 -4
  104. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  105. package/lib/dataDisplay/index.esm.js +1 -1
  106. package/lib/elements/Avatar/index.esm.js +1 -1
  107. package/lib/elements/Button/index.esm.js +1 -1
  108. package/lib/elements/Divider/index.esm.js +1 -1
  109. package/lib/elements/Dropdown/index.esm.js +1 -1
  110. package/lib/elements/Icon/index.esm.js +1 -1
  111. package/lib/elements/IconButton/index.esm.js +1 -1
  112. package/lib/elements/IconText/index.esm.js +1 -1
  113. package/lib/elements/Image/index.esm.js +1 -1
  114. package/lib/elements/Label/index.esm.js +1 -1
  115. package/lib/elements/Link/index.esm.js +1 -1
  116. package/lib/elements/List/index.esm.js +1 -1
  117. package/lib/elements/Modal/Modal.style.d.ts +15 -6566
  118. package/lib/elements/Modal/index.esm.js +1 -1
  119. package/lib/elements/Popover/index.esm.js +1 -1
  120. package/lib/elements/ProgressBar/index.esm.js +1 -1
  121. package/lib/elements/Sheet/Sheet.d.ts +27 -0
  122. package/lib/elements/Sheet/Sheet.interface.d.ts +66 -0
  123. package/lib/elements/Sheet/Sheet.style.d.ts +87 -0
  124. package/lib/elements/Sheet/index.d.ts +9 -0
  125. package/lib/elements/Sheet/index.esm.js +1 -0
  126. package/lib/elements/Spinner/Spinner.style.d.ts +9 -3
  127. package/lib/elements/Spinner/index.esm.js +1 -1
  128. package/lib/elements/Svg/index.esm.js +1 -1
  129. package/lib/elements/Text/Text.props.d.ts +81 -80
  130. package/lib/elements/Text/index.esm.js +1 -1
  131. package/lib/elements/Tooltip/index.esm.js +1 -1
  132. package/lib/elements/index.esm.js +1 -1
  133. package/lib/factory/MotionFactory/MotionFactory.d.ts +21 -0
  134. package/lib/factory/MotionFactory/MotionFactory.interface.d.ts +37 -0
  135. package/lib/factory/MotionFactory/index.d.ts +2 -0
  136. package/lib/factory/MotionFactory/index.esm.js +1 -0
  137. package/lib/factory/System/System.interface.d.ts +2 -1
  138. package/lib/factory/System/index.esm.js +1 -1
  139. package/lib/factory/index.d.ts +1 -0
  140. package/lib/factory/index.esm.js +1 -1
  141. package/lib/form/Checkbox/Checkbox.style.d.ts +4 -4
  142. package/lib/form/Checkbox/index.esm.js +1 -1
  143. package/lib/form/Field/index.esm.js +1 -1
  144. package/lib/form/FieldGroup/index.esm.js +1 -1
  145. package/lib/form/Form/index.esm.js +1 -1
  146. package/lib/form/Input/Input.style.d.ts +6 -6
  147. package/lib/form/Input/index.esm.js +1 -1
  148. package/lib/form/InputCurrency/index.esm.js +1 -1
  149. package/lib/form/InputDate/index.esm.js +1 -1
  150. package/lib/form/InputMask/index.esm.js +1 -1
  151. package/lib/form/InputRange/InputRange.style.d.ts +8 -8
  152. package/lib/form/InputRange/index.esm.js +1 -1
  153. package/lib/form/InputSelect/index.esm.js +1 -1
  154. package/lib/form/Option/index.esm.js +1 -1
  155. package/lib/form/Radio/Radio.style.d.ts +4 -4
  156. package/lib/form/Radio/index.esm.js +1 -1
  157. package/lib/form/Select/index.esm.js +1 -1
  158. package/lib/form/Switch/index.esm.js +1 -1
  159. package/lib/form/TextArea/TextArea.style.d.ts +4 -4
  160. package/lib/form/TextArea/index.esm.js +1 -1
  161. package/lib/form/UploadCard/UploadCard.style.d.ts +8 -8
  162. package/lib/form/UploadCard/index.esm.js +1 -1
  163. package/lib/form/index.esm.js +1 -1
  164. package/lib/hooks/index.d.ts +2 -0
  165. package/lib/hooks/index.esm.js +1 -1
  166. package/lib/hooks/useExitTransition/index.d.ts +10 -0
  167. package/lib/hooks/useExitTransition/index.esm.js +1 -0
  168. package/lib/hooks/useExitTransition/useExitTransition.d.ts +28 -0
  169. package/lib/hooks/useExitTransition/useExitTransition.helpers.d.ts +20 -0
  170. package/lib/hooks/useExitTransition/useExitTransition.interface.d.ts +34 -0
  171. package/lib/hooks/useFocusTrap/index.d.ts +7 -0
  172. package/lib/hooks/useFocusTrap/index.esm.js +1 -0
  173. package/lib/hooks/useFocusTrap/useFocusTrap.d.ts +27 -0
  174. package/lib/index.d.ts +1 -1
  175. package/lib/index.esm.js +1 -1
  176. package/lib/index.js +1 -1
  177. package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +2 -2
  178. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  179. package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +2 -2
  180. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  181. package/lib/layouts/index.esm.js +1 -1
  182. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  183. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  184. package/lib/skeleton/index.esm.js +1 -1
  185. package/lib/themes/Animation/Animation.props.d.ts +5 -3
  186. package/lib/themes/Animation/index.esm.js +1 -1
  187. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  188. package/lib/themes/Motion/Motion.helpers.d.ts +58 -0
  189. package/lib/themes/Motion/Motion.interface.d.ts +86 -0
  190. package/lib/themes/Motion/Motion.props.d.ts +20 -0
  191. package/lib/themes/Motion/index.d.ts +10 -0
  192. package/lib/themes/Motion/index.esm.js +1 -0
  193. package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +21 -0
  194. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  195. package/lib/themes/index.esm.js +1 -1
  196. package/package.json +13 -8
  197. package/lib/chunks/Notification.group-JOWXLB2O.esm.js +0 -1
  198. package/lib/chunks/chunk-2DVVVJJP.esm.js +0 -1
  199. package/lib/chunks/chunk-2JTAHCGS.esm.js +0 -1
  200. package/lib/chunks/chunk-DXAKT2S3.esm.js +0 -2
  201. package/lib/chunks/chunk-HC3KBFJR.esm.js +0 -1
  202. package/lib/chunks/chunk-I564UV6U.esm.js +0 -1
  203. package/lib/chunks/chunk-II2LPQYL.esm.js +0 -1
  204. package/lib/chunks/chunk-IPANNHV3.esm.js +0 -1
  205. package/lib/chunks/chunk-LX2VG2YS.esm.js +0 -1
  206. package/lib/chunks/chunk-TNU4DCXP.esm.js +0 -1
  207. package/lib/chunks/chunk-TRGVJXBB.esm.js +0 -1
  208. package/lib/chunks/chunk-XBNEKPXU.esm.js +0 -1
  209. package/lib/chunks/chunk-XUDIJMQO.esm.js +0 -1
  210. package/lib/containers/Motion/Motion.style.d.ts +0 -1652
  211. package/lib/containers/Motion/index.d.ts +0 -12
  212. package/lib/containers/Motion/index.esm.js +0 -1
  213. package/lib/vendors/FramerMotion/component.d.ts +0 -20
  214. package/lib/vendors/FramerMotion/index.d.ts +0 -2
  215. package/lib/vendors/FramerMotion/interface.d.ts +0 -16
  216. /package/lib/chunks/{chunk-2ROOI4B2.esm.js → chunk-AIUT47H7.esm.js} +0 -0
  217. /package/lib/chunks/{chunk-PJQ3IZE7.esm.js → chunk-ZMHNNJNC.esm.js} +0 -0
@@ -2,8 +2,10 @@ import { AnimationThemeInterface } from './Animation.interface';
2
2
  /**
3
3
  * Default values for the `animation` slice consumed by `createTheme`.
4
4
  *
5
- * Provides the named transitions used in the library's micro-interactions.
6
- * Styles reference these keys via `theme.animation.*` instead of literals —
7
- * allowing the UI's kinetics to be orchestrated from a single point.
5
+ * Since ADR-027 these keys are **frozen aliases** of the motion intents
6
+ * (`intent.micro` / `intent.settle`): same numbers, now routed through the
7
+ * `--apollion-motion-*` vars (with the theme literal as fallback) so
8
+ * `prefers-reduced-motion` zeroes them centrally. The keys stay forever —
9
+ * they are public theme surface; new code should consume `theme.motion`.
8
10
  */
9
11
  export declare const animation: AnimationThemeInterface;
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk-IPANNHV3.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as animation};
1
+ import{a}from"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as animation};
@@ -1 +1 @@
1
- import{a,b}from"../../chunks/chunk-DXAKT2S3.esm.js";import"../../chunks/chunk-I564UV6U.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-IPANNHV3.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.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-PXOXPLL4.esm.js";import"../../chunks/chunk-Y3SYDZIF.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.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};
@@ -0,0 +1,58 @@
1
+ import { MotionThemeInterface } from './Motion.interface';
2
+ import { RuleSet } from '../../vendors/StyledComponents';
3
+ /**
4
+ * Reduced-motion duration target (ADR-027). `0.01ms` instead of `0ms` so a
5
+ * transition is still created and `transitionend` still fires in real
6
+ * browsers — the exit-latch contract depends on the event; a `0s` duration
7
+ * never starts a transition and never fires it.
8
+ */
9
+ export declare const REDUCED_MOTION_DURATION = "0.01ms";
10
+ /**
11
+ * `theme.motion` → `--apollion-motion-*` custom properties, split vars only
12
+ * (duration and easing never share a name, so reduced-motion can zero
13
+ * durations without touching curves).
14
+ *
15
+ * The emitted names/values are byte-identical to the `motion.*` group of the
16
+ * `@apollion-dsi/tokens` static CSS — one canonical emitter per consumer
17
+ * class (core GlobalStyle for styled-components consumers, the tokens sheet
18
+ * for the rest); the parity suite pins the values (ADR-027).
19
+ */
20
+ export declare function motionVars(motion: MotionThemeInterface): Record<string, string>;
21
+ /**
22
+ * The `prefers-reduced-motion: reduce` override set: every duration-carrying
23
+ * var (Tier-1 scale + Tier-2 intent durations) forced to
24
+ * {@link REDUCED_MOTION_DURATION}. The indicator channel is deliberately
25
+ * absent — an indeterminate indicator at ~0ms cycles would strobe (WCAG
26
+ * 2.3.1), so indicator consumers ship their own reduced variants instead.
27
+ */
28
+ export declare function reducedMotionVars(motion: MotionThemeInterface): Record<string, string>;
29
+ /**
30
+ * The complete global motion CSS block `GlobalStyle` interpolates: the
31
+ * `:root` var set plus the `prefers-reduced-motion` override. A pure string
32
+ * builder on purpose — `createGlobalStyle` output is not introspectable
33
+ * under the jest node build, so the block is unit-tested here, byte-precise,
34
+ * and `GlobalStyle` stays a thin interpolation site.
35
+ */
36
+ export declare function motionGlobalCss(motion: MotionThemeInterface): string;
37
+ /**
38
+ * Opt-in View Transitions wiring (ADR-027 S5, progressive enhancement):
39
+ * binds the browser's root cross-fade (`::view-transition-old/new(root)`)
40
+ * to the motion intent vars — old frame leaves on the `exit` intent, new
41
+ * frame arrives on the `enter` intent. Guarded by `@supports`, so browsers
42
+ * without the API (the Firefox floor) swap instantly: motion never blocks.
43
+ *
44
+ * Reduced motion is inherited for free — the animation durations consume
45
+ * the same vars the global override zeroes. A pure string builder for the
46
+ * same testability reason as {@link motionGlobalCss}; consumers use the
47
+ * {@link viewTransitionStyles} RuleSet.
48
+ */
49
+ export declare function viewTransitionCss(): string;
50
+ /**
51
+ * Ready-to-extend RuleSet of {@link viewTransitionCss} — pass it to
52
+ * `<GlobalStyle extend={viewTransitionStyles} />` to time the browser's
53
+ * View Transitions (e.g. `document.startViewTransition(() => setMode(...))`
54
+ * on a theme switch) with the DS motion tokens. Deliberately NOT part of
55
+ * the default GlobalStyle emission: view transitions are a consumer
56
+ * routing/theming decision, never the component library's.
57
+ */
58
+ export declare const viewTransitionStyles: RuleSet<object>;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Shape of the motion slice inside Apollion's `Theme` (ADR-027).
3
+ *
4
+ * Three tiers, mirroring the DTCG motion taxonomy:
5
+ * - **Tier 1 (primitives):** `duration` (a clean ms scale) and `easing`
6
+ * (named cubic-bezier curves).
7
+ * - **Tier 2 (intents):** `{ duration, easing }` pairs named by intent
8
+ * (`enter`, `exit`, `emphasis`, …) — what components consume.
9
+ * - **Indicator channel:** loop durations for indeterminate indicators
10
+ * (spinners, progress pulses). A separate channel on purpose: intent and
11
+ * scale durations are zeroed under `prefers-reduced-motion`, indicator
12
+ * durations are never zeroed (an infinite animation at ~0ms would strobe —
13
+ * the inverse of WCAG 2.3.3's intent).
14
+ *
15
+ * The component tier (composites like `modal.overlay.transition`) is minted
16
+ * by its first consumer, not here — see ADR-020 for the precedent.
17
+ */
18
+ /**
19
+ * Duration-scale keys, in milliseconds. A deliberate clean scale — outliers
20
+ * (e.g. the 2750ms `settle` flash) live as direct Tier-2 values, never as
21
+ * primitives.
22
+ */
23
+ export type MotionDurationKey = '0' | '50' | '100' | '150' | '200' | '300' | '500';
24
+ /**
25
+ * Named easing curves. `standard` ≡ CSS `ease-in-out`, `settle` ≡ CSS
26
+ * `ease-out`; `enter` decelerates (things arriving), `exit` accelerates
27
+ * (things leaving), `emphasized` is the surface-movement curve, `bounce`
28
+ * overshoots (opt-in emphasis only).
29
+ */
30
+ export type MotionEasingKey = 'linear' | 'standard' | 'enter' | 'exit' | 'emphasized' | 'bounce' | 'settle';
31
+ /**
32
+ * Intent keys — semantic Tier-2 names components reach for instead of raw
33
+ * primitives. `micro` covers hover/focus/toggle feedback; `emphasis` covers
34
+ * surface movement (sheets, modals, drawers); `settle` is the slow color
35
+ * ease-back used by live values (`Text` `tick`).
36
+ */
37
+ export type MotionIntentKey = 'micro' | 'enter' | 'enterFast' | 'exit' | 'exitFast' | 'emphasis' | 'settle';
38
+ /**
39
+ * Indicator-channel keys — cycle durations of indeterminate indicators.
40
+ * `loop` is the steady rotation cycle (e.g. `Spinner` rotate), `pulse` the
41
+ * embellishment cycle (e.g. `Spinner` dash). Exempt from reduced-motion
42
+ * zeroing by contract.
43
+ */
44
+ export type MotionIndicatorKey = 'loop' | 'pulse';
45
+ /** A cubic-bezier curve as its four control points `[x1, y1, x2, y2]`. */
46
+ export type MotionEasingPoints = readonly [number, number, number, number];
47
+ /** Input shape of one Tier-2 intent. */
48
+ export interface MotionIntentInput {
49
+ /**
50
+ * Duration of the intent: a {@link MotionDurationKey} referencing the
51
+ * Tier-1 scale, or a direct number in ms for documented outliers (the
52
+ * `settle` 2750ms flash is the only stock case).
53
+ */
54
+ duration: MotionDurationKey | number;
55
+ /** Easing of the intent, referencing the Tier-1 {@link MotionEasingKey} scale. */
56
+ easing: MotionEasingKey;
57
+ }
58
+ /** Input shape of the motion slice consumed by `createMotion`. */
59
+ export interface MotionInput {
60
+ /** Tier-1 duration scale, values in milliseconds. */
61
+ duration: Record<MotionDurationKey, number>;
62
+ /** Tier-1 easing scale, values as cubic-bezier control points. */
63
+ easing: Record<MotionEasingKey, MotionEasingPoints>;
64
+ /** Indicator-channel cycle durations, values in milliseconds. */
65
+ indicator: Record<MotionIndicatorKey, number>;
66
+ /** Tier-2 intents, referencing the Tier-1 scales. */
67
+ intent: Record<MotionIntentKey, MotionIntentInput>;
68
+ }
69
+ /** One resolved Tier-2 intent — CSS-ready strings. */
70
+ export interface MotionIntentValue {
71
+ /** Resolved duration, e.g. `'200ms'`. */
72
+ duration: string;
73
+ /** Resolved easing, e.g. `'cubic-bezier(0, 0, 0.2, 1)'`. */
74
+ easing: string;
75
+ }
76
+ /** Resolved `theme.motion` surface — every value a CSS-ready string. */
77
+ export interface MotionThemeInterface {
78
+ /** Tier-1 durations, e.g. `duration['150'] === '150ms'`. */
79
+ duration: Record<MotionDurationKey, string>;
80
+ /** Tier-1 easings in functional form, e.g. `'cubic-bezier(0.42, 0, 0.58, 1)'`. */
81
+ easing: Record<MotionEasingKey, string>;
82
+ /** Indicator-channel durations, e.g. `indicator.loop === '2000ms'`. */
83
+ indicator: Record<MotionIndicatorKey, string>;
84
+ /** Tier-2 intents, resolved to `{ duration, easing }` string pairs. */
85
+ intent: Record<MotionIntentKey, MotionIntentValue>;
86
+ }
@@ -0,0 +1,20 @@
1
+ import { MotionEasingPoints, MotionInput, MotionThemeInterface } from './Motion.interface';
2
+ /**
3
+ * Default motion input (ADR-027). Mirrored by `@apollion-dsi/tokens`
4
+ * (`builders/motion.ts`, Strangler Fig) — the parity suite pins the mirror,
5
+ * so value changes here must ship with the tokens package in lockstep.
6
+ */
7
+ export declare const defaultInputMotion: MotionInput;
8
+ /** `150` → `'150ms'` — the single duration formatting rule (parity-pinned). */
9
+ export declare const formatMotionDuration: (ms: number) => string;
10
+ /**
11
+ * `[0, 0, 0.2, 1]` → `'cubic-bezier(0, 0, 0.2, 1)'`. Always the functional
12
+ * form, never keywords — deterministic emission across core and tokens
13
+ * (parity-pinned).
14
+ */
15
+ export declare const formatMotionEasing: (points: MotionEasingPoints) => string;
16
+ /**
17
+ * Builds the resolved `theme.motion` surface: Tier-1 scales and the indicator
18
+ * channel formatted to CSS strings, Tier-2 intents resolved against them.
19
+ */
20
+ export declare const createMotion: (input: MotionInput) => MotionThemeInterface;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Public barrel for the `Motion` theme module (ADR-027).
3
+ *
4
+ * Re-exports the interfaces, the default input + `createMotion`, and the
5
+ * CSS-var helpers consumed by `GlobalStyle`. Other files in the project
6
+ * should import from here — never from internal paths like `./Motion.props`.
7
+ */
8
+ export * from './Motion.helpers';
9
+ export * from './Motion.interface';
10
+ export * from './Motion.props';
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as REDUCED_MOTION_DURATION,j as createMotion,g as defaultInputMotion,h as formatMotionDuration,i as formatMotionEasing,d as motionGlobalCss,b as motionVars,c as reducedMotionVars,e as viewTransitionCss,f as viewTransitionStyles};
@@ -11,6 +11,7 @@ import { FontInput, FontThemeInterface, TypeWeight } from '../Font';
11
11
  import { FoundationLayer } from '../Foundation';
12
12
  import { ContainerSizesInput, ContainerSizesInterface, LayoutInput, LayoutInterface } from '../Layout';
13
13
  import type { A11yMode, ModePreference, PersistOption, ResolvedMode } from '../Mode/Mode.interface';
14
+ import { MotionInput, MotionThemeInterface } from '../Motion';
14
15
  import { SemanticLayer } from '../Semantic';
15
16
  import { SpacingInput, SpacingThemeInterface } from '../Spacing';
16
17
  import type { SurfaceMode } from '../Surface';
@@ -30,6 +31,13 @@ export interface ThemeInputsInterface {
30
31
  colors?: ColorsInput;
31
32
  font?: FontInput;
32
33
  border?: BorderInput;
34
+ /**
35
+ * Motion token scales (ADR-027) — Tier-1 duration/easing primitives, the
36
+ * indicator channel and Tier-2 intents. Deep-merged over the defaults.
37
+ *
38
+ * @see ../Motion/Motion.interface.ts
39
+ */
40
+ motion?: MotionInput;
33
41
  /**
34
42
  * Density axis introduced in `@apollion-dsi/core` v4 (ADR-006 E2).
35
43
  * Overrides `spacing.multiplier` when provided. Default: `'normal'`
@@ -72,6 +80,19 @@ export type Theme = {
72
80
  depth: DepthThemeInterface;
73
81
  deep: DeepThemeInterface;
74
82
  animation: AnimationThemeInterface;
83
+ /**
84
+ * Motion tokens (ADR-027): Tier-1 `duration`/`easing` scales, the
85
+ * reduced-motion-exempt `indicator` channel, and Tier-2 `intent` pairs.
86
+ * `GlobalStyle` mirrors this slice as `--apollion-motion-*` custom
87
+ * properties; styles should consume the vars (with the theme value as the
88
+ * `var()` fallback) so `prefers-reduced-motion` can zero durations
89
+ * centrally. The legacy `animation.transitions.*` strings remain as frozen
90
+ * aliases of `intent.micro`/`intent.settle`.
91
+ *
92
+ * @see ../Motion/Motion.interface.ts
93
+ * @see ../../docs/adr/ADR-027-motion-tokens-css-first.md
94
+ */
95
+ motion: MotionThemeInterface;
75
96
  /**
76
97
  * Semantic layer — tokens named by intent, derived exactly once in
77
98
  * `createTheme()` from the structural tokens. Added in
@@ -1 +1 @@
1
- import"../../chunks/chunk-4L2KOZIQ.esm.js";import{a,e as b,g as c}from"../../chunks/chunk-I564UV6U.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-IPANNHV3.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.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-Y3SYDZIF.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.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-EBOJSNZ5.esm.js";import{a as Ya,b as Za}from"../chunks/chunk-DXAKT2S3.esm.js";import{a as _a}from"../chunks/chunk-TG2P4DDY.esm.js";import{a as $a}from"../chunks/chunk-4E3BR56X.esm.js";import{a as ab}from"../chunks/chunk-TMIQIUOH.esm.js";import"../chunks/chunk-4L2KOZIQ.esm.js";import{a as Ua,e as Wa,g as Xa}from"../chunks/chunk-I564UV6U.esm.js";import"../chunks/chunk-YJHYFCT7.esm.js";import{a as za,b as Aa,c as Ba,d as Ca,e as Da,f as Ea,g as Fa,h as Ga,i as Ha,j as Ia,k as Ja,l as Ka,m as La,n as Ma,o as Na,p as Oa,q as Pa,r as Qa}from"../chunks/chunk-TLIKQFOT.esm.js";import"../chunks/chunk-IA234JY2.esm.js";import{a as Sa,b as Ta}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as Va}from"../chunks/chunk-G757UD32.esm.js";import{b as Ra}from"../chunks/chunk-OSFHXCPW.esm.js";import{a as na,b as oa,c as pa}from"../chunks/chunk-KT6QQ3UJ.esm.js";import{b as qa}from"../chunks/chunk-BERIBF3O.esm.js";import{a as ra}from"../chunks/chunk-LVVNQRJ2.esm.js";import"../chunks/chunk-Z7GJDO5T.esm.js";import{a as va,b as wa,c as xa}from"../chunks/chunk-P7RR4ZHS.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 ya}from"../chunks/chunk-PFLBU7HG.esm.js";import{a as la}from"../chunks/chunk-IPANNHV3.esm.js";import{a as ma}from"../chunks/chunk-3DUB5C4Z.esm.js";import"../chunks/chunk-HVFI7FHR.esm.js";import"../chunks/chunk-VMIXRIQ2.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-YJ6PPJQ4.esm.js";import"../chunks/chunk-R2B57RMV.esm.js";import{a as $,b as aa,c as ba}from"../chunks/chunk-RFUX53ZX.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-CQASQBD7.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-MREWGN5R.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-PXVTXO3L.esm.js";import"../chunks/chunk-BV6GHAF7.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-AXUWC2WH.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{Ba as A11Y_ATTRIBUTE,$a as ApollionModeScript,Xa as ApollionProvider,I as DARK_BOOST_TAPER_MAX_L,H as DARK_ELEVATION_BOOST,Ca as DARK_SCHEME_QUERY,ta as DEFAULT_DIMENSION,aa as DEPTH_SHADOW,sa as DIMENSION_MULTIPLIERS,n as DISABLED_NEUTRAL_INDICES,N as EDGE_ALPHA,da as GROUND_INK_ROLES,ca as GROUND_VAR_PREFIX,Za as GlobalStyle,Ya as GlobalStyleComponent,_a 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,Aa as MODE_ATTRIBUTE,za 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,ab as SurfaceProvider,va as TYPE_WEIGHT_LADDERS,O as WASH_ALPHA,Da as a11yStorageKey,_ as accessibilityPalettes,la as animation,b as apcaContrast,a as apcaLuminance,ka as auditGroundVars,na as breakpointsValues,y as clampLightness,Pa as clearDocumentMode,Y as colorblindPalette,g as contrastRatio,Ka as cookieAdapter,pa as createBreakpoints,U as createColors,qa as createComponentTokens,ra as createDeepTheme,ba as createDeth,xa as createFont,ya as createFoundation,m as createReadableTextLayer,Ra as createSemantic,Ta as createSpacing,Ua as createTheme,J as darkElevationBoostFactor,ma as defaultInputBorder,oa as defaultInputBreakpoints,T as defaultInputColors,wa as defaultInputFont,Sa as defaultInputSpacing,i as getColor,j as getContrastColor,Qa as getModeScript,ua as getMultiplierForDimension,e as getOppositeColor,V as grayscalePalette,ha as groundInkPath,fa as groundVar,ga as groundVarRef,ja as groundVars,W as highContrastPalette,Va as invertForSurface,Fa as isA11yMode,w as isDarkSurface,Ea as isModePreference,ia as isOpaqueGround,$ as levelValues,Ia 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,Ga as prefersDarkScheme,Na as readA11yFromCookie,Ja as readCookieValue,Ma as readModeFromCookie,h as readableColor,p as resolveDisabledNeutral,Ha as resolveMode,S as resolveOppositeLadder,P as resolvePolarity,s as resolveQuietPalette,La as resolveStorage,q as resolveStructuralNeutrals,R as resolveSurfaceLadder,x as shiftLightness,Oa as syncDocumentMode,Z as toDarkColors,z as toRgbaString,Wa as useApollionTheme};
1
+ import"../chunks/chunk-EBOJSNZ5.esm.js";import{a as ab}from"../chunks/chunk-TMIQIUOH.esm.js";import"../chunks/chunk-4L2KOZIQ.esm.js";import{a as Ya,b as Za}from"../chunks/chunk-PXOXPLL4.esm.js";import{a as Ua,e as Wa,g as Xa}from"../chunks/chunk-Y3SYDZIF.esm.js";import"../chunks/chunk-IA234JY2.esm.js";import{a as Sa,b as Ta}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as Va}from"../chunks/chunk-G757UD32.esm.js";import{b as Ra}from"../chunks/chunk-OSFHXCPW.esm.js";import{a as va,b as wa,c as xa}from"../chunks/chunk-P7RR4ZHS.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 ya}from"../chunks/chunk-PFLBU7HG.esm.js";import{a as _a}from"../chunks/chunk-TG2P4DDY.esm.js";import"../chunks/chunk-YJHYFCT7.esm.js";import{a as $a}from"../chunks/chunk-4E3BR56X.esm.js";import{a as za,b as Aa,c as Ba,d as Ca,e as Da,f as Ea,g as Fa,h as Ga,i as Ha,j as Ia,k as Ja,l as Ka,m as La,n as Ma,o as Na,p as Oa,q as Pa,r as Qa}from"../chunks/chunk-TLIKQFOT.esm.js";import{a as la}from"../chunks/chunk-UHABJEDB.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{b as qa}from"../chunks/chunk-BERIBF3O.esm.js";import{a as ra}from"../chunks/chunk-LVVNQRJ2.esm.js";import"../chunks/chunk-Z7GJDO5T.esm.js";import"../chunks/chunk-HVFI7FHR.esm.js";import"../chunks/chunk-VMIXRIQ2.esm.js";import"../chunks/chunk-SF2QSF7E.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-YJ6PPJQ4.esm.js";import"../chunks/chunk-R2B57RMV.esm.js";import{a as $,b as aa,c as ba}from"../chunks/chunk-RFUX53ZX.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-CQASQBD7.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-MREWGN5R.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-PXVTXO3L.esm.js";import"../chunks/chunk-BV6GHAF7.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-AXUWC2WH.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{Ba as A11Y_ATTRIBUTE,$a as ApollionModeScript,Xa as ApollionProvider,I as DARK_BOOST_TAPER_MAX_L,H as DARK_ELEVATION_BOOST,Ca as DARK_SCHEME_QUERY,ta as DEFAULT_DIMENSION,aa as DEPTH_SHADOW,sa as DIMENSION_MULTIPLIERS,n as DISABLED_NEUTRAL_INDICES,N as EDGE_ALPHA,da as GROUND_INK_ROLES,ca as GROUND_VAR_PREFIX,Za as GlobalStyle,Ya as GlobalStyleComponent,_a 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,Aa as MODE_ATTRIBUTE,za 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,ab as SurfaceProvider,va as TYPE_WEIGHT_LADDERS,O as WASH_ALPHA,Da as a11yStorageKey,_ as accessibilityPalettes,la as animation,b as apcaContrast,a as apcaLuminance,ka as auditGroundVars,na as breakpointsValues,y as clampLightness,Pa as clearDocumentMode,Y as colorblindPalette,g as contrastRatio,Ka as cookieAdapter,pa as createBreakpoints,U as createColors,qa as createComponentTokens,ra as createDeepTheme,ba as createDeth,xa as createFont,ya as createFoundation,m as createReadableTextLayer,Ra as createSemantic,Ta as createSpacing,Ua as createTheme,J as darkElevationBoostFactor,ma as defaultInputBorder,oa as defaultInputBreakpoints,T as defaultInputColors,wa as defaultInputFont,Sa as defaultInputSpacing,i as getColor,j as getContrastColor,Qa as getModeScript,ua as getMultiplierForDimension,e as getOppositeColor,V as grayscalePalette,ha as groundInkPath,fa as groundVar,ga as groundVarRef,ja as groundVars,W as highContrastPalette,Va as invertForSurface,Fa as isA11yMode,w as isDarkSurface,Ea as isModePreference,ia as isOpaqueGround,$ as levelValues,Ia 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,Ga as prefersDarkScheme,Na as readA11yFromCookie,Ja as readCookieValue,Ma as readModeFromCookie,h as readableColor,p as resolveDisabledNeutral,Ha as resolveMode,S as resolveOppositeLadder,P as resolvePolarity,s as resolveQuietPalette,La as resolveStorage,q as resolveStructuralNeutrals,R as resolveSurfaceLadder,x as shiftLightness,Oa as syncDocumentMode,Z as toDarkColors,z as toRgbaString,Wa as useApollionTheme};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollion-dsi/core",
3
- "version": "5.10.0",
3
+ "version": "6.0.0",
4
4
  "description": "Apollion Design System — Component Library",
5
5
  "homepage": "https://www.apollion.com.br",
6
6
  "license": "MIT",
@@ -39,10 +39,6 @@
39
39
  "types": "./lib/containers/Grid/index.d.ts",
40
40
  "import": "./lib/containers/Grid/index.esm.js"
41
41
  },
42
- "./containers/motion": {
43
- "types": "./lib/containers/Motion/index.d.ts",
44
- "import": "./lib/containers/Motion/index.esm.js"
45
- },
46
42
  "./containers/notification": {
47
43
  "types": "./lib/containers/Notification/index.d.ts",
48
44
  "import": "./lib/containers/Notification/index.esm.js"
@@ -139,6 +135,10 @@
139
135
  "types": "./lib/elements/ProgressBar/index.d.ts",
140
136
  "import": "./lib/elements/ProgressBar/index.esm.js"
141
137
  },
138
+ "./elements/sheet": {
139
+ "types": "./lib/elements/Sheet/index.d.ts",
140
+ "import": "./lib/elements/Sheet/index.esm.js"
141
+ },
142
142
  "./elements/spinner": {
143
143
  "types": "./lib/elements/Spinner/index.d.ts",
144
144
  "import": "./lib/elements/Spinner/index.esm.js"
@@ -287,6 +287,10 @@
287
287
  "types": "./lib/themes/Mode/index.d.ts",
288
288
  "import": "./lib/themes/Mode/index.esm.js"
289
289
  },
290
+ "./themes/motion": {
291
+ "types": "./lib/themes/Motion/index.d.ts",
292
+ "import": "./lib/themes/Motion/index.esm.js"
293
+ },
290
294
  "./themes/semantic": {
291
295
  "types": "./lib/themes/Semantic/index.d.ts",
292
296
  "import": "./lib/themes/Semantic/index.esm.js"
@@ -341,6 +345,8 @@
341
345
  "validate:tests": "jest --coverage",
342
346
  "generate-exports": "node ./scripts/generate-exports.js",
343
347
  "generate-exports:check": "node ./scripts/generate-exports.js --check",
348
+ "measure-matrix": "node ./scripts/measure-matrix.js",
349
+ "measure-matrix:check": "node ./scripts/measure-matrix.js --check",
344
350
  "build:lib": "node -e \"require('fs').rmSync('./lib',{recursive:true,force:true})\" && node ./esbuild && tsc --emitDeclarationOnly",
345
351
  "build": "yarn build:lib && yarn build-storybook",
346
352
  "test": "yarn validate",
@@ -371,7 +377,6 @@
371
377
  "date-fns": "4.1.0",
372
378
  "deepmerge": "4.3.1",
373
379
  "fast-deep-equal": "3.1.3",
374
- "framer-motion": "12.38.0",
375
380
  "lodash.debounce": "4.0.8",
376
381
  "nanoid": "5.1.16",
377
382
  "object-hash": "3.0.0",
@@ -383,10 +388,10 @@
383
388
  "zod": "4.4.3"
384
389
  },
385
390
  "optionalDependencies": {
386
- "@apollion-dsi/tokens": "5.10.0"
391
+ "@apollion-dsi/tokens": "6.0.0"
387
392
  },
388
393
  "devDependencies": {
389
- "@apollion-dsi/eslint-config": "0.9.1",
394
+ "@apollion-dsi/eslint-config": "0.10.0",
390
395
  "@axe-core/playwright": "^4.13.0",
391
396
  "@babel/core": "7.29.0",
392
397
  "@babel/preset-env": "7.29.5",
@@ -1 +0,0 @@
1
- import{e as m}from"./chunk-LX2VG2YS.esm.js";import"./chunk-EF34DPD2.esm.js";import"./chunk-2ROOI4B2.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-KQQ7V7VG.esm.js";import"./chunk-NDIYF5SX.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-MGMYTOBZ.esm.js";import"./chunk-DAT6GD4T.esm.js";import"./chunk-CDLUQDZD.esm.js";import"./chunk-OX6RGQBV.esm.js";import"./chunk-SXOSOU46.esm.js";import"./chunk-JLQDS5TS.esm.js";import"./chunk-7TJO34VI.esm.js";import"./chunk-5Q265MC7.esm.js";import"./chunk-3V3ZEGHO.esm.js";import"./chunk-NNPKPEER.esm.js";import"./chunk-7D6Z463O.esm.js";import"./chunk-EBOJSNZ5.esm.js";import"./chunk-DXAKT2S3.esm.js";import"./chunk-TG2P4DDY.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-TMIQIUOH.esm.js";import"./chunk-4L2KOZIQ.esm.js";import{d as s}from"./chunk-I564UV6U.esm.js";import"./chunk-YJHYFCT7.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-G757UD32.esm.js";import"./chunk-OSFHXCPW.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import"./chunk-BERIBF3O.esm.js";import"./chunk-LVVNQRJ2.esm.js";import"./chunk-Z7GJDO5T.esm.js";import"./chunk-P7RR4ZHS.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-PFLBU7HG.esm.js";import"./chunk-IPANNHV3.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-H7ZXGMID.esm.js";import"./chunk-2JTAHCGS.esm.js";import"./chunk-KT4BKJVV.esm.js";import{a as r,b as a}from"./chunk-TRGVJXBB.esm.js";import"./chunk-QQU6KGIF.esm.js";import{a as o}from"./chunk-XUDIJMQO.esm.js";import"./chunk-PJQ3IZE7.esm.js";import"./chunk-II2LPQYL.esm.js";import"./chunk-VMIXRIQ2.esm.js";import"./chunk-HCNNXM2C.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-F62355HF.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-OXQA5WD3.esm.js";import"./chunk-TZQMBDGR.esm.js";import"./chunk-WCUEINBQ.esm.js";import"./chunk-YJ6PPJQ4.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-3A7I6HM2.esm.js";import"./chunk-WI3WPCW3.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-R2B57RMV.esm.js";import"./chunk-RFUX53ZX.esm.js";import"./chunk-CQASQBD7.esm.js";import"./chunk-MREWGN5R.esm.js";import"./chunk-PXVTXO3L.esm.js";import"./chunk-BV6GHAF7.esm.js";import{c as e}from"./chunk-G5Z7USXC.esm.js";import"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import{useEffect as d,useState as y}from"react";import{createPortal as C}from"react-dom";import{jsx as t}from"react/jsx-runtime";var x=n(()=>{let{notifications:c,removeNotification:f}=s(),[p,l]=y(!1);return d(()=>{l(!0)},[]),!p||!e?null:C(t(o,{style:{position:"fixed",bottom:"1rem",right:"1rem"},children:t(r,{children:c.map(({id:i,...u})=>t(a,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{scale:0,opacity:0,height:0},style:{minWidth:300,maxWidth:"30vw",zIndex:100},children:t(o,{style:{margin:"0.5rem"},children:t(m,{...u,visible:!0,closable:!0,onDismiss:()=>f(i)})})},i))})}),e)},"NotificationGroup"),W=x;export{W as default};
@@ -1 +0,0 @@
1
- import{a as h}from"./chunk-XUDIJMQO.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity 0.25s ease-in;z-index:1;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,F]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),z=x(r=>{s.current=r,typeof u=="function"?u(r):u&&(u.current=r)},[u]);X(()=>{let r=s.current,t,n=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(r){let{clientHeight:l,scrollHeight:a}=r;F(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",n),n(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",n)}},[s,e]);let $=x(r=>{if(i&&i(r),d===1)return;let t=s.current,n=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);n&&(n.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(r=>{let t=s.current,n,c=r.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:z,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-KT4BKJVV.esm.js";import{a as n}from"./chunk-XUDIJMQO.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var c=o(n).withConfig({componentId:"sc-1teioay-0"})(["animation:rotate 2s linear infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),p=o(t).withConfig({componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:dash 1.5s ease-in-out 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;}}"]),d=2*Math.PI*20,f=o(n).withConfig({componentId:"sc-1teioay-2"})(["transform:rotate(-90deg);"]),l=o(t).withConfig({componentId:"sc-1teioay-3"})(["fill:none;stroke:currentColor;stroke-width:4;opacity:0.2;"]),m=o(t).withConfig({componentId:"sc-1teioay-4"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-dasharray:",";animation:drain var(--countdown-duration) linear forwards;@keyframes drain{0%{stroke-dashoffset:0;}100%{stroke-dashoffset:",";}}"],d,d);import{forwardRef as u}from"react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var h=u(({size:w,label:i="Carregando",variant:y="indeterminate",duration:C=15e3,cycle:k,...a},s)=>{let e=w||"1em";return y==="countdown"?S(f,{as:"svg",viewBox:"0 0 50 50",role:"timer","aria-label":i,...a,width:e,height:e,ref:s,children:[r(l,{cx:"25",cy:"25",r:"20"}),r(m,{cx:"25",cy:"25",r:"20",style:{"--countdown-duration":`${C}ms`}},k)]}):r(c,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":i,...a,width:e,height:e,ref:s,children:r(p,{cx:"25",cy:"25",r:"20"})})});h.displayName="Spinner";export{c as a,p as b,d as c,f as d,l as e,m as f,h as g};
@@ -1,2 +0,0 @@
1
- import{f as i}from"./chunk-I564UV6U.esm.js";import{b as r}from"./chunk-TLIKQFOT.esm.js";import{c as a,h as m}from"./chunk-YJ6PPJQ4.esm.js";import{a as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{normalize as s}from"styled-normalize";import{jsx as p}from"react/jsx-runtime";var c=n([""," *,*::before,*::after{box-sizing:inherit;}html{font-size:100%;color-scheme:light;}html[","='dark']{color-scheme:dark;}"," html,body{margin:0;padding:0;box-sizing:border-box;background-color:",";color:",";","}",";"],s,({$attribute:o=r})=>o,({$system:o,$attribute:e=r})=>o?`@media (prefers-color-scheme: dark) { html:not([${e}]) { color-scheme: dark; } }`:"",({theme:o})=>{var e,t;return(t=(e=o.colors.surface)==null?void 0:e.canvas)!=null?t:o.colors.baseLight},({theme:o})=>{var e,t;return(t=(e=o.colors.ink)==null?void 0:e.primary)!=null?t:o.colors.baseDark},({theme:o})=>Object.entries(m(o,a)).map(([e,t])=>`${e}: ${t};`).join(`
2
- `),({extend:o})=>o);function b(o){let e=i();return p(c,{...o,$attribute:e==null?void 0:e.attribute,$system:(e==null?void 0:e.mode)==="system"})}l(b,"GlobalStyle");export{c as a,b};
@@ -1 +0,0 @@
1
- import{e as ae}from"./chunk-BLJLBPUO.esm.js";import{b as A}from"./chunk-GZVFLN6W.esm.js";import{a as Y,b as Z}from"./chunk-EF34DPD2.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as te}from"./chunk-KR2X2UQG.esm.js";import{a as ee}from"./chunk-BE2JDTVA.esm.js";import{I as ie,J as ne,ga as re,ja as k}from"./chunk-DAT6GD4T.esm.js";import{b as S}from"./chunk-CDLUQDZD.esm.js";import{b as J}from"./chunk-SXOSOU46.esm.js";import{f as Q}from"./chunk-NNPKPEER.esm.js";import{e as I}from"./chunk-7D6Z463O.esm.js";import{b as X}from"./chunk-I564UV6U.esm.js";import{a as x}from"./chunk-QQU6KGIF.esm.js";import{a as R}from"./chunk-XUDIJMQO.esm.js";import{d as K}from"./chunk-WI3WPCW3.esm.js";import{m as V}from"./chunk-BV6GHAF7.esm.js";import{g as v}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var le=i(({theme:e,readOnly:t,disabled:o,active:c})=>{if(t||o)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:c?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),se=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),de=v(R).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],le,se),j=v(R).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=v(R).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),T=v(A).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),me=v(x).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],T,({theme:e})=>e.spacing("xs"),T,T,({theme:e})=>e.spacing("medium")),ce=v(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),fe=v(R).attrs(e=>({borderRadius:"micro",bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all 100ms linear;"],({theme:e})=>e.colors.information.base),B=v(R).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),pe=v(A).withConfig({componentId:"sc-1erdx9t-8"})([""," ",""],le,se),ue=v(A).withConfig({componentId:"sc-1erdx9t-9"})(["",""],K({flex:"fluid"}));import{forwardRef as je,useCallback as Ne,useEffect as qe,useImperativeHandle as Me,useRef as $e,useState as He}from"react";function q(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i(q,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=o)}i(M,"filterFiles");function $(e){return e.map(t=>({id:X(),file:t,fileName:t.name,fileSize:q(t.size)}))}i($,"convertFileToFileItem");function ge(e){let{fieldName:t,file:o,requestConfig:c}=e,{endpoint:d,timeout:y,auth:p,params:F,withCredentials:r,responseType:m,headers:f,formDataParams:l}=c;return new Promise((u,h)=>{let a=new XMLHttpRequest;a.timeout=y;let b=new FormData;b.append(t,o,o.name),l&&l.forEach(s=>{b.append(s.key,s.value)});let O=new URL(d);if(F&&Object.keys(F).forEach(s=>{O.searchParams.append(s,F[s])}),a.open("post",O.href),"setRequestHeader"in a){let s={...f};if(p){let g=p.username||"",P=unescape(encodeURIComponent(p.password))||"",D=`${g}:${P}`;s.Authorization=`Basic ${btoa(D)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&a.setRequestHeader(g,P)})}r!==void 0&&(a.withCredentials=!!r),a.responseType=m||"json";let w=0;a.upload.addEventListener("progress",s=>{e.onProgress&&(w=s.loaded,e.onProgress(s.loaded))}),a.onreadystatechange=()=>{var g;if(!a||a.readyState!==4||a.status===0&&((g=a==null?void 0:a.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(w,!0,s),u(s),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(w,!1),h(),a=null},a.send(b)})}i(ge,"uploadFile");import{useEffect as Ae,useState as Be}from"react";function Fe(e,t){let[o,c]=Be(null);return Ae(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),c(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),o}i(Fe,"useObjectUrl");import{Fragment as ze,jsx as n,jsxs as C}from"react/jsx-runtime";function Ce(e){let{disabled:t,acceptLabel:o,isDragging:c,events:d,files:y,removeFile:p,openFileDialogButton:F,readOnly:r,style:m,className:f,inputFile:l}=e,u=y.length>0,h=u&&n(me,{flexDirection:"column",flex:"fluid",p:"large",children:y.map(a=>n(ye,{removeFile:p,readOnly:r,...a},a.id))});return C(de,{...d,style:m,className:f,active:c,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[l,C(x,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[C(x,{gap:"small",flex:"fluid",cq:u?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[C(x,{gap:"xs",alignItems:"center",children:[n(S,{icon:k,size:16,color:r||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!r&&C(ze,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),F]})]}),h]}),c&&C(j,{absoluteFill:!0,children:[n(N,{absoluteFill:!0,bgColor:"surface.paper"}),C(x,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(S,{icon:k,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(Ce,"UploadCardRegular");function xe(e){let{disabled:t,isDragging:o,events:c,files:d,removeFile:y,style:p,className:F,readOnly:r,openFileDialogButton:m,inputFile:f}=e;return C(pe,{...c,style:p,className:F,active:o,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[f,n(x,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:m}),n(ue,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:d.map(l=>n(ye,{removeFile:y,readOnly:r,...l},l.id))}),o&&C(j,{children:[n(N,{}),C(x,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(S,{icon:k,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(xe,"UploadCardCompact");function ye({removeFile:e,readOnly:t,...o}){let c=o.uploadLoaded?`${o.uploadLoaded} de`:"";return C(T,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ee,{...o}),C(x,{children:[C(x,{flexDirection:"row",justifyContent:"between",children:[n(ce,{variant:"meta",children:n("b",{children:o.fileName})}),!t&&n(Z,{onClick:()=>e(o.id),icon:n(S,{icon:re}),variant:"linked"})]}),o.uploadPercentage&&n(fe,{style:{backgroundSize:o.uploadPercentage}}),C(x,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${o.fileSize}`}),o.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${o.uploadPercentage}`})]})]})]})}i(ye,"FileItemComponent");function Ee({file:e}){let t=Fe(e,o=>o.type.startsWith("image"));return t?n(B,{children:n(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(B,{children:n(S,{icon:ne})}):n(B,{children:n(S,{icon:ie})})}i(Ee,"Preview");import{useState as Ve}from"react";function he(e){let[t,o]=Ve({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(r=>{var u;let m=M(r,e.maxSize),l={files:$(m),type:"ADD_INITIAL_FILES"};(u=e.onChange)==null||u.call(e,l),o(l)},"setInitialFiles"),removeFile:i(r=>{var f;let m={type:"REMOVE",files:t.files.filter(l=>l.id!==r),payload:t.files.find(l=>l.id===r)};(f=e.onChange)==null||f.call(e,m),o(m)},"removeFile"),removeAll:i(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),o(r)},"removeAll"),addFiles:i(r=>{var h;let m=M(r,e.maxSize),f=$(m),l=[...t.files,...f],u={files:l,type:"ADD",payload:f};e.single&&(l=f,u={files:l,type:"REPLACE",payload:l[0]}),(h=e.onChange)==null||h.call(e,u),o(u)},"addFiles"),updateFileProgress:i((r,m,f,l)=>{var s;let u=t.files.find(g=>g.id===r),h=i(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:l||void 0}),"uploadResponse"),b={...u,...m!==void 0?i(()=>({uploadLoaded:q(m),uploadPercentage:`${Math.min(m/u.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?h():{}},w={files:t.files.map(g=>g.id===b.id?b:g),type:"UPDATE",payload:b};(s=e.onChange)==null||s.call(e,w),o(w)},"updateFileProgress")}}i(he,"useFileState");import{jsx as E}from"react/jsx-runtime";var We=je((e,t)=>{let{accept:o,maxSize:c,singleFile:d,uploadConfig:y,onUnsupportedFile:p,customButton:F,style:r,className:m,onChange:f,initialFiles:l,name:u}=e,[h,a]=He(!1),{active:b,enable:O,disable:w}=ee(),{files:s,setInitialFiles:g,addFiles:P,removeFile:D,removeAll:ve,updateFileProgress:H}=he({single:d,maxSize:c,onChange:f}),{getFiles:Ie}=oe({accept:o,single:d,onFilesSelect:P,onUnsupportedFile:p}),{isDragging:W,events:we}=te({accept:o,single:d,onDrop:P});qe(()=>{let U=Array.isArray(l)?l.length>0:!!l;!h&&!s.files.length&&U&&(a(!0),g(l))},[h,a,l,g,s.files]);let Pe=Ne(async U=>{if(s.files.length){O();let Se=s.files.map(({id:Re,file:Te})=>ge({file:Te,fieldName:U.formDataFileKey||"file",requestConfig:{...y,...U},onProgress:i((De,Le,ke)=>{H(Re,De,Le,ke)},"onProgress")})),Oe=await Promise.all(Se);return w(),Oe}return[]},[s.files,y,O,H,w]);Me(t,()=>({submit:Pe,addFiles:P,removeFile:D,removeAll:ve,files:s.files}));let L=$e(null),z=i(()=>{var U;(U=L==null?void 0:L.current)==null||U.click()},"openFileDialog"),Ue=F?F({files:s.files,isDragging:W,openFileDialog:z,isSubmitting:b}):E(Q,{onClick:z,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||b,isLoading:b,type:"button",children:e.buttonText||"Enviar arquivos"}),G={...e,...!e.readOnly&&{events:we,isDragging:W},files:s.files,style:r,className:m,removeFile:D,openFileDialog:z,openFileDialogButton:Ue,name:u},_=E(ae,{type:"file",isHidden:!0,position:"absolute",name:u,id:u,ref:L,onChange:Ie,multiple:!d,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?E(xe,{...G,inputFile:_}):E(Ce,{...G,inputFile:_})});We.displayName="UploadCard";import{useCallback as Ge,useState as be}from"react";var Vt=i(()=>{let[e,t]=be([]),[o,c]=be([]);return{onFilesChange:Ge(p=>{if(!p.payload)return;let{payload:F}=p;p.type==="ADD"?c(r=>V(r,F)):p.type==="REMOVE"&&t(r=>V(r,F))},[]),removedFiles:e,addedFiles:o,clear:i(p=>{p==="removedFiles"&&t([]),p==="addedFiles"&&c([])},"clear")}},"useFileControl");export{de as a,j as b,N as c,T as d,me as e,ce as f,fe as g,B as h,pe as i,ue as j,We as k,Vt as l};
@@ -1 +0,0 @@
1
- import{a as De,b as Ce,c as xe,d as Oe}from"./chunk-YJHYFCT7.esm.js";import{a as Ne,b as Te,d as Ae,e as Me,f as Se,g as ke,h as be,i as z,m as we,p as Ie,q as Re}from"./chunk-TLIKQFOT.esm.js";import{a as Le,b as Fe}from"./chunk-TG5BCBO4.esm.js";import{a as G}from"./chunk-G757UD32.esm.js";import{b as Ye}from"./chunk-OSFHXCPW.esm.js";import{b as ue,c as me}from"./chunk-KT6QQ3UJ.esm.js";import{a as le,b as pe}from"./chunk-BERIBF3O.esm.js";import{a as ye}from"./chunk-LVVNQRJ2.esm.js";import{b as Pe,c as he}from"./chunk-P7RR4ZHS.esm.js";import{b as ve}from"./chunk-JOKVE3IX.esm.js";import{a as Ee}from"./chunk-PFLBU7HG.esm.js";import{a as de}from"./chunk-IPANNHV3.esm.js";import{a as fe}from"./chunk-3DUB5C4Z.esm.js";import{b as Ge}from"./chunk-HVFI7FHR.esm.js";import{a as ce}from"./chunk-VMIXRIQ2.esm.js";import{b as re,c as ne,d as ie}from"./chunk-R2B57RMV.esm.js";import{c as te}from"./chunk-RFUX53ZX.esm.js";import{a as F,b as W,g as ee,h as oe}from"./chunk-CQASQBD7.esm.js";import{d as se,e as ae}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";function _(r={}){let{colors:n,breakpoints:t,containerSizes:i,layout:d,spacing:A,border:u,font:m,dimension:y,typeWeight:M,component:D}=le({colors:F,spacing:Le,font:Pe,border:fe,breakpoints:ue,containerSizes:De,layout:Ce,dimension:ve,typeWeight:"regular",component:{}},r),f=W(n),S=Fe(A,y),v=he(m,y,M),k=Ye({colors:f,spacing:S});return{font:v,border:u,animation:de,colors:f,breakpoints:me(t),containerSizes:xe(i),layout:Oe(d),spacing:S,depth:te(f),deep:ye(f),semantic:k,foundation:Ee(k),component:pe(D)}}c(_,"createTheme");import{createContext as He,lazy as je,Suspense as Je,useContext as Ke,useReducer as Xe,useRef as Ze}from"react";import{nanoid as _e}from"nanoid";import{Fragment as oo,jsx as B,jsxs as to}from"react/jsx-runtime";var We=je(()=>import("./Notification.group-JOWXLB2O.esm.js")),Ve=He({});function eo(r,{type:n,payload:t}){switch(n){case"ADD":return[t,...r];case"REMOVE":return r.filter(i=>i.id!==t.id);default:return r}}c(eo,"NotificationReducer");var ze=c(r=>{let[n,t]=Xe(eo,[]),i=Ze(!1),d=c(u=>{t({type:"REMOVE",payload:{id:u}})},"removeNotification"),A=c(u=>{if(t({type:"ADD",payload:{id:_e(),...u}}),n.length>=3){let[m]=n.slice(-1);setTimeout(()=>d(m.id),0)}},"showNotification");return n.length>0&&(i.current=!0),B(Ve.Provider,{value:{notifications:n,removeNotification:d,showNotification:A},children:to(oo,{children:[r.children,i.current&&B(Je,{fallback:null,children:B(We,{})})]})})},"NotificationsProvider");function wo(){let r=Ke(Ve);if(r===void 0)throw new Error("cant use useNotification hook outside of <NotificationsProvider />");return r}c(wo,"useNotification");import o from"react";import{jsx as R}from"react/jsx-runtime";function ro(r,n){return typeof n=="string"?ce(r):!0}c(ro,"shouldForwardProp");var no=typeof window=="undefined"?o.useEffect:o.useLayoutEffect,g=o.createContext(null);function go(){let r=o.useContext(g);if(r===null)throw new Error("useApollionTheme deve ser usado dentro de um <ApollionProvider>.");return r}c(go,"useApollionTheme");function Qo(){return o.useContext(g)}c(Qo,"useApollionThemeOptional");var Uo=c(({children:r,theme:n,lightTheme:t,darkTheme:i,colors:d,useSystemPreference:A=!1,themeMode:u,onThemeModeChange:m,mode:y,defaultMode:M,initialMode:D,onModeChange:f,persist:S=!1,storageKey:v=Ne,syncDocument:k=!0,attribute:b=Te,a11y:Q,defaultA11y:Be=null,onA11yChange:C,surface:x="positive",dimension:E,typeWeight:N})=>{var Z;let s=o.useMemo(()=>we(S),[S]),O=Me(v),Y=y!==void 0||u!==void 0,ge=M!=null?M:A?"system":"light",[Qe,U]=o.useState(ge),T=(Z=y!=null?y:u)!=null?Z:Qe,[V,$]=o.useState(()=>D!==void 0?D==="dark":T==="system"&&be()),a=z(T,V),w=Q!==void 0,[Ue,q]=o.useState(Be),P=w?Q:Ue;no(()=>{if(s){if(!Y){let e=s.read(v);Se(e)&&U(e)}if(!w){let e=s.read(O);if(e===null||e==="")return;q(ke(e)?e:null)}}},[s,v,O,Y,w]),o.useEffect(()=>{var I;if(T!=="system")return;let e=typeof window!="undefined"?(I=window.matchMedia)==null?void 0:I.call(window,Ae):void 0;if(!e)return;$(e.matches);let p=c(qe=>$(qe.matches),"handleChange");return e.addEventListener("change",p),()=>e.removeEventListener("change",p)},[T]),o.useEffect(()=>{if(!(!k||typeof document=="undefined"))return Ie(document.documentElement,{mode:a,a11y:P},{attribute:b}),()=>Re(document.documentElement,{attribute:b})},[k,a,P,b]);let L=o.useCallback(e=>{Y||U(e),s==null||s.write(v,e),f==null||f(e),m==null||m(z(e,V))},[Y,s,v,f,m,V]),H=o.useCallback(e=>{w||q(e),s==null||s.write(O,e),C==null||C(e)},[w,s,O,C]),j=o.useCallback(e=>L(e!=null?e:a==="dark"?"light":"dark"),[L,a]),J=o.useMemo(()=>{if(n||t||i)return null;let e=d!=null?d:F,p=P?oe[P](e):e,I={colors:p,...E!==void 0&&{dimension:E},...N!==void 0&&{typeWeight:N}};return{light:_(I),dark:_({...I,colors:ee(p)})}},[n,t,i,d,E,N,P]),l=o.useMemo(()=>t&&i?{light:t,dark:i}:t||i||n?null:J,[t,i,n,J]),K=o.useMemo(()=>{var e,p;return l?a==="dark"?l.dark:l.light:(p=(e=t!=null?t:i)!=null?e:n)!=null?p:_({...E!==void 0&&{dimension:E},...N!==void 0&&{typeWeight:N}})},[l,a,t,i,n,E,N]),h=o.useMemo(()=>{if(!l)return ie(G(K,x));let e={light:G(l.light,x,"light"),dark:G(l.dark,x,"dark")};return re(e)},[l,K,x]),X=o.useMemo(()=>h.modes?ne(a==="dark"?h.modes.dark:h.modes.light,h.modes):h,[h,a]),$e=o.useMemo(()=>({theme:X,mode:T,resolvedMode:a,setMode:L,a11y:P,setA11y:H,attribute:b,themeMode:a,toggleTheme:j}),[X,T,a,L,P,H,b,j]);return R(se,{shouldForwardProp:ro,children:R(g.Provider,{value:$e,children:R(ae,{theme:h,children:R(Ge,{children:R(ze,{children:r})})})})})},"ApollionProvider");export{_ as a,_e as b,ze as c,wo as d,go as e,Qo as f,Uo as g};
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-VMIXRIQ2.esm.js";import{a as b}from"./chunk-HCNNXM2C.esm.js";import{a as s,d as a}from"./chunk-RWLJNXLX.esm.js";import{a as A,b as w}from"./chunk-F62355HF.esm.js";import{a as K,b as S}from"./chunk-BNB3KNKE.esm.js";import{a as h,b as x}from"./chunk-OXQA5WD3.esm.js";import{a as e,b as i}from"./chunk-TZQMBDGR.esm.js";import{a as p,b as l}from"./chunk-WCUEINBQ.esm.js";import{a as m,b as y}from"./chunk-QYL6LECA.esm.js";import{a as c,b as f}from"./chunk-3A7I6HM2.esm.js";import{a as F,d as g}from"./chunk-WI3WPCW3.esm.js";import{a as d,b as u}from"./chunk-IK5Z5C2R.esm.js";import{g as C}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var n=null,E=t(()=>(n===null&&(n=new Set([...m,...e,...h,...s,...p,...c,...d,...F,...K,...A,"variant","active"])),n),"getCustomPropNames"),P=t(o=>!E().has(o)&&v(o),"shouldForwardProp"),N=new Set(["width","height"]),$=t(o=>N.has(o)||P(o),"shouldForwardDimensionAttrs"),D=t((o=>C(o).withConfig({shouldForwardProp:P})),"styled"),r=t(o=>D(o).withConfig({componentId:`apollion-${o}`})(y({position:"relative"}),g,x,a,i,u,l,f,S,b,w),"buildElement"),j={a:r("a"),div:r("div"),span:r("span"),input:r("input"),button:r("button")};export{P as a,$ as b,D as c,j as d};
@@ -1 +0,0 @@
1
- var e={transitions:{short:"all 0.15s ease-in-out",settle:"color 2.75s ease-out"}};export{e as a};
@@ -1 +0,0 @@
1
- import{a as W,b as B}from"./chunk-EF34DPD2.esm.js";import{f as z}from"./chunk-HSKYQ6VP.esm.js";import{c as R}from"./chunk-MGMYTOBZ.esm.js";import{ga as E}from"./chunk-DAT6GD4T.esm.js";import{a as x,b as I}from"./chunk-CDLUQDZD.esm.js";import{a as w,e as g}from"./chunk-7D6Z463O.esm.js";import{a as P}from"./chunk-H7ZXGMID.esm.js";import{a as A,b as T}from"./chunk-TRGVJXBB.esm.js";import{a as p}from"./chunk-QQU6KGIF.esm.js";import{c as h}from"./chunk-G5Z7USXC.esm.js";import{b as S,c as k,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var O=k(["0%{width:0;}100%{width:100%;}"]),y=l(p).withConfig({componentId:"sc-6lckl1-0"})(["--time:15;width:0;height:0.25rem;background-color:var(--baseColor);animation:"," calc(var(--time,15) * 1s) normal forwards;"],O),M=l(p).withConfig({componentId:"sc-6lckl1-1"})(["position:absolute;top:0.25rem;left:0.5rem;right:0.5rem;"]);function Q({variant:o,theme:n}){let e=n.colors[o];return S(["--baseColor:",";--lightColor:",";--darkColor:",";--activeColor:",";--actionColor:",";--inkColor:",";position:relative;background-color:var(--lightColor);border-color:var(--baseColor);",":not(button *){color:var(--inkColor);}& ","{width:intrinsic;color:var(--darkColor);&:hover{background:var(--activeColor);}&:active ","{color:var(--actionColor);}}&:hover ","{animation-play-state:paused;}"],e.base,e.light,e.dark,e.active,e.action,e.onLight,w,W,x,y)}i(Q,"getWrapperStyle");var b=l(T).withConfig({componentId:"sc-6lckl1-2"})(Q);b.displayName="div";var V=l(p).withConfig({componentId:"sc-6lckl1-3"})(["color:var(--darkColor);svg{width:2rem;height:2rem;}"]);import U,{useEffect as _,useState as H}from"react";import{createPortal as J}from"react-dom";import{jsx as t,jsxs as F}from"react/jsx-runtime";var L=i(({type:o="block",variant:n="primary",visible:e=!0,closable:c=!0,autoClose:s=null,message:r=null,action:a=null,icon:m=null,link:C,onDismiss:f,closeLabel:$="Fechar notifica\xE7\xE3o",...d})=>{let{isMobile:v}=z(),j=i(()=>{let u=a;return typeof a=="function"&&(u=a({close:f})),u?U.cloneElement(u,{color:n,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),q=i(()=>typeof r=="function"?r({close:f}):typeof r=="string"?t(g,{text:r,variant:"p",fontSize:"xs"}):r,"renderMessage"),N=n==="danger",G=N?"alert":"status";return e?F(b,{p:"medium",pr:9,round:v?0:"xs",borderWidth:v?"none":"thin",borderStyle:"solid",variant:n,"data-testid":`notification-${o}`,role:G,"aria-live":N?"assertive":"polite","aria-atomic":"true",...d,children:[s&&t(M,{children:t(y,{round:"micro",style:{"--time":s},onAnimationEnd:f})}),F(P,{contentGap:"medium",opener:m&&t(V,{pt:"xs",alignSelf:"start",children:m}),closer:j(),children:[d.title&&t(g,{text:d.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),q(),C&&t(R,{...C,target:"_blank"})]}),c&&t(B,{p:"xs",borderWidth:"none",icon:t(I,{size:"small",icon:E}),"aria-label":$,variant:"linked",onClick:f,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})]}):null},"BaseNotification"),K=i(o=>{let[n,e]=H(!1);_(()=>{e(!0)},[]);let{pageOffset:c=0,...s}=o,r=o.pagePosition==="top",a=r?{top:c}:{bottom:c};if(!n||!h)return null;let m=o.visible!==!1;return J(t(A,{children:m?t(L,{...s,round:0,borderWidth:"thin",borderPosition:r?"bottom":"top",initial:{y:r?"-100%":"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:r?"-100%":"100%",opacity:0},style:{...a,zIndex:1e3,margin:0,position:"fixed",right:0,left:0}}):null}),h)},"PageNotification"),X=i(o=>o.type==="page"?t(K,{...o}):t(L,{...o}),"NotificationComponent");X.displayName="Notification";export{y as a,M as b,b as c,V as d,X as e};
@@ -1 +0,0 @@
1
- import{a as W}from"./chunk-2DVVVJJP.esm.js";import{a as E,b as K}from"./chunk-EF34DPD2.esm.js";import{a as V}from"./chunk-BE2JDTVA.esm.js";import{f as A}from"./chunk-HSKYQ6VP.esm.js";import{ga as G}from"./chunk-DAT6GD4T.esm.js";import{b as H}from"./chunk-CDLUQDZD.esm.js";import{f as R}from"./chunk-NNPKPEER.esm.js";import{a as z,e as k}from"./chunk-7D6Z463O.esm.js";import{a as F}from"./chunk-H7ZXGMID.esm.js";import{a as O,b as T}from"./chunk-TRGVJXBB.esm.js";import{a as b}from"./chunk-QQU6KGIF.esm.js";import{a as j}from"./chunk-XUDIJMQO.esm.js";import{a as L}from"./chunk-BV6GHAF7.esm.js";import{c as B}from"./chunk-G5Z7USXC.esm.js";import{b as y,g as s}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var no=y(["max-width:30rem;min-width:20rem;"]),ro=y(["max-width:40rem;min-width:20rem;"]),ao=y(["max-width:55rem;min-width:40rem;"]),lo=y(["max-width:75rem;min-width:40rem;"]),io=y(["width:95%;"]);function co({size:n}){switch(n){case"small":return no;case"medium":return ao;case"large":return lo;default:return ro}}a(co,"modalSize");function mo({variant:n,theme:o}){let l=o.colors[n];return y(["--baseColor:",";--lightColor:",";--actionColor:",";"],l.base,l.light,l.action)}a(mo,"modalVariantColor");var q=s(T).attrs({p:"large",borderRadius:"md",bgColor:"surface.overlay"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],io,mo,({theme:n})=>n.breakpoints.up("sm"),co),N=s(b).withConfig({componentId:"sc-8jjm43-1"})(["max-height:84vh;overflow:hidden;"]),Q=s(b).withConfig({componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],z,E,E,E),Y=s(j).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overscroll-behavior:none;overflow:hidden;"]),$=s(b).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),J=s(j).withConfig({componentId:"sc-8jjm43-5"})(["z-index:9999;display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;"]),U=s(T).withConfig({componentId:"sc-8jjm43-6"})(["will-change:opacity;"]);import I,{cloneElement as so,isValidElement as fo,useEffect as X,useRef as uo,useState as po}from"react";import{createPortal as go}from"react-dom";import{Fragment as Co,jsx as t,jsxs as w}from"react/jsx-runtime";var Z=a(({isOpen:n,onDismiss:o,...l})=>{if(!n&&!o)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[i,f]=po(!1),m=uo(null);return X(()=>{f(!0)},[]),X(()=>{var C,M;if(!n||!i)return;let e=document.activeElement,d=m.current,u=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),h=a(()=>d?Array.from(d.querySelectorAll(u)).filter(r=>r.offsetParent!==null):[],"getFocusable");(M=(C=h()[0])!=null?C:d)==null||M.focus();let c=a(r=>{if(r.key==="Escape"){r.stopPropagation(),o==null||o();return}if(r.key!=="Tab")return;let p=h();if(!p.length){r.preventDefault();return}let S=p[0],P=p[p.length-1],g=document.activeElement;r.shiftKey&&(g===S||g===d)?(r.preventDefault(),P.focus()):!r.shiftKey&&g===P&&(r.preventDefault(),S.focus())},"onKeyDown");return document.addEventListener("keydown",c),()=>{var r;document.removeEventListener("keydown",c),(r=e==null?void 0:e.focus)==null||r.call(e)}},[n,i,o]),!i||!B?null:go(t(O,{children:n?w(J,{"data-testid":"modal-container",children:[t(U,{absoluteFill:!0,bgColor:"surface.scrim","data-testid":"modal-overlay",onClick:o,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0}}),t(ho,{ref:m,onDismiss:o,...l})]}):null}),B)},"ModalBaseComponent"),yo=a(({defaultOpen:n,trigger:o,isOpen:l,onDismiss:i,onModalOpen:f,...m})=>{let{active:e,disable:d,enable:u,toggle:h}=V(n,{onActive:f});return(l||i)&&L.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),w(Co,{children:[a(()=>{let c=null;if(typeof o=="function"&&(c=o({isOpen:e,open:u})),fo(o)&&(c=so(o,{onClick:h})),c===null)throw new Error('"trigger" prop is not a valid element');return c},"renderTrigger")(),t(Z,{isOpen:e,onDismiss:d,...m})]})},"ModalTriggerVariant"),ho=I.forwardRef(a(function({noCloseButton:o,primaryButton:l,secondaryButton:i,primaryText:f,secondaryText:m,onDismiss:e,primaryAction:d,secondaryAction:u,children:h,tagline:v,variant:c,footer:C,title:M,size:r,icon:p,closeLabel:S="Fechar"},P){let{isMobile:g}=A(),D=I.useId(),oo=a(()=>{d({close:e})},"handlePrimary"),eo=a(()=>{u({close:e})},"handleSecondary"),to=a(()=>{let x={onClick:oo,fullWidth:C==="full"||g,"data-testid":"modal-confirm-button"};return l?I.cloneElement(l,x):t(R,{color:c,...x,children:f})},"renderPrimaryButton");return t(q,{ref:P,role:"dialog","aria-modal":"true","aria-labelledby":M?D:void 0,tabIndex:-1,size:r,variant:c,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"200%",opacity:0},children:w(N,{gap:"medium",children:[w(Q,{gap:"xs",children:[t(F,{opener:p&&t($,{justifyContent:"center",alignItems:"center",p:"micro",children:p}),closer:!o&&t(K,{onClick:e,"data-testid":"modal-close-button","aria-label":S,icon:t(H,{icon:G}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"}),children:M&&t(k,{id:D,variant:"h4",area:"title",color:"ink.primary",text:M})}),v&&t(k,{variant:"meta",color:"secondary.dark",area:"tagline",children:v})]}),t(Y,{py:"medium",children:t(W,{children:h})}),(d||u)&&w(b,{flexDirection:g?"column-reverse":"row",justifyContent:C==="expanded"?"between":"end",gap:"medium",children:[u&&a(()=>{if(C==="full")return null;let x={onClick:eo,fullWidth:g,"data-testid":"modal-cancel-button"};return i?I.cloneElement(i,x):t(R,{variant:"outlined",color:"secondary",...x,children:m})},"renderSecondaryButton")(),d&&to()]})]})})},"ModalDialog")),_=a(({noCloseButton:n=!1,secondaryText:o="Cancelar",primaryText:l="Confirmar",variant:i="primary",footer:f="right",...m})=>{let e={noCloseButton:n,secondaryText:o,primaryText:l,variant:i,footer:f,...m};return e!=null&&e.trigger?t(yo,{...e}):t(Z,{...e})},"ModalComponent");_.displayName="Modal";export{q as a,N as b,Q as c,Y as d,$ as e,J as f,U as g,_ as h};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-QQU6KGIF.esm.js";import{a as o}from"./chunk-XUDIJMQO.esm.js";import{AnimatePresence as a,motion as e,MotionConfig as p,useReducedMotion as x}from"framer-motion";var n=e.create(o),r=e.create(t);export{a,n as b,r as c};
@@ -1 +0,0 @@
1
- import{a as N}from"./chunk-BE2JDTVA.esm.js";import{b as m}from"./chunk-3V3ZEGHO.esm.js";import{a as G}from"./chunk-7D6Z463O.esm.js";import{a as s}from"./chunk-XUDIJMQO.esm.js";import{b as d}from"./chunk-G5Z7USXC.esm.js";import{b as w,g as a}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";var ae=w(["--railColor:",";--trackColor:",";--thumbColor:",";--markColor:",";"],({theme:e})=>e.colors.primary.light,({theme:e})=>e.colors.primary.base,({theme:e})=>e.colors.primary.action,({theme:e})=>e.colors.primary.active),se=w(["pointer-events:none;--railColor:",";--trackColor:",";--thumbColor:",";--markColor:transparent;"],({theme:e})=>e.colors.muted,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.strong),D=a(s).withConfig({componentId:"sc-18639os-0"})(["--height:6px;",";cursor:pointer;box-sizing:content-box;height:var(--height);padding:1.5rem 0 2rem;width:100%;"],({disabled:e})=>e?se:ae),$=a(s).withConfig({componentId:"sc-18639os-1"})(["width:100%;height:var(--height);background:var(--railColor);position:absolute;border-radius:calc(var(--height) / 2);box-shadow:0px 0px 0px 1px var(--railColor);"]),A=a(s).withConfig({componentId:"sc-18639os-2"})(["height:var(--height);box-shadow:0px 0px 0px 1px var(--trackColor);background:var(--trackColor);border-radius:calc(var(--height) / 2);position:absolute;left:0;"]),H=a(s).withConfig({componentId:"sc-18639os-3"})(["height:var(--height);background-image:linear-gradient(to right,#e12712,#ffbb00,#2cb567);background-repeat:no-repeat;border-radius:calc(var(--height) / 2);position:absolute;width:100%;left:0;"]),W=a(s).withConfig({componentId:"sc-18639os-4"})(["height:var(--height);background-color:var(--railColor);background-repeat:no-repeat;position:absolute;right:0;"]),T=a(s).attrs(e=>({bgColor:"surface.raised",color:"ink.primary",borderRadius:"xs",borderWidth:"thin",p:"micro",...e})).withConfig({componentId:"sc-18639os-5"})(["--borderColor:",";opacity:0;transition:all 200ms linear;text-align:center;position:absolute;bottom:",";left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;border-color:var(--borderColor);&:before{content:'';position:absolute;width:0;height:0;border-top:10px solid var(--borderColor);border-left:5px solid transparent;border-right:5px solid transparent;top:100%;left:50%;margin-left:-5px;margin-top:-1px;}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.spacing("large")),ce=w(["box-shadow:0px 0px 0px 9px #00000033 !important;& ","{opacity:1;}"],T),_=a(s).withConfig({componentId:"sc-18639os-6"})(["--size:calc(var(--height) * 2.4);display:flex;justify-content:center;width:var(--size);height:var(--size);margin-top:calc((var(--size) * -1 / 2) + var(--height) / 2);margin-left:calc(var(--size) * -1 / 2);position:absolute;background:var(--thumbColor);transition:box-shadow 150ms cubic-bezier(0.4,0,0.2,1) 0ms;&:hover{box-shadow:0px 0px 0px 6px #00000033;","{opacity:1;}}",""],T,({active:e})=>e&&ce),j=a(s).attrs(e=>({borderRadius:"circular",...e})).withConfig({componentId:"sc-18639os-7"})(["--size:calc(var(--height) * 0.8);position:absolute;width:var(--size);height:var(--size);margin-top:calc((var(--size) * -1 / 2) + var(--height) / 2);margin-left:calc(var(--size) * -1 / 2);background:",";"],({active:e})=>e?"var(--thumbColor)":"var(--markColor)"),q=a(s).withConfig({componentId:"sc-18639os-8"})(["position:absolute;margin-top:1rem;transform:translateX(-50%);white-space:nowrap;font-size:0.75rem;color:",";"],({theme:e})=>e.colors.ink.secondary);import le,{useCallback as de,useEffect as ue,useMemo as pe,useRef as O,useState as he}from"react";function M(e,t,o){return(e-t)*100/(o-t)}p(M,"valueToPercent");function J(e,t,o){return(o-t)*e+t}p(J,"percentToValue");function z(e,t,o){let h=Math.round((e-o)/t)*t+o;return Number(h.toFixed(t))}p(z,"roundValueToStep");function K(e){return e>=1?1:e<=0?0:e}p(K,"clamp");function R(e,t,o,h){return Number.isFinite(e)&&e>=o&&e<=t?h?z(e,h,o):e:Math.min(Math.max(o,e),t)}p(R,"normalizeValue");import{jsx as u,jsxs as Q}from"react/jsx-runtime";function U({gradient:e,disabled:t,getLabelValue:o,markLabel:h,onChange:b,value:k=50,max:c=100,min:n=0,step:l=1,mark:I}){let[v,L]=he(()=>R(k,c,n,l));ue(()=>{L(r=>{let i=R(k,c,n,l);return i!==r?i:r})},[k,c,n,l]);let{active:Y,enable:V,disable:Z}=N(),B=O(null),ee=pe(()=>{if(!(I===!0&&l))return[];let r=Math.floor((c-n)/l)+1;return!Number.isFinite(r)||r<=0||r>1e4?[]:[...Array(r)].map((i,E)=>{let x=n+l*E;return{value:x,...o&&h&&{label:o(x)}}})},[I,o,h,l,n,c]),P=O(0),y=de(r=>{let i=0;try{if(r.type==="touchmove"){let[S]=r.changedTouches;i=S==null?void 0:S.clientX}else i=r.clientX}catch(S){i=r.clientX}let{width:E,left:x}=B.current.getBoundingClientRect(),ie=K((i-x)/E),C=J(ie,n,c);C=z(C,l,n),L(C),b&&(clearTimeout(P.current),P.current=setTimeout(()=>{b(C)},100))},[n,c,l,b]),g=m(r=>{y(r)}),f=m(()=>{Z(),d.document.removeEventListener("mousemove",g),d.document.removeEventListener("mouseup",f),d.document.removeEventListener("touchmove",g),d.document.removeEventListener("touchend",f)}),re=m(r=>{r.preventDefault(),y(r),V(),d.document.addEventListener("mousemove",g,{passive:!1}),d.document.addEventListener("mouseup",f,{passive:!1})}),oe=m(r=>{r.stopPropagation(),y(r),V(),d.document.addEventListener("touchmove",g,{passive:!1}),d.document.addEventListener("touchend",f,{passive:!1})}),te=o?o(v):String(v),F=`${M(v,n,c)}%`,ne={width:F},X={left:F};return Q(D,{ref:B,onMouseDown:re,onTouchStart:oe,disabled:t,children:[u($,{}),e?u(H,{children:u(W,{style:X})}):u(A,{style:ne}),ee.map(r=>{let i={left:`${M(r.value,n,c)}%`};return Q(le.Fragment,{children:[u(j,{active:r.value<=v,style:i}),r.label&&u(q,{style:i,children:r.label})]},r.value)}),u(_,{borderRadius:"circular",deep:1,active:Y,style:X,"data-testid":"input-range-thumb",children:!t&&u(T,{children:u(G,{children:te})})})]})}p(U,"Slider");U.displayName="Slider";export{D as a,$ as b,A as c,H as d,W as e,T as f,_ as g,j as h,q as i,U as j};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-II2LPQYL.esm.js";var r=o.div;export{r as a};