@apollion-dsi/core 7.2.0 → 7.4.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 (304) hide show
  1. package/README.md +7 -0
  2. package/lib/chunks/Dropdown.floating-4F6FTG44.esm.js +1 -0
  3. package/lib/chunks/Notification.group-CQZ3M4FD.esm.js +1 -0
  4. package/lib/chunks/Tooltip.floating-FNRDGVZA.esm.js +1 -0
  5. package/lib/chunks/{chunk-3ICGUDL7.esm.js → chunk-25A3FLAS.esm.js} +1 -1
  6. package/lib/chunks/{chunk-FBHZTBNG.esm.js → chunk-27BUTGEI.esm.js} +1 -1
  7. package/lib/chunks/{chunk-PXVTXO3L.esm.js → chunk-2TQTHAFO.esm.js} +1 -1
  8. package/lib/chunks/chunk-3437GMP7.esm.js +1 -0
  9. package/lib/chunks/{chunk-TBWTTUID.esm.js → chunk-3A7CFAN2.esm.js} +1 -1
  10. package/lib/chunks/{chunk-YJ6PPJQ4.esm.js → chunk-3CKHLCIB.esm.js} +1 -1
  11. package/lib/chunks/chunk-3HLIX4CZ.esm.js +1 -0
  12. package/lib/chunks/{chunk-JY6IWPBO.esm.js → chunk-3OILM5EQ.esm.js} +1 -1
  13. package/lib/chunks/chunk-4D6MGQNS.esm.js +1 -0
  14. package/lib/chunks/{chunk-O2EYNJ7I.esm.js → chunk-4DW5H7JW.esm.js} +1 -1
  15. package/lib/chunks/chunk-4SDDAQ6N.esm.js +1 -0
  16. package/lib/chunks/{chunk-ZJ3V4V3H.esm.js → chunk-56PN4PGS.esm.js} +1 -1
  17. package/lib/chunks/{chunk-7BPSZCSD.esm.js → chunk-5JB5IV5W.esm.js} +1 -1
  18. package/lib/chunks/{chunk-X2CMFDNG.esm.js → chunk-5V3QEYAS.esm.js} +1 -1
  19. package/lib/chunks/{chunk-62CVSGJD.esm.js → chunk-66KNGOWM.esm.js} +1 -1
  20. package/lib/chunks/chunk-6G22RNUO.esm.js +1 -0
  21. package/lib/chunks/chunk-6HQICTWR.esm.js +1 -0
  22. package/lib/chunks/{chunk-UACWLLHE.esm.js → chunk-6O6KKD7F.esm.js} +1 -1
  23. package/lib/chunks/{chunk-TZQMBDGR.esm.js → chunk-6RVYBZSW.esm.js} +1 -1
  24. package/lib/chunks/{chunk-G757UD32.esm.js → chunk-76VCAI6X.esm.js} +1 -1
  25. package/lib/chunks/chunk-7DO5M7YG.esm.js +1 -0
  26. package/lib/chunks/{chunk-5Q265MC7.esm.js → chunk-7JYI2AQK.esm.js} +1 -1
  27. package/lib/chunks/chunk-AIIBSKW7.esm.js +1 -0
  28. package/lib/chunks/{chunk-YHQ6S4MF.esm.js → chunk-AIT3ZFAZ.esm.js} +1 -1
  29. package/lib/chunks/chunk-AJ7JAO2E.esm.js +50 -0
  30. package/lib/chunks/{chunk-MREWGN5R.esm.js → chunk-AZXLTCJK.esm.js} +1 -1
  31. package/lib/chunks/chunk-B6OC4RV2.esm.js +1 -0
  32. package/lib/chunks/{chunk-EFFENLBC.esm.js → chunk-BUT67NEF.esm.js} +1 -1
  33. package/lib/chunks/{chunk-ODL6ZIU7.esm.js → chunk-CAL43X4O.esm.js} +1 -1
  34. package/lib/chunks/{chunk-VUK26WF2.esm.js → chunk-DCIALXT7.esm.js} +1 -1
  35. package/lib/chunks/{chunk-KU2OQ3LP.esm.js → chunk-DUCEY62P.esm.js} +1 -1
  36. package/lib/chunks/chunk-E2U6IFPB.esm.js +1 -0
  37. package/lib/chunks/chunk-EF3LT3PN.esm.js +1 -0
  38. package/lib/chunks/{chunk-CK3WBMQQ.esm.js → chunk-EIISM5F6.esm.js} +1 -1
  39. package/lib/chunks/{chunk-CNJA3S6G.esm.js → chunk-EJ7K3DWH.esm.js} +1 -1
  40. package/lib/chunks/{chunk-OSFHXCPW.esm.js → chunk-ERQXQRK3.esm.js} +1 -1
  41. package/lib/chunks/{chunk-ZQ5JOSGH.esm.js → chunk-EWFZ5Y47.esm.js} +1 -1
  42. package/lib/chunks/{chunk-GHDDFAEP.esm.js → chunk-EX5BLQCC.esm.js} +1 -1
  43. package/lib/chunks/{chunk-GWC4QADH.esm.js → chunk-F3PGPFO5.esm.js} +1 -1
  44. package/lib/chunks/{chunk-TG2P4DDY.esm.js → chunk-F4JJQGPH.esm.js} +1 -1
  45. package/lib/chunks/chunk-F5TUC4YS.esm.js +39 -0
  46. package/lib/chunks/{chunk-MBQGF5IM.esm.js → chunk-FAWI4OCG.esm.js} +1 -1
  47. package/lib/chunks/{chunk-H7ADZSZ7.esm.js → chunk-FKMOI3V2.esm.js} +1 -1
  48. package/lib/chunks/{chunk-R2B57RMV.esm.js → chunk-H7FLNZDA.esm.js} +1 -1
  49. package/lib/chunks/{chunk-OUTATATT.esm.js → chunk-HLFGUNIS.esm.js} +1 -1
  50. package/lib/chunks/chunk-HPMNSONF.esm.js +0 -0
  51. package/lib/chunks/{chunk-RNAHUZE7.esm.js → chunk-I3SLGOSW.esm.js} +1 -1
  52. package/lib/chunks/chunk-IMS5TWF3.esm.js +1 -0
  53. package/lib/chunks/{chunk-YA5EBWSR.esm.js → chunk-IRI77QBK.esm.js} +1 -1
  54. package/lib/chunks/{chunk-LVVNQRJ2.esm.js → chunk-ITRAQ6Q2.esm.js} +1 -1
  55. package/lib/chunks/{chunk-XE4O5TMX.esm.js → chunk-IW7XVGH3.esm.js} +1 -1
  56. package/lib/chunks/chunk-IXLTHMIQ.esm.js +1 -0
  57. package/lib/chunks/chunk-J6F4PMW4.esm.js +1 -0
  58. package/lib/chunks/chunk-K6S7ZGCD.esm.js +1 -0
  59. package/lib/chunks/chunk-L7A7RA56.esm.js +1 -0
  60. package/lib/chunks/chunk-LCCVFIPZ.esm.js +1 -0
  61. package/lib/chunks/{chunk-57RF3T2U.esm.js → chunk-LDGYJOVP.esm.js} +1 -1
  62. package/lib/chunks/{chunk-OEEVC5Y2.esm.js → chunk-LWX5K4ZB.esm.js} +1 -1
  63. package/lib/chunks/{chunk-YSSFTYCU.esm.js → chunk-LZEBVXWL.esm.js} +1 -1
  64. package/lib/chunks/{chunk-HKOM2JMK.esm.js → chunk-M7LEQKER.esm.js} +1 -1
  65. package/lib/chunks/chunk-MFYH5ECV.esm.js +9 -0
  66. package/lib/chunks/chunk-O3XQX2DB.esm.js +1 -0
  67. package/lib/chunks/{chunk-CWSD3AXD.esm.js → chunk-OCOVNG7J.esm.js} +1 -1
  68. package/lib/chunks/{chunk-HD42Q2PS.esm.js → chunk-ORJ6YPNR.esm.js} +1 -1
  69. package/lib/chunks/{chunk-7PFH2RKV.esm.js → chunk-OUNXOMM6.esm.js} +1 -1
  70. package/lib/chunks/chunk-P3SIJHYM.esm.js +1 -0
  71. package/lib/chunks/chunk-PBYT3TNP.esm.js +1 -0
  72. package/lib/chunks/chunk-PJX5WGQP.esm.js +1 -0
  73. package/lib/chunks/{chunk-7TJO34VI.esm.js → chunk-PUTYJU2Z.esm.js} +1 -1
  74. package/lib/chunks/chunk-Q2PMRBCL.esm.js +1 -0
  75. package/lib/chunks/chunk-QMB5TYEI.esm.js +1 -0
  76. package/lib/chunks/chunk-QW5DJCRR.esm.js +1 -0
  77. package/lib/chunks/chunk-R2QEO3KP.esm.js +18 -0
  78. package/lib/chunks/{chunk-CTFEQBY7.esm.js → chunk-RCBLISG5.esm.js} +1 -1
  79. package/lib/chunks/{chunk-BERIBF3O.esm.js → chunk-SEPVF2TL.esm.js} +1 -1
  80. package/lib/chunks/{chunk-RZLOZ3NW.esm.js → chunk-SFWLFQTS.esm.js} +1 -1
  81. package/lib/chunks/{chunk-5ILT45RQ.esm.js → chunk-TNKYQI5Z.esm.js} +1 -1
  82. package/lib/chunks/{chunk-RFUX53ZX.esm.js → chunk-UU62HUHC.esm.js} +1 -1
  83. package/lib/chunks/{chunk-OXQA5WD3.esm.js → chunk-VCMHX5VK.esm.js} +1 -1
  84. package/lib/chunks/{chunk-HJYD74KU.esm.js → chunk-VIFWWZ3H.esm.js} +1 -1
  85. package/lib/chunks/{chunk-HGOJTQ3L.esm.js → chunk-VKOURTRN.esm.js} +1 -1
  86. package/lib/chunks/{chunk-LPIWPCM4.esm.js → chunk-VLUHVGID.esm.js} +1 -1
  87. package/lib/chunks/chunk-VLWBOXKC.esm.js +1 -0
  88. package/lib/chunks/{chunk-MMKXCJ23.esm.js → chunk-VZICXIVQ.esm.js} +1 -1
  89. package/lib/chunks/{chunk-WCUEINBQ.esm.js → chunk-W2QR36MB.esm.js} +1 -1
  90. package/lib/chunks/chunk-WB5XXCKL.esm.js +1 -0
  91. package/lib/chunks/chunk-WB65GPFO.esm.js +1 -0
  92. package/lib/chunks/{chunk-3A7I6HM2.esm.js → chunk-WBRRRDIA.esm.js} +1 -1
  93. package/lib/chunks/{chunk-ULRUO4J4.esm.js → chunk-XAZ7GAG6.esm.js} +1 -1
  94. package/lib/chunks/{chunk-CQASQBD7.esm.js → chunk-XBPV4MKV.esm.js} +1 -1
  95. package/lib/chunks/{chunk-UNYBUDKE.esm.js → chunk-XCA2HUTU.esm.js} +1 -1
  96. package/lib/chunks/chunk-XEGNBICC.esm.js +33 -0
  97. package/lib/chunks/{chunk-ET2EP4QA.esm.js → chunk-XU2XD26O.esm.js} +1 -1
  98. package/lib/chunks/{chunk-UHABJEDB.esm.js → chunk-XUZQE326.esm.js} +1 -1
  99. package/lib/chunks/{chunk-BHRDNR3A.esm.js → chunk-Y33MAO4J.esm.js} +1 -1
  100. package/lib/chunks/{chunk-EK6YOJCW.esm.js → chunk-YKWTGDHO.esm.js} +1 -1
  101. package/lib/chunks/{chunk-AM56FZLE.esm.js → chunk-YYRMAERR.esm.js} +1 -1
  102. package/lib/chunks/{chunk-R2TPABZ3.esm.js → chunk-ZLURBVJC.esm.js} +1 -1
  103. package/lib/chunks/chunk-ZUSD6565.esm.js +1 -0
  104. package/lib/chunks/{chunk-UDQ3TYVZ.esm.js → chunk-ZXGZNZQN.esm.js} +1 -1
  105. package/lib/chunks/{chunk-TMIQIUOH.esm.js → chunk-ZYQJYJIC.esm.js} +1 -1
  106. package/lib/containers/Base/index.esm.js +1 -1
  107. package/lib/containers/Box/index.esm.js +1 -1
  108. package/lib/containers/Card/index.esm.js +1 -1
  109. package/lib/containers/Content/index.esm.js +1 -1
  110. package/lib/containers/Flex/index.esm.js +1 -1
  111. package/lib/containers/Grid/index.esm.js +1 -1
  112. package/lib/containers/Notification/index.esm.js +1 -1
  113. package/lib/containers/Paper/Paper.style.d.ts +4 -4
  114. package/lib/containers/Paper/index.esm.js +1 -1
  115. package/lib/containers/Scroll/index.esm.js +1 -1
  116. package/lib/containers/index.esm.js +1 -1
  117. package/lib/dataDisplay/Accordion/Accordion.d.ts +34 -0
  118. package/lib/dataDisplay/Accordion/Accordion.interface.d.ts +97 -0
  119. package/lib/dataDisplay/Accordion/Accordion.style.d.ts +122 -0
  120. package/lib/dataDisplay/Accordion/index.d.ts +8 -0
  121. package/lib/dataDisplay/Accordion/index.esm.js +1 -0
  122. package/lib/dataDisplay/DataTable/DataTable.style.d.ts +8 -8
  123. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  124. package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
  125. package/lib/dataDisplay/Meter/index.esm.js +1 -1
  126. package/lib/dataDisplay/Steps/index.esm.js +1 -1
  127. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  128. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  129. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  130. package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +2 -2
  131. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  132. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  133. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  134. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  135. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  136. package/lib/dataDisplay/Table/index.esm.js +1 -1
  137. package/lib/dataDisplay/Tabs/Tabs.style.d.ts +4 -4
  138. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  139. package/lib/dataDisplay/index.d.ts +1 -0
  140. package/lib/dataDisplay/index.esm.js +1 -1
  141. package/lib/elements/Avatar/Avatar.style.d.ts +4 -0
  142. package/lib/elements/Avatar/index.esm.js +1 -1
  143. package/lib/elements/Button/index.esm.js +1 -1
  144. package/lib/elements/Calendar/index.esm.js +1 -1
  145. package/lib/elements/Divider/index.esm.js +1 -1
  146. package/lib/elements/Dropdown/Dropdown.floating.d.ts +3 -1
  147. package/lib/elements/Dropdown/index.esm.js +1 -1
  148. package/lib/elements/Icon/Icon.d.ts +3 -1
  149. package/lib/elements/Icon/Icon.interface.d.ts +3 -1
  150. package/lib/elements/Icon/Icon.style.d.ts +3 -2
  151. package/lib/elements/Icon/index.esm.js +1 -1
  152. package/lib/elements/IconButton/index.esm.js +1 -1
  153. package/lib/elements/IconText/index.esm.js +1 -1
  154. package/lib/elements/Image/index.esm.js +1 -1
  155. package/lib/elements/Label/index.esm.js +1 -1
  156. package/lib/elements/Link/Link.style.d.ts +8 -8
  157. package/lib/elements/Link/index.esm.js +1 -1
  158. package/lib/elements/List/index.esm.js +1 -1
  159. package/lib/elements/Modal/Modal.style.d.ts +10 -9
  160. package/lib/elements/Modal/Modal.width.d.ts +30 -0
  161. package/lib/elements/Modal/index.esm.js +1 -1
  162. package/lib/elements/Popover/index.esm.js +1 -1
  163. package/lib/elements/ProgressBar/index.esm.js +1 -1
  164. package/lib/elements/Sheet/Sheet.d.ts +18 -5
  165. package/lib/elements/Sheet/Sheet.helpers.d.ts +36 -0
  166. package/lib/elements/Sheet/Sheet.interface.d.ts +62 -14
  167. package/lib/elements/Sheet/Sheet.style.d.ts +125 -18
  168. package/lib/elements/Sheet/SheetScript.d.ts +12 -0
  169. package/lib/elements/Sheet/index.d.ts +5 -1
  170. package/lib/elements/Sheet/index.esm.js +1 -1
  171. package/lib/elements/Spinner/index.esm.js +1 -1
  172. package/lib/elements/Svg/Svg.style.d.ts +1 -1
  173. package/lib/elements/Svg/index.esm.js +1 -1
  174. package/lib/elements/Text/Text.props.d.ts +22 -22
  175. package/lib/elements/Text/index.esm.js +1 -1
  176. package/lib/elements/Tooltip/Tooltip.floating.d.ts +3 -1
  177. package/lib/elements/Tooltip/index.esm.js +1 -1
  178. package/lib/elements/index.esm.js +1 -1
  179. package/lib/factory/BackgroundFactory/index.esm.js +1 -1
  180. package/lib/factory/ColorFactory/index.esm.js +1 -1
  181. package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
  182. package/lib/factory/DeepFactory/index.esm.js +1 -1
  183. package/lib/factory/FontFactory/FontFactory.interface.d.ts +1 -1
  184. package/lib/factory/MotionFactory/index.esm.js +1 -1
  185. package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
  186. package/lib/factory/SpacingFactory/index.esm.js +1 -1
  187. package/lib/factory/System/index.esm.js +1 -1
  188. package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
  189. package/lib/factory/index.esm.js +1 -1
  190. package/lib/form/Checkbox/Checkbox.style.d.ts +2 -2
  191. package/lib/form/Checkbox/index.esm.js +1 -1
  192. package/lib/form/Field/index.esm.js +1 -1
  193. package/lib/form/FieldGroup/index.esm.js +1 -1
  194. package/lib/form/Form/index.esm.js +1 -1
  195. package/lib/form/Input/Input.interface.d.ts +2 -0
  196. package/lib/form/Input/Input.style.d.ts +31 -12
  197. package/lib/form/Input/index.esm.js +1 -1
  198. package/lib/form/InputCurrency/index.esm.js +1 -1
  199. package/lib/form/InputDate/InputDate.d.ts +3 -0
  200. package/lib/form/InputDate/index.esm.js +1 -1
  201. package/lib/form/InputMask/index.esm.js +1 -1
  202. package/lib/form/InputRange/InputRange.style.d.ts +8 -8
  203. package/lib/form/InputRange/index.esm.js +1 -1
  204. package/lib/form/InputSelect/index.esm.js +1 -1
  205. package/lib/form/Option/index.esm.js +1 -1
  206. package/lib/form/Radio/Radio.style.d.ts +4 -4
  207. package/lib/form/Radio/index.esm.js +1 -1
  208. package/lib/form/Select/Select.interface.d.ts +2 -0
  209. package/lib/form/Select/index.esm.js +1 -1
  210. package/lib/form/Switch/index.esm.js +1 -1
  211. package/lib/form/TextArea/TextArea.interface.d.ts +30 -1
  212. package/lib/form/TextArea/TextArea.style.d.ts +13 -9
  213. package/lib/form/TextArea/index.esm.js +1 -1
  214. package/lib/form/UploadCard/UploadCard.style.d.ts +13 -12
  215. package/lib/form/UploadCard/index.esm.js +1 -1
  216. package/lib/form/index.esm.js +1 -1
  217. package/lib/hooks/index.esm.js +1 -1
  218. package/lib/hooks/useClipboard/index.esm.js +1 -1
  219. package/lib/hooks/useEventCallback/index.esm.js +1 -1
  220. package/lib/hooks/useFocusTrap/index.esm.js +1 -1
  221. package/lib/hooks/useIntersect/index.esm.js +1 -1
  222. package/lib/index.d.ts +1 -1
  223. package/lib/index.esm.js +1 -1
  224. package/lib/index.js +1 -1
  225. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  226. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  227. package/lib/layouts/index.esm.js +1 -1
  228. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  229. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  230. package/lib/skeleton/index.esm.js +1 -1
  231. package/lib/themes/Animation/index.esm.js +1 -1
  232. package/lib/themes/Colors/index.esm.js +1 -1
  233. package/lib/themes/Component/Component.interface.d.ts +41 -1
  234. package/lib/themes/Component/index.d.ts +1 -1
  235. package/lib/themes/Component/index.esm.js +1 -1
  236. package/lib/themes/Deep/index.esm.js +1 -1
  237. package/lib/themes/Depth/index.esm.js +1 -1
  238. package/lib/themes/Font/Font.helpers.d.ts +14 -0
  239. package/lib/themes/Font/Font.interface.d.ts +23 -5
  240. package/lib/themes/Font/Font.props.d.ts +47 -17
  241. package/lib/themes/Font/index.d.ts +1 -0
  242. package/lib/themes/Font/index.esm.js +1 -1
  243. package/lib/themes/GlobalStyle/GlobalStyle.d.ts +8 -4
  244. package/lib/themes/GlobalStyle/GlobalStyle.helpers.d.ts +22 -0
  245. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  246. package/lib/themes/Ground/index.esm.js +1 -1
  247. package/lib/themes/Layout/Layout.interface.d.ts +10 -0
  248. package/lib/themes/Layout/Layout.props.d.ts +25 -1
  249. package/lib/themes/Layout/index.esm.js +1 -1
  250. package/lib/themes/Motion/Motion.helpers.d.ts +17 -7
  251. package/lib/themes/Motion/index.esm.js +1 -1
  252. package/lib/themes/Semantic/Semantic.interface.d.ts +3 -2
  253. package/lib/themes/Semantic/index.esm.js +1 -1
  254. package/lib/themes/Surface/index.esm.js +1 -1
  255. package/lib/themes/TextSize/TextSize.helpers.d.ts +14 -0
  256. package/lib/themes/TextSize/TextSize.interface.d.ts +14 -0
  257. package/lib/themes/TextSize/TextSize.props.d.ts +27 -0
  258. package/lib/themes/TextSize/index.d.ts +8 -0
  259. package/lib/themes/TextSize/index.esm.js +1 -0
  260. package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +48 -4
  261. package/lib/themes/ThemeProvider/ThemeProvider.modes.d.ts +1 -1
  262. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  263. package/lib/themes/index.d.ts +1 -0
  264. package/lib/themes/index.esm.js +1 -1
  265. package/lib/utils/capabilities.d.ts +185 -0
  266. package/lib/utils/index.esm.js +1 -1
  267. package/lib/vendors/EmotionIsPropValid/component.d.ts +1 -10
  268. package/lib/vendors/FloatingUI/index.d.ts +1 -0
  269. package/lib/vendors/FloatingUI/interface.d.ts +12 -2
  270. package/lib/vendors/FloatingUI/layer.d.ts +46 -0
  271. package/package.json +20 -6
  272. package/lib/chunks/Dropdown.floating-7EM6JR7N.esm.js +0 -1
  273. package/lib/chunks/Notification.group-4FQM35YN.esm.js +0 -1
  274. package/lib/chunks/Tooltip.floating-IEWE6XP4.esm.js +0 -1
  275. package/lib/chunks/chunk-347TNROV.esm.js +0 -1
  276. package/lib/chunks/chunk-3V3ZEGHO.esm.js +0 -1
  277. package/lib/chunks/chunk-42TLD4GM.esm.js +0 -1
  278. package/lib/chunks/chunk-4DUZ532N.esm.js +0 -1
  279. package/lib/chunks/chunk-4TQV5FFJ.esm.js +0 -1
  280. package/lib/chunks/chunk-BV6GHAF7.esm.js +0 -1
  281. package/lib/chunks/chunk-CC5NKEXF.esm.js +0 -1
  282. package/lib/chunks/chunk-DKLZWHQO.esm.js +0 -1
  283. package/lib/chunks/chunk-ETEH25BP.esm.js +0 -1
  284. package/lib/chunks/chunk-GC5QKJHS.esm.js +0 -26
  285. package/lib/chunks/chunk-H4XR4LGF.esm.js +0 -1
  286. package/lib/chunks/chunk-IQWHAMQB.esm.js +0 -48
  287. package/lib/chunks/chunk-J2ZPCUOE.esm.js +0 -1
  288. package/lib/chunks/chunk-JLUNVLUS.esm.js +0 -1
  289. package/lib/chunks/chunk-MGWZZQPO.esm.js +0 -1
  290. package/lib/chunks/chunk-MYGV5PMT.esm.js +0 -2
  291. package/lib/chunks/chunk-N5QK3LZW.esm.js +0 -1
  292. package/lib/chunks/chunk-P7RR4ZHS.esm.js +0 -1
  293. package/lib/chunks/chunk-QRU4HAB3.esm.js +0 -1
  294. package/lib/chunks/chunk-R3VRFUEK.esm.js +0 -1
  295. package/lib/chunks/chunk-RR2TYGZC.esm.js +0 -1
  296. package/lib/chunks/chunk-SF2QSF7E.esm.js +0 -20
  297. package/lib/chunks/chunk-UQVJ7IG5.esm.js +0 -1
  298. package/lib/chunks/chunk-VMIXRIQ2.esm.js +0 -1
  299. package/lib/chunks/chunk-VPRTYKGB.esm.js +0 -39
  300. package/lib/chunks/chunk-VUFEYXWD.esm.js +0 -1
  301. package/lib/chunks/chunk-XTYYQH7J.esm.js +0 -1
  302. package/lib/chunks/chunk-YJHYFCT7.esm.js +0 -1
  303. package/lib/chunks/chunk-ZZOIX6CV.esm.js +0 -1
  304. /package/lib/chunks/{chunk-EBOJSNZ5.esm.js → chunk-AMN6SRJS.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { ContainerSizesInput, ContainerSizesInterface, LayoutInput, LayoutInterface } from './Layout.interface';
1
+ import { ContainerSizesInput, ContainerSizesInterface, LayoutInput, LayoutInterface, ZIndexInput, ZIndexInterface } from './Layout.interface';
2
2
  /**
3
3
  * Default container-size scale (ADR-025 §2.2). Calibrated in the S1 spike:
4
4
  * `xs` fits a compact rail card, `sm` the classic sidebar widget, `md` a
@@ -16,3 +16,27 @@ export declare const defaultInputLayout: LayoutInput;
16
16
  export declare const createContainerSizes: (input: ContainerSizesInput) => ContainerSizesInterface;
17
17
  /** Builds the `theme.layout` surface. */
18
18
  export declare const createLayout: (input: LayoutInput) => LayoutInterface;
19
+ /**
20
+ * Default `z-index` scale: `Table` sticky header < `Dropdown`/`InputSelect`
21
+ * menus < `Notification` toasts and page banner < `Modal`/`Sheet`.
22
+ */
23
+ export declare const defaultInputZIndex: ZIndexInput;
24
+ /**
25
+ * Builds the `theme.zIndex` surface — the sibling of `createLayout`. No
26
+ * derived fields (unlike `createContainerSizes`'s `up()`/`width()`): every
27
+ * consumer reads the raw number (`themeZIndex(theme).modal`).
28
+ */
29
+ export declare const createZIndex: (input: ZIndexInput) => ZIndexInterface;
30
+ /**
31
+ * Reads `theme.zIndex`, falling back to the default scale when a hand-built or
32
+ * mocked theme predates the slice (same guard as `theme.motion ?? DEFAULT_MOTION`).
33
+ * Every z-index reader in core goes through it.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * z-index: ${({ theme }) => themeZIndex(theme).modal};
38
+ * ```
39
+ */
40
+ export declare const themeZIndex: (theme: {
41
+ zIndex?: ZIndexInterface;
42
+ }) => ZIndexInterface;
@@ -1 +1 @@
1
- import{a,b,c,d}from"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{c as createContainerSizes,d as createLayout,a as defaultInputContainerSizes,b as defaultInputLayout};
1
+ import{a,b,c,d,e,f,g}from"../../chunks/chunk-L7A7RA56.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{c as createContainerSizes,d as createLayout,f as createZIndex,a as defaultInputContainerSizes,b as defaultInputLayout,e as defaultInputZIndex,g as themeZIndex};
@@ -1,4 +1,4 @@
1
- import { MotionThemeInterface } from './Motion.interface';
1
+ import { MotionIntentKey, MotionThemeInterface } from './Motion.interface';
2
2
  import { RuleSet } from '../../vendors/StyledComponents';
3
3
  /**
4
4
  * Reduced-motion duration target (ADR-027). `0.01ms` instead of `0ms` so a
@@ -7,6 +7,13 @@ import { RuleSet } from '../../vendors/StyledComponents';
7
7
  * never starts a transition and never fires it.
8
8
  */
9
9
  export declare const REDUCED_MOTION_DURATION = "0.01ms";
10
+ /**
11
+ * `var(--apollion-motion-intent-<intent>-<channel>, <theme literal>)` — the
12
+ * fallback literal is mandatory (ADR-027 §2.2): `GlobalStyle` is optional by
13
+ * contract, so a consumer of the intent vars must resolve without the var
14
+ * block present.
15
+ */
16
+ export declare const motionIntentVar: (motion: MotionThemeInterface, intent: MotionIntentKey, channel: "duration" | "easing") => string;
10
17
  /**
11
18
  * `theme.motion` → `--apollion-motion-*` custom properties, split vars only
12
19
  * (duration and easing never share a name, so reduced-motion can zero
@@ -38,17 +45,20 @@ export declare function motionGlobalCss(motion: MotionThemeInterface): string;
38
45
  * Opt-in View Transitions wiring (ADR-027 S5, progressive enhancement):
39
46
  * binds the browser's root cross-fade (`::view-transition-old/new(root)`)
40
47
  * 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.
48
+ * frame arrives on the `enter` intent.
49
+ *
50
+ * Rule body only: {@link viewTransitionStyles} wraps it in
51
+ * `supports('view-transitions', …)` (ADR-029 §3), so browsers without the
52
+ * API swap instantly. A pure string for the same testability reason as
53
+ * {@link motionGlobalCss}.
43
54
  *
44
55
  * 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.
56
+ * the same vars the global override zeroes.
48
57
  */
49
58
  export declare function viewTransitionCss(): string;
50
59
  /**
51
- * Ready-to-extend RuleSet of {@link viewTransitionCss} — pass it to
60
+ * Ready-to-extend RuleSet wrapping {@link viewTransitionCss} in the
61
+ * `view-transitions` capability's `@supports` guard — pass it to
52
62
  * `<GlobalStyle extend={viewTransitionStyles} />` to time the browser's
53
63
  * View Transitions (e.g. `document.startViewTransition(() => setMode(...))`
54
64
  * on a theme switch) with the DS motion tokens. Deliberately NOT part of
@@ -1 +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};
1
+ import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunks/chunk-R2QEO3KP.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as REDUCED_MOTION_DURATION,k as createMotion,h as defaultInputMotion,i as formatMotionDuration,j as formatMotionEasing,e as motionGlobalCss,b as motionIntentVar,c as motionVars,d as reducedMotionVars,f as viewTransitionCss,g as viewTransitionStyles};
@@ -143,8 +143,9 @@ export interface SemanticDimensionSpacing {
143
143
  giant: string;
144
144
  }
145
145
  /**
146
- * Dimension layer of Semantic. Currently covers only spacing; typography and
147
- * elevation may land in future iterations without a breaking change.
146
+ * Dimension layer of Semantic — density only: spacing (elevation may join).
147
+ * Typography is NOT a density concern since ADR-030 (`textSize` axis); any
148
+ * semantic type aliases belong in a separate `semantic.type` layer.
148
149
  */
149
150
  export interface SemanticDimension {
150
151
  spacing: SemanticDimensionSpacing;
@@ -1 +1 @@
1
- import"../../chunks/chunk-IA234JY2.esm.js";import{b as a}from"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.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-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 +1 @@
1
- import{a as b}from"../../chunks/chunk-TMIQIUOH.esm.js";import{a}from"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-PFLBU7HG.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 SurfaceProvider,a as invertForSurface};
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};
@@ -0,0 +1,14 @@
1
+ import { TextSize } from './TextSize.interface';
2
+ /**
3
+ * Attribute carrying the active text-size level on `<html>` (or any subtree
4
+ * root). The tokens build's `css/font.css` keys its overrides on it, so the
5
+ * React theme and the CSS-only surface resolve the same text size.
6
+ */
7
+ export declare const TEXT_SIZE_ATTRIBUTE = "data-apollion-text-size";
8
+ /**
9
+ * Writes the resolved text-size level on `element` (`data-apollion-text-size`).
10
+ * No-op without an element.
11
+ */
12
+ export declare function syncDocumentTextSize(element: HTMLElement | null | undefined, textSize: TextSize): void;
13
+ /** Removes what {@link syncDocumentTextSize} wrote (provider unmount). */
14
+ export declare function clearDocumentTextSize(element: HTMLElement | null | undefined): void;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Type-size axis (ADR-030, APOLLION-TEXT-SIZE).
3
+ *
4
+ * Independent of `Dimension`: `dimension` sets layout density (spacing),
5
+ * `textSize` sets the reading size (font sizes and `Icon` glyphs). Any pair is
6
+ * valid — `compact` + `larger` is a dense screen with large text.
7
+ *
8
+ * Consumer picks it via `<ApollionProvider textSize="larger">` (prop-only, same
9
+ * rule as `dimension`).
10
+ *
11
+ * @see ../../docs/adr/ADR-030-text-size-axis.md
12
+ * @see ./TextSize.props.ts
13
+ */
14
+ export type TextSize = 'smaller' | 'default' | 'larger' | 'largest';
@@ -0,0 +1,27 @@
1
+ import { TextSize } from './TextSize.interface';
2
+ /**
3
+ * Font-size ratio per {@link TextSize}, applied to the px design scale.
4
+ *
5
+ * - `smaller` = 0.875 → body `small` 14px
6
+ * - `default` = 1 → body `small` 16px (the px design source, 1:1)
7
+ * - `larger` = 1.125 → body `small` 18px
8
+ * - `largest` = 1.25 → body `small` 20px
9
+ *
10
+ * @see ../../docs/adr/ADR-030-text-size-axis.md
11
+ */
12
+ export declare const TEXT_SIZE_MULTIPLIERS: Readonly<Record<TextSize, number>>;
13
+ /**
14
+ * Default text size when the consumer does not pass `textSize`. `default` maps
15
+ * the px design source 1:1, under every `dimension`.
16
+ */
17
+ export declare const DEFAULT_TEXT_SIZE: TextSize;
18
+ /**
19
+ * Resolve the font-size ratio for a given text size.
20
+ *
21
+ * Used by `Font.props.ts#createFont`. An unknown level (plain-JS caller) resolves
22
+ * to `1` (the `default` ratio) with a development warning, never `NaN`.
23
+ *
24
+ * @param textSize - reading-size level (see {@link TextSize})
25
+ * @returns ratio over the px design source (0.875 / 1 / 1.125 / 1.25)
26
+ */
27
+ export declare function getMultiplierForTextSize(textSize: TextSize): number;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Public barrel of the `TextSize` module (type-size axis — ADR-030).
3
+ *
4
+ * Orthogonal to `Dimension` (density): see ./TextSize.interface.ts.
5
+ */
6
+ export * from './TextSize.helpers';
7
+ export * from './TextSize.interface';
8
+ export * from './TextSize.props';
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f}from"../../chunks/chunk-WB5XXCKL.esm.js";import"../../chunks/chunk-J6F4PMW4.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{e as DEFAULT_TEXT_SIZE,a as TEXT_SIZE_ATTRIBUTE,d as TEXT_SIZE_MULTIPLIERS,c as clearDocumentTextSize,f as getMultiplierForTextSize,b as syncDocumentTextSize};
@@ -9,12 +9,13 @@ import { DepthThemeInterface } from '../Depth';
9
9
  import type { Dimension } from '../Dimension';
10
10
  import { FontInput, FontThemeInterface, TypeWeight } from '../Font';
11
11
  import { FoundationLayer } from '../Foundation';
12
- import { ContainerSizesInput, ContainerSizesInterface, LayoutInput, LayoutInterface } from '../Layout';
12
+ import { ContainerSizesInput, ContainerSizesInterface, LayoutInput, LayoutInterface, ZIndexInput, ZIndexInterface } from '../Layout';
13
13
  import type { A11yMode, ModePreference, PersistOption, ResolvedMode } from '../Mode/Mode.interface';
14
14
  import { MotionInput, MotionThemeInterface } from '../Motion';
15
15
  import { SemanticLayer } from '../Semantic';
16
16
  import { SpacingInput, SpacingThemeInterface } from '../Spacing';
17
17
  import type { SurfaceMode } from '../Surface';
18
+ import type { TextSize } from '../TextSize';
18
19
  export interface ThemeInputsInterface {
19
20
  breakpoints?: BreakpointInput;
20
21
  /**
@@ -27,6 +28,13 @@ export interface ThemeInputsInterface {
27
28
  * `pageShell` prop applies (previously a magic `1366`).
28
29
  */
29
30
  layout?: LayoutInput;
31
+ /**
32
+ * Named stacking scale for the cross-component overlay layers —
33
+ * `sticky`/`dropdown`/`toast`/`modal`.
34
+ * Deep-merged over the defaults, so a partial override (e.g. only
35
+ * `{ modal: 10000 }`) leaves the rest untouched.
36
+ */
37
+ zIndex?: Partial<ZIndexInput>;
30
38
  spacing?: SpacingInput;
31
39
  colors?: ColorsInput;
32
40
  font?: FontInput;
@@ -41,7 +49,8 @@ export interface ThemeInputsInterface {
41
49
  /**
42
50
  * Density axis introduced in `@apollion-dsi/core` v4 (ADR-006 E2).
43
51
  * Overrides `spacing.multiplier` when provided. Default: `'normal'`
44
- * (preserves v3.x behavior).
52
+ * (preserves v3.x behavior). Spacing only — type size is `textSize`
53
+ * (ADR-030).
45
54
  *
46
55
  * @see ../Dimension/Dimension.interface.ts (naming disambiguation)
47
56
  * @see ../Dimension/Dimension.props.ts (DIMENSION_MULTIPLIERS calibration)
@@ -54,6 +63,15 @@ export interface ThemeInputsInterface {
54
63
  * Per-call-site `fontWeight` still overrides.
55
64
  */
56
65
  typeWeight?: TypeWeight;
66
+ /**
67
+ * Text-size axis (ADR-030): scales `font.fontSize` and `font.sizing`
68
+ * (`Icon` glyphs) by `smaller` 0.875 / `default` 1 / `larger` 1.125 / `largest` 1.25,
69
+ * independent of `dimension`.
70
+ *
71
+ * @default 'default'
72
+ * @see ../TextSize/TextSize.props.ts
73
+ */
74
+ textSize?: TextSize;
57
75
  /**
58
76
  * Component token tier overrides (ADR-020). Deep-merged over the
59
77
  * defaults — override a single size of a single component without
@@ -73,6 +91,15 @@ export type Theme = {
73
91
  containerSizes: ContainerSizesInterface;
74
92
  /** Page-layout constants (`pageMaxWidth`, ADR-025 §2.3). */
75
93
  layout: LayoutInterface;
94
+ /**
95
+ * Named `z-index` scale for the cross-component overlay layers:
96
+ * `sticky` (Table header) < `dropdown`
97
+ * (Dropdown/InputSelect popovers) < `toast` (Notification) < `modal`
98
+ * (Modal/Sheet). A component's own internal stacking (e.g. `1`/`2`/`-1`
99
+ * between two of its own children) is not part of this scale — it stays a
100
+ * local literal.
101
+ */
102
+ zIndex: ZIndexInterface;
76
103
  font: FontThemeInterface;
77
104
  colors: ColorsThemeInterface;
78
105
  breakpoints: BreakpointsInterface;
@@ -231,7 +258,10 @@ export interface ApollionProviderInterface {
231
258
  /**
232
259
  * Mirror the resolved mode + a11y preset on `<html>` (`data-apollion-mode`,
233
260
  * `data-apollion-a11y`, `style.colorScheme`) so native controls, scrollbars
234
- * and `light-dark()` follow the engine. Removed on unmount.
261
+ * and `light-dark()` follow the engine, and the resolved text size
262
+ * (`data-apollion-text-size`, ADR-030) so the tokens' `css/font.css` agrees
263
+ * with the React theme — the text-size attribute is written by the outermost
264
+ * provider only. Removed on unmount.
235
265
  *
236
266
  * @default true
237
267
  */
@@ -296,7 +326,8 @@ export interface ApollionProviderInterface {
296
326
  /**
297
327
  * Density axis (ADR-006 E2). Convenience prop equivalent to passing
298
328
  * `theme={createTheme({ dimension })}`. When set, builds a new theme
299
- * on the fly with the chosen density multiplier.
329
+ * on the fly with the chosen density multiplier. Drives spacing only —
330
+ * text size is `textSize` (ADR-030).
300
331
  *
301
332
  * **Prop-only API** (Q-G3 decision): no `theme.dimension()` getter and
302
333
  * no `useDimension()` hook are exposed. Consumer expresses density
@@ -314,6 +345,19 @@ export interface ApollionProviderInterface {
314
345
  * @default 'regular' (stock ladder)
315
346
  */
316
347
  typeWeight?: TypeWeight;
348
+ /**
349
+ * Text-size axis (ADR-030) — the reading size, independent of
350
+ * `dimension`: `<ApollionProvider dimension="compact" textSize="larger">` is a
351
+ * dense layout with large text. Convenience prop equivalent to
352
+ * `createTheme({ textSize })`; like `dimension`, it only applies when the
353
+ * provider builds the theme. Set it once at the app root and wire it to the
354
+ * app's own user preference. A nested provider is not a way to rescale one
355
+ * region: it rebuilds the whole theme (brand, mode and a11y preset too).
356
+ *
357
+ * @default 'default'
358
+ * @see ../TextSize/TextSize.interface.ts
359
+ */
360
+ textSize?: TextSize;
317
361
  children?: React.ReactNode;
318
362
  }
319
363
  export interface ApollionThemeContext {
@@ -30,7 +30,7 @@ export declare function forModes<T extends string | undefined>(theme: Theme, fn:
30
30
  /**
31
31
  * Projects a literal light/dark pair into the single theme the styled tree
32
32
  * consumes. Only mode-varying color subtrees are paired (`colors`,
33
- * `semantic.color`, `foundation.{bg,text,edge}`, `depth`); dimension-driven
33
+ * `semantic.color`, `foundation.{bg,text,edge}`, `depth`); mode-invariant
34
34
  * subtrees (spacing, font, border, component tokens) are shared by
35
35
  * construction and keep the light references. Pure: a new object, inputs
36
36
  * untouched; `theme.modes` carries the pair.
@@ -1 +1 @@
1
- import"../../chunks/chunk-4L2KOZIQ.esm.js";import{a,e as b,g as c}from"../../chunks/chunk-4TQV5FFJ.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-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-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.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
+ 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};
@@ -15,3 +15,4 @@ export * from './Semantic';
15
15
  export * from './Spacing';
16
16
  export * from './Surface';
17
17
  export * from './ThemeProvider';
18
+ export * from './TextSize';
@@ -1 +1 @@
1
- import"../chunks/chunk-EBOJSNZ5.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 Ya,b as Za}from"../chunks/chunk-MYGV5PMT.esm.js";import{a as Ua,e as Wa,g as Xa}from"../chunks/chunk-4TQV5FFJ.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{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 _a}from"../chunks/chunk-TG2P4DDY.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"../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};
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};
@@ -0,0 +1,185 @@
1
+ import { RuleSet } from '../vendors/StyledComponents';
2
+ /**
3
+ * ADR-029 §3 — capability tiers. T0 needs no guard (every floor browser
4
+ * ships it). T1/T2/T3 are enforced by `capability-guardrails.test.ts`:
5
+ * T1 is graceful-ignore (allowlisted per file, no `supports()` needed —
6
+ * the browser silently drops the declaration); T2 must be wrapped in
7
+ * `supports()`; T3 is single-engine and must never appear in core src.
8
+ */
9
+ export type CapabilityTier = 'T1' | 'T2' | 'T3';
10
+ /**
11
+ * Lowest engine version that ships the feature, mirroring
12
+ * `@mdn/browser-compat-data`'s `version_added` shape: `false` when no
13
+ * released version of that engine supports it. Chrome/Firefox are major
14
+ * version numbers; Safari/WebKit versions carry a minor (e.g. `'26.4'`)
15
+ * because that is how Apple ships within a "major" (ADR-029 floor table).
16
+ */
17
+ export interface CapabilityBcd {
18
+ readonly chrome: string | false;
19
+ readonly firefox: string | false;
20
+ readonly safari: string | false;
21
+ }
22
+ export interface CapabilityEntry {
23
+ /** The `<supports-condition>` body — `supports()` wraps it in `@supports (…)`. */
24
+ readonly condition: string;
25
+ readonly tier: CapabilityTier;
26
+ /**
27
+ * What `capability-guardrails.test.ts` looks for in core sources: the
28
+ * kebab-case CSS property/at-rule/function and its camelCase object-style
29
+ * key, bounded so an unrelated identifier or theme token does not match.
30
+ */
31
+ readonly patterns: readonly RegExp[];
32
+ readonly bcd: CapabilityBcd;
33
+ }
34
+ /**
35
+ * The capability registry (ADR-029 §3). Every call site reads
36
+ * through `CAPS`/`supports()`, never a literal condition, so a future
37
+ * `APOLLION_VR_FLOOR` knob can swap a condition in one place.
38
+ *
39
+ * - T2 (`supports()` required): `view-transitions` (live in
40
+ * `Motion.helpers.ts`), and `anchor-positioning`,
41
+ * `scroll-driven-animations`, `scope` — seeded before any call site so the
42
+ * first one is guarded.
43
+ * - T1 (graceful-ignore, allowlisted per file): `overlay` (static `Sheet`
44
+ * exit transition list), `field-sizing` (`TextArea` `autoResize`),
45
+ * `details-content` (`Accordion` open/close transition — engines without
46
+ * the pseudo-element drop the rule and panels toggle instantly).
47
+ * - T3 (forbidden): `interpolate-size`, `calc-size`, `if-function`,
48
+ * `corner-shape`, `base-select`.
49
+ */
50
+ export declare const CAPS: {
51
+ readonly 'view-transitions': {
52
+ readonly condition: "view-transition-name: none";
53
+ readonly tier: "T2";
54
+ readonly patterns: readonly [...RegExp[], RegExp];
55
+ readonly bcd: {
56
+ readonly chrome: "111";
57
+ readonly firefox: "144";
58
+ readonly safari: "18";
59
+ };
60
+ };
61
+ readonly overlay: {
62
+ readonly condition: "overlay: auto";
63
+ readonly tier: "T1";
64
+ readonly patterns: readonly [RegExp, RegExp];
65
+ readonly bcd: {
66
+ readonly chrome: "117";
67
+ readonly firefox: false;
68
+ readonly safari: false;
69
+ };
70
+ };
71
+ readonly 'anchor-positioning': {
72
+ readonly condition: "anchor-name: --a";
73
+ readonly tier: "T2";
74
+ readonly patterns: readonly RegExp[];
75
+ readonly bcd: {
76
+ readonly chrome: "125";
77
+ readonly firefox: "147";
78
+ readonly safari: "26";
79
+ };
80
+ };
81
+ readonly 'scroll-driven-animations': {
82
+ readonly condition: "animation-timeline: scroll()";
83
+ readonly tier: "T2";
84
+ readonly patterns: readonly RegExp[];
85
+ readonly bcd: {
86
+ readonly chrome: "115";
87
+ readonly firefox: false;
88
+ readonly safari: "26";
89
+ };
90
+ };
91
+ readonly scope: {
92
+ readonly condition: "at-rule(@scope)";
93
+ readonly tier: "T2";
94
+ readonly patterns: readonly [RegExp];
95
+ readonly bcd: {
96
+ readonly chrome: "118";
97
+ readonly firefox: "146";
98
+ readonly safari: "26.4";
99
+ };
100
+ };
101
+ readonly 'interpolate-size': {
102
+ readonly condition: "interpolate-size: allow-keywords";
103
+ readonly tier: "T3";
104
+ readonly patterns: RegExp[];
105
+ readonly bcd: {
106
+ readonly chrome: "129";
107
+ readonly firefox: false;
108
+ readonly safari: false;
109
+ };
110
+ };
111
+ readonly 'calc-size': {
112
+ readonly condition: "width: calc-size(auto, size)";
113
+ readonly tier: "T3";
114
+ readonly patterns: readonly [RegExp];
115
+ readonly bcd: {
116
+ readonly chrome: "129";
117
+ readonly firefox: false;
118
+ readonly safari: false;
119
+ };
120
+ };
121
+ readonly 'if-function': {
122
+ readonly condition: "width: if(style(--x): 1px; else: 2px)";
123
+ readonly tier: "T3";
124
+ readonly patterns: readonly [RegExp];
125
+ readonly bcd: {
126
+ readonly chrome: "137";
127
+ readonly firefox: false;
128
+ readonly safari: false;
129
+ };
130
+ };
131
+ readonly 'corner-shape': {
132
+ readonly condition: "corner-shape: bevel";
133
+ readonly tier: "T3";
134
+ readonly patterns: RegExp[];
135
+ readonly bcd: {
136
+ readonly chrome: "139";
137
+ readonly firefox: false;
138
+ readonly safari: false;
139
+ };
140
+ };
141
+ readonly 'base-select': {
142
+ readonly condition: "appearance: base-select";
143
+ readonly tier: "T3";
144
+ readonly patterns: readonly [RegExp];
145
+ readonly bcd: {
146
+ readonly chrome: "135";
147
+ readonly firefox: false;
148
+ readonly safari: false;
149
+ };
150
+ };
151
+ readonly 'field-sizing': {
152
+ readonly condition: "field-sizing: content";
153
+ readonly tier: "T1";
154
+ readonly patterns: RegExp[];
155
+ readonly bcd: {
156
+ readonly chrome: "123";
157
+ readonly firefox: "152";
158
+ readonly safari: "26.2";
159
+ };
160
+ };
161
+ readonly 'details-content': {
162
+ readonly condition: "selector(::details-content)";
163
+ readonly tier: "T1";
164
+ readonly patterns: readonly [RegExp];
165
+ readonly bcd: {
166
+ readonly chrome: "131";
167
+ readonly firefox: "143";
168
+ readonly safari: "18.4";
169
+ };
170
+ };
171
+ };
172
+ export type CapabilityId = keyof typeof CAPS;
173
+ /**
174
+ * Per-file allowlist for T1 capabilities: no `supports()` needed (the browser
175
+ * drops the declaration), so each occurrence is a reviewed decision. An entry
176
+ * whose file no longer uses the capability fails the guardrail.
177
+ */
178
+ export declare const T1_ALLOWLIST: Readonly<Partial<Record<CapabilityId, readonly string[]>>>;
179
+ /**
180
+ * Wraps `content` in `@supports (<condition>) { … }` for a T2 capability,
181
+ * reading the condition from {@link CAPS} — never a literal string at the
182
+ * call site (ADR-029 §4: SSR-deterministic, the condition is a static
183
+ * string, no feature detection at render time).
184
+ */
185
+ export declare function supports(cap: CapabilityId, content: RuleSet<object>): RuleSet<object>;
@@ -1 +1 @@
1
- import{a,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u}from"../chunks/chunk-BV6GHAF7.esm.js";import{a as b,b as c,c as d}from"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{d as $documentBody,c as $window,a as LOGGER,b as canuseDom,u as createMask,o as domToReact,p as flatAll,r as getValue,l as isEmptyArray,h as isFunction,m as isInputEvent,i as isObject,j as isObjectEmpty,k as isString,q as mapObjIndexed,t as maskContructor,s as memoize,n as parseHtmlString,g as toArray,f as toPixel,e as useDeprecated};
1
+ import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u}from"../chunks/chunk-6G22RNUO.esm.js";import{a}from"../chunks/chunk-J6F4PMW4.esm.js";import{a as b,b as c,c as d}from"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{d as $documentBody,c as $window,a as LOGGER,b as canuseDom,u as createMask,o as domToReact,p as flatAll,r as getValue,l as isEmptyArray,h as isFunction,m as isInputEvent,i as isObject,j as isObjectEmpty,k as isString,q as mapObjIndexed,t as maskContructor,s as memoize,n as parseHtmlString,g as toArray,f as toPixel,e as useDeprecated};
@@ -1,12 +1,3 @@
1
- /**
2
- * Typed re-export of the absorbed surface of `@emotion/is-prop-valid`.
3
- *
4
- * Absorbed surface: default export — predicate that classifies a prop name
5
- * as HTML-valid (used by styled-components' `shouldForwardProp`).
6
- *
7
- * @see ./README.md
8
- * @see ADR-004 §3.1
9
- */
10
- import isPropValid from '@emotion/is-prop-valid';
1
+ declare const isPropValid: (prop: string) => boolean;
11
2
  export { isPropValid };
12
3
  export default isPropValid;
@@ -1,2 +1,3 @@
1
1
  export * from './component';
2
2
  export * from './interface';
3
+ export * from './layer';
@@ -10,9 +10,19 @@
10
10
  * - `OpenChangeReason` — passed to `onOpenChange` callbacks indicating
11
11
  * what triggered the close (`outside-press`, `escape-key`, etc.).
12
12
  *
13
- * No DS-owned types. The ADR-004 §3.1 convention keeps the file for
14
- * uniformity across vendors.
13
+ * DS-owned: `FloatingLayer` (see `getFloatingLayer`).
15
14
  *
16
15
  * @see ./component.ts
17
16
  */
17
+ import type { Strategy } from '@floating-ui/react';
18
18
  export type { MiddlewareData, OpenChangeReason, Placement, Strategy } from '@floating-ui/react';
19
+ /**
20
+ * DS-owned: the portal root + positioning strategy of a floating layer,
21
+ * resolved by `getFloatingLayer` from its reference element. Maps onto
22
+ * `FloatingPortal`'s `root`: an element portals there, `undefined` portals to
23
+ * `document.body`, `null` waits (reference not mounted yet).
24
+ */
25
+ export interface FloatingLayer {
26
+ root: HTMLElement | null | undefined;
27
+ strategy: Strategy;
28
+ }
@@ -0,0 +1,46 @@
1
+ import type { FloatingLayer } from './interface';
2
+ /**
3
+ * Resolves where a floating layer anchored to `reference` portals, and how it
4
+ * is positioned.
5
+ *
6
+ * Inside a modal host the layer portals into that host, so it paints above the
7
+ * modal and stays interactive:
8
+ * - an open `<dialog>` (static `Sheet`) sits in the browser's top layer and
9
+ * makes everything outside its subtree inert — a `document.body` portal
10
+ * would paint under it and ignore clicks;
11
+ * - an `aria-modal="true"` panel (`Modal`, controlled `Sheet`) lives in a
12
+ * `theme.zIndex.modal` container in `body` — a `body` portal at
13
+ * `theme.zIndex.dropdown` would paint under it.
14
+ *
15
+ * There the layer is positioned `fixed` (host contract: `transform: none` at
16
+ * rest, see the vendor README). Anywhere else it keeps the default
17
+ * `document.body` portal with the `absolute` strategy.
18
+ *
19
+ * Until the reference mounts, `root` is `null`: `FloatingPortal` waits
20
+ * instead of creating its node on `document.body`, where it would stay.
21
+ *
22
+ * DOM read only — call it with the already-mounted reference element, never
23
+ * with `document` on the server.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * const layer = getFloatingLayer(referenceEl);
28
+ * const { refs, floatingStyles } = useFloating({ strategy: layer.strategy, elements: { reference: referenceEl } });
29
+ * return <FloatingPortal root={layer.root}>…</FloatingPortal>;
30
+ * ```
31
+ */
32
+ export declare function getFloatingLayer(reference: Element | null | undefined): FloatingLayer;
33
+ /**
34
+ * {@link getFloatingLayer} for a component: same resolution, plus a
35
+ * development warning when the layer is `open` but its reference never
36
+ * mounts — the portal waits on `root: null` and would otherwise render
37
+ * nothing, silently. A reference that arrives on the next render (the
38
+ * normal mount order) cancels the warning.
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * const layer = useFloatingLayer(referenceEl, open);
43
+ * return <FloatingPortal root={layer.root}>…</FloatingPortal>;
44
+ * ```
45
+ */
46
+ export declare function useFloatingLayer(reference: Element | null | undefined, open: boolean): FloatingLayer;