@gamecrafters/base-ui 0.0.10 → 0.0.12

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 ADDED
@@ -0,0 +1,204 @@
1
+ <a id="readme-top"></a>
2
+
3
+
4
+
5
+ <br />
6
+ <div align="center">
7
+
8
+ <h3 align="center">Base UI</h3>
9
+
10
+ <p align="center">
11
+ An implementation of GameCrafters' Base UI Design System using React.
12
+ </p>
13
+
14
+ [![npm][npm-shield]][npm-url]
15
+ [![Contributors][contributors-shield]][contributors-url]
16
+ [![Last Commit][last-commit-shield]][last-commit-url]
17
+ [![MIT License][license-shield]][license-url]
18
+
19
+ <p align="center">
20
+ <a href="https://www.npmjs.com/package/@gamecrafters/base-ui">View Package</a>
21
+ &middot;
22
+ <a href="https://github.com/donaldturinglee/base-ui/issues/new?labels=bug">Report Bug</a>
23
+ &middot;
24
+ <a href="https://github.com/donaldturinglee/base-ui/issues/new?labels=enhancement">Request Feature</a>
25
+ </p>
26
+ </div>
27
+
28
+
29
+
30
+ <details>
31
+ <summary>Table of Contents</summary>
32
+ <ol>
33
+ <li>
34
+ <a href="#getting-started">Getting Started</a>
35
+ <ul>
36
+ <li><a href="#installation">Installation</a></li>
37
+ </ul>
38
+ </li>
39
+ <li><a href="#usage">Usage</a></li>
40
+ <li><a href="#roadmap">Roadmap</a></li>
41
+ <li><a href="#contributing">Contributing</a></li>
42
+ <li><a href="#license">License</a></li>
43
+ <li><a href="#contact">Contact</a></li>
44
+ </ol>
45
+ </details>
46
+
47
+
48
+
49
+ ## Getting Started
50
+
51
+ To use Base UI in an application, install the package and import its stylesheet. To work on the library itself, clone the repository and run Storybook.
52
+
53
+ ### Installation
54
+
55
+ To use the library in an application:
56
+
57
+ 1. Install the package
58
+ ```sh
59
+ npm install @gamecrafters/base-ui
60
+ ```
61
+ 2. Import the stylesheet once, at the root of the application
62
+ ```js
63
+ import '@gamecrafters/base-ui/main.css';
64
+ ```
65
+
66
+ To work on the library itself:
67
+
68
+ 1. Clone the repo
69
+ ```sh
70
+ git clone https://github.com/donaldturinglee/base-ui.git
71
+ ```
72
+ 2. Install NPM packages
73
+ ```sh
74
+ npm install
75
+ ```
76
+ 3. Start Storybook, which is where the components are developed and read
77
+ ```sh
78
+ npm run storybook
79
+ ```
80
+ 4. Working from a fork, change the git remote url to avoid accidental pushes to the base project
81
+ ```sh
82
+ git remote set-url origin https://github.com/your_username/base-ui.git
83
+ git remote -v # confirm the changes
84
+ ```
85
+
86
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
87
+
88
+
89
+
90
+ ## Usage
91
+
92
+ Wrap the application in a `ThemeProvider` so the tokens resolve, then reach for the components:
93
+
94
+ ```jsx
95
+ import { Box, Button, FormControl, Stack, TextInput, ThemeProvider } from '@gamecrafters/base-ui';
96
+ import '@gamecrafters/base-ui/main.css';
97
+
98
+ const App = () => (
99
+ <ThemeProvider colorMode="auto">
100
+ <Box padding="normal" background="muted" border="default" radius="medium">
101
+ <Stack gap="normal">
102
+ <FormControl required>
103
+ <FormControl.Label>Name</FormControl.Label>
104
+ <TextInput block />
105
+ <FormControl.Caption>The name people will know you by</FormControl.Caption>
106
+ </FormControl>
107
+ <Button variant="primary">Save</Button>
108
+ </Stack>
109
+ </Box>
110
+ </ThemeProvider>
111
+ );
112
+
113
+ export default App;
114
+ ```
115
+
116
+ `colorMode` takes `day`, `night` or `auto`; `auto` follows the operating system. A nested `ThemeProvider` only has to say what it changes, so a subtree can hold a scheme of its own.
117
+
118
+ For a right-to-left subtree, wrap it in a `DirectionProvider`:
119
+
120
+ ```jsx
121
+ import { DirectionProvider } from '@gamecrafters/base-ui';
122
+
123
+ <DirectionProvider direction="rtl">{children}</DirectionProvider>;
124
+ ```
125
+
126
+ The scripts the repository is worked with:
127
+
128
+ | Script | What it does |
129
+ | --- | --- |
130
+ | `npm run storybook` | Runs Storybook on port 9000 |
131
+ | `npm run storybook:build` | Builds the static Storybook |
132
+ | `npm test` | Runs the Jest suites |
133
+ | `npm run build` | Builds the package with Rollup into `build/` |
134
+ | `npm run lint` | Lints `src` and `tests` with ESLint |
135
+ | `npm run format` | Applies both the ESLint and Prettier fixes |
136
+ | `npm run clean` | Removes the build output |
137
+
138
+ _Every component has a page in Storybook, with a Playground story for its props and a Features section for what it can do._
139
+
140
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
141
+
142
+
143
+
144
+ ## Roadmap
145
+
146
+ See the [open issues](https://github.com/donaldturinglee/base-ui/issues) for a full list of proposed features (and known issues).
147
+
148
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
149
+
150
+
151
+
152
+ ## Contributing
153
+
154
+ Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
155
+
156
+ If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
157
+ Don't forget to give the project a star! Thanks again!
158
+
159
+ 1. Fork the Project
160
+ 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
161
+ 3. Run `npm run lint` and `npm test`
162
+ 4. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
163
+ 5. Push to the Branch (`git push origin feature/AmazingFeature`)
164
+ 6. Open a Pull Request
165
+
166
+ A new component follows the shape of the ones already there: a `ComponentName.tsx`, a `ComponentName.types.ts`, an `index.ts`, a Jest suite and two Storybook files under `src/components/<component-name>`, with its stylesheet under `src/styles/components` and one line added to each of the two barrels.
167
+
168
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
169
+
170
+ ### Top contributors:
171
+
172
+ <a href="https://github.com/donaldturinglee/base-ui/graphs/contributors">
173
+ <img src="https://contrib.rocks/image?repo=donaldturinglee/base-ui" alt="contrib.rocks image" />
174
+ </a>
175
+
176
+
177
+
178
+ ## License
179
+
180
+ Distributed under the MIT License. See `LICENSE` for more information.
181
+
182
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
183
+
184
+
185
+
186
+ ## Contact
187
+
188
+ [![LinkedIn](https://go-skill-icons.vercel.app/api/icons?i=linkedin&theme=dark)](https://www.linkedin.com/in/donaldturinglee/) &nbsp;
189
+ [![Discord](https://go-skill-icons.vercel.app/api/icons?i=discord&theme=dark)](https://discord.gg/YsteKRjrSH) &nbsp;
190
+ [![Twitter](https://go-skill-icons.vercel.app/api/icons?i=x&theme=dark)](https://x.com/donaldturinglee) &nbsp;
191
+ [![YouTube](https://go-skill-icons.vercel.app/api/icons?i=youtube&theme=dark)](https://www.youtube.com/channel/UCOHOUOsJjGPBlov7FuwPDbA) &nbsp;
192
+
193
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
194
+
195
+
196
+
197
+ [npm-shield]: https://img.shields.io/npm/v/%40gamecrafters%2Fbase-ui.svg?style=for-the-badge
198
+ [npm-url]: https://www.npmjs.com/package/@gamecrafters/base-ui
199
+ [contributors-shield]: https://img.shields.io/github/contributors/donaldturinglee/base-ui.svg?style=for-the-badge
200
+ [contributors-url]: https://github.com/donaldturinglee/base-ui/graphs/contributors
201
+ [last-commit-shield]: https://img.shields.io/github/last-commit/donaldturinglee/base-ui.svg?style=for-the-badge
202
+ [last-commit-url]: https://github.com/donaldturinglee/base-ui/commits/main
203
+ [license-shield]: https://img.shields.io/github/license/donaldturinglee/base-ui.svg?style=for-the-badge
204
+ [license-url]: https://github.com/donaldturinglee/base-ui/blob/main/LICENSE
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import type { AttachmentOrientation, AttachmentSize, AttachmentState } from "./Attachment.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ state?: AttachmentState;
5
+ size?: AttachmentSize;
6
+ orientation?: AttachmentOrientation;
7
+ className?: string;
8
+ }, "as"> & {
9
+ as?: As | undefined;
10
+ } & React.RefAttributes<any>) => React.ReactNode;
11
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ import type { IconButtonProps } from "../icon-button";
4
+ export type AttachmentState = "idle" | "uploading" | "processing" | "error" | "done";
5
+ export type AttachmentSize = "small" | "medium" | "large";
6
+ export type AttachmentOrientation = "horizontal" | "vertical";
7
+ export type AttachmentMediaVariant = "icon" | "image";
8
+ export type AttachmentProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
9
+ state?: AttachmentState;
10
+ size?: AttachmentSize;
11
+ orientation?: AttachmentOrientation;
12
+ className?: string;
13
+ }>;
14
+ export type AttachmentMediaProps = React.ComponentPropsWithoutRef<"div"> & {
15
+ variant?: AttachmentMediaVariant;
16
+ className?: string;
17
+ };
18
+ export type AttachmentContentProps = React.ComponentPropsWithoutRef<"div"> & {
19
+ className?: string;
20
+ };
21
+ export type AttachmentTitleProps = React.ComponentPropsWithoutRef<"span"> & {
22
+ className?: string;
23
+ };
24
+ export type AttachmentDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
25
+ className?: string;
26
+ };
27
+ export type AttachmentActionsProps = React.ComponentPropsWithoutRef<"div"> & {
28
+ className?: string;
29
+ };
30
+ export type AttachmentActionProps<As extends React.ElementType = "button"> = IconButtonProps<As>;
31
+ export type AttachmentTriggerProps<As extends React.ElementType = "button"> = PolymorphicProps<As, "button", {
32
+ className?: string;
33
+ }>;
34
+ export type AttachmentGroupProps = React.ComponentPropsWithoutRef<"div"> & {
35
+ className?: string;
36
+ };
37
+ export type AttachmentContextValue = {
38
+ state?: AttachmentState;
39
+ size?: AttachmentSize;
40
+ orientation?: AttachmentOrientation;
41
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { AttachmentActionProps } from "./Attachment.types";
3
+ declare const _default: <As extends React.ElementType = "button">(props: AttachmentActionProps<As> & React.RefAttributes<any>) => React.ReactNode;
4
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { AttachmentContextValue } from "./Attachment.types";
2
+ export declare const AttachmentContext: import("react").Context<AttachmentContextValue>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { AttachmentMediaVariant } from "./Attachment.types";
3
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ variant?: AttachmentMediaVariant;
5
+ className?: string;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "button">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import AttachmentAction from "./AttachmentAction";
2
+ import AttachmentActions from "./AttachmentActions";
3
+ import AttachmentContent from "./AttachmentContent";
4
+ import AttachmentDescription from "./AttachmentDescription";
5
+ import AttachmentGroup from "./AttachmentGroup";
6
+ import AttachmentMedia from "./AttachmentMedia";
7
+ import AttachmentTitle from "./AttachmentTitle";
8
+ import AttachmentTrigger from "./AttachmentTrigger";
9
+ export declare const Attachment: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
10
+ state?: import("./Attachment.types").AttachmentState;
11
+ size?: import("./Attachment.types").AttachmentSize;
12
+ orientation?: import("./Attachment.types").AttachmentOrientation;
13
+ className?: string;
14
+ }, "as"> & {
15
+ as?: As | undefined;
16
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
17
+ Group: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
+ className?: string;
19
+ } & import("react").RefAttributes<any>) => React.ReactNode;
20
+ Media: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
+ variant?: import("./Attachment.types").AttachmentMediaVariant;
22
+ className?: string;
23
+ } & import("react").RefAttributes<any>) => React.ReactNode;
24
+ Content: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
25
+ className?: string;
26
+ } & import("react").RefAttributes<any>) => React.ReactNode;
27
+ Title: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
28
+ className?: string;
29
+ } & import("react").RefAttributes<any>) => React.ReactNode;
30
+ Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
31
+ className?: string;
32
+ } & import("react").RefAttributes<any>) => React.ReactNode;
33
+ Actions: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
+ className?: string;
35
+ } & import("react").RefAttributes<any>) => React.ReactNode;
36
+ Action: <As extends React.ElementType = "button">(props: import("./Attachment.types").AttachmentActionProps<As> & import("react").RefAttributes<any>) => React.ReactNode;
37
+ Trigger: <As extends React.ElementType = "button">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "button" : As> & {
38
+ className?: string;
39
+ }, "as"> & {
40
+ as?: As | undefined;
41
+ } & import("react").RefAttributes<any>) => React.ReactNode;
42
+ };
43
+ export { AttachmentGroup, AttachmentMedia, AttachmentContent, AttachmentTitle, AttachmentDescription, AttachmentActions, AttachmentAction, AttachmentTrigger, };
44
+ export { AttachmentContext } from "./AttachmentContext";
45
+ export * from "./Attachment.types";
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import type { BoxBackground, BoxBorder, BoxOverflow, BoxPadding, BoxRadius, BoxShadow } from "./Box.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ padding?: BoxPadding;
5
+ paddingBlock?: BoxPadding;
6
+ paddingInline?: BoxPadding;
7
+ background?: BoxBackground;
8
+ border?: BoxBorder;
9
+ radius?: BoxRadius;
10
+ shadow?: BoxShadow;
11
+ overflow?: BoxOverflow;
12
+ className?: string;
13
+ }, "as"> & {
14
+ as?: As | undefined;
15
+ } & React.RefAttributes<any>) => React.ReactNode;
16
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type BoxPadding = "none" | "tight" | "condensed" | "cozy" | "normal" | "spacious";
4
+ export type BoxBackground = "none" | "default" | "muted" | "inset" | "emphasis";
5
+ export type BoxBorder = "none" | "default" | "muted";
6
+ export type BoxRadius = "none" | "small" | "medium" | "large" | "full";
7
+ export type BoxShadow = "none" | "xsmall" | "small" | "medium";
8
+ export type BoxOverflow = "visible" | "hidden";
9
+ export type BoxProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
10
+ padding?: BoxPadding;
11
+ paddingBlock?: BoxPadding;
12
+ paddingInline?: BoxPadding;
13
+ background?: BoxBackground;
14
+ border?: BoxBorder;
15
+ radius?: BoxRadius;
16
+ shadow?: BoxShadow;
17
+ overflow?: BoxOverflow;
18
+ className?: string;
19
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as Box } from "./Box";
2
+ export * from "./Box.types";
@@ -5,12 +5,14 @@ export * from "./action-menu";
5
5
  export * from "./alert";
6
6
  export * from "./anchored-overlay";
7
7
  export * from "./aspect-ratio";
8
+ export * from "./attachment";
8
9
  export * from "./autocomplete";
9
10
  export * from "./avatar";
10
11
  export * from "./avatar-stack";
11
12
  export * from "./banner";
12
13
  export * from "./blankslate";
13
14
  export * from "./blockquote";
15
+ export * from "./box";
14
16
  export * from "./breadcrumbs";
15
17
  export * from "./bubble";
16
18
  export * from "./button";
@@ -61,6 +63,7 @@ export * from "./meter";
61
63
  export * from "./navigation-list";
62
64
  export * from "./navigation-menu";
63
65
  export * from "./number-input";
66
+ export * from "./page-container";
64
67
  export * from "./page-content";
65
68
  export * from "./page-footer";
66
69
  export * from "./page-header";
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { PageContainerSpacing, PageContainerWidth } from "./PageContainer.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ width?: PageContainerWidth;
5
+ padding?: PageContainerSpacing;
6
+ gap?: PageContainerSpacing;
7
+ fullHeight?: boolean;
8
+ className?: string;
9
+ }, "as"> & {
10
+ as?: As | undefined;
11
+ } & React.RefAttributes<any>) => React.ReactNode;
12
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type * as React from "react";
2
+ import type { ResponsiveValue } from "../../hooks/useResponsive";
3
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
4
+ export type PageContainerViewport = "narrow" | "regular" | "wide";
5
+ export type PageContainerHidden = boolean | ResponsiveValue<boolean>;
6
+ export type PageContainerWidth = "full" | "medium" | "large" | "xlarge";
7
+ export type PageContainerSpacing = "none" | "condensed" | "normal" | "spacious";
8
+ export type PageContainerProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
9
+ width?: PageContainerWidth;
10
+ padding?: PageContainerSpacing;
11
+ gap?: PageContainerSpacing;
12
+ fullHeight?: boolean;
13
+ className?: string;
14
+ }>;
15
+ export type PageContainerRegionProps<As extends React.ElementType = "div"> = Omit<PolymorphicProps<As, "div">, "hidden"> & {
16
+ hidden?: PageContainerHidden;
17
+ grow?: boolean;
18
+ className?: string;
19
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "div">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "div">, "hidden"> & {
3
+ hidden?: import("./PageContainer.types").PageContainerHidden;
4
+ grow?: boolean;
5
+ className?: string;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import PageContainerRegion from "./PageContainerRegion";
2
+ export declare const PageContainer: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
3
+ width?: import("./PageContainer.types").PageContainerWidth;
4
+ padding?: import("./PageContainer.types").PageContainerSpacing;
5
+ gap?: import("./PageContainer.types").PageContainerSpacing;
6
+ fullHeight?: boolean;
7
+ className?: string;
8
+ }, "as"> & {
9
+ as?: As | undefined;
10
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
11
+ Region: <As extends React.ElementType = "div">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "div">, "hidden"> & {
12
+ hidden?: import("./PageContainer.types").PageContainerHidden;
13
+ grow?: boolean;
14
+ className?: string;
15
+ } & import("react").RefAttributes<any>) => React.ReactNode;
16
+ };
17
+ export { PageContainerRegion };
18
+ export * from "./PageContainer.types";
@@ -0,0 +1,6 @@
1
+ import type { PageContainerHidden, PageContainerViewport } from "./PageContainer.types";
2
+ export declare const viewports: PageContainerViewport[];
3
+ export declare const getHiddenViewports: (hidden?: PageContainerHidden) => PageContainerViewport[];
4
+ export declare const getViewportClassName: (matched: PageContainerViewport[], all: string, when: Record<PageContainerViewport, string>) => string | string[];
5
+ export declare const getHiddenClassName: (hiddenViewports: PageContainerViewport[]) => string | string[];
6
+ export declare const getHiddenAttribute: (hiddenViewports: PageContainerViewport[]) => string | undefined;