@apollion-dsi/core 7.3.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.
- package/README.md +7 -0
- package/lib/chunks/Dropdown.floating-4F6FTG44.esm.js +1 -0
- package/lib/chunks/Notification.group-CQZ3M4FD.esm.js +1 -0
- package/lib/chunks/Tooltip.floating-FNRDGVZA.esm.js +1 -0
- package/lib/chunks/{chunk-67E7VWGJ.esm.js → chunk-25A3FLAS.esm.js} +1 -1
- package/lib/chunks/{chunk-NSMXX277.esm.js → chunk-27BUTGEI.esm.js} +1 -1
- package/lib/chunks/{chunk-PXVTXO3L.esm.js → chunk-2TQTHAFO.esm.js} +1 -1
- package/lib/chunks/chunk-3437GMP7.esm.js +1 -0
- package/lib/chunks/{chunk-JCPRNQ6K.esm.js → chunk-3A7CFAN2.esm.js} +1 -1
- package/lib/chunks/{chunk-YJ6PPJQ4.esm.js → chunk-3CKHLCIB.esm.js} +1 -1
- package/lib/chunks/chunk-3HLIX4CZ.esm.js +1 -0
- package/lib/chunks/{chunk-A4N7BBKS.esm.js → chunk-3OILM5EQ.esm.js} +1 -1
- package/lib/chunks/chunk-4D6MGQNS.esm.js +1 -0
- package/lib/chunks/{chunk-WEZKDYTI.esm.js → chunk-4DW5H7JW.esm.js} +1 -1
- package/lib/chunks/{chunk-X2ARVSJZ.esm.js → chunk-56PN4PGS.esm.js} +1 -1
- package/lib/chunks/{chunk-ZOPD2T72.esm.js → chunk-5JB5IV5W.esm.js} +1 -1
- package/lib/chunks/{chunk-RHRKGRQP.esm.js → chunk-5V3QEYAS.esm.js} +1 -1
- package/lib/chunks/{chunk-XCJYI6FQ.esm.js → chunk-66KNGOWM.esm.js} +1 -1
- package/lib/chunks/chunk-6G22RNUO.esm.js +1 -0
- package/lib/chunks/chunk-6HQICTWR.esm.js +1 -0
- package/lib/chunks/{chunk-QHRNEUNP.esm.js → chunk-6O6KKD7F.esm.js} +1 -1
- package/lib/chunks/{chunk-TZQMBDGR.esm.js → chunk-6RVYBZSW.esm.js} +1 -1
- package/lib/chunks/{chunk-G757UD32.esm.js → chunk-76VCAI6X.esm.js} +1 -1
- package/lib/chunks/chunk-7DO5M7YG.esm.js +1 -0
- package/lib/chunks/{chunk-5Q265MC7.esm.js → chunk-7JYI2AQK.esm.js} +1 -1
- package/lib/chunks/chunk-AIIBSKW7.esm.js +1 -0
- package/lib/chunks/{chunk-ZR433YL7.esm.js → chunk-AIT3ZFAZ.esm.js} +1 -1
- package/lib/chunks/chunk-AJ7JAO2E.esm.js +50 -0
- package/lib/chunks/{chunk-MREWGN5R.esm.js → chunk-AZXLTCJK.esm.js} +1 -1
- package/lib/chunks/chunk-B6OC4RV2.esm.js +1 -0
- package/lib/chunks/{chunk-K2FNA2E5.esm.js → chunk-BUT67NEF.esm.js} +1 -1
- package/lib/chunks/{chunk-LS3AMOAD.esm.js → chunk-CAL43X4O.esm.js} +1 -1
- package/lib/chunks/{chunk-PV4PSGB7.esm.js → chunk-DCIALXT7.esm.js} +1 -1
- package/lib/chunks/{chunk-5RKOPGWH.esm.js → chunk-DUCEY62P.esm.js} +1 -1
- package/lib/chunks/chunk-E2U6IFPB.esm.js +1 -0
- package/lib/chunks/chunk-EF3LT3PN.esm.js +1 -0
- package/lib/chunks/{chunk-CK3WBMQQ.esm.js → chunk-EIISM5F6.esm.js} +1 -1
- package/lib/chunks/{chunk-KVWFEJRW.esm.js → chunk-EJ7K3DWH.esm.js} +1 -1
- package/lib/chunks/{chunk-OSFHXCPW.esm.js → chunk-ERQXQRK3.esm.js} +1 -1
- package/lib/chunks/{chunk-GHPI3RFU.esm.js → chunk-EWFZ5Y47.esm.js} +1 -1
- package/lib/chunks/{chunk-S7Y2IM73.esm.js → chunk-EX5BLQCC.esm.js} +1 -1
- package/lib/chunks/{chunk-IIC6OHTB.esm.js → chunk-F3PGPFO5.esm.js} +1 -1
- package/lib/chunks/{chunk-TG2P4DDY.esm.js → chunk-F4JJQGPH.esm.js} +1 -1
- package/lib/chunks/chunk-F5TUC4YS.esm.js +39 -0
- package/lib/chunks/{chunk-MBQGF5IM.esm.js → chunk-FAWI4OCG.esm.js} +1 -1
- package/lib/chunks/{chunk-O5ZHMMMV.esm.js → chunk-FKMOI3V2.esm.js} +1 -1
- package/lib/chunks/{chunk-R2B57RMV.esm.js → chunk-H7FLNZDA.esm.js} +1 -1
- package/lib/chunks/{chunk-CAE4JJJR.esm.js → chunk-HLFGUNIS.esm.js} +1 -1
- package/lib/chunks/chunk-HPMNSONF.esm.js +0 -0
- package/lib/chunks/{chunk-2EYK6SOO.esm.js → chunk-I3SLGOSW.esm.js} +1 -1
- package/lib/chunks/chunk-IMS5TWF3.esm.js +1 -0
- package/lib/chunks/{chunk-KP35QBYF.esm.js → chunk-IRI77QBK.esm.js} +1 -1
- package/lib/chunks/{chunk-LVVNQRJ2.esm.js → chunk-ITRAQ6Q2.esm.js} +1 -1
- package/lib/chunks/{chunk-XE4O5TMX.esm.js → chunk-IW7XVGH3.esm.js} +1 -1
- package/lib/chunks/chunk-IXLTHMIQ.esm.js +1 -0
- package/lib/chunks/chunk-J6F4PMW4.esm.js +1 -0
- package/lib/chunks/chunk-K6S7ZGCD.esm.js +1 -0
- package/lib/chunks/chunk-L7A7RA56.esm.js +1 -0
- package/lib/chunks/chunk-LCCVFIPZ.esm.js +1 -0
- package/lib/chunks/{chunk-4IYOKQA7.esm.js → chunk-LDGYJOVP.esm.js} +1 -1
- package/lib/chunks/{chunk-ZIPR5STE.esm.js → chunk-LWX5K4ZB.esm.js} +1 -1
- package/lib/chunks/{chunk-Z2YRSJP4.esm.js → chunk-LZEBVXWL.esm.js} +1 -1
- package/lib/chunks/{chunk-CXAWY4CK.esm.js → chunk-M7LEQKER.esm.js} +1 -1
- package/lib/chunks/chunk-MFYH5ECV.esm.js +9 -0
- package/lib/chunks/chunk-O3XQX2DB.esm.js +1 -0
- package/lib/chunks/{chunk-ZV2ZWK53.esm.js → chunk-OCOVNG7J.esm.js} +1 -1
- package/lib/chunks/{chunk-WU3U64UA.esm.js → chunk-ORJ6YPNR.esm.js} +1 -1
- package/lib/chunks/{chunk-VCA76NG3.esm.js → chunk-OUNXOMM6.esm.js} +1 -1
- package/lib/chunks/chunk-P3SIJHYM.esm.js +1 -0
- package/lib/chunks/chunk-PBYT3TNP.esm.js +1 -0
- package/lib/chunks/chunk-PJX5WGQP.esm.js +1 -0
- package/lib/chunks/{chunk-7TJO34VI.esm.js → chunk-PUTYJU2Z.esm.js} +1 -1
- package/lib/chunks/{chunk-PXPFWWKL.esm.js → chunk-Q2PMRBCL.esm.js} +1 -1
- package/lib/chunks/chunk-QMB5TYEI.esm.js +1 -0
- package/lib/chunks/chunk-QW5DJCRR.esm.js +1 -0
- package/lib/chunks/chunk-R2QEO3KP.esm.js +18 -0
- package/lib/chunks/{chunk-5HZUIEYR.esm.js → chunk-RCBLISG5.esm.js} +1 -1
- package/lib/chunks/{chunk-BERIBF3O.esm.js → chunk-SEPVF2TL.esm.js} +1 -1
- package/lib/chunks/{chunk-RZLOZ3NW.esm.js → chunk-SFWLFQTS.esm.js} +1 -1
- package/lib/chunks/{chunk-KGR36P56.esm.js → chunk-TNKYQI5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-RFUX53ZX.esm.js → chunk-UU62HUHC.esm.js} +1 -1
- package/lib/chunks/{chunk-OXQA5WD3.esm.js → chunk-VCMHX5VK.esm.js} +1 -1
- package/lib/chunks/{chunk-HJYD74KU.esm.js → chunk-VIFWWZ3H.esm.js} +1 -1
- package/lib/chunks/{chunk-OVUUG4UQ.esm.js → chunk-VKOURTRN.esm.js} +1 -1
- package/lib/chunks/{chunk-FK5R4PVA.esm.js → chunk-VLUHVGID.esm.js} +1 -1
- package/lib/chunks/chunk-VLWBOXKC.esm.js +1 -0
- package/lib/chunks/{chunk-QL2OVYDI.esm.js → chunk-VZICXIVQ.esm.js} +1 -1
- package/lib/chunks/{chunk-WCUEINBQ.esm.js → chunk-W2QR36MB.esm.js} +1 -1
- package/lib/chunks/chunk-WB5XXCKL.esm.js +1 -0
- package/lib/chunks/chunk-WB65GPFO.esm.js +1 -0
- package/lib/chunks/{chunk-3A7I6HM2.esm.js → chunk-WBRRRDIA.esm.js} +1 -1
- package/lib/chunks/{chunk-S7AKJ6C3.esm.js → chunk-XAZ7GAG6.esm.js} +1 -1
- package/lib/chunks/{chunk-CQASQBD7.esm.js → chunk-XBPV4MKV.esm.js} +1 -1
- package/lib/chunks/{chunk-6VBJ7CSY.esm.js → chunk-XCA2HUTU.esm.js} +1 -1
- package/lib/chunks/chunk-XEGNBICC.esm.js +33 -0
- package/lib/chunks/{chunk-QIN2X7SN.esm.js → chunk-XU2XD26O.esm.js} +1 -1
- package/lib/chunks/{chunk-3ULXR3PR.esm.js → chunk-XUZQE326.esm.js} +1 -1
- package/lib/chunks/{chunk-OEQN4UYJ.esm.js → chunk-Y33MAO4J.esm.js} +1 -1
- package/lib/chunks/{chunk-KMD7LUDX.esm.js → chunk-YKWTGDHO.esm.js} +1 -1
- package/lib/chunks/{chunk-CGPZLU4O.esm.js → chunk-YYRMAERR.esm.js} +1 -1
- package/lib/chunks/{chunk-TWGEF7LA.esm.js → chunk-ZLURBVJC.esm.js} +1 -1
- package/lib/chunks/chunk-ZUSD6565.esm.js +1 -0
- package/lib/chunks/{chunk-S2SVVZOG.esm.js → chunk-ZXGZNZQN.esm.js} +1 -1
- package/lib/chunks/{chunk-TMIQIUOH.esm.js → chunk-ZYQJYJIC.esm.js} +1 -1
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.style.d.ts +4 -4
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/Accordion/Accordion.d.ts +34 -0
- package/lib/dataDisplay/Accordion/Accordion.interface.d.ts +97 -0
- package/lib/dataDisplay/Accordion/Accordion.style.d.ts +122 -0
- package/lib/dataDisplay/Accordion/index.d.ts +8 -0
- package/lib/dataDisplay/Accordion/index.esm.js +1 -0
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +8 -8
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +2 -2
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +4 -4
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.d.ts +1 -0
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +4 -0
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Divider/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.floating.d.ts +3 -1
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.d.ts +3 -1
- package/lib/elements/Icon/Icon.interface.d.ts +3 -1
- package/lib/elements/Icon/Icon.style.d.ts +3 -2
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/IconText/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.style.d.ts +8 -8
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +10 -9
- package/lib/elements/Modal/Modal.width.d.ts +30 -0
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.d.ts +4 -0
- package/lib/elements/Sheet/Sheet.interface.d.ts +15 -1
- package/lib/elements/Sheet/Sheet.style.d.ts +26 -26
- package/lib/elements/Sheet/index.d.ts +3 -1
- package/lib/elements/Sheet/index.esm.js +1 -1
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.style.d.ts +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.props.d.ts +22 -22
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.floating.d.ts +3 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BackgroundFactory/index.esm.js +1 -1
- package/lib/factory/ColorFactory/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FontFactory/FontFactory.interface.d.ts +1 -1
- package/lib/factory/MotionFactory/index.esm.js +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SpacingFactory/index.esm.js +1 -1
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +2 -2
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.interface.d.ts +2 -0
- package/lib/form/Input/Input.style.d.ts +31 -12
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +3 -0
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.style.d.ts +8 -8
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Option/index.esm.js +1 -1
- package/lib/form/Radio/Radio.style.d.ts +4 -4
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.interface.d.ts +2 -0
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.interface.d.ts +30 -1
- package/lib/form/TextArea/TextArea.style.d.ts +13 -9
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +13 -12
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.esm.js +1 -1
- package/lib/hooks/useClipboard/index.esm.js +1 -1
- package/lib/hooks/useEventCallback/index.esm.js +1 -1
- package/lib/hooks/useFocusTrap/index.esm.js +1 -1
- package/lib/hooks/useIntersect/index.esm.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/index.esm.js +1 -1
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Component/Component.interface.d.ts +41 -1
- package/lib/themes/Component/index.d.ts +1 -1
- package/lib/themes/Component/index.esm.js +1 -1
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.esm.js +1 -1
- package/lib/themes/Font/Font.helpers.d.ts +14 -0
- package/lib/themes/Font/Font.interface.d.ts +23 -5
- package/lib/themes/Font/Font.props.d.ts +47 -17
- package/lib/themes/Font/index.d.ts +1 -0
- package/lib/themes/Font/index.esm.js +1 -1
- package/lib/themes/GlobalStyle/GlobalStyle.d.ts +8 -4
- package/lib/themes/GlobalStyle/GlobalStyle.helpers.d.ts +22 -0
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Ground/index.esm.js +1 -1
- package/lib/themes/Layout/Layout.interface.d.ts +10 -0
- package/lib/themes/Layout/Layout.props.d.ts +25 -1
- package/lib/themes/Layout/index.esm.js +1 -1
- package/lib/themes/Motion/Motion.helpers.d.ts +9 -6
- package/lib/themes/Motion/index.esm.js +1 -1
- package/lib/themes/Semantic/Semantic.interface.d.ts +3 -2
- package/lib/themes/Semantic/index.esm.js +1 -1
- package/lib/themes/Surface/index.esm.js +1 -1
- package/lib/themes/TextSize/TextSize.helpers.d.ts +14 -0
- package/lib/themes/TextSize/TextSize.interface.d.ts +14 -0
- package/lib/themes/TextSize/TextSize.props.d.ts +27 -0
- package/lib/themes/TextSize/index.d.ts +8 -0
- package/lib/themes/TextSize/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +48 -4
- package/lib/themes/ThemeProvider/ThemeProvider.modes.d.ts +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/capabilities.d.ts +185 -0
- package/lib/utils/index.esm.js +1 -1
- package/lib/vendors/FloatingUI/index.d.ts +1 -0
- package/lib/vendors/FloatingUI/interface.d.ts +12 -2
- package/lib/vendors/FloatingUI/layer.d.ts +46 -0
- package/package.json +20 -6
- package/lib/chunks/Dropdown.floating-J32D2QRS.esm.js +0 -1
- package/lib/chunks/Notification.group-AS4LA5D6.esm.js +0 -1
- package/lib/chunks/Tooltip.floating-3ONULW2L.esm.js +0 -1
- package/lib/chunks/chunk-2SNAO7NC.esm.js +0 -1
- package/lib/chunks/chunk-2Y4WLA5I.esm.js +0 -1
- package/lib/chunks/chunk-3LYH4EYD.esm.js +0 -1
- package/lib/chunks/chunk-3V3ZEGHO.esm.js +0 -1
- package/lib/chunks/chunk-4AZHB45P.esm.js +0 -1
- package/lib/chunks/chunk-5UYRWNCM.esm.js +0 -39
- package/lib/chunks/chunk-7UXK4EG7.esm.js +0 -1
- package/lib/chunks/chunk-AH6Y5HZ7.esm.js +0 -2
- package/lib/chunks/chunk-BV6GHAF7.esm.js +0 -1
- package/lib/chunks/chunk-E4B4OTEY.esm.js +0 -1
- package/lib/chunks/chunk-EPAHWTZU.esm.js +0 -1
- package/lib/chunks/chunk-GZSGD3CF.esm.js +0 -1
- package/lib/chunks/chunk-H4CHFD6I.esm.js +0 -1
- package/lib/chunks/chunk-IJBZ45BC.esm.js +0 -1
- package/lib/chunks/chunk-IV6ORC5K.esm.js +0 -1
- package/lib/chunks/chunk-JHPEWQBA.esm.js +0 -1
- package/lib/chunks/chunk-KK7GJC3H.esm.js +0 -1
- package/lib/chunks/chunk-OULN77LP.esm.js +0 -1
- package/lib/chunks/chunk-P7RR4ZHS.esm.js +0 -1
- package/lib/chunks/chunk-QRU4HAB3.esm.js +0 -1
- package/lib/chunks/chunk-RR2TYGZC.esm.js +0 -1
- package/lib/chunks/chunk-UN3R576I.esm.js +0 -48
- package/lib/chunks/chunk-V3JQI7KV.esm.js +0 -20
- package/lib/chunks/chunk-VMNCGW4Z.esm.js +0 -26
- package/lib/chunks/chunk-XR6VYETA.esm.js +0 -1
- package/lib/chunks/chunk-YJHYFCT7.esm.js +0 -1
- package/lib/chunks/chunk-ZZOIX6CV.esm.js +0 -1
- /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-
|
|
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};
|
|
@@ -45,17 +45,20 @@ export declare function motionGlobalCss(motion: MotionThemeInterface): string;
|
|
|
45
45
|
* Opt-in View Transitions wiring (ADR-027 S5, progressive enhancement):
|
|
46
46
|
* binds the browser's root cross-fade (`::view-transition-old/new(root)`)
|
|
47
47
|
* to the motion intent vars — old frame leaves on the `exit` intent, new
|
|
48
|
-
* frame arrives on the `enter` intent.
|
|
49
|
-
*
|
|
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}.
|
|
50
54
|
*
|
|
51
55
|
* Reduced motion is inherited for free — the animation durations consume
|
|
52
|
-
* the same vars the global override zeroes.
|
|
53
|
-
* same testability reason as {@link motionGlobalCss}; consumers use the
|
|
54
|
-
* {@link viewTransitionStyles} RuleSet.
|
|
56
|
+
* the same vars the global override zeroes.
|
|
55
57
|
*/
|
|
56
58
|
export declare function viewTransitionCss(): string;
|
|
57
59
|
/**
|
|
58
|
-
* Ready-to-extend RuleSet
|
|
60
|
+
* Ready-to-extend RuleSet wrapping {@link viewTransitionCss} in the
|
|
61
|
+
* `view-transitions` capability's `@supports` guard — pass it to
|
|
59
62
|
* `<GlobalStyle extend={viewTransitionStyles} />` to time the browser's
|
|
60
63
|
* View Transitions (e.g. `document.startViewTransition(() => setMode(...))`
|
|
61
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,k}from"../../chunks/chunk-
|
|
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
|
|
147
|
-
*
|
|
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-
|
|
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-
|
|
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
|
|
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`);
|
|
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-
|
|
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};
|
package/lib/themes/index.d.ts
CHANGED
package/lib/themes/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-
|
|
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>;
|
package/lib/utils/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
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};
|
|
@@ -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
|
-
*
|
|
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;
|