@gridui/grid 2.1.4 → 2.2.1
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 -13
- package/dist/{primitives/container → container}/container.d.ts +2 -2
- package/dist/{primitives/container → container}/style.d.ts +2 -2
- package/dist/dashboard-frame/dashboard-frame.d.ts +21 -0
- package/dist/dashboard-frame/style.d.ts +12 -0
- package/dist/frame-boundary/frame-boundary.d.ts +15 -0
- package/dist/frame-boundary/style.d.ts +9 -0
- package/dist/frame-footer/frame-footer.d.ts +20 -0
- package/dist/{frame/chrome → frame-footer}/style.d.ts +1 -2
- package/dist/frame-header/frame-header.d.ts +15 -0
- package/dist/frame-rail/frame-rail.d.ts +11 -0
- package/dist/{frame/rail → frame-rail}/style.d.ts +1 -1
- package/dist/{frame/rail/rail.d.ts → frame-rail-group/frame-rail-group.d.ts} +3 -7
- package/dist/frame-region/frame-region.d.ts +12 -0
- package/dist/frame-region-row/frame-region-row.d.ts +12 -0
- package/dist/{frame/section.d.ts → frame-section/frame-section.d.ts} +7 -7
- package/dist/frame-sections/frame-sections.d.ts +9 -0
- package/dist/{frame/texture/texture.d.ts → frame-texture/frame-texture.d.ts} +3 -3
- package/dist/{primitives/grid → grid}/grid.d.ts +5 -5
- package/dist/grid/responsive.d.ts +9 -0
- package/dist/{primitives/grid → grid}/style.d.ts +1 -2
- package/dist/{primitives/grid → grid}/tracks.d.ts +2 -2
- package/dist/{primitives/grid → grid-item}/grid-item.d.ts +4 -4
- package/dist/grid-item/responsive.d.ts +8 -0
- package/dist/grid-item/style.d.ts +7 -0
- package/dist/index.d.ts +44 -2
- package/dist/index.js +484 -294
- package/dist/index.js.map +4 -4
- package/dist/page-frame/page-frame.d.ts +18 -0
- package/dist/{frame/page → page-frame}/style.d.ts +2 -2
- package/dist/{primitives/row → row}/row.d.ts +2 -2
- package/dist/{primitives/row → row}/style.d.ts +1 -1
- package/dist/shared/chrome-style.d.ts +7 -0
- package/dist/shared/chrome.d.ts +16 -0
- package/dist/{frame/decoration → shared}/decoration.d.ts +3 -2
- package/dist/{frame/style.d.ts → shared/frame-style.d.ts} +2 -2
- package/dist/shared/responsive-types.d.ts +8 -0
- package/dist/shared/texture-types.d.ts +7 -0
- package/dist/{primitives → shared}/types.d.ts +1 -1
- package/dist/{primitives/split → split}/split.d.ts +4 -3
- package/dist/{primitives/stack → stack}/stack.d.ts +3 -3
- package/dist/{primitives/stack → stack}/style.d.ts +1 -1
- package/dist/styles.css +243 -32
- package/package.json +5 -10
- package/dist/frame/boundary/boundary.d.ts +0 -12
- package/dist/frame/chrome/chrome.d.ts +0 -29
- package/dist/frame/export.d.ts +0 -19
- package/dist/frame/page/page.d.ts +0 -20
- package/dist/primitives/export.d.ts +0 -19
- package/dist/primitives/responsive.d.ts +0 -11
package/README.md
CHANGED
|
@@ -5,8 +5,9 @@ See the [usage handbook](../../docs/usage/README.md) and
|
|
|
5
5
|
|
|
6
6
|
`@gridui/grid` owns Container, Grid, GridItem, Split, Stack, Row,
|
|
7
7
|
PageFrame, FrameSections, FrameSection, frame chrome, rails, textures,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
FrameRegion/FrameRegionRow for composed edge geometry,
|
|
9
|
+
and the public FrameBoundary primitive for structural boundaries. It does not know website routes or domain state.
|
|
10
|
+
Load its explicit `styles.css` export after Theme and before styles of composed families.
|
|
10
11
|
Theme supplies token values; `@gridui/style-utils/responsive` supplies the
|
|
11
12
|
React-free spacing and breakpoint-value calculations.
|
|
12
13
|
|
|
@@ -52,7 +53,7 @@ Grid `frame="cells"` owns outer and cell edges; `frame="internal"` owns seams
|
|
|
52
53
|
inside an existing frame. Use `fillLastRow` with direct GridItem children to
|
|
53
54
|
fill incomplete rows at every breakpoint. Explicit gaps are disallowed in
|
|
54
55
|
framed grids. Hover/focus outlines paint above neighboring seams and page lines.
|
|
55
|
-
Table cell lines
|
|
56
|
+
Table cell lines belong to Table; functional control borders belong to their Core families.
|
|
56
57
|
|
|
57
58
|
See the [Grid contract](docs/README.md#grid-foundation) for geometry and API.
|
|
58
59
|
|
|
@@ -61,14 +62,11 @@ See the [Grid contract](docs/README.md#grid-foundation) for geometry and API.
|
|
|
61
62
|
The package root `src/index.ts` declares the public API, and `src/styles.css`
|
|
62
63
|
imports component styles. Neither entry point contains component implementation.
|
|
63
64
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
textures with their CSS and variants. `section.tsx` composes those groups.
|
|
70
|
-
Only shared content styles and tone variants remain in `frame/style.ts`;
|
|
71
|
-
`tone.css` owns inherited region colors. Primitives never import Frame.
|
|
65
|
+
Every public component owns a matching directory, such as `src/grid/`,
|
|
66
|
+
`src/grid-item/`, `src/split/`, and `src/frame-section/`. Private parts, styles,
|
|
67
|
+
and helpers stay beside their owner. `src/shared/` contains only collaborators
|
|
68
|
+
used by multiple components: track planning, inherited frame geometry, region
|
|
69
|
+
tones, and shared boundary/chrome rules. Responsive spacing comes from Style-utils.
|
|
72
70
|
|
|
73
71
|
Cross-package browser fixtures live in root
|
|
74
72
|
`scripts/development/preview/fixtures` and use public exports. Browser
|
|
@@ -78,9 +76,11 @@ Unit tests mirror these owners under `test/unit/primitives/` and
|
|
|
78
76
|
`test/unit/frame/`. Tests can combine public primitives to protect their
|
|
79
77
|
collaboration. Keep ordinary presentation in the owner's CVA `style.ts`. Retain
|
|
80
78
|
track resolution, seams, and decorative geometry in colocated CSS imported by
|
|
81
|
-
the root stylesheet. See the
|
|
82
|
-
style organization contract.
|
|
79
|
+
the root stylesheet. See the [source conventions](../../docs/development/typescript-conventions.md#component-directories).
|
|
83
80
|
Consumers use the package root and explicit stylesheet export; internal file
|
|
84
81
|
paths are private.
|
|
85
82
|
|
|
86
83
|
See [quarterly release history](.changeset/history/) for prepared release notes and consumption records.
|
|
84
|
+
|
|
85
|
+
`DashboardFrame` supplies full-height workspace gutters and structural edges without
|
|
86
|
+
creating a main landmark. See [dashboard frames](docs/README.md#dashboard-frames).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Container
|
|
5
5
|
* @description Container
|
|
6
6
|
*/
|
|
7
|
-
import type { ElementProps } from "../types";
|
|
7
|
+
import type { ElementProps } from "../shared/types";
|
|
8
8
|
import type { FC } from "react";
|
|
9
9
|
export type ContainerProps = ElementProps & {
|
|
10
10
|
readonly width?: "narrow" | "standard" | "wide";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Container
|
|
5
5
|
* @description Style
|
|
6
6
|
*/
|
|
7
7
|
export declare const containerVariants: (props?: ({
|
|
8
|
-
width?: "
|
|
8
|
+
width?: "narrow" | "standard" | "wide" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace DashboardFrame
|
|
5
|
+
* @description Dashboard Frame
|
|
6
|
+
*/
|
|
7
|
+
import { type FrameDecorationStyle } from "../shared/decoration";
|
|
8
|
+
import { dashboardFrameVariants } from "./style";
|
|
9
|
+
import type { VariantProps } from "class-variance-authority";
|
|
10
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
11
|
+
export type DashboardFrameSize = NonNullable<VariantProps<typeof dashboardFrameVariants>["startSize"]>;
|
|
12
|
+
export type DashboardFrameProps = ComponentPropsWithRef<"div"> & {
|
|
13
|
+
readonly decoration?: FrameDecorationStyle;
|
|
14
|
+
readonly startDecoration?: FrameDecorationStyle;
|
|
15
|
+
readonly endDecoration?: FrameDecorationStyle;
|
|
16
|
+
readonly startSize?: DashboardFrameSize;
|
|
17
|
+
readonly endSize?: DashboardFrameSize;
|
|
18
|
+
readonly compactStartSize?: DashboardFrameSize;
|
|
19
|
+
readonly compactEndSize?: DashboardFrameSize;
|
|
20
|
+
};
|
|
21
|
+
export declare const DashboardFrame: FC<DashboardFrameProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace DashboardFrame
|
|
5
|
+
* @description Style
|
|
6
|
+
*/
|
|
7
|
+
export declare const dashboardFrameVariants: (props?: ({
|
|
8
|
+
startSize?: "small" | "none" | "medium" | "large" | null | undefined;
|
|
9
|
+
endSize?: "small" | "none" | "medium" | "large" | null | undefined;
|
|
10
|
+
compactStartSize?: "small" | "none" | "medium" | "large" | null | undefined;
|
|
11
|
+
compactEndSize?: "small" | "none" | "medium" | "large" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameBoundary
|
|
5
|
+
* @description Frame Boundary
|
|
6
|
+
*/
|
|
7
|
+
import { frameBoundaryStyles } from "./style";
|
|
8
|
+
import type { VariantProps } from "class-variance-authority";
|
|
9
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
10
|
+
export type FrameBoundaryStyle = NonNullable<VariantProps<typeof frameBoundaryStyles>["boundary"]>;
|
|
11
|
+
export type FrameBoundaryProps = Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
12
|
+
readonly boundary?: FrameBoundaryStyle;
|
|
13
|
+
readonly extent?: "content" | "frame";
|
|
14
|
+
};
|
|
15
|
+
export declare const FrameBoundary: FC<FrameBoundaryProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameBoundary
|
|
5
|
+
* @description Style
|
|
6
|
+
*/
|
|
7
|
+
export declare const frameBoundaryStyles: (props?: ({
|
|
8
|
+
boundary?: "line" | "none" | "band" | "stripe" | "space" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameFooter
|
|
5
|
+
* @description Frame Footer
|
|
6
|
+
*/
|
|
7
|
+
import { type FrameBoundaryStyle } from "../frame-boundary/frame-boundary";
|
|
8
|
+
import { type ChromeProps } from "../shared/chrome";
|
|
9
|
+
import { type FrameDecorationStyle } from "../shared/decoration";
|
|
10
|
+
import { type FrameTone } from "../shared/frame-style";
|
|
11
|
+
import type { ComponentPropsWithRef, FC, ReactNode } from "react";
|
|
12
|
+
export type FrameFooterProps = ComponentPropsWithRef<"footer"> & ChromeProps & {
|
|
13
|
+
readonly contentLayout?: "flex" | "block";
|
|
14
|
+
readonly tone?: FrameTone;
|
|
15
|
+
readonly boundary?: FrameBoundaryStyle;
|
|
16
|
+
readonly decoration?: FrameDecorationStyle;
|
|
17
|
+
readonly signature?: ReactNode;
|
|
18
|
+
readonly signatureAppearance?: "standard" | "cropped";
|
|
19
|
+
};
|
|
20
|
+
export declare const FrameFooter: FC<FrameFooterProps>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace FrameFooter
|
|
5
5
|
* @description Style
|
|
6
6
|
*/
|
|
7
|
-
export declare const frameChromeStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
7
|
export declare const frameSignatureStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
8
|
export declare const frameSignatureCroppedStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameHeader
|
|
5
|
+
* @description Frame Header
|
|
6
|
+
*/
|
|
7
|
+
import { type ChromeProps } from "../shared/chrome";
|
|
8
|
+
import { type Space } from "@gridui/style-utils/responsive";
|
|
9
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
10
|
+
export type FrameHeaderProps = ComponentPropsWithRef<"header"> & ChromeProps & {
|
|
11
|
+
readonly wrap?: boolean;
|
|
12
|
+
readonly gap?: Space;
|
|
13
|
+
readonly justify?: "start" | "between";
|
|
14
|
+
};
|
|
15
|
+
export declare const FrameHeader: FC<FrameHeaderProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameRail
|
|
5
|
+
* @description Frame Rail
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type FrameRailProps = ComponentPropsWithRef<"div"> & {
|
|
9
|
+
readonly placement?: "start" | "sticky-bottom";
|
|
10
|
+
};
|
|
11
|
+
export declare const FrameRail: FC<FrameRailProps>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
5
|
-
* @description Rail
|
|
4
|
+
* @namespace FrameRailGroup
|
|
5
|
+
* @description Frame Rail Group
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
7
|
+
import { type Responsive, type Space } from "@gridui/style-utils/responsive";
|
|
8
8
|
import type { ComponentPropsWithRef, FC, ReactNode } from "react";
|
|
9
|
-
export type FrameRailProps = ComponentPropsWithRef<"div"> & {
|
|
10
|
-
readonly placement?: "start" | "sticky-bottom";
|
|
11
|
-
};
|
|
12
|
-
export declare const FrameRail: FC<FrameRailProps>;
|
|
13
9
|
export type FrameRailGroupProps = ComponentPropsWithRef<"div"> & {
|
|
14
10
|
readonly rail?: ReactNode;
|
|
15
11
|
readonly railWidth?: Responsive<Space>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameRegion
|
|
5
|
+
* @description Frame Region
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type FrameRegionProps = ComponentPropsWithRef<"div"> & {
|
|
9
|
+
readonly asChild?: boolean;
|
|
10
|
+
readonly edge?: "none" | "left" | "right" | "both";
|
|
11
|
+
};
|
|
12
|
+
export declare const FrameRegion: FC<FrameRegionProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameRegionRow
|
|
5
|
+
* @description Frame Region Row
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type FrameRegionRowProps = ComponentPropsWithRef<"div"> & {
|
|
9
|
+
readonly asChild?: boolean;
|
|
10
|
+
readonly contentInset?: number | string;
|
|
11
|
+
};
|
|
12
|
+
export declare const FrameRegionRow: FC<FrameRegionRowProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
5
|
-
* @description Section
|
|
4
|
+
* @namespace FrameSection
|
|
5
|
+
* @description Frame Section
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
9
|
-
import type
|
|
10
|
-
import type { FrameTextureStyle } from "
|
|
11
|
-
import type
|
|
7
|
+
import { type FrameBoundaryStyle } from "../frame-boundary/frame-boundary";
|
|
8
|
+
import { type FrameDecorationStyle } from "../shared/decoration";
|
|
9
|
+
import { type FrameTone } from "../shared/frame-style";
|
|
10
|
+
import type { FrameTextureStyle } from "../shared/texture-types";
|
|
11
|
+
import { type Responsive, type Space } from "@gridui/style-utils/responsive";
|
|
12
12
|
import type { ComponentPropsWithRef, FC } from "react";
|
|
13
13
|
export type FrameSectionProps = ComponentPropsWithRef<"section"> & {
|
|
14
14
|
readonly tone?: FrameTone;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace FrameSections
|
|
5
|
+
* @description Frame Sections
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
+
export type FrameSectionsProps = ComponentPropsWithRef<"div">;
|
|
9
|
+
export declare const FrameSections: FC<FrameSectionsProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
5
|
-
* @description Texture
|
|
4
|
+
* @namespace FrameTexture
|
|
5
|
+
* @description Frame Texture
|
|
6
6
|
*/
|
|
7
|
+
import type { FrameTextureStyle } from "../shared/texture-types";
|
|
7
8
|
import type { FC } from "react";
|
|
8
|
-
export type FrameTextureStyle = "none" | "grid" | "dots" | "lines";
|
|
9
9
|
export type FrameTextureProps = {
|
|
10
10
|
readonly texture: FrameTextureStyle;
|
|
11
11
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Grid
|
|
5
5
|
* @description Grid
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type
|
|
10
|
-
import type
|
|
7
|
+
import type { ElementProps } from "../shared/types";
|
|
8
|
+
import type { GridColumns } from "./responsive";
|
|
9
|
+
import { type Responsive, type Space } from "@gridui/style-utils/responsive";
|
|
10
|
+
import { type FC } from "react";
|
|
11
11
|
export type GridProps = ElementProps & {
|
|
12
12
|
readonly columns?: Responsive<GridColumns>;
|
|
13
13
|
readonly fillLastRow?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Grid
|
|
4
|
+
* @namespace Grid
|
|
5
|
+
* @description Responsive
|
|
6
|
+
*/
|
|
7
|
+
import type { Columns } from "../shared/responsive-types";
|
|
8
|
+
export type GridTrack = "1fr" | "auto";
|
|
9
|
+
export type GridColumns = Columns | readonly [GridTrack, ...GridTrack[]];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Grid
|
|
5
5
|
* @description Style
|
|
6
6
|
*/
|
|
7
7
|
export declare const gridStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
8
|
export declare const gridCellsStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
-
export declare const gridItemStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
9
|
export declare const gridInternalStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
11
10
|
export declare const gridVariants: (props?: ({
|
|
12
11
|
frame?: "none" | "cells" | "internal" | null | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Grid
|
|
5
5
|
* @description Tracks
|
|
6
6
|
*/
|
|
7
|
-
import type { GridColumns } from "
|
|
7
|
+
import type { GridColumns } from "./responsive";
|
|
8
8
|
export declare const gridColumnCount: (columns: GridColumns) => number;
|
|
9
9
|
export declare const gridTemplate: (columns: GridColumns) => string;
|
|
10
10
|
export declare const fillGridRowSpans: (columns: number, spans: readonly number[]) => number[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Grid
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace GridItem
|
|
5
5
|
* @description Grid Item
|
|
6
6
|
*/
|
|
7
|
-
import type { Span } from "../responsive";
|
|
8
|
-
import type { ElementProps } from "../types";
|
|
9
|
-
import type
|
|
7
|
+
import type { Span } from "../shared/responsive-types";
|
|
8
|
+
import type { ElementProps } from "../shared/types";
|
|
9
|
+
import { type Responsive, type Space } from "@gridui/style-utils/responsive";
|
|
10
10
|
import type { FC } from "react";
|
|
11
11
|
export type GridItemProps = ElementProps & {
|
|
12
12
|
readonly asChild?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,47 @@
|
|
|
4
4
|
* @namespace Root
|
|
5
5
|
* @description Index
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type { ContainerProps } from "./container/container";
|
|
8
|
+
export { Container } from "./container/container";
|
|
9
|
+
export type { DashboardFrameProps, DashboardFrameSize } from "./dashboard-frame/dashboard-frame";
|
|
10
|
+
export { DashboardFrame } from "./dashboard-frame/dashboard-frame";
|
|
11
|
+
export type { FrameBoundaryProps, FrameBoundaryStyle } from "./frame-boundary/frame-boundary";
|
|
12
|
+
export { FrameBoundary } from "./frame-boundary/frame-boundary";
|
|
13
|
+
export type { FrameFooterProps } from "./frame-footer/frame-footer";
|
|
14
|
+
export { FrameFooter } from "./frame-footer/frame-footer";
|
|
15
|
+
export type { FrameHeaderProps } from "./frame-header/frame-header";
|
|
16
|
+
export { FrameHeader } from "./frame-header/frame-header";
|
|
17
|
+
export type { FrameRailProps } from "./frame-rail/frame-rail";
|
|
18
|
+
export { FrameRail } from "./frame-rail/frame-rail";
|
|
19
|
+
export type { FrameRailGroupProps } from "./frame-rail-group/frame-rail-group";
|
|
20
|
+
export { FrameRailGroup } from "./frame-rail-group/frame-rail-group";
|
|
21
|
+
export type { FrameRegionProps } from "./frame-region/frame-region";
|
|
22
|
+
export { FrameRegion } from "./frame-region/frame-region";
|
|
23
|
+
export type { FrameRegionRowProps } from "./frame-region-row/frame-region-row";
|
|
24
|
+
export { FrameRegionRow } from "./frame-region-row/frame-region-row";
|
|
25
|
+
export type { FrameSectionProps } from "./frame-section/frame-section";
|
|
26
|
+
export { FrameSection } from "./frame-section/frame-section";
|
|
27
|
+
export type { FrameSectionsProps } from "./frame-sections/frame-sections";
|
|
28
|
+
export { FrameSections } from "./frame-sections/frame-sections";
|
|
29
|
+
export type { FrameTextureProps } from "./frame-texture/frame-texture";
|
|
30
|
+
export { FrameTexture } from "./frame-texture/frame-texture";
|
|
31
|
+
export type { GridProps } from "./grid/grid";
|
|
32
|
+
export { Grid } from "./grid/grid";
|
|
33
|
+
export type { GridColumns } from "./grid/responsive";
|
|
34
|
+
export type { GridTrack } from "./grid/responsive";
|
|
35
|
+
export type { GridItemProps } from "./grid-item/grid-item";
|
|
36
|
+
export { GridItem } from "./grid-item/grid-item";
|
|
37
|
+
export type { PageFrameProps } from "./page-frame/page-frame";
|
|
38
|
+
export { PageFrame } from "./page-frame/page-frame";
|
|
39
|
+
export type { RowProps } from "./row/row";
|
|
40
|
+
export { Row } from "./row/row";
|
|
41
|
+
export type { FrameDecorationStyle } from "./shared/decoration";
|
|
42
|
+
export type { FrameTone } from "./shared/frame-style";
|
|
43
|
+
export type { Columns } from "./shared/responsive-types";
|
|
44
|
+
export type { Span } from "./shared/responsive-types";
|
|
45
|
+
export type { FrameTextureStyle } from "./shared/texture-types";
|
|
46
|
+
export type { SplitDirection } from "./split/split";
|
|
47
|
+
export type { SplitProps } from "./split/split";
|
|
48
|
+
export { Split } from "./split/split";
|
|
49
|
+
export type { StackProps } from "./stack/stack";
|
|
50
|
+
export { Stack } from "./stack/stack";
|