@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
|
@@ -4,13 +4,15 @@ import { BackgroundFactoryProps } from '../BackgroundFactory';
|
|
|
4
4
|
import { BorderFactoryProps } from '../BorderFactory';
|
|
5
5
|
import { ColorFactoryProps } from '../ColorFactory';
|
|
6
6
|
import { ContainerFactoryProps } from '../ContainerFactory';
|
|
7
|
-
import { ContainerQueryProps } from '../ContainerQueryFactory';
|
|
7
|
+
import { ContainerQueryProps, LayoutContainerQueryProps } from '../ContainerQueryFactory';
|
|
8
8
|
import { DeepFactoryProps } from '../DeepFactory';
|
|
9
9
|
import { FlexFactoryProps } from '../FlexFactory';
|
|
10
10
|
import { FontFactoryProps } from '../FontFactory';
|
|
11
|
-
import {
|
|
11
|
+
import { MotionFactoryProps } from '../MotionFactory';
|
|
12
|
+
import { LayoutResponsiveProps, ResponsiveProps } from '../ResponsiveFactory';
|
|
12
13
|
import { SizeFactoryProps } from '../SizeFactory';
|
|
13
14
|
import { SpacingFactoryProps } from '../SpacingFactory';
|
|
15
|
+
import { LayoutViewportMediaProps, ViewportMediaProps } from '../ViewportMediaFactory';
|
|
14
16
|
/**
|
|
15
17
|
* Base element accepted by `styled(...)`.
|
|
16
18
|
*
|
|
@@ -20,6 +22,68 @@ import { SpacingFactoryProps } from '../SpacingFactory';
|
|
|
20
22
|
*/
|
|
21
23
|
export type StyledComponent = React.JSX.IntrinsicElements | React.ComponentType<any>;
|
|
22
24
|
export type { Styled };
|
|
25
|
+
/**
|
|
26
|
+
* The `styled-components` polymorphic props every Apollion styled container
|
|
27
|
+
* accepts at runtime but that the hand-written prop interfaces omit (they are
|
|
28
|
+
* added by `styled-components`, not by the native element).
|
|
29
|
+
*
|
|
30
|
+
* Exposed so a consumer can annotate a layout object as a container's public
|
|
31
|
+
* interface (`DefaultFlexInterface`, `DefaultGridInterface`, `CardInterface`,
|
|
32
|
+
* …) and still set `as` / `forwardedAs` without reaching for
|
|
33
|
+
* `ComponentProps<typeof X>` or a local augmentation.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* `as` is not generic here (it does not re-type the element's native
|
|
37
|
+
* attributes) — matching the DS's non-generic component contract. Setting
|
|
38
|
+
* `as="a"` on `Card` also unlocks the anchor attributes through the
|
|
39
|
+
* component's own props type.
|
|
40
|
+
*/
|
|
41
|
+
export interface PolymorphicProps {
|
|
42
|
+
/** Render the container as a different element or component (`styled-components` `as`). */
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
/** Forward the rendered element down a `styled(...)` chain (`styled-components` `forwardedAs`). */
|
|
45
|
+
forwardedAs?: React.ElementType;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* **Layout** factory group (ADR-028): structure only — spacing (margin/padding),
|
|
49
|
+
* size (width/height/min·max), and container geometry (position/overflow). No
|
|
50
|
+
* background, border, elevation, typography, or motion.
|
|
51
|
+
*
|
|
52
|
+
* The prop surface shared by the layout primitives `Box` / `Flex` / `Grid`.
|
|
53
|
+
* Seeing one of those in a tree tells the reader "this arranges things", never
|
|
54
|
+
* "this is a surface".
|
|
55
|
+
*/
|
|
56
|
+
export interface LayoutFactoryProps extends SpacingFactoryProps, SizeFactoryProps, ContainerFactoryProps {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* **Surface** factory group (ADR-028): the visual chrome a ground carries —
|
|
60
|
+
* background (`bgColor`), border (style/width/color/radius), and elevation
|
|
61
|
+
* (`deep`). Added by the surface components `Paper` / `Card` on top of their
|
|
62
|
+
* layout base; deliberately absent from `Box` / `Flex` / `Grid`.
|
|
63
|
+
*/
|
|
64
|
+
export interface SurfaceFactoryProps extends BackgroundFactoryProps, BorderFactoryProps, DeepFactoryProps {
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Public prop surface of a **layout** container (ADR-028): the layout factory
|
|
68
|
+
* group plus the three responsive channels **narrowed to the layout set** —
|
|
69
|
+
* `cq`, `viewportMedias` and the flat `sm_*` prefixes carry only structural
|
|
70
|
+
* props, so a nested `bgColor` cannot re-enter through a breakpoint object. The
|
|
71
|
+
* base `Box`/`Flex`/`Grid` build on this.
|
|
72
|
+
*/
|
|
73
|
+
export interface LayoutContainerProps extends LayoutFactoryProps, LayoutResponsiveProps, LayoutContainerQueryProps, LayoutViewportMediaProps {
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Public prop surface of a **surface** container (ADR-028): the layout factory
|
|
77
|
+
* group plus the surface chrome ({@link SurfaceFactoryProps}: background /
|
|
78
|
+
* border / elevation), typography (`color` / `font`) and `motion`, with the
|
|
79
|
+
* three responsive channels at their **full** width — a `Paper`/`Card` may
|
|
80
|
+
* respond to breakpoint or slot width with `bgColor`/`deep` too, style its own
|
|
81
|
+
* content's text, and animate. Surfaces are the rich containers; only the pure
|
|
82
|
+
* layout primitives (`Box`/`Flex`/`Grid`) are narrowed. `Paper`/`Card` build on
|
|
83
|
+
* this so their `cq`/`viewportMedias`/`sm_*` are not narrowed.
|
|
84
|
+
*/
|
|
85
|
+
export interface SurfaceContainerProps extends LayoutFactoryProps, SurfaceFactoryProps, ColorFactoryProps, FontFactoryProps, MotionFactoryProps, ResponsiveProps, ContainerQueryProps, ViewportMediaProps {
|
|
86
|
+
}
|
|
23
87
|
/**
|
|
24
88
|
* Aggregate type of ALL props accepted by `apollion.*` elements.
|
|
25
89
|
*
|
|
@@ -27,8 +91,14 @@ export type { Styled };
|
|
|
27
91
|
* system (`apollion.div`, `Base`, `Text`, etc.) — they extend this type
|
|
28
92
|
* to expose the full set of visual tokens and responsive variants without
|
|
29
93
|
* having to redeclare each key.
|
|
94
|
+
*
|
|
95
|
+
* @internal Engine type. Consumers never import it directly (`./factory` is not
|
|
96
|
+
* published); they reference a component's own props type (`FlexProps`,
|
|
97
|
+
* `GridProps`, `CardProps`, …), which already carries this surface. Public
|
|
98
|
+
* containers narrow to {@link LayoutFactoryProps} / {@link SurfaceFactoryProps}
|
|
99
|
+
* per ADR-028 rather than exposing this whole engine surface.
|
|
30
100
|
*/
|
|
31
|
-
export interface ApollionProps extends SpacingFactoryProps, SizeFactoryProps, ContainerFactoryProps, FontFactoryProps, ColorFactoryProps, BorderFactoryProps, DeepFactoryProps, BackgroundFactoryProps, FlexFactoryProps, ResponsiveProps, ContainerQueryProps {
|
|
101
|
+
export interface ApollionProps extends SpacingFactoryProps, SizeFactoryProps, ContainerFactoryProps, FontFactoryProps, ColorFactoryProps, BorderFactoryProps, DeepFactoryProps, BackgroundFactoryProps, FlexFactoryProps, ResponsiveProps, ContainerQueryProps, ViewportMediaProps, MotionFactoryProps {
|
|
32
102
|
}
|
|
33
103
|
/**
|
|
34
104
|
* Set of HTML tags exposed as shortcuts by the `apollion` object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c,d}from"../../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{d as apollion,b as shouldForwardDimensionAttrs,a as shouldForwardProp,c as styled};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ViewportMediaProps } from './ViewportMediaFactory.interface';
|
|
2
|
+
import { WithTheme } from '../../themes/ThemeProvider';
|
|
3
|
+
import { CSSObject } from '../../vendors/StyledComponents';
|
|
4
|
+
/**
|
|
5
|
+
* Prop keys controlled by the `ViewportMediaFactory`.
|
|
6
|
+
*
|
|
7
|
+
* Consumed by the `System` to prevent these props from leaking to the DOM.
|
|
8
|
+
*/
|
|
9
|
+
export declare const viewportMediaKeys: Array<keyof ViewportMediaProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Viewport object-media factory — the viewport sibling of the
|
|
12
|
+
* `ContainerQueryFactory`: `cq` answers "how wide is my slot", `viewportMedias`
|
|
13
|
+
* answers "how wide is the viewport" with the same object grammar, replacing
|
|
14
|
+
* the flat `sm_/md_/lg_/xl_` prefixes with one object per breakpoint.
|
|
15
|
+
*
|
|
16
|
+
* For each `theme.breakpoints` key present in `viewportMedias`, emits an
|
|
17
|
+
* `@media (min-width: …)` block reapplying the shared factory set. Pure CSS,
|
|
18
|
+
* SSR-inert.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <Flex viewportMedias={{ md: { display: 'flex', flexDirection: 'row' }, xl: { pb: 'zero' } }} />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const ViewportMediaFactory: (customProps: ViewportMediaProps) => (context: WithTheme<ViewportMediaProps>) => CSSObject;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BreakpointTypes } from '../../themes/Breakpoints';
|
|
2
|
+
import { ContainerQueryable, LayoutQueryable } from '../ContainerQueryFactory';
|
|
3
|
+
/**
|
|
4
|
+
* Prop set accepted inside one `viewportMedias` breakpoint key.
|
|
5
|
+
*
|
|
6
|
+
* Deliberately the **same** type as the `cq` channel's
|
|
7
|
+
* {@link ContainerQueryable} — the two channels reapply an identical factory
|
|
8
|
+
* surface (Border and `containment` excluded), differing only in the trigger
|
|
9
|
+
* (viewport vs. container). Reusing the alias also keeps `ApollionProps` under
|
|
10
|
+
* the styled-components union-complexity ceiling: a second, structurally
|
|
11
|
+
* distinct big intersection would tip `styled(...)` prop typing over the TS
|
|
12
|
+
* limit (TS2590).
|
|
13
|
+
*/
|
|
14
|
+
export type ViewportMediaQueryable = ContainerQueryable;
|
|
15
|
+
/**
|
|
16
|
+
* The `viewportMedias` prop — the **viewport** sibling of `cq`: the same
|
|
17
|
+
* object grammar, one entry per breakpoint, but triggered by the viewport
|
|
18
|
+
* (`@media (min-width: theme.breakpoints…)`) instead of the container.
|
|
19
|
+
*
|
|
20
|
+
* It answers "how wide is the viewport" for arbitrary factory props, the way
|
|
21
|
+
* `Grid`'s `medias` does for the grid template and `cq` does for the slot —
|
|
22
|
+
* replacing the flat `sm_/md_/lg_/xl_` prefix-per-prop channel with one object
|
|
23
|
+
* per breakpoint. Ascending `min-width`, mobile-first: the base (unprefixed)
|
|
24
|
+
* props are the narrow-screen style; each breakpoint opts in on top.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* // flat prefixes (one prop per axis):
|
|
29
|
+
* <Flex md_display="flex" md_flexDirection="row" lg_pb="giant" xl_pb="zero" />
|
|
30
|
+
*
|
|
31
|
+
* // viewportMedias (one object per breakpoint):
|
|
32
|
+
* <Flex viewportMedias={{ md: { display: 'flex', flexDirection: 'row' }, lg: { pb: 'giant' }, xl: { pb: 'zero' } }} />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export type ViewportMediaStyles = Partial<Record<BreakpointTypes, ViewportMediaQueryable>>;
|
|
36
|
+
/** Layout-only `viewportMedias` styles (ADR-028) — the surface for `Box`/`Flex`/`Grid`. */
|
|
37
|
+
export type LayoutViewportMediaStyles = Partial<Record<BreakpointTypes, LayoutQueryable>>;
|
|
38
|
+
/** Props consumed by the `ViewportMediaFactory` (full surface — runtime + surface containers). */
|
|
39
|
+
export interface ViewportMediaProps {
|
|
40
|
+
/**
|
|
41
|
+
* Viewport-driven styles per `theme.breakpoints` key, object grammar — the
|
|
42
|
+
* viewport sibling of `cq` (see {@link ViewportMediaStyles}).
|
|
43
|
+
*/
|
|
44
|
+
viewportMedias?: ViewportMediaStyles;
|
|
45
|
+
}
|
|
46
|
+
/** Layout-only `viewportMedias` prop (ADR-028) for the layout containers. */
|
|
47
|
+
export interface LayoutViewportMediaProps {
|
|
48
|
+
/** Viewport-driven **layout** styles per `theme.breakpoints` key. */
|
|
49
|
+
viewportMedias?: LayoutViewportMediaStyles;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public barrel for the `ViewportMediaFactory` module.
|
|
3
|
+
*
|
|
4
|
+
* Any other file in the project should import from the barrel, never from
|
|
5
|
+
* internal paths like `./ViewportMediaFactory.interface`.
|
|
6
|
+
*/
|
|
7
|
+
export * from './ViewportMediaFactory';
|
|
8
|
+
export * from './ViewportMediaFactory.interface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../../chunks/chunk-HG4FBLPA.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-GZONWSRB.esm.js";export{b as ViewportMediaFactory,a as viewportMediaKeys};
|
package/lib/factory/index.d.ts
CHANGED
|
@@ -20,5 +20,7 @@ export * from './FlexFactory';
|
|
|
20
20
|
export * from './SizeFactory';
|
|
21
21
|
export * from './SpacingFactory';
|
|
22
22
|
export * from './ContainerQueryFactory';
|
|
23
|
+
export * from './MotionFactory';
|
|
23
24
|
export * from './ResponsiveFactory';
|
|
25
|
+
export * from './ViewportMediaFactory';
|
|
24
26
|
export * from './System';
|
package/lib/factory/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-
|
|
1
|
+
import"../chunks/chunk-PMN6TVDW.esm.js";import{a as D,b as E,c as F,d as G}from"../chunks/chunk-KKFQPSAE.esm.js";import"../chunks/chunk-VMIXRIQ2.esm.js";import{a as y,b as z}from"../chunks/chunk-VUFEYXWD.esm.js";import"../chunks/chunk-SF2QSF7E.esm.js";import{a as A}from"../chunks/chunk-LCIO2E2K.esm.js";import{a as B,b as C}from"../chunks/chunk-HG4FBLPA.esm.js";import{a as c,b as d,c as e,d as f}from"../chunks/chunk-RWLJNXLX.esm.js";import{a as w,b as x}from"../chunks/chunk-OHVMP5B7.esm.js";import{a as m,b as n}from"../chunks/chunk-IK5Z5C2R.esm.js";import{a as s,b as t}from"../chunks/chunk-BNB3KNKE.esm.js";import{a as u,b as v}from"../chunks/chunk-OXQA5WD3.esm.js";import{a,b}from"../chunks/chunk-TZQMBDGR.esm.js";import{a as g,b as h}from"../chunks/chunk-WCUEINBQ.esm.js";import"../chunks/chunk-YJ6PPJQ4.esm.js";import{a as i,b as j}from"../chunks/chunk-QYL6LECA.esm.js";import{a as k,b as l}from"../chunks/chunk-3A7I6HM2.esm.js";import{a as o,b as p,c as q,d as r}from"../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{b as BackgroundFactory,f as BorderFactory,d as BorderRoundSemantic,e as BorderSemantic,h as ColorFactory,j as ContainerFactory,x as ContainerQueryFactory,l as DeepFactory,r as FlexFactory,n as FontFactory,z as MotionFactory,A as ResponsiveFactory,t as SizeFactory,v as SpacingFactory,C as ViewportMediaFactory,q as alignmentCss,G as apollion,a as backgroundKeys,c as borderKeys,g as colorKeys,i as containerKeys,w as containerQueryKeys,k as deepKeys,o as flexKeys,m as fontKeys,y as motionKeys,p as resolveAlignment,E as shouldForwardDimensionAttrs,D as shouldForwardProp,s as sizeKeys,u as spacingKeys,F as styled,B as viewportMediaKeys};
|