@openwarelabs/blocks 0.6.0 → 0.8.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/dist/features/Features01/Features01.d.cts +3 -0
- package/dist/features/Features01/Features01.d.ts +3 -0
- package/dist/features/Features01/Features01.types.d.cts +21 -0
- package/dist/features/Features01/Features01.types.d.ts +21 -0
- package/dist/features/Features02/Features02.d.cts +3 -0
- package/dist/features/Features02/Features02.d.ts +3 -0
- package/dist/features/Features02/Features02.types.d.cts +30 -0
- package/dist/features/Features02/Features02.types.d.ts +30 -0
- package/dist/features/Features03/Features03.d.cts +3 -0
- package/dist/features/Features03/Features03.d.ts +3 -0
- package/dist/features/Features03/Features03.types.d.cts +24 -0
- package/dist/features/Features03/Features03.types.d.ts +24 -0
- package/dist/features/Features04/Features04.d.cts +3 -0
- package/dist/features/Features04/Features04.d.ts +3 -0
- package/dist/features/Features04/Features04.types.d.cts +29 -0
- package/dist/features/Features04/Features04.types.d.ts +29 -0
- package/dist/features/Features05/Features05.d.cts +3 -0
- package/dist/features/Features05/Features05.d.ts +3 -0
- package/dist/features/Features05/Features05.types.d.cts +18 -0
- package/dist/features/Features05/Features05.types.d.ts +18 -0
- package/dist/footers/Footer01/Footer01.d.cts +3 -0
- package/dist/footers/Footer01/Footer01.d.ts +3 -0
- package/dist/footers/Footer01/Footer01.types.d.cts +32 -0
- package/dist/footers/Footer01/Footer01.types.d.ts +32 -0
- package/dist/footers/Footer02/Footer02.d.cts +3 -0
- package/dist/footers/Footer02/Footer02.d.ts +3 -0
- package/dist/footers/Footer02/Footer02.types.d.cts +18 -0
- package/dist/footers/Footer02/Footer02.types.d.ts +18 -0
- package/dist/footers/Footer03/Footer03.d.cts +3 -0
- package/dist/footers/Footer03/Footer03.d.ts +3 -0
- package/dist/footers/Footer03/Footer03.types.d.cts +53 -0
- package/dist/footers/Footer03/Footer03.types.d.ts +53 -0
- package/dist/footers/Footer04/Footer04.d.cts +3 -0
- package/dist/footers/Footer04/Footer04.d.ts +3 -0
- package/dist/footers/Footer04/Footer04.types.d.cts +18 -0
- package/dist/footers/Footer04/Footer04.types.d.ts +18 -0
- package/dist/headers/Header01/Header01.d.cts +6 -0
- package/dist/headers/Header01/Header01.d.ts +6 -0
- package/dist/headers/Header01/Header01.types.d.cts +18 -0
- package/dist/headers/Header01/Header01.types.d.ts +18 -0
- package/dist/headers/Header02/Header02.d.cts +6 -0
- package/dist/headers/Header02/Header02.d.ts +6 -0
- package/dist/headers/Header02/Header02.types.d.cts +69 -0
- package/dist/headers/Header02/Header02.types.d.ts +69 -0
- package/dist/headers/Header03/Header03.d.cts +6 -0
- package/dist/headers/Header03/Header03.d.ts +6 -0
- package/dist/headers/Header03/Header03.types.d.cts +24 -0
- package/dist/headers/Header03/Header03.types.d.ts +24 -0
- package/dist/headers/Header04/Header04.d.cts +3 -0
- package/dist/headers/Header04/Header04.d.ts +3 -0
- package/dist/headers/Header04/Header04.types.d.cts +47 -0
- package/dist/headers/Header04/Header04.types.d.ts +47 -0
- package/dist/headers/Header05/Header05.d.cts +3 -0
- package/dist/headers/Header05/Header05.d.ts +3 -0
- package/dist/headers/Header05/Header05.types.d.cts +27 -0
- package/dist/headers/Header05/Header05.types.d.ts +27 -0
- package/dist/index.cjs +1259 -7
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.cts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +1272 -20
- package/dist/index.js.map +4 -4
- package/dist/pricing/Pricing01/Pricing01.d.cts +3 -0
- package/dist/pricing/Pricing01/Pricing01.d.ts +3 -0
- package/dist/pricing/Pricing01/Pricing01.types.d.cts +43 -0
- package/dist/pricing/Pricing01/Pricing01.types.d.ts +43 -0
- package/dist/pricing/Pricing02/Pricing02.d.cts +3 -0
- package/dist/pricing/Pricing02/Pricing02.d.ts +3 -0
- package/dist/pricing/Pricing02/Pricing02.types.d.cts +64 -0
- package/dist/pricing/Pricing02/Pricing02.types.d.ts +64 -0
- package/dist/pricing/Pricing03/Pricing03.d.cts +3 -0
- package/dist/pricing/Pricing03/Pricing03.d.ts +3 -0
- package/dist/pricing/Pricing03/Pricing03.types.d.cts +65 -0
- package/dist/pricing/Pricing03/Pricing03.types.d.ts +65 -0
- package/dist/pricing/Pricing04/Pricing04.d.cts +3 -0
- package/dist/pricing/Pricing04/Pricing04.d.ts +3 -0
- package/dist/pricing/Pricing04/Pricing04.types.d.cts +38 -0
- package/dist/pricing/Pricing04/Pricing04.types.d.ts +38 -0
- package/dist/pricing/Pricing05/Pricing05.d.cts +3 -0
- package/dist/pricing/Pricing05/Pricing05.d.ts +3 -0
- package/dist/pricing/Pricing05/Pricing05.types.d.cts +64 -0
- package/dist/pricing/Pricing05/Pricing05.types.d.ts +64 -0
- package/dist/shared/BlockActions.d.cts +1 -1
- package/dist/shared/BlockActions.d.ts +1 -1
- package/dist/shared/BlockBrandLink.d.cts +3 -0
- package/dist/shared/BlockBrandLink.d.ts +3 -0
- package/dist/shared/FooterColumns.d.cts +3 -0
- package/dist/shared/FooterColumns.d.ts +3 -0
- package/dist/shared/icons.d.cts +13 -3
- package/dist/shared/icons.d.ts +13 -3
- package/dist/shared/shared.types.d.cts +49 -1
- package/dist/shared/shared.types.d.ts +49 -1
- package/dist/styles.css +3428 -333
- package/package.json +54 -54
|
@@ -21,12 +21,47 @@ export interface BlockAction {
|
|
|
21
21
|
}
|
|
22
22
|
/** A plain text link. */
|
|
23
23
|
export interface BlockLink {
|
|
24
|
+
/** The link's words. */
|
|
24
25
|
label: ReactNode;
|
|
26
|
+
/** Where it goes. */
|
|
25
27
|
href: string;
|
|
26
28
|
}
|
|
29
|
+
/** A link in a site's navigation. */
|
|
30
|
+
export interface HeaderLink {
|
|
31
|
+
label: ReactNode;
|
|
32
|
+
href: string;
|
|
33
|
+
/** The page you're on: marked for screen readers (aria-current) and drawn as current. */
|
|
34
|
+
current?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** A column of links in a footer, under a heading. */
|
|
37
|
+
export interface FooterColumn {
|
|
38
|
+
/** The column's heading. */
|
|
39
|
+
title: string;
|
|
40
|
+
/** Its links. A link's badge ("New") shows after it. */
|
|
41
|
+
links: Array<BlockLink & {
|
|
42
|
+
badge?: ReactNode;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
/** The product's name and logo, as a link home. */
|
|
46
|
+
export interface BlockBrand {
|
|
47
|
+
/** The name beside the logo, or the wordmark. */
|
|
48
|
+
name: ReactNode;
|
|
49
|
+
/** Where it goes, usually "/". */
|
|
50
|
+
href: string;
|
|
51
|
+
/** A mark before the name: an `<img>` or an inline SVG about 20px square. */
|
|
52
|
+
logo?: ReactNode;
|
|
53
|
+
}
|
|
27
54
|
export interface BlockActionButtonProps {
|
|
28
55
|
action: BlockAction;
|
|
29
|
-
variant: "primary" | "secondary";
|
|
56
|
+
variant: "primary" | "secondary" | "ghost";
|
|
57
|
+
/** lg for heroes and calls to action, sm for headers.
|
|
58
|
+
* @default "lg" */
|
|
59
|
+
size?: "sm" | "md" | "lg";
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Runs after the action's own onClick, such as closing a menu. */
|
|
62
|
+
onAfterClick?(): void;
|
|
63
|
+
/** Stretches it to its container's width. */
|
|
64
|
+
fullWidth?: boolean;
|
|
30
65
|
}
|
|
31
66
|
export interface BlockActionsProps {
|
|
32
67
|
primary: BlockAction;
|
|
@@ -35,4 +70,17 @@ export interface BlockActionsProps {
|
|
|
35
70
|
}
|
|
36
71
|
export interface BlockIconProps {
|
|
37
72
|
size?: number;
|
|
73
|
+
/** @default 2 */
|
|
74
|
+
strokeWidth?: number;
|
|
75
|
+
}
|
|
76
|
+
export interface BlockBrandLinkProps {
|
|
77
|
+
brand: BlockBrand;
|
|
78
|
+
className: string;
|
|
79
|
+
}
|
|
80
|
+
export interface FooterColumnsProps {
|
|
81
|
+
columns: FooterColumn[];
|
|
82
|
+
headingClassName: string;
|
|
83
|
+
listClassName: string;
|
|
84
|
+
/** For a link's badge. */
|
|
85
|
+
badgeClassName?: string;
|
|
38
86
|
}
|
|
@@ -21,12 +21,47 @@ export interface BlockAction {
|
|
|
21
21
|
}
|
|
22
22
|
/** A plain text link. */
|
|
23
23
|
export interface BlockLink {
|
|
24
|
+
/** The link's words. */
|
|
24
25
|
label: ReactNode;
|
|
26
|
+
/** Where it goes. */
|
|
25
27
|
href: string;
|
|
26
28
|
}
|
|
29
|
+
/** A link in a site's navigation. */
|
|
30
|
+
export interface HeaderLink {
|
|
31
|
+
label: ReactNode;
|
|
32
|
+
href: string;
|
|
33
|
+
/** The page you're on: marked for screen readers (aria-current) and drawn as current. */
|
|
34
|
+
current?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** A column of links in a footer, under a heading. */
|
|
37
|
+
export interface FooterColumn {
|
|
38
|
+
/** The column's heading. */
|
|
39
|
+
title: string;
|
|
40
|
+
/** Its links. A link's badge ("New") shows after it. */
|
|
41
|
+
links: Array<BlockLink & {
|
|
42
|
+
badge?: ReactNode;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
/** The product's name and logo, as a link home. */
|
|
46
|
+
export interface BlockBrand {
|
|
47
|
+
/** The name beside the logo, or the wordmark. */
|
|
48
|
+
name: ReactNode;
|
|
49
|
+
/** Where it goes, usually "/". */
|
|
50
|
+
href: string;
|
|
51
|
+
/** A mark before the name: an `<img>` or an inline SVG about 20px square. */
|
|
52
|
+
logo?: ReactNode;
|
|
53
|
+
}
|
|
27
54
|
export interface BlockActionButtonProps {
|
|
28
55
|
action: BlockAction;
|
|
29
|
-
variant: "primary" | "secondary";
|
|
56
|
+
variant: "primary" | "secondary" | "ghost";
|
|
57
|
+
/** lg for heroes and calls to action, sm for headers.
|
|
58
|
+
* @default "lg" */
|
|
59
|
+
size?: "sm" | "md" | "lg";
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Runs after the action's own onClick, such as closing a menu. */
|
|
62
|
+
onAfterClick?(): void;
|
|
63
|
+
/** Stretches it to its container's width. */
|
|
64
|
+
fullWidth?: boolean;
|
|
30
65
|
}
|
|
31
66
|
export interface BlockActionsProps {
|
|
32
67
|
primary: BlockAction;
|
|
@@ -35,4 +70,17 @@ export interface BlockActionsProps {
|
|
|
35
70
|
}
|
|
36
71
|
export interface BlockIconProps {
|
|
37
72
|
size?: number;
|
|
73
|
+
/** @default 2 */
|
|
74
|
+
strokeWidth?: number;
|
|
75
|
+
}
|
|
76
|
+
export interface BlockBrandLinkProps {
|
|
77
|
+
brand: BlockBrand;
|
|
78
|
+
className: string;
|
|
79
|
+
}
|
|
80
|
+
export interface FooterColumnsProps {
|
|
81
|
+
columns: FooterColumn[];
|
|
82
|
+
headingClassName: string;
|
|
83
|
+
listClassName: string;
|
|
84
|
+
/** For a link's badge. */
|
|
85
|
+
badgeClassName?: string;
|
|
38
86
|
}
|