@boilerhaus-ui/boilerhaus-ui 0.1.2 → 0.1.5
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/dist/components/Container/Container.d.ts +12 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/FormGroup/FormGroup.d.ts +26 -0
- package/dist/components/FormGroup/index.d.ts +2 -0
- package/dist/components/Grid/Grid.d.ts +19 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/ScopehouseLogo/ScopehouseLogo.d.ts +13 -0
- package/dist/components/ScopehouseLogo/index.d.ts +2 -0
- package/dist/components/Stack/Stack.d.ts +14 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ContainerSize = 'sm' | 'md' | 'lg' | 'full';
|
|
2
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Max-width breakpoint:
|
|
5
|
+
* - sm → 640px — forms, modals, narrow content
|
|
6
|
+
* - md → 960px — articles, settings pages
|
|
7
|
+
* - lg → 1280px — matches --grid-max-width token, dashboards
|
|
8
|
+
* - full → 100% — edge-to-edge
|
|
9
|
+
*/
|
|
10
|
+
size?: ContainerSize;
|
|
11
|
+
}
|
|
12
|
+
export declare function Container({ size, className, children, style, ...props }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface FormGroupProps {
|
|
2
|
+
/** Text label for the field */
|
|
3
|
+
label: string;
|
|
4
|
+
/** id of the form control — sets htmlFor on the label */
|
|
5
|
+
fieldId?: string;
|
|
6
|
+
/** Supplemental text shown below the field */
|
|
7
|
+
helper?: string;
|
|
8
|
+
/** Validation error — replaces helper text, styled in signal red */
|
|
9
|
+
error?: string;
|
|
10
|
+
/** Adds a visual required indicator (*) to the label */
|
|
11
|
+
required?: boolean;
|
|
12
|
+
/** The form control (Input, Select, Textarea, etc.) */
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function FormGroup({ label, fieldId, helper, error, required, children, className, }: FormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface FormSectionProps {
|
|
18
|
+
/** Section heading */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Optional explanatory text below the heading */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** FormGroup elements and other field components */
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function FormSection({ title, description, children, className }: FormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SpaceToken } from '../Stack';
|
|
2
|
+
export type GridCols = 1 | 2 | 3 | 4 | 6 | 12;
|
|
3
|
+
export type GridColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
+
export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Number of equal columns — defaults to 12 */
|
|
6
|
+
cols?: GridCols;
|
|
7
|
+
/** Gap between cells — maps to --space-N token */
|
|
8
|
+
gap?: SpaceToken;
|
|
9
|
+
/** Independent row gap — falls back to gap if not set */
|
|
10
|
+
rowGap?: SpaceToken;
|
|
11
|
+
}
|
|
12
|
+
export interface GridColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
/** Number of columns this cell spans — defaults to full width */
|
|
14
|
+
span?: GridColSpan;
|
|
15
|
+
/** Start column (1-based) — optional */
|
|
16
|
+
start?: GridColSpan;
|
|
17
|
+
}
|
|
18
|
+
export declare function Grid({ cols, gap, rowGap, className, children, style, ...props }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function GridCol({ span, start, className, children, style, ...props }: GridColProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ScopeLogoVariant = 'color' | 'void' | 'dark' | 'paper';
|
|
2
|
+
export type ScopeLogoLockup = 'horizontal' | 'stacked' | 'mark-only' | 'wordmark-only';
|
|
3
|
+
export type ScopeLogoSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ScopeLogoProps {
|
|
5
|
+
/** Color scheme. Use 'dark' or 'paper' on dark backgrounds. Defaults to 'color'. */
|
|
6
|
+
variant?: ScopeLogoVariant;
|
|
7
|
+
/** Layout of mark and wordmark. Defaults to 'horizontal'. */
|
|
8
|
+
lockup?: ScopeLogoLockup;
|
|
9
|
+
/** Overall size — sm for topbar, md default, lg for hero/display. Defaults to 'md'. */
|
|
10
|
+
size?: ScopeLogoSize;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function ScopehouseLogo({ variant, lockup, size, className, }: ScopeLogoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SpaceToken = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
2
|
+
export interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Layout direction — defaults to column */
|
|
4
|
+
direction?: 'row' | 'column';
|
|
5
|
+
/** Gap between children — maps to --space-N token */
|
|
6
|
+
gap?: SpaceToken;
|
|
7
|
+
/** Cross-axis alignment */
|
|
8
|
+
align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
9
|
+
/** Main-axis justification */
|
|
10
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
11
|
+
/** Allow children to wrap */
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Stack({ direction, gap, align, justify, wrap, className, children, style, ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -64,5 +64,15 @@ export { AspectRatio } from './AspectRatio';
|
|
|
64
64
|
export type { AspectRatioProps } from './AspectRatio';
|
|
65
65
|
export { Logo } from './Logo';
|
|
66
66
|
export type { LogoProps, LogoVariant, LogoLockup, LogoSize } from './Logo';
|
|
67
|
+
export { ScopehouseLogo } from './ScopehouseLogo';
|
|
68
|
+
export type { ScopeLogoProps, ScopeLogoVariant, ScopeLogoLockup, ScopeLogoSize } from './ScopehouseLogo';
|
|
67
69
|
export { ThemeToggle, useTheme } from './ThemeToggle';
|
|
68
70
|
export type { ThemeToggleProps, Theme } from './ThemeToggle';
|
|
71
|
+
export { Stack } from './Stack';
|
|
72
|
+
export type { StackProps, SpaceToken } from './Stack';
|
|
73
|
+
export { Grid, GridCol } from './Grid';
|
|
74
|
+
export type { GridProps, GridColProps, GridCols, GridColSpan } from './Grid';
|
|
75
|
+
export { Container } from './Container';
|
|
76
|
+
export type { ContainerProps, ContainerSize } from './Container';
|
|
77
|
+
export { FormGroup, FormSection } from './FormGroup';
|
|
78
|
+
export type { FormGroupProps, FormSectionProps } from './FormGroup';
|