@apollion-dsi/core 6.0.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 +1 -1
- 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-YHM3YIO6.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-HRWQDKQV.esm.js → chunk-4RAZZLLG.esm.js} +1 -1
- package/lib/chunks/{chunk-DNEZUVFF.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-Y3SYDZIF.esm.js → chunk-A77HKHNQ.esm.js} +1 -1
- package/lib/chunks/{chunk-T7HLONFV.esm.js → chunk-A7JDCK3C.esm.js} +1 -1
- package/lib/chunks/{chunk-ZAYWAUKZ.esm.js → chunk-BFP2C5JF.esm.js} +1 -1
- package/lib/chunks/{chunk-5J3XFFOC.esm.js → chunk-BQBDAFDE.esm.js} +1 -1
- package/lib/chunks/{chunk-DOYOTA4M.esm.js → chunk-CB7EKQYI.esm.js} +1 -1
- package/lib/chunks/{chunk-UWNCASVD.esm.js → chunk-CTNZPJ47.esm.js} +1 -1
- package/lib/chunks/{chunk-WUMLGV6U.esm.js → chunk-CXBUSCOB.esm.js} +1 -1
- package/lib/chunks/chunk-D4ZBSTRO.esm.js +1 -0
- package/lib/chunks/{chunk-VNIBGIZ2.esm.js → chunk-DGQ46IKV.esm.js} +1 -1
- package/lib/chunks/chunk-DMLGAY6T.esm.js +1 -0
- package/lib/chunks/{chunk-UKGWJWRQ.esm.js → chunk-DP5DDF7U.esm.js} +1 -1
- package/lib/chunks/{chunk-WUVW6J3R.esm.js → chunk-DRL2R3ED.esm.js} +1 -1
- package/lib/chunks/{chunk-G7MPAQNL.esm.js → chunk-DRXC4B7Z.esm.js} +1 -1
- package/lib/chunks/{chunk-NKSAICKJ.esm.js → chunk-ER6KS2SA.esm.js} +1 -1
- package/lib/chunks/{chunk-FUQKZLIO.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-HV5DUMYV.esm.js → chunk-FJHDGSZE.esm.js} +1 -1
- package/lib/chunks/{chunk-CEQ2E5NR.esm.js → chunk-FNYWD4YI.esm.js} +1 -1
- package/lib/chunks/{chunk-ZZNJQONU.esm.js → chunk-GC2ZV3CY.esm.js} +1 -1
- package/lib/chunks/{chunk-3MZJAPWM.esm.js → chunk-GM3IRR2E.esm.js} +1 -1
- package/lib/chunks/{chunk-SACX6WA6.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-N4HS4XKA.esm.js → chunk-JVIACETZ.esm.js} +1 -1
- package/lib/chunks/{chunk-XEUESXXM.esm.js → chunk-KBBFH5LX.esm.js} +1 -1
- package/lib/chunks/{chunk-AY4A3CRI.esm.js → chunk-KIFRBQYQ.esm.js} +1 -1
- package/lib/chunks/chunk-KKFQPSAE.esm.js +1 -0
- package/lib/chunks/{chunk-HCNNXM2C.esm.js → chunk-LCIO2E2K.esm.js} +1 -1
- package/lib/chunks/{chunk-CYE4PE7O.esm.js → chunk-MJK3VHIO.esm.js} +1 -1
- package/lib/chunks/{chunk-256WC4PP.esm.js → chunk-NDMZLKX7.esm.js} +1 -1
- package/lib/chunks/chunk-NHE4GLQK.esm.js +1 -0
- package/lib/chunks/{chunk-52ZUY32C.esm.js → chunk-NW2GV6YI.esm.js} +1 -1
- package/lib/chunks/{chunk-QDLV2F2N.esm.js → chunk-OHLL57EN.esm.js} +1 -1
- package/lib/chunks/{chunk-F62355HF.esm.js → chunk-OHVMP5B7.esm.js} +1 -1
- package/lib/chunks/{chunk-VZJX7POT.esm.js → chunk-OQWC47RM.esm.js} +1 -1
- package/lib/chunks/{chunk-M4OETFK4.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-PXOXPLL4.esm.js → chunk-R6MCW24V.esm.js} +1 -1
- package/lib/chunks/chunk-RI7KKIJD.esm.js +1 -0
- package/lib/chunks/chunk-SMAAEIJR.esm.js +1 -0
- package/lib/chunks/{chunk-E7F7OX6L.esm.js → chunk-SNZE6LRL.esm.js} +1 -1
- package/lib/chunks/{chunk-JHHHDDJX.esm.js → chunk-T6USFPVA.esm.js} +1 -1
- package/lib/chunks/{chunk-Z2ESWFUW.esm.js → chunk-UFQAFY4P.esm.js} +1 -1
- package/lib/chunks/chunk-UGTJEXCL.esm.js +1 -0
- package/lib/chunks/{chunk-TV2VA222.esm.js → chunk-UWIWI6XE.esm.js} +1 -1
- package/lib/chunks/{chunk-FX4N4XE3.esm.js → chunk-VAA7V65K.esm.js} +1 -1
- package/lib/chunks/{chunk-D2BGFGF5.esm.js → chunk-VU3NKSLB.esm.js} +1 -1
- package/lib/chunks/{chunk-KZGTQCBM.esm.js → chunk-VXAPSA5T.esm.js} +1 -1
- package/lib/chunks/{chunk-BLWZI2HB.esm.js → chunk-VYK6RBMI.esm.js} +1 -1
- package/lib/chunks/{chunk-MMBAI43B.esm.js → chunk-W37MIT56.esm.js} +1 -1
- package/lib/chunks/{chunk-URJHAYIA.esm.js → chunk-WMBOZ7KA.esm.js} +1 -1
- package/lib/chunks/{chunk-VLYDLZDV.esm.js → chunk-X64PGKAO.esm.js} +1 -1
- package/lib/chunks/{chunk-6A67VC76.esm.js → chunk-XYIRIYYK.esm.js} +1 -1
- package/lib/chunks/chunk-Y75NAEIA.esm.js +1 -0
- package/lib/chunks/{chunk-EAPNLQRA.esm.js → chunk-YW2TWFDF.esm.js} +1 -1
- package/lib/chunks/{chunk-45MWDRNM.esm.js → chunk-ZACTPOXN.esm.js} +1 -1
- package/lib/containers/Base/Base.style.d.ts +15 -1
- package/lib/containers/Base/index.d.ts +11 -5
- 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 +50 -3
- package/lib/containers/Flex/index.d.ts +1 -1
- 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 +1 -1
- package/lib/containers/Notification/Notification.interface.d.ts +3 -1
- package/lib/containers/Notification/Notification.style.d.ts +196 -48
- 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 +209 -42
- 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.style.d.ts +84 -20
- 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 +9 -8
- 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/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 +72 -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 +1 -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 +76 -12
- 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 +72 -8
- 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.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/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/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +5 -13
- package/lib/chunks/Notification.group-A2B3AOWQ.esm.js +0 -1
- package/lib/chunks/chunk-4MZWNQEG.esm.js +0 -1
- package/lib/chunks/chunk-75RZEPGR.esm.js +0 -1
- package/lib/chunks/chunk-CT2E5OHH.esm.js +0 -1
- package/lib/chunks/chunk-DNPDRN65.esm.js +0 -1
- package/lib/chunks/chunk-DXBBCZ2G.esm.js +0 -1
- package/lib/chunks/chunk-E3DFLAI2.esm.js +0 -1
- package/lib/chunks/chunk-HEPTXYI6.esm.js +0 -1
- package/lib/chunks/chunk-HHMU4JQU.esm.js +0 -1
- package/lib/chunks/chunk-I6OALESP.esm.js +0 -1
- package/lib/chunks/chunk-J2WMKVZ6.esm.js +0 -1
- package/lib/chunks/chunk-MZXNUBS6.esm.js +0 -1
- package/lib/chunks/chunk-RSQIUWSS.esm.js +0 -1
- package/lib/chunks/chunk-SGFHFA5O.esm.js +0 -1
- package/lib/chunks/chunk-T45OIU7I.esm.js +0 -1
- package/lib/chunks/chunk-TOLIKUNQ.esm.js +0 -1
- package/lib/chunks/chunk-WYMKPFHD.esm.js +0 -1
- /package/lib/chunks/{chunk-AIUT47H7.esm.js → chunk-PMN6TVDW.esm.js} +0 -0
|
@@ -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,3 +1,6 @@
|
|
|
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
|
|
@@ -6,10 +9,54 @@
|
|
|
6
9
|
* Exposed as `Flex` in the barrel. Animation is the `motion` preset prop
|
|
7
10
|
* (ADR-027) — a factory channel of this container, not a separate module.
|
|
8
11
|
*/
|
|
9
|
-
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 & {
|
|
10
13
|
as?: import("styled-components").WebTarget;
|
|
11
14
|
forwardedAs?: import("styled-components").WebTarget;
|
|
12
|
-
},
|
|
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 & {
|
|
13
32
|
as?: import("styled-components").WebTarget;
|
|
14
33
|
forwardedAs?: import("styled-components").WebTarget;
|
|
15
|
-
},
|
|
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>;
|
|
@@ -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
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { GridShapeProps, GridStyleProps } from './Grid.interface';
|
|
2
|
+
import { SurfaceContainerProps } from '../../factory/System';
|
|
3
|
+
import { CSSObject, IStyledComponent } from '../../vendors/StyledComponents';
|
|
3
4
|
/**
|
|
4
5
|
* Builds the responsive CSS from `medias`.
|
|
5
6
|
*
|
|
@@ -17,10 +18,20 @@ export declare const setGridBreakpoints: ({ medias, theme }: GridStyleProps) =>
|
|
|
17
18
|
*
|
|
18
19
|
* Exposed as `Grid` in the barrel.
|
|
19
20
|
*/
|
|
20
|
-
export declare const DefaultGridStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").
|
|
21
|
+
export declare const DefaultGridStyle: 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 & {
|
|
21
22
|
as?: import("styled-components").WebTarget;
|
|
22
23
|
forwardedAs?: import("styled-components").WebTarget;
|
|
23
|
-
}, keyof
|
|
24
|
+
}, keyof GridShapeProps> & GridShapeProps, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color"> & import("../../factory").LayoutContainerProps & {
|
|
24
25
|
as?: import("styled-components").WebTarget;
|
|
25
26
|
forwardedAs?: import("styled-components").WebTarget;
|
|
26
|
-
}, keyof
|
|
27
|
+
}, keyof GridShapeProps> & GridShapeProps, never>>> & string;
|
|
28
|
+
/**
|
|
29
|
+
* **Surface-typed** view of {@link DefaultGridStyle} (ADR-028) — the same
|
|
30
|
+
* runtime grid, retyped to accept the surface groups (background, border,
|
|
31
|
+
* elevation, typography, motion) on top of the grid shape. For internal
|
|
32
|
+
* Grid-rooted surface building blocks that are genuinely visual but are not the
|
|
33
|
+
* full `Card`. Consumers use `Grid` (layout) or `Card` (surface).
|
|
34
|
+
*
|
|
35
|
+
* @internal Not published.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SurfaceGrid: IStyledComponent<"web", React.JSX.IntrinsicElements["div"] & SurfaceContainerProps & GridShapeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-RI7KKIJD.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{b as DefaultGridStyle,b as Grid,c as SurfaceGrid,a as setGridBreakpoints};
|
|
@@ -38,7 +38,7 @@ export declare const BaseNotification: React.ForwardRefExoticComponent<{
|
|
|
38
38
|
action?: React.ReactNode | ((p: {
|
|
39
39
|
close: () => void;
|
|
40
40
|
}) => React.ReactNode);
|
|
41
|
-
} & import("..").DefaultFlexInterface & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
} & import("..").DefaultFlexInterface & import("../../factory").SurfaceFactoryProps & import("../../factory").MotionFactoryProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
/**
|
|
43
43
|
* `type="page"` variation — renders the notification in a portal on
|
|
44
44
|
* `document.body`, fixed to the top or bottom of the page (controlled by
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkInterface } from '../../elements/Link';
|
|
3
|
+
import { MotionFactoryProps } from '../../factory/MotionFactory';
|
|
4
|
+
import { SurfaceFactoryProps } from '../../factory/System';
|
|
3
5
|
import { DefaultFlexInterface } from '../Flex';
|
|
4
6
|
/**
|
|
5
7
|
* Visual types accepted by `Notification`.
|
|
@@ -112,7 +114,7 @@ export type NotificationInterface = {
|
|
|
112
114
|
action?: React.ReactNode | ((p: {
|
|
113
115
|
close: () => void;
|
|
114
116
|
}) => React.ReactNode);
|
|
115
|
-
} & DefaultFlexInterface;
|
|
117
|
+
} & DefaultFlexInterface & SurfaceFactoryProps & MotionFactoryProps;
|
|
116
118
|
/**
|
|
117
119
|
* Internal shape used in the toast queue. Adds the `id` generated by
|
|
118
120
|
* `nanoid()` to allow targeted removal.
|