@apollion-dsi/core 5.10.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/lib/chunks/Dropdown.floating-O5GWHN6F.esm.js +1 -0
- package/lib/chunks/Notification.group-VLYQ6NRW.esm.js +1 -0
- package/lib/chunks/Tooltip.floating-WTJLJZJN.esm.js +1 -0
- package/lib/chunks/{chunk-7IW77YYH.esm.js → chunk-3FWZII65.esm.js} +1 -1
- package/lib/chunks/chunk-4BZPXLAW.esm.js +1 -0
- package/lib/chunks/chunk-4PAEVB5H.esm.js +1 -0
- package/lib/chunks/{chunk-ETH3W4PP.esm.js → chunk-4RAZZLLG.esm.js} +1 -1
- package/lib/chunks/{chunk-OX6RGQBV.esm.js → chunk-5HLJ7LZZ.esm.js} +1 -1
- package/lib/chunks/chunk-6DILIYS2.esm.js +1 -0
- package/lib/chunks/chunk-7HRVZJBD.esm.js +1 -0
- package/lib/chunks/chunk-A77HKHNQ.esm.js +1 -0
- package/lib/chunks/{chunk-EF34DPD2.esm.js → chunk-A7JDCK3C.esm.js} +1 -1
- package/lib/chunks/{chunk-SXOSOU46.esm.js → chunk-BFP2C5JF.esm.js} +1 -1
- package/lib/chunks/{chunk-PDCQBR3M.esm.js → chunk-BQBDAFDE.esm.js} +1 -1
- package/lib/chunks/{chunk-S27SAVIL.esm.js → chunk-CB7EKQYI.esm.js} +1 -1
- package/lib/chunks/{chunk-CDLUQDZD.esm.js → chunk-CTNZPJ47.esm.js} +1 -1
- package/lib/chunks/{chunk-X5H3SR3I.esm.js → chunk-CXBUSCOB.esm.js} +1 -1
- package/lib/chunks/chunk-D4ZBSTRO.esm.js +1 -0
- package/lib/chunks/{chunk-4YYV5PG5.esm.js → chunk-DGQ46IKV.esm.js} +1 -1
- package/lib/chunks/chunk-DMLGAY6T.esm.js +1 -0
- package/lib/chunks/{chunk-LSNLFC7E.esm.js → chunk-DP5DDF7U.esm.js} +1 -1
- package/lib/chunks/{chunk-LZCYT3JI.esm.js → chunk-DRL2R3ED.esm.js} +1 -1
- package/lib/chunks/{chunk-VW237MWN.esm.js → chunk-DRXC4B7Z.esm.js} +1 -1
- package/lib/chunks/chunk-ER6KS2SA.esm.js +1 -0
- package/lib/chunks/{chunk-7D6Z463O.esm.js → chunk-EXHRZZ5E.esm.js} +1 -1
- package/lib/chunks/chunk-FBZTXAE3.esm.js +1 -0
- package/lib/chunks/chunk-FH54V56Y.esm.js +1 -0
- package/lib/chunks/{chunk-JIYX535V.esm.js → chunk-FJHDGSZE.esm.js} +1 -1
- package/lib/chunks/{chunk-RSARU4F4.esm.js → chunk-FNYWD4YI.esm.js} +1 -1
- package/lib/chunks/{chunk-BLJLBPUO.esm.js → chunk-GC2ZV3CY.esm.js} +1 -1
- package/lib/chunks/chunk-GM3IRR2E.esm.js +1 -0
- package/lib/chunks/{chunk-MITMF2OY.esm.js → chunk-H4FEHRHK.esm.js} +1 -1
- package/lib/chunks/chunk-HG4FBLPA.esm.js +1 -0
- package/lib/chunks/{chunk-JEDWIAR7.esm.js → chunk-HJYD74KU.esm.js} +1 -1
- package/lib/chunks/chunk-HW42PSLQ.esm.js +1 -0
- package/lib/chunks/chunk-JQSEC336.esm.js +1 -0
- package/lib/chunks/chunk-JTVUOZDH.esm.js +1 -0
- package/lib/chunks/{chunk-5F6QROAO.esm.js → chunk-JVIACETZ.esm.js} +1 -1
- package/lib/chunks/{chunk-D2AOC2HS.esm.js → chunk-KBBFH5LX.esm.js} +1 -1
- package/lib/chunks/{chunk-7MTVH7NF.esm.js → chunk-KIFRBQYQ.esm.js} +1 -1
- package/lib/chunks/chunk-KKFQPSAE.esm.js +1 -0
- package/lib/chunks/chunk-KZTG5TDM.esm.js +1 -0
- package/lib/chunks/{chunk-HCNNXM2C.esm.js → chunk-LCIO2E2K.esm.js} +1 -1
- package/lib/chunks/{chunk-XSHQR3W5.esm.js → chunk-MJK3VHIO.esm.js} +1 -1
- package/lib/chunks/{chunk-ZEDZVOPC.esm.js → chunk-NDMZLKX7.esm.js} +1 -1
- package/lib/chunks/chunk-NHE4GLQK.esm.js +1 -0
- package/lib/chunks/{chunk-YOPGC5J2.esm.js → chunk-NW2GV6YI.esm.js} +1 -1
- package/lib/chunks/chunk-OHLL57EN.esm.js +1 -0
- package/lib/chunks/{chunk-F62355HF.esm.js → chunk-OHVMP5B7.esm.js} +1 -1
- package/lib/chunks/{chunk-LHHKVEZ7.esm.js → chunk-OQWC47RM.esm.js} +1 -1
- package/lib/chunks/{chunk-GWQA5Z4E.esm.js → chunk-QAK32AY3.esm.js} +1 -1
- package/lib/chunks/{chunk-5H2LWL6K.esm.js → chunk-QRU4HAB3.esm.js} +1 -1
- package/lib/chunks/chunk-R6MCW24V.esm.js +2 -0
- package/lib/chunks/chunk-RI7KKIJD.esm.js +1 -0
- package/lib/chunks/chunk-RR2TYGZC.esm.js +1 -0
- package/lib/chunks/chunk-SF2QSF7E.esm.js +20 -0
- package/lib/chunks/chunk-SMAAEIJR.esm.js +1 -0
- package/lib/chunks/{chunk-HPW5QY7O.esm.js → chunk-SNZE6LRL.esm.js} +1 -1
- package/lib/chunks/{chunk-T2A3J6XU.esm.js → chunk-T6USFPVA.esm.js} +1 -1
- package/lib/chunks/{chunk-GMCQ4ZLL.esm.js → chunk-UFQAFY4P.esm.js} +1 -1
- package/lib/chunks/chunk-UGTJEXCL.esm.js +1 -0
- package/lib/chunks/chunk-UHABJEDB.esm.js +1 -0
- package/lib/chunks/{chunk-W4JROHUU.esm.js → chunk-UWIWI6XE.esm.js} +1 -1
- package/lib/chunks/{chunk-7YCYHCUG.esm.js → chunk-VAA7V65K.esm.js} +1 -1
- package/lib/chunks/{chunk-H7ZXGMID.esm.js → chunk-VU3NKSLB.esm.js} +1 -1
- package/lib/chunks/chunk-VUFEYXWD.esm.js +1 -0
- package/lib/chunks/{chunk-NNPKPEER.esm.js → chunk-VXAPSA5T.esm.js} +1 -1
- package/lib/chunks/{chunk-PQDT5T6V.esm.js → chunk-VYK6RBMI.esm.js} +1 -1
- package/lib/chunks/{chunk-UVCS4EZS.esm.js → chunk-W37MIT56.esm.js} +1 -1
- package/lib/chunks/{chunk-YLSNRJ7L.esm.js → chunk-WMBOZ7KA.esm.js} +1 -1
- package/lib/chunks/{chunk-MGMYTOBZ.esm.js → chunk-X64PGKAO.esm.js} +1 -1
- package/lib/chunks/{chunk-AW3ZCRZG.esm.js → chunk-XYIRIYYK.esm.js} +1 -1
- package/lib/chunks/chunk-Y75NAEIA.esm.js +1 -0
- package/lib/chunks/{chunk-KZL7TDC4.esm.js → chunk-YW2TWFDF.esm.js} +1 -1
- package/lib/chunks/{chunk-65HUSQDZ.esm.js → chunk-ZACTPOXN.esm.js} +1 -1
- package/lib/chunks/{chunk-5OKRBLPE.esm.js → chunk-ZZOIX6CV.esm.js} +1 -1
- package/lib/containers/Base/Base.style.d.ts +17 -5
- package/lib/containers/Base/index.d.ts +13 -8
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/Box.interface.d.ts +33 -0
- package/lib/containers/Box/Box.style.d.ts +22 -0
- package/lib/containers/Box/index.d.ts +16 -0
- package/lib/containers/Box/index.esm.js +1 -0
- package/lib/containers/Card/Card.d.ts +2 -2
- package/lib/containers/Card/Card.interface.d.ts +42 -9
- package/lib/containers/Card/Card.style.d.ts +80 -15
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.d.ts +8 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +23 -6
- package/lib/containers/Flex/Flex.style.d.ts +52 -7
- package/lib/containers/Flex/index.d.ts +3 -4
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +31 -7
- package/lib/containers/Grid/Grid.style.d.ts +16 -5
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.d.ts +26 -2
- package/lib/containers/Notification/Notification.group.d.ts +10 -4
- package/lib/containers/Notification/Notification.interface.d.ts +6 -6
- package/lib/containers/Notification/Notification.style.d.ts +200 -6606
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +24 -7
- package/lib/containers/Paper/Paper.style.d.ts +75 -33
- 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/DataTable/DataTable.style.d.ts +8 -8
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +8 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.style.d.ts +70 -6
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/Steps.style.d.ts +210 -18
- 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 +141 -13
- 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 +401 -81
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.interface.d.ts +4 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +34 -14
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +70 -6
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Divider/Divider.style.d.ts +104 -20
- package/lib/elements/Divider/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +1 -1
- package/lib/elements/Dropdown/Dropdown.floating.d.ts +38 -0
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +9 -0
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.style.d.ts +280 -24
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/IconText/IconText.interface.d.ts +3 -1
- package/lib/elements/IconText/IconText.style.d.ts +39 -18
- 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 +4 -4
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +104 -20
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +244 -6628
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +70 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.d.ts +27 -0
- package/lib/elements/Sheet/Sheet.interface.d.ts +66 -0
- package/lib/elements/Sheet/Sheet.style.d.ts +151 -0
- package/lib/elements/Sheet/index.d.ts +9 -0
- package/lib/elements/Sheet/index.esm.js +1 -0
- package/lib/elements/Spinner/Spinner.style.d.ts +9 -3
- 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 +90 -88
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.floating.d.ts +36 -0
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/ContainerQueryFactory.interface.d.ts +21 -6
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/MotionFactory/MotionFactory.d.ts +21 -0
- package/lib/factory/MotionFactory/MotionFactory.interface.d.ts +37 -0
- package/lib/factory/MotionFactory/index.d.ts +2 -0
- package/lib/factory/MotionFactory/index.esm.js +1 -0
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.interface.d.ts +12 -0
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/System/System.d.ts +5 -0
- package/lib/factory/System/System.interface.d.ts +73 -3
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/ViewportMediaFactory/ViewportMediaFactory.d.ts +25 -0
- package/lib/factory/ViewportMediaFactory/ViewportMediaFactory.interface.d.ts +50 -0
- package/lib/factory/ViewportMediaFactory/index.d.ts +8 -0
- package/lib/factory/ViewportMediaFactory/index.esm.js +1 -0
- package/lib/factory/index.d.ts +2 -0
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +141 -13
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.style.d.ts +80 -16
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.style.d.ts +76 -12
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.style.d.ts +78 -14
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.style.d.ts +70 -6
- package/lib/form/InputCurrency/index.esm.js +1 -1
- 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/Option.style.d.ts +70 -6
- 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/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.style.d.ts +75 -11
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +102 -50
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.esm.js +1 -1
- package/lib/hooks/useExitTransition/index.d.ts +10 -0
- package/lib/hooks/useExitTransition/index.esm.js +1 -0
- package/lib/hooks/useExitTransition/useExitTransition.d.ts +28 -0
- package/lib/hooks/useExitTransition/useExitTransition.helpers.d.ts +20 -0
- package/lib/hooks/useExitTransition/useExitTransition.interface.d.ts +34 -0
- package/lib/hooks/useFocusTrap/index.d.ts +7 -0
- package/lib/hooks/useFocusTrap/index.esm.js +1 -0
- package/lib/hooks/useFocusTrap/useFocusTrap.d.ts +27 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +12 -12
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +12 -12
- 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/Animation.props.d.ts +5 -3
- package/lib/themes/Animation/index.esm.js +1 -1
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Motion/Motion.helpers.d.ts +58 -0
- package/lib/themes/Motion/Motion.interface.d.ts +86 -0
- package/lib/themes/Motion/Motion.props.d.ts +20 -0
- package/lib/themes/Motion/index.d.ts +10 -0
- package/lib/themes/Motion/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +21 -0
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +16 -19
- package/lib/chunks/Notification.group-JOWXLB2O.esm.js +0 -1
- package/lib/chunks/chunk-24X4PCRH.esm.js +0 -1
- package/lib/chunks/chunk-2DVVVJJP.esm.js +0 -1
- package/lib/chunks/chunk-2JTAHCGS.esm.js +0 -1
- package/lib/chunks/chunk-363PMLHY.esm.js +0 -1
- package/lib/chunks/chunk-6DTZVTDE.esm.js +0 -1
- package/lib/chunks/chunk-CZQSAAEA.esm.js +0 -1
- package/lib/chunks/chunk-DXAKT2S3.esm.js +0 -2
- package/lib/chunks/chunk-EN4QMSDH.esm.js +0 -1
- package/lib/chunks/chunk-FIPPKZ3C.esm.js +0 -1
- package/lib/chunks/chunk-GZVFLN6W.esm.js +0 -1
- package/lib/chunks/chunk-HC3KBFJR.esm.js +0 -1
- package/lib/chunks/chunk-I564UV6U.esm.js +0 -1
- package/lib/chunks/chunk-II2LPQYL.esm.js +0 -1
- package/lib/chunks/chunk-IPANNHV3.esm.js +0 -1
- package/lib/chunks/chunk-LQL2LOMD.esm.js +0 -1
- package/lib/chunks/chunk-LX2VG2YS.esm.js +0 -1
- package/lib/chunks/chunk-M2FRELL5.esm.js +0 -1
- package/lib/chunks/chunk-QQU6KGIF.esm.js +0 -1
- package/lib/chunks/chunk-TNU4DCXP.esm.js +0 -1
- package/lib/chunks/chunk-TRGVJXBB.esm.js +0 -1
- package/lib/chunks/chunk-XBNEKPXU.esm.js +0 -1
- package/lib/chunks/chunk-XUDIJMQO.esm.js +0 -1
- package/lib/chunks/chunk-ZSDHXESA.esm.js +0 -1
- package/lib/containers/Motion/Motion.style.d.ts +0 -1652
- package/lib/containers/Motion/index.d.ts +0 -12
- package/lib/containers/Motion/index.esm.js +0 -1
- package/lib/vendors/FramerMotion/component.d.ts +0 -20
- package/lib/vendors/FramerMotion/index.d.ts +0 -2
- package/lib/vendors/FramerMotion/interface.d.ts +0 -16
- /package/lib/chunks/{chunk-2ROOI4B2.esm.js → chunk-PMN6TVDW.esm.js} +0 -0
- /package/lib/chunks/{chunk-PJQ3IZE7.esm.js → chunk-ZMHNNJNC.esm.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-D4ZBSTRO.esm.js";import"../../chunks/chunk-PMN6TVDW.esm.js";import"../../chunks/chunk-KKFQPSAE.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-LCIO2E2K.esm.js";import"../../chunks/chunk-HG4FBLPA.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-OHVMP5B7.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-WI3WPCW3.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{a as BaseContainer,b as LayoutBase};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LayoutContainerProps, PolymorphicProps } from '../../factory/System';
|
|
3
|
+
/**
|
|
4
|
+
* Props of the `Box` component before the native `<div>` props.
|
|
5
|
+
*
|
|
6
|
+
* `Box` is the generic **block** container — structure only (ADR-028). It
|
|
7
|
+
* extends {@link LayoutContainerProps}: spacing (margin/padding), size
|
|
8
|
+
* (width/height), container geometry (position/overflow) and the responsive
|
|
9
|
+
* channels — **no** background, border, elevation, typography or motion. Those
|
|
10
|
+
* belong to `Paper`/`Card` (surface) and `Text` (typography). Reach for `Box`
|
|
11
|
+
* instead of a raw `<div>` or the internal `Base` primitive.
|
|
12
|
+
*/
|
|
13
|
+
export interface BoxPropsInterface extends LayoutContainerProps {
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
type NativeProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
17
|
+
/**
|
|
18
|
+
* Complete set of props accepted by `<Box>` at runtime. Merges the factory
|
|
19
|
+
* props ({@link BoxPropsInterface}) with the native `<div>` props (minus
|
|
20
|
+
* `children`, which comes from the factory).
|
|
21
|
+
*/
|
|
22
|
+
export interface DefaultBoxInterface extends BoxPropsInterface, NativeProps {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Public props type for annotating a `Box` **layout object** — the runtime
|
|
26
|
+
* interface plus the `styled-components` polymorphic {@link PolymorphicProps}
|
|
27
|
+
* (`as`/`forwardedAs`). Use this (not `DefaultBoxInterface`) when a consumer
|
|
28
|
+
* types a plain object and needs `as`, so no local augmentation or
|
|
29
|
+
* `ComponentProps<typeof Box>` workaround is needed. The styled `Box` component
|
|
30
|
+
* itself always accepts `as` natively.
|
|
31
|
+
*/
|
|
32
|
+
export type BoxProps = DefaultBoxInterface & PolymorphicProps;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The design system's generic **block** container — the catch-all box. Extends
|
|
3
|
+
* {@link BaseContainer}, inheriting the full factory surface (spacing, size,
|
|
4
|
+
* color, border, flex/grid child props, `cq`, `viewportMedias`, `motion`), and
|
|
5
|
+
* sets `display: block`.
|
|
6
|
+
*
|
|
7
|
+
* `Box` is the sanctioned replacement for a raw `<div>`: consumers never render
|
|
8
|
+
* host HTML tags directly (that blocks cross-platform export — e.g. a native
|
|
9
|
+
* Android/RN target has no `<div>`), and they never reach for the internal
|
|
10
|
+
* `Base` primitive or `apollion.*`. Reach for `Flex`/`Grid` for layout, `Box`
|
|
11
|
+
* for a plain block wrapper.
|
|
12
|
+
*
|
|
13
|
+
* Exposed as `Box` in the barrel. Animation is the `motion` preset prop
|
|
14
|
+
* (ADR-027) — a factory channel of this container, not a separate module.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BoxStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
17
|
+
as?: import("styled-components").WebTarget;
|
|
18
|
+
forwardedAs?: import("styled-components").WebTarget;
|
|
19
|
+
}, never> & Partial<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
20
|
+
as?: import("styled-components").WebTarget;
|
|
21
|
+
forwardedAs?: import("styled-components").WebTarget;
|
|
22
|
+
}, never>>> & string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public barrel of the `Box` container.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the styled-component (renaming `BoxStyle` → `Box`) and the props
|
|
5
|
+
* interfaces (`BoxPropsInterface`, `DefaultBoxInterface`, `BoxProps`).
|
|
6
|
+
*
|
|
7
|
+
* `Box` is the generic block container — the sanctioned replacement for a raw
|
|
8
|
+
* `<div>` and for the internal `Base` primitive. Animation is the `motion`
|
|
9
|
+
* preset prop on the container itself (ADR-027) — there is no separate animated
|
|
10
|
+
* variant.
|
|
11
|
+
*
|
|
12
|
+
* Every other file in the project must import from the barrel, never from
|
|
13
|
+
* internal paths such as `./Box.style` or `./Box.interface`.
|
|
14
|
+
*/
|
|
15
|
+
export * from './Box.interface';
|
|
16
|
+
export { BoxStyle as Box } from './Box.style';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"../../chunks/chunk-D4ZBSTRO.esm.js";import"../../chunks/chunk-PMN6TVDW.esm.js";import"../../chunks/chunk-KKFQPSAE.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-LCIO2E2K.esm.js";import"../../chunks/chunk-HG4FBLPA.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-OHVMP5B7.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-WI3WPCW3.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{g as o}from"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";var r=o(t).withConfig({componentId:"sc-fc1jyz-0"})(["display:block;"]);export{r as Box};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CardProps } from './Card.interface';
|
|
3
3
|
import type { GridMediaInterface } from '../Grid';
|
|
4
4
|
/**
|
|
5
5
|
* Builds the default grid template from the slots present. Rows are `auto`
|
|
@@ -38,4 +38,4 @@ export declare const cardTemplate: (slots: {
|
|
|
38
38
|
*
|
|
39
39
|
* @see {@link CardInterface} for the detailed props.
|
|
40
40
|
*/
|
|
41
|
-
export declare const CardComponent: React.FC<
|
|
41
|
+
export declare const CardComponent: React.FC<CardProps>;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicProps, SurfaceContainerProps } from '../../factory/System';
|
|
3
|
+
import { GridShapeProps } from '../Grid';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the {@link CardComponent} component.
|
|
5
6
|
*
|
|
6
|
-
* `Card` is the Paper-like surface that **absorbs Grid**:
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* `Card` is the Paper-like surface that **absorbs Grid**: its slots — `media`,
|
|
8
|
+
* `title`, `description` / `subtitle` / `children` (the `content` area),
|
|
9
|
+
* `actionComponent` — are named grid areas on the Card itself. The default
|
|
10
|
+
* template follows the slots present (`auto 1fr auto` with an action, so the
|
|
11
|
+
* footer pins); pass `medias` to replace it, keeping the same area names.
|
|
12
|
+
*
|
|
13
|
+
* `Card` is the Grid-rooted **surface** (ADR-028): it composes the grid shape
|
|
14
|
+
* ({@link GridShapeProps}: `medias` + alignment) with {@link SurfaceContainerProps}
|
|
15
|
+
* — the layout factory group **plus** the surface group (`bgColor`, border,
|
|
16
|
+
* `deep`) and the responsive channels at full width — so a Card paints a ground
|
|
17
|
+
* (and can respond to width with surface props) while a bare `Grid` stays pure
|
|
18
|
+
* layout. `as`/`forwardedAs` and the anchor attributes come from the
|
|
19
|
+
* component's own props type ({@link CardProps} / {@link CardComponent}).
|
|
13
20
|
*/
|
|
14
|
-
export interface CardInterface extends
|
|
21
|
+
export interface CardInterface extends SurfaceContainerProps, GridShapeProps {
|
|
15
22
|
/**
|
|
16
23
|
* Announce hover: primary border, `level-three` glow and a 2px lift over
|
|
17
24
|
* the `short` transition (`overflow` becomes `visible` so the glow is not
|
|
@@ -49,3 +56,29 @@ export interface CardInterface extends GridPropsInterface {
|
|
|
49
56
|
*/
|
|
50
57
|
media?: ReactNode;
|
|
51
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* The navigational anchor attributes an interactive Card rendered `as="a"`
|
|
61
|
+
* needs. Kept as a small explicit set (rather than the full
|
|
62
|
+
* `ComponentPropsWithoutRef<'a'>`) so the Card props stay well under the
|
|
63
|
+
* styled-components union-complexity ceiling and never collide with the
|
|
64
|
+
* factory surface.
|
|
65
|
+
*/
|
|
66
|
+
export interface CardAnchorProps {
|
|
67
|
+
/** Destination when the tile renders as an anchor (`as="a"`). */
|
|
68
|
+
href?: string;
|
|
69
|
+
/** Anchor target (`_blank`, `_self`, …). */
|
|
70
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
71
|
+
/** Anchor `rel` (e.g. `noopener noreferrer` for `target="_blank"`). */
|
|
72
|
+
rel?: string;
|
|
73
|
+
/** Anchor `download` hint. */
|
|
74
|
+
download?: boolean | string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Full public props of `<Card>`: {@link CardInterface} plus the
|
|
78
|
+
* `styled-components` polymorphic {@link PolymorphicProps} (`as`/`forwardedAs`)
|
|
79
|
+
* and the navigational anchor attributes ({@link CardAnchorProps}) an
|
|
80
|
+
* interactive tile rendered `as="a"` needs. This is the component's own props
|
|
81
|
+
* type — a consumer can type a Card layout object with it and set `cq`,
|
|
82
|
+
* `viewportMedias`, `motion`, `as`, `href` without a local augmentation.
|
|
83
|
+
*/
|
|
84
|
+
export type CardProps = CardInterface & PolymorphicProps & CardAnchorProps;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import { SurfaceFactoryProps } from '../../factory/System';
|
|
1
2
|
import type { SpacingInterface } from '../../themes/Spacing';
|
|
2
3
|
/**
|
|
3
4
|
* Card surface — a `Grid` with Paper-like chrome. Slots are named grid areas
|
|
4
5
|
* on this element; the page `Grid` places Cards, a slot that needs grouping
|
|
5
6
|
* uses `Flex`.
|
|
6
7
|
*/
|
|
7
|
-
export declare const CardStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").
|
|
8
|
+
export declare const CardStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
8
9
|
as?: import("styled-components").WebTarget;
|
|
9
10
|
forwardedAs?: import("styled-components").WebTarget;
|
|
10
|
-
}, keyof import("..").
|
|
11
|
+
}, keyof import("..").GridShapeProps> & import("..").GridShapeProps, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
11
12
|
as?: import("styled-components").WebTarget;
|
|
12
13
|
forwardedAs?: import("styled-components").WebTarget;
|
|
13
|
-
}, keyof import("..").
|
|
14
|
+
}, keyof import("..").GridShapeProps> & import("..").GridShapeProps, never>> & {
|
|
14
15
|
as?: import("styled-components").WebTarget;
|
|
15
16
|
forwardedAs?: import("styled-components").WebTarget;
|
|
16
|
-
}, "$interactive"> & {
|
|
17
|
+
}, keyof SurfaceFactoryProps | "$interactive"> & {
|
|
17
18
|
$interactive?: boolean;
|
|
18
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").
|
|
19
|
+
} & SurfaceFactoryProps, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
19
20
|
as?: import("styled-components").WebTarget;
|
|
20
21
|
forwardedAs?: import("styled-components").WebTarget;
|
|
21
|
-
}, keyof import("..").
|
|
22
|
+
}, keyof import("..").GridShapeProps> & import("..").GridShapeProps, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
22
23
|
as?: import("styled-components").WebTarget;
|
|
23
24
|
forwardedAs?: import("styled-components").WebTarget;
|
|
24
|
-
}, keyof import("..").
|
|
25
|
+
}, keyof import("..").GridShapeProps> & import("..").GridShapeProps, never>> & {
|
|
25
26
|
as?: import("styled-components").WebTarget;
|
|
26
27
|
forwardedAs?: import("styled-components").WebTarget;
|
|
27
|
-
}, "$interactive"> & {
|
|
28
|
+
}, keyof SurfaceFactoryProps | "$interactive"> & {
|
|
28
29
|
$interactive?: boolean;
|
|
29
|
-
}, never>>> & string;
|
|
30
|
+
} & SurfaceFactoryProps, never>>> & string;
|
|
30
31
|
/**
|
|
31
32
|
* Full-bleed media slot. Cancels the Card's padding (`$pad`) on the top and
|
|
32
33
|
* sides so the image meets the Card edges; the grid gap keeps the space
|
|
@@ -34,24 +35,88 @@ export declare const CardStyle: import("styled-components/dist/types").IStyledCo
|
|
|
34
35
|
* corner radius and clips, so the image keeps rounded top corners even when
|
|
35
36
|
* the Card's own `overflow` is `visible` (interactive tiles).
|
|
36
37
|
*/
|
|
37
|
-
export declare const CardMediaStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").
|
|
38
|
+
export declare const CardMediaStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
38
39
|
as?: import("styled-components").WebTarget;
|
|
39
40
|
forwardedAs?: import("styled-components").WebTarget;
|
|
40
|
-
},
|
|
41
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
42
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
43
|
+
gap?: SpacingInterface;
|
|
44
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
45
|
+
flexBasis: string | number;
|
|
46
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
47
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
48
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
49
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
50
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
51
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
52
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
53
|
+
grow: boolean;
|
|
54
|
+
shrink: boolean;
|
|
55
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
56
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
57
|
+
}>, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
41
58
|
as?: import("styled-components").WebTarget;
|
|
42
59
|
forwardedAs?: import("styled-components").WebTarget;
|
|
43
|
-
},
|
|
60
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
61
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
62
|
+
gap?: SpacingInterface;
|
|
63
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
64
|
+
flexBasis: string | number;
|
|
65
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
66
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
67
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
68
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
69
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
70
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
71
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
72
|
+
grow: boolean;
|
|
73
|
+
shrink: boolean;
|
|
74
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
75
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
76
|
+
}>, never>> & {
|
|
44
77
|
as?: import("styled-components").WebTarget;
|
|
45
78
|
forwardedAs?: import("styled-components").WebTarget;
|
|
46
79
|
}, "$pad"> & {
|
|
47
80
|
$pad: SpacingInterface;
|
|
48
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").
|
|
81
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
49
82
|
as?: import("styled-components").WebTarget;
|
|
50
83
|
forwardedAs?: import("styled-components").WebTarget;
|
|
51
|
-
},
|
|
84
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
85
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
86
|
+
gap?: SpacingInterface;
|
|
87
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
88
|
+
flexBasis: string | number;
|
|
89
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
90
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
91
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
92
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
93
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
94
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
95
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
96
|
+
grow: boolean;
|
|
97
|
+
shrink: boolean;
|
|
98
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
99
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
100
|
+
}>, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
52
101
|
as?: import("styled-components").WebTarget;
|
|
53
102
|
forwardedAs?: import("styled-components").WebTarget;
|
|
54
|
-
},
|
|
103
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
104
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
105
|
+
gap?: SpacingInterface;
|
|
106
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
107
|
+
flexBasis: string | number;
|
|
108
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
109
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
110
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
111
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
112
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
113
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
114
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
115
|
+
grow: boolean;
|
|
116
|
+
shrink: boolean;
|
|
117
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
118
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
119
|
+
}>, never>> & {
|
|
55
120
|
as?: import("styled-components").WebTarget;
|
|
56
121
|
forwardedAs?: import("styled-components").WebTarget;
|
|
57
122
|
}, "$pad"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-HW42PSLQ.esm.js";import"../../chunks/chunk-RI7KKIJD.esm.js";import"../../chunks/chunk-EXHRZZ5E.esm.js";import"../../chunks/chunk-EBOJSNZ5.esm.js";import"../../chunks/chunk-4E3BR56X.esm.js";import"../../chunks/chunk-TMIQIUOH.esm.js";import"../../chunks/chunk-4L2KOZIQ.esm.js";import"../../chunks/chunk-R6MCW24V.esm.js";import"../../chunks/chunk-A77HKHNQ.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-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-TG2P4DDY.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-NHE4GLQK.esm.js";import"../../chunks/chunk-D4ZBSTRO.esm.js";import"../../chunks/chunk-PMN6TVDW.esm.js";import"../../chunks/chunk-KKFQPSAE.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-LCIO2E2K.esm.js";import"../../chunks/chunk-HG4FBLPA.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-OHVMP5B7.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-WI3WPCW3.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{a as Card};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Internal barrel of the `Content` building block.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the component (renaming `ContentComponent` → `Content`) and
|
|
5
5
|
* the props interface (`ContentProps`).
|
|
6
6
|
*
|
|
7
|
+
* @internal Internal building block, **not** consumer API — a linear
|
|
8
|
+
* opener/content/closer row with a non-jumping `loading` mode, used by `Button`,
|
|
9
|
+
* `Modal`, `Notification` and the `Table` cells. `./containers/content` is not
|
|
10
|
+
* in `package.json#exports`; it was only ever public by accident (ADR-001
|
|
11
|
+
* Slice 2 auto-emitted a subpath per leaf folder). Consumers compose the
|
|
12
|
+
* finished components; there is no consumer-facing "content" primitive.
|
|
13
|
+
*
|
|
7
14
|
* Every other file in the project must import from the barrel, never from
|
|
8
15
|
* internal paths such as `./Content` or `./Content.interface`.
|
|
9
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-VU3NKSLB.esm.js";import"../../chunks/chunk-GM3IRR2E.esm.js";import"../../chunks/chunk-KT4BKJVV.esm.js";import"../../chunks/chunk-NHE4GLQK.esm.js";import"../../chunks/chunk-D4ZBSTRO.esm.js";import"../../chunks/chunk-PMN6TVDW.esm.js";import"../../chunks/chunk-KKFQPSAE.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-LCIO2E2K.esm.js";import"../../chunks/chunk-HG4FBLPA.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-OHVMP5B7.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-WI3WPCW3.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{a as Content};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FlexFactoryProps } from '../../factory/FlexFactory';
|
|
3
|
+
import { LayoutContainerProps, PolymorphicProps } from '../../factory/System';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the `Flex` component before the native `<div>` props.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* (spacing, size,
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* `Flex` is a **layout** container — structure only (ADR-028). It extends the
|
|
8
|
+
* layout surface ({@link LayoutContainerProps}: spacing, size, container
|
|
9
|
+
* geometry, responsive channels) plus the flex layout props
|
|
10
|
+
* ({@link FlexFactoryProps}: `gap`, `flexDirection`, `alignItems`,
|
|
11
|
+
* `justifyContent`, `wrap`, `flex`, …). It carries **no** background, border,
|
|
12
|
+
* elevation, typography or motion — a `Flex` in a tree always means layout, and
|
|
13
|
+
* a visual ground is a `Paper`/`Card`.
|
|
10
14
|
*/
|
|
11
|
-
export interface FlexPropsInterface extends
|
|
15
|
+
export interface FlexPropsInterface extends LayoutContainerProps, FlexFactoryProps {
|
|
12
16
|
children?: ReactNode;
|
|
13
17
|
}
|
|
14
18
|
type NativeProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
@@ -22,4 +26,17 @@ type NativeProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'>;
|
|
|
22
26
|
*/
|
|
23
27
|
export interface DefaultFlexInterface extends FlexPropsInterface, NativeProps {
|
|
24
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Public props type for annotating a `Flex` **layout object** — the runtime
|
|
31
|
+
* interface plus the `styled-components` polymorphic {@link PolymorphicProps}
|
|
32
|
+
* (`as`/`forwardedAs`). Use this (not `DefaultFlexInterface`) when a consumer
|
|
33
|
+
* types a plain object and needs `as`, so no local augmentation or
|
|
34
|
+
* `ComponentProps<typeof Flex>` workaround is needed.
|
|
35
|
+
*
|
|
36
|
+
* `as`/`forwardedAs` live here rather than on `DefaultFlexInterface` because
|
|
37
|
+
* that interface is the generic passed to `styled(...)` internally, where a
|
|
38
|
+
* polymorphic `as` blows the styled-components union past the TS ceiling
|
|
39
|
+
* (TS2590). The styled `Flex` component itself still accepts `as` natively.
|
|
40
|
+
*/
|
|
41
|
+
export type FlexProps = DefaultFlexInterface & PolymorphicProps;
|
|
25
42
|
export {};
|
|
@@ -1,17 +1,62 @@
|
|
|
1
|
+
import { FlexFactoryProps } from '../../factory/FlexFactory';
|
|
2
|
+
import { SurfaceContainerProps } from '../../factory/System';
|
|
3
|
+
import { IStyledComponent } from '../../vendors/StyledComponents';
|
|
1
4
|
/**
|
|
2
5
|
* The design system's `flex` container. Extends {@link BaseContainer},
|
|
3
6
|
* inheriting all factory props (spacing, colors, borders, etc.), and
|
|
4
7
|
* adds `display: flex` by default.
|
|
5
8
|
*
|
|
6
|
-
* Exposed as `Flex` in the barrel.
|
|
7
|
-
*
|
|
8
|
-
* module prevents `framer-motion` from entering the bundle of consumers
|
|
9
|
-
* that only use the plain `Flex`.
|
|
9
|
+
* Exposed as `Flex` in the barrel. Animation is the `motion` preset prop
|
|
10
|
+
* (ADR-027) — a factory channel of this container, not a separate module.
|
|
10
11
|
*/
|
|
11
|
-
export declare const DefaultFlexStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").
|
|
12
|
+
export declare const DefaultFlexStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
12
13
|
as?: import("styled-components").WebTarget;
|
|
13
14
|
forwardedAs?: import("styled-components").WebTarget;
|
|
14
|
-
},
|
|
15
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
16
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
17
|
+
gap?: import("../../themes").SpacingInterface;
|
|
18
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
19
|
+
flexBasis: string | number;
|
|
20
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
21
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
22
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
23
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
24
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
25
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
26
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
27
|
+
grow: boolean;
|
|
28
|
+
shrink: boolean;
|
|
29
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
30
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
31
|
+
}>, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
15
32
|
as?: import("styled-components").WebTarget;
|
|
16
33
|
forwardedAs?: import("styled-components").WebTarget;
|
|
17
|
-
},
|
|
34
|
+
}, "wrap" | "flex" | "gap" | "flexDirection" | "flexBasis" | "justifyContent" | "alignItems" | "alignContent" | "justifyItems" | "placeItems" | "alignSelf" | "grow" | "shrink" | "order" | "justifySelf"> & Partial<{
|
|
35
|
+
flex: import("../../factory/FlexFactory/FlexFactory.interface").Flex;
|
|
36
|
+
gap?: import("../../themes").SpacingInterface;
|
|
37
|
+
flexDirection: import("../../factory/FlexFactory/FlexFactory.interface").FlexDirection;
|
|
38
|
+
flexBasis: string | number;
|
|
39
|
+
justifyContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexJustify;
|
|
40
|
+
alignItems: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignItems;
|
|
41
|
+
alignContent: import("../../factory/FlexFactory/FlexFactory.interface").FlexAlignContent;
|
|
42
|
+
justifyItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
43
|
+
placeItems: import("../../factory/FlexFactory/FlexFactory.interface").GridItemsAlign;
|
|
44
|
+
wrap: import("../../factory/FlexFactory/FlexFactory.interface").FlexWrap;
|
|
45
|
+
alignSelf: import("../../factory/FlexFactory/FlexFactory.interface").AlignSelf;
|
|
46
|
+
grow: boolean;
|
|
47
|
+
shrink: boolean;
|
|
48
|
+
order: import("../../factory/FlexFactory/FlexFactory.interface").FlexOrder;
|
|
49
|
+
justifySelf: import("../../factory/FlexFactory/FlexFactory.interface").JustifySelf;
|
|
50
|
+
}>, never>>> & string;
|
|
51
|
+
/**
|
|
52
|
+
* **Surface-typed** view of {@link DefaultFlexStyle} (ADR-028) — the same
|
|
53
|
+
* runtime flex container, retyped to accept the surface groups (background,
|
|
54
|
+
* border, elevation, typography, motion) on top of the flex layout, **without**
|
|
55
|
+
* `Paper`'s pre-set defaults. For internal surface building blocks that are
|
|
56
|
+
* genuinely visual (badges, dividers, list rows, dialog/notification chrome) —
|
|
57
|
+
* they are surfaces, so they carry surface props, but they are not `Paper`.
|
|
58
|
+
*
|
|
59
|
+
* @internal Not published — layout consumers use `Flex`; visual surfaces use
|
|
60
|
+
* `Paper` / `Card`.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SurfaceFlex: IStyledComponent<"web", React.JSX.IntrinsicElements["div"] & SurfaceContainerProps & FlexFactoryProps>;
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
* Re-exports the styled-component (renaming `DefaultFlexStyle` → `Flex`)
|
|
5
5
|
* and the props interfaces (`FlexPropsInterface`, `DefaultFlexInterface`).
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* use the plain `Flex`.
|
|
7
|
+
* Animation is the `motion` preset prop on the container itself (ADR-027) —
|
|
8
|
+
* there is no separate animated variant.
|
|
10
9
|
*
|
|
11
10
|
* Every other file in the project must import from the barrel, never from
|
|
12
11
|
* internal paths such as `./Flex.style` or `./Flex.interface`.
|
|
13
12
|
*/
|
|
14
13
|
export * from './Flex.interface';
|
|
15
|
-
export { DefaultFlexStyle as Flex } from './Flex.style';
|
|
14
|
+
export { DefaultFlexStyle as Flex, SurfaceFlex } from './Flex.style';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-NHE4GLQK.esm.js";import"../../chunks/chunk-D4ZBSTRO.esm.js";import"../../chunks/chunk-PMN6TVDW.esm.js";import"../../chunks/chunk-KKFQPSAE.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-LCIO2E2K.esm.js";import"../../chunks/chunk-HG4FBLPA.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-OHVMP5B7.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-WI3WPCW3.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{a as Flex,b as SurfaceFlex};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FlexFactoryProps } from '../../factory/FlexFactory';
|
|
3
|
+
import { LayoutContainerProps, PolymorphicProps } from '../../factory/System';
|
|
3
4
|
import { BreakpointTypes } from '../../themes/Breakpoints';
|
|
4
5
|
import { SpacingInterface } from '../../themes/Spacing';
|
|
5
6
|
import { Theme } from '../../themes/ThemeProvider';
|
|
6
|
-
import { BaseContainerProps } from '../Base';
|
|
7
7
|
/**
|
|
8
8
|
* Breakpoints accepted by the `Grid`'s `medias` prop.
|
|
9
9
|
*
|
|
@@ -75,13 +75,13 @@ export type GridAlignmentProps = Pick<FlexFactoryProps, 'alignItems' | 'justifyC
|
|
|
75
75
|
*/
|
|
76
76
|
export type GridBreakpoints = Partial<Record<GridMediasTypes, GridMediaInterface>> & GridMediaInterface;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
78
|
+
* The grid-specific shape — the box alignment surface plus the responsive grid
|
|
79
|
+
* template (`medias`) — **without** the responsive channels. Channel-agnostic,
|
|
80
|
+
* so both the layout `Grid` ({@link GridPropsInterface}) and the Grid-rooted
|
|
81
|
+
* **surface** `Card` compose it: `Grid` adds the layout channels, `Card` the
|
|
82
|
+
* surface channels (ADR-028).
|
|
83
83
|
*/
|
|
84
|
-
export interface
|
|
84
|
+
export interface GridShapeProps extends GridAlignmentProps {
|
|
85
85
|
/**
|
|
86
86
|
* Responsive grid configuration. Accepts either a "flat" config
|
|
87
87
|
* (applied as the default) or an object with per-breakpoint keys
|
|
@@ -93,6 +93,17 @@ export interface GridPropsInterface extends BaseContainerProps, GridAlignmentPro
|
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
95
|
medias?: GridBreakpoints;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Props of the `Grid` before the native `<div>` props.
|
|
99
|
+
*
|
|
100
|
+
* `Grid` is a **layout** container — structure only (ADR-028). It extends the
|
|
101
|
+
* layout surface ({@link LayoutContainerProps}: spacing, size, container
|
|
102
|
+
* geometry, layout-only responsive channels) plus the grid template + alignment
|
|
103
|
+
* ({@link GridShapeProps}). It carries **no** background, border, elevation,
|
|
104
|
+
* typography or motion — the Grid-rooted **surface** is `Card`.
|
|
105
|
+
*/
|
|
106
|
+
export interface GridPropsInterface extends LayoutContainerProps, GridShapeProps {
|
|
96
107
|
children?: ReactNode;
|
|
97
108
|
}
|
|
98
109
|
/**
|
|
@@ -102,6 +113,19 @@ export interface GridPropsInterface extends BaseContainerProps, GridAlignmentPro
|
|
|
102
113
|
*/
|
|
103
114
|
export interface DefaultGridInterface extends GridPropsInterface, Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
104
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Public props type for annotating a `Grid` **layout object** — the runtime
|
|
118
|
+
* interface plus the `styled-components` polymorphic {@link PolymorphicProps}
|
|
119
|
+
* (`as`/`forwardedAs`). Use this (not `DefaultGridInterface`) when a consumer
|
|
120
|
+
* types a plain object and needs `as`, so no local augmentation or
|
|
121
|
+
* `ComponentProps<typeof Grid>` workaround is needed.
|
|
122
|
+
*
|
|
123
|
+
* `as`/`forwardedAs` live here rather than on `DefaultGridInterface` because
|
|
124
|
+
* that interface is the generic passed to `styled(...)` internally, where a
|
|
125
|
+
* polymorphic `as` blows the styled-components union past the TS ceiling
|
|
126
|
+
* (TS2590). The styled `Grid` component itself still accepts `as` natively.
|
|
127
|
+
*/
|
|
128
|
+
export type GridProps = DefaultGridInterface & PolymorphicProps;
|
|
105
129
|
/**
|
|
106
130
|
* Props that reach the Grid's styled-components functions. Equivalent to
|
|
107
131
|
* {@link DefaultGridInterface} with the `theme` injected by the
|