@gridui/feature 1.0.6 → 1.1.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 +31 -1
- package/dist/feature-tile/feature-tile.d.ts +15 -0
- package/dist/feature-tile/style.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +115 -33
- package/dist/index.js.map +4 -4
- package/dist/styles.css +88 -79
- package/docs/catalog.json +24 -3
- package/docs/reference/README.md +9 -0
- package/docs/reference/feature-action.md +59 -0
- package/docs/reference/feature-banner.md +73 -0
- package/docs/reference/feature-domain.md +55 -0
- package/docs/reference/feature-identity.md +29 -0
- package/docs/reference/feature-link.md +77 -0
- package/docs/reference/feature-tile.md +71 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @gridui/feature
|
|
2
2
|
|
|
3
|
-
Landing family. Public API: `FeatureAction`, `FeatureActionProps`, `FeatureBanner`, `FeatureBannerProps`, `FeatureDomain`, `FeatureDomainProps`, `FeatureIdentity`, `FeatureIdentityProps`, `FeatureLink`, `FeatureLinkProps`.
|
|
3
|
+
Landing family. Public API: `FeatureAction`, `FeatureActionProps`, `FeatureBanner`, `FeatureBannerProps`, `FeatureDomain`, `FeatureDomainProps`, `FeatureIdentity`, `FeatureIdentityProps`, `FeatureLink`, `FeatureLinkProps`, `FeatureTile`, and `FeatureTileProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/feature` and load `@gridui/feature/styles.css` after Theme.
|
|
6
6
|
Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
|
|
@@ -51,3 +51,33 @@ lazy-loaded, asynchronously decoded, and requested without a referrer.
|
|
|
51
51
|
The enclosing Grid owns boundaries and list geometry. Applications own destination
|
|
52
52
|
selection, image URLs, translated copy, and list headings.
|
|
53
53
|
|
|
54
|
+
|
|
55
|
+
## Destination tiles
|
|
56
|
+
|
|
57
|
+
`FeatureTile` is a native destination link with required `href` and `title`, and
|
|
58
|
+
optional `preview`, `description`, and `action` React content. The preview sits
|
|
59
|
+
above the text, grows with the available cell height, and is decorative
|
|
60
|
+
(`aria-hidden`). Keep essential information in the title and description. All
|
|
61
|
+
slots must contain non-interactive content; the action is a label, not a button.
|
|
62
|
+
Omitted or empty slots create no empty regions. Native anchor attributes and refs
|
|
63
|
+
are forwarded, and caller-owned accessible names and descriptions are preserved.
|
|
64
|
+
|
|
65
|
+
Compose `GridItem asChild` with FeatureTile so the link is the grid cell. Grid
|
|
66
|
+
owns responsive tracks, row sizing and seams; Theme owns hover and focus outlines.
|
|
67
|
+
The tile has no outer border or fixed preview aspect ratio. Hosts own preview
|
|
68
|
+
content, image dimensions, destinations and loading. Use FeatureBanner for an
|
|
69
|
+
image-backed banner, or FeatureTile for a preview above the content.
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
<FeatureTile href="/rooms/" title="Meeting rooms" description="Explore room reservations."
|
|
73
|
+
preview={<img src="/rooms.webp" alt="" width={640} height={360} />}
|
|
74
|
+
action="Open workspace" />
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Feature links
|
|
78
|
+
|
|
79
|
+
`FeatureLink` uses its seed for decorative tint and destination text. Its
|
|
80
|
+
destination separator uses the surrounding palette’s structural border token
|
|
81
|
+
so it matches the enclosing Grid boundary.
|
|
82
|
+
|
|
83
|
+
[Component reference](docs/reference/README.md) contains focused API pages for each public component.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureTile
|
|
5
|
+
* @description Feature Tile
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
|
+
export type FeatureTileProps = Omit<ComponentPropsWithRef<"a">, "children" | "title" | "href"> & {
|
|
9
|
+
readonly href: string;
|
|
10
|
+
readonly title: ReactNode;
|
|
11
|
+
readonly description?: ReactNode;
|
|
12
|
+
readonly preview?: ReactNode;
|
|
13
|
+
readonly action?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const FeatureTile: FC<FeatureTileProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureTile
|
|
5
|
+
* @description Style
|
|
6
|
+
*/
|
|
7
|
+
export declare const featureTileStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
+
export declare const featureTilePreviewStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
export declare const featureTileContentStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ export type { FeatureIdentityProps } from "./feature-identity/feature-identity";
|
|
|
14
14
|
export { FeatureIdentity } from "./feature-identity/feature-identity";
|
|
15
15
|
export type { FeatureLinkProps } from "./feature-link/feature-link";
|
|
16
16
|
export { FeatureLink } from "./feature-link/feature-link";
|
|
17
|
+
export type { FeatureTileProps } from "./feature-tile/feature-tile";
|
|
18
|
+
export { FeatureTile } from "./feature-tile/feature-tile";
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { cn } from "@gridui/style-utils";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
var featureVisitStyles = cva(cn(
|
|
5
5
|
"gridui-feature-visit",
|
|
6
|
-
"gridui-u-inline-flex gridui-u-items-center gridui-u-gap-gridui-8",
|
|
7
|
-
"gridui-u-[&_svg]:w-gridui-16 gridui-u-[&_svg]:h-gridui-16"
|
|
6
|
+
"gridui-u-feature--inline-flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-8",
|
|
7
|
+
"gridui-u-feature--[&_svg]:w-gridui-16 gridui-u-feature--[&_svg]:h-gridui-16"
|
|
8
8
|
));
|
|
9
9
|
|
|
10
10
|
// src/feature-action/feature-action.tsx
|
|
@@ -36,17 +36,17 @@ import { cn as cn3 } from "@gridui/style-utils";
|
|
|
36
36
|
import { cva as cva2 } from "class-variance-authority";
|
|
37
37
|
var featureBannerStyles = cva2(cn3(
|
|
38
38
|
"gridui-feature-banner",
|
|
39
|
-
"gridui-u-relative gridui-u-isolate gridui-u-grid gridui-u-overflow-hidden gridui-u-text-foreground gridui-u-bg-surface gridui-u-no-underline",
|
|
40
|
-
"gridui-u-min-[48rem]:items-center"
|
|
39
|
+
"gridui-u-feature--relative gridui-u-feature--isolate gridui-u-feature--grid gridui-u-feature--overflow-hidden gridui-u-feature--text-foreground gridui-u-feature--bg-surface gridui-u-feature--no-underline",
|
|
40
|
+
"gridui-u-feature--min-[48rem]:items-center"
|
|
41
41
|
), {
|
|
42
42
|
variants: {
|
|
43
43
|
mobileLayout: {
|
|
44
|
-
banner: "gridui-u-[--gridui-banner-artwork-height:10.25rem] gridui-u-[--gridui-banner-fade-start:5rem]",
|
|
45
|
-
shallow: "gridui-u-[--gridui-banner-artwork-height:5.5rem] gridui-u-[--gridui-banner-fade-start:2.5rem]",
|
|
46
|
-
compact: "gridui-feature-banner-compact gridui-u-max-[48rem]:p-gridui-24 gridui-u-max-[48rem]:gap-gridui-16"
|
|
44
|
+
banner: "gridui-u-feature--[--gridui-banner-artwork-height:10.25rem] gridui-u-feature--[--gridui-banner-fade-start:5rem]",
|
|
45
|
+
shallow: "gridui-u-feature--[--gridui-banner-artwork-height:5.5rem] gridui-u-feature--[--gridui-banner-fade-start:2.5rem]",
|
|
46
|
+
compact: "gridui-feature-banner-compact gridui-u-feature--max-[48rem]:p-gridui-24 gridui-u-feature--max-[48rem]:gap-gridui-16"
|
|
47
47
|
},
|
|
48
48
|
hasArtwork: {
|
|
49
|
-
true: "gridui-u-min-[48rem]:min-h-68",
|
|
49
|
+
true: "gridui-u-feature--min-[48rem]:min-h-68",
|
|
50
50
|
false: "gridui-feature-banner-without-artwork"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
@@ -54,23 +54,23 @@ var featureBannerStyles = cva2(cn3(
|
|
|
54
54
|
{
|
|
55
55
|
mobileLayout: "compact",
|
|
56
56
|
hasArtwork: true,
|
|
57
|
-
className: "gridui-u-max-[48rem]:grid-cols-[80px_minmax(0,1fr)]"
|
|
57
|
+
className: "gridui-u-feature--max-[48rem]:grid-cols-[80px_minmax(0,1fr)]"
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
60
|
});
|
|
61
61
|
var featureBannerArtworkStyles = cva2(cn3(
|
|
62
62
|
"gridui-feature-banner-artwork",
|
|
63
|
-
"gridui-u-object-cover gridui-u-object-center",
|
|
64
|
-
"gridui-u-transition-transform gridui-u-duration-240 gridui-u-ease-[ease] gridui-u-motion-reduce:transition-none gridui-u-motion-reduce:duration-0"
|
|
63
|
+
"gridui-u-feature--object-cover gridui-u-feature--object-center",
|
|
64
|
+
"gridui-u-feature--transition-transform gridui-u-feature--duration-240 gridui-u-feature--ease-[ease] gridui-u-feature--motion-reduce:transition-none gridui-u-feature--motion-reduce:duration-0"
|
|
65
65
|
));
|
|
66
66
|
var featureBannerContentStyles = cva2(cn3(
|
|
67
|
-
"gridui-feature-banner-content gridui-u-box-border gridui-u-flex gridui-u-min-w-0 gridui-u-flex-col gridui-u-items-start gridui-u-gap-gridui-16",
|
|
68
|
-
"gridui-u-min-[48rem]:py-gridui-32 gridui-u-min-[48rem]:px-gridui-48"
|
|
67
|
+
"gridui-feature-banner-content gridui-u-feature--box-border gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-col gridui-u-feature--items-start gridui-u-feature--gap-gridui-16",
|
|
68
|
+
"gridui-u-feature--min-[48rem]:py-gridui-32 gridui-u-feature--min-[48rem]:px-gridui-48"
|
|
69
69
|
), {
|
|
70
70
|
variants: {
|
|
71
71
|
mobileLayout: {
|
|
72
|
-
banner: "gridui-u-max-[48rem]:px-gridui-24 gridui-u-max-[48rem]:pb-gridui-32",
|
|
73
|
-
shallow: "gridui-u-max-[48rem]:px-gridui-24 gridui-u-max-[48rem]:pb-gridui-24",
|
|
72
|
+
banner: "gridui-u-feature--max-[48rem]:px-gridui-24 gridui-u-feature--max-[48rem]:pb-gridui-32",
|
|
73
|
+
shallow: "gridui-u-feature--max-[48rem]:px-gridui-24 gridui-u-feature--max-[48rem]:pb-gridui-24",
|
|
74
74
|
compact: ""
|
|
75
75
|
},
|
|
76
76
|
hasArtwork: {
|
|
@@ -82,12 +82,12 @@ var featureBannerContentStyles = cva2(cn3(
|
|
|
82
82
|
{
|
|
83
83
|
mobileLayout: "banner",
|
|
84
84
|
hasArtwork: true,
|
|
85
|
-
className: "gridui-u-max-[48rem]:pt-44"
|
|
85
|
+
className: "gridui-u-feature--max-[48rem]:pt-44"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
mobileLayout: "shallow",
|
|
89
89
|
hasArtwork: true,
|
|
90
|
-
className: "gridui-u-max-[48rem]:pt-25"
|
|
90
|
+
className: "gridui-u-feature--max-[48rem]:pt-25"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
mobileLayout: [
|
|
@@ -95,13 +95,13 @@ var featureBannerContentStyles = cva2(cn3(
|
|
|
95
95
|
"shallow"
|
|
96
96
|
],
|
|
97
97
|
hasArtwork: false,
|
|
98
|
-
className: "gridui-u-max-[48rem]:pt-gridui-24"
|
|
98
|
+
className: "gridui-u-feature--max-[48rem]:pt-gridui-24"
|
|
99
99
|
}
|
|
100
100
|
]
|
|
101
101
|
});
|
|
102
102
|
var featureBannerActionStyles = cva2(cn3(
|
|
103
103
|
"gridui-feature-banner-action",
|
|
104
|
-
"gridui-u-inline-flex gridui-u-min-h-11 gridui-u-items-center gridui-u-gap-gridui-8 gridui-u-mt-gridui-8 gridui-u-text-link gridui-u-type-ui"
|
|
104
|
+
"gridui-u-feature--inline-flex gridui-u-feature--min-h-11 gridui-u-feature--items-center gridui-u-feature--gap-gridui-8 gridui-u-feature--mt-gridui-8 gridui-u-feature--text-link gridui-u-feature--type-ui"
|
|
105
105
|
));
|
|
106
106
|
|
|
107
107
|
// src/feature-banner/feature-banner.tsx
|
|
@@ -154,7 +154,7 @@ var FeatureBanner = (props) => {
|
|
|
154
154
|
"h2",
|
|
155
155
|
{
|
|
156
156
|
id: `${id}-title`,
|
|
157
|
-
className: "gridui-u-type-heading",
|
|
157
|
+
className: "gridui-u-feature--type-heading",
|
|
158
158
|
children: title
|
|
159
159
|
}
|
|
160
160
|
),
|
|
@@ -195,7 +195,7 @@ import { cn as cn5 } from "@gridui/style-utils";
|
|
|
195
195
|
import { cva as cva3 } from "class-variance-authority";
|
|
196
196
|
var featureDomainStyles = cva3(cn5(
|
|
197
197
|
"gridui-feature-domain",
|
|
198
|
-
"gridui-u-type-code"
|
|
198
|
+
"gridui-u-feature--type-code"
|
|
199
199
|
));
|
|
200
200
|
|
|
201
201
|
// src/feature-domain/feature-domain.tsx
|
|
@@ -235,28 +235,28 @@ import { cn as cn7 } from "@gridui/style-utils";
|
|
|
235
235
|
import { cva as cva4 } from "class-variance-authority";
|
|
236
236
|
var featureLinkStyles = cva4(cn7(
|
|
237
237
|
"gridui-feature-link",
|
|
238
|
-
"gridui-u-flex gridui-u-h-full gridui-u-flex-col gridui-u-p-gridui-24 gridui-u-text-foreground gridui-u-bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] gridui-u-no-underline gridui-u-[transition:background-color_120ms_ease]",
|
|
239
|
-
"gridui-u-min-[40rem]:py-gridui-32 gridui-u-min-[40rem]:px-gridui-48",
|
|
240
|
-
"gridui-u-motion-reduce:transition-none"
|
|
238
|
+
"gridui-u-feature--flex gridui-u-feature--h-full gridui-u-feature--flex-col gridui-u-feature--p-gridui-24 gridui-u-feature--text-foreground gridui-u-feature--bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] gridui-u-feature--no-underline gridui-u-feature--[transition:background-color_120ms_ease]",
|
|
239
|
+
"gridui-u-feature--min-[40rem]:py-gridui-32 gridui-u-feature--min-[40rem]:px-gridui-48",
|
|
240
|
+
"gridui-u-feature--motion-reduce:transition-none"
|
|
241
241
|
));
|
|
242
242
|
var featureCategoryStyles = cva4(cn7(
|
|
243
243
|
"gridui-feature-category",
|
|
244
|
-
"gridui-u-mb-gridui-24"
|
|
244
|
+
"gridui-u-feature--mb-gridui-24"
|
|
245
245
|
));
|
|
246
246
|
var featureIdentityStyles = cva4(cn7(
|
|
247
247
|
"gridui-feature-identity",
|
|
248
|
-
"gridui-u-flex gridui-u-items-center gridui-u-gap-gridui-16",
|
|
249
|
-
"gridui-u-[&_>_svg]:w-gridui-48 gridui-u-[&_>_svg]:h-gridui-48 gridui-u-[&_>_svg]:shrink-0",
|
|
250
|
-
"gridui-u-[&_h2]:type-heading",
|
|
251
|
-
"gridui-u-min-[40rem]:[&_>_svg]:w-gridui-64 gridui-u-min-[40rem]:[&_>_svg]:h-gridui-64"
|
|
248
|
+
"gridui-u-feature--flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-16",
|
|
249
|
+
"gridui-u-feature--[&_>_svg]:w-gridui-48 gridui-u-feature--[&_>_svg]:h-gridui-48 gridui-u-feature--[&_>_svg]:shrink-0",
|
|
250
|
+
"gridui-u-feature--[&_h2]:type-heading",
|
|
251
|
+
"gridui-u-feature--min-[40rem]:[&_>_svg]:w-gridui-64 gridui-u-feature--min-[40rem]:[&_>_svg]:h-gridui-64"
|
|
252
252
|
));
|
|
253
253
|
var featureDescriptionStyles = cva4(cn7(
|
|
254
254
|
"gridui-feature-description",
|
|
255
|
-
"gridui-u-flex-1 gridui-u-mt-gridui-24 gridui-u-text-muted"
|
|
255
|
+
"gridui-u-feature--flex-1 gridui-u-feature--mt-gridui-24 gridui-u-feature--text-muted"
|
|
256
256
|
));
|
|
257
257
|
var featureDestinationStyles = cva4(cn7(
|
|
258
258
|
"gridui-feature-destination",
|
|
259
|
-
"gridui-u-flex gridui-u-flex-wrap gridui-u-items-center gridui-u-justify-between gridui-u-gap-gridui-16 gridui-u-mt-gridui-32 gridui-u-pt-gridui-16 gridui-u-border-t gridui-u-border-solid gridui-u-
|
|
259
|
+
"gridui-u-feature--flex gridui-u-feature--flex-wrap gridui-u-feature--items-center gridui-u-feature--justify-between gridui-u-feature--gap-gridui-16 gridui-u-feature--mt-gridui-32 gridui-u-feature--pt-gridui-16 gridui-u-feature--border-t gridui-u-feature--border-solid gridui-u-feature--border-border gridui-u-feature--text-(--gridui-feature-accent) gridui-u-feature--type-caption"
|
|
260
260
|
));
|
|
261
261
|
|
|
262
262
|
// src/feature-link/feature-link.tsx
|
|
@@ -296,7 +296,7 @@ var FeatureLink = (props) => {
|
|
|
296
296
|
hasCategory && /* @__PURE__ */ jsx4(
|
|
297
297
|
"p",
|
|
298
298
|
{
|
|
299
|
-
className: cn8("gridui-u-type-eyebrow gridui-u-text-muted", featureCategoryStyles()),
|
|
299
|
+
className: cn8("gridui-u-feature--type-eyebrow gridui-u-feature--text-muted", featureCategoryStyles()),
|
|
300
300
|
children: category
|
|
301
301
|
}
|
|
302
302
|
),
|
|
@@ -325,11 +325,93 @@ var FeatureLink = (props) => {
|
|
|
325
325
|
}
|
|
326
326
|
);
|
|
327
327
|
};
|
|
328
|
+
|
|
329
|
+
// src/feature-tile/style.ts
|
|
330
|
+
import { cn as cn9 } from "@gridui/style-utils";
|
|
331
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
332
|
+
var featureTileStyles = cva5(cn9("gridui-u-feature--relative gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--h-full gridui-u-feature--flex-col gridui-u-feature--bg-surface gridui-u-feature--text-foreground gridui-u-feature--no-underline gridui-u-feature--wrap-anywhere"));
|
|
333
|
+
var featureTilePreviewStyles = cva5(cn9("gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-1 gridui-u-feature--items-center gridui-u-feature--justify-center gridui-u-feature--overflow-hidden gridui-u-feature--bg-background gridui-u-feature--p-gridui-24 gridui-u-feature--md:p-gridui-32"));
|
|
334
|
+
var featureTileContentStyles = cva5(cn9("gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-col gridui-u-feature--items-start gridui-u-feature--gap-gridui-16 gridui-u-feature--p-gridui-24 gridui-u-feature--md:p-gridui-32"));
|
|
335
|
+
|
|
336
|
+
// src/feature-tile/feature-tile.tsx
|
|
337
|
+
import { cn as cn10 } from "@gridui/style-utils";
|
|
338
|
+
import { ArrowUpRight as ArrowUpRight2 } from "lucide-react";
|
|
339
|
+
import { Children as Children3, useId as useId2 } from "react";
|
|
340
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
341
|
+
var FeatureTile = (props) => {
|
|
342
|
+
const { title, description, preview, action, className, ...restProps } = props;
|
|
343
|
+
const id = useId2();
|
|
344
|
+
const hasContent = (content) => {
|
|
345
|
+
return Children3.toArray(content).some((child) => {
|
|
346
|
+
return child !== "";
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
return /* @__PURE__ */ jsxs5(
|
|
350
|
+
"a",
|
|
351
|
+
{
|
|
352
|
+
"aria-labelledby": restProps["aria-label"] ? void 0 : `${id}-title`,
|
|
353
|
+
"aria-describedby": hasContent(description) ? `${id}-description` : void 0,
|
|
354
|
+
...restProps,
|
|
355
|
+
className: cn10(featureTileStyles(), className),
|
|
356
|
+
children: [
|
|
357
|
+
hasContent(preview) && /* @__PURE__ */ jsx5(
|
|
358
|
+
"div",
|
|
359
|
+
{
|
|
360
|
+
"aria-hidden": "true",
|
|
361
|
+
className: cn10(featureTilePreviewStyles()),
|
|
362
|
+
children: preview
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ jsxs5(
|
|
366
|
+
"div",
|
|
367
|
+
{
|
|
368
|
+
className: cn10(featureTileContentStyles()),
|
|
369
|
+
children: [
|
|
370
|
+
/* @__PURE__ */ jsx5(
|
|
371
|
+
"h2",
|
|
372
|
+
{
|
|
373
|
+
id: `${id}-title`,
|
|
374
|
+
className: "gridui-u-feature--type-heading",
|
|
375
|
+
children: title
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
hasContent(description) && /* @__PURE__ */ jsx5(
|
|
379
|
+
"p",
|
|
380
|
+
{
|
|
381
|
+
id: `${id}-description`,
|
|
382
|
+
className: "gridui-copy",
|
|
383
|
+
children: description
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
hasContent(action) && /* @__PURE__ */ jsxs5(
|
|
387
|
+
"span",
|
|
388
|
+
{
|
|
389
|
+
className: "gridui-u-feature--inline-flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-8 gridui-u-feature--text-link gridui-u-feature--type-ui",
|
|
390
|
+
children: [
|
|
391
|
+
action,
|
|
392
|
+
/* @__PURE__ */ jsx5(
|
|
393
|
+
ArrowUpRight2,
|
|
394
|
+
{
|
|
395
|
+
"aria-hidden": "true",
|
|
396
|
+
size: 18
|
|
397
|
+
}
|
|
398
|
+
)
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
)
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
)
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
);
|
|
408
|
+
};
|
|
328
409
|
export {
|
|
329
410
|
FeatureAction,
|
|
330
411
|
FeatureBanner,
|
|
331
412
|
FeatureDomain,
|
|
332
413
|
FeatureIdentity,
|
|
333
|
-
FeatureLink
|
|
414
|
+
FeatureLink,
|
|
415
|
+
FeatureTile
|
|
334
416
|
};
|
|
335
417
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/feature-action/style.ts", "../src/feature-action/feature-action.tsx", "../src/feature-banner/style.ts", "../src/feature-banner/feature-banner.tsx", "../src/feature-domain/style.ts", "../src/feature-domain/feature-domain.tsx", "../src/feature-identity/feature-identity.tsx", "../src/feature-link/style.ts", "../src/feature-link/feature-link.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureAction\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureVisitStyles = cva(cn(\n \"gridui-feature-visit\",\n \"gridui-u-inline-flex gridui-u-items-center gridui-u-gap-gridui-8\",\n \"gridui-u-[&_svg]:w-gridui-16 gridui-u-[&_svg]:h-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureAction\n * @description Feature Action\n */\n\nimport { featureVisitStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode } from \"react\";\n\nexport type FeatureActionProps = ComponentPropsWithRef<\"span\"> & {\n readonly icon: ReactNode;\n};\n\nexport const FeatureAction: FC<FeatureActionProps> = (props: FeatureActionProps) => {\n const {\n icon,\n children,\n className,\n ...restProps\n } = props;\n return (<span\n {...restProps}\n className={cn(featureVisitStyles(), className)}\n >\n {children}\n {icon}\n </span>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureBanner\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureBannerStyles = cva(cn(\n \"gridui-feature-banner\",\n \"gridui-u-relative gridui-u-isolate gridui-u-grid gridui-u-overflow-hidden gridui-u-text-foreground gridui-u-bg-surface gridui-u-no-underline\",\n \"gridui-u-min-[48rem]:items-center\",\n), {\n variants: {\n mobileLayout: {\n banner: \"gridui-u-[--gridui-banner-artwork-height:10.25rem] gridui-u-[--gridui-banner-fade-start:5rem]\",\n shallow: \"gridui-u-[--gridui-banner-artwork-height:5.5rem] gridui-u-[--gridui-banner-fade-start:2.5rem]\",\n compact: \"gridui-feature-banner-compact gridui-u-max-[48rem]:p-gridui-24 gridui-u-max-[48rem]:gap-gridui-16\",\n },\n hasArtwork: {\n true: \"gridui-u-min-[48rem]:min-h-68\",\n false: \"gridui-feature-banner-without-artwork\",\n },\n },\n compoundVariants: [\n {\n mobileLayout: \"compact\",\n hasArtwork: true,\n className: \"gridui-u-max-[48rem]:grid-cols-[80px_minmax(0,1fr)]\",\n },\n ],\n});\n\nexport const featureBannerArtworkStyles = cva(cn(\n \"gridui-feature-banner-artwork\",\n \"gridui-u-object-cover gridui-u-object-center\",\n \"gridui-u-transition-transform gridui-u-duration-240 gridui-u-ease-[ease] gridui-u-motion-reduce:transition-none gridui-u-motion-reduce:duration-0\",\n));\n\nexport const featureBannerContentStyles = cva(cn(\n \"gridui-feature-banner-content gridui-u-box-border gridui-u-flex gridui-u-min-w-0 gridui-u-flex-col gridui-u-items-start gridui-u-gap-gridui-16\",\n \"gridui-u-min-[48rem]:py-gridui-32 gridui-u-min-[48rem]:px-gridui-48\",\n), {\n variants: {\n mobileLayout: {\n banner: \"gridui-u-max-[48rem]:px-gridui-24 gridui-u-max-[48rem]:pb-gridui-32\",\n shallow: \"gridui-u-max-[48rem]:px-gridui-24 gridui-u-max-[48rem]:pb-gridui-24\",\n compact: \"\",\n },\n hasArtwork: {\n true: \"\",\n false: \"\",\n },\n },\n compoundVariants: [\n {\n mobileLayout: \"banner\",\n hasArtwork: true,\n className: \"gridui-u-max-[48rem]:pt-44\",\n },\n {\n mobileLayout: \"shallow\",\n hasArtwork: true,\n className: \"gridui-u-max-[48rem]:pt-25\",\n },\n {\n mobileLayout: [\n \"banner\",\n \"shallow\",\n ],\n hasArtwork: false,\n className: \"gridui-u-max-[48rem]:pt-gridui-24\",\n },\n ],\n});\n\nexport const featureBannerActionStyles = cva(cn(\n \"gridui-feature-banner-action\",\n \"gridui-u-inline-flex gridui-u-min-h-11 gridui-u-items-center gridui-u-gap-gridui-8 gridui-u-mt-gridui-8 gridui-u-text-link gridui-u-type-ui\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureBanner\n * @description Feature Banner\n */\n\nimport { featureBannerActionStyles, featureBannerArtworkStyles, featureBannerContentStyles, featureBannerStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { ArrowUpRight } from \"lucide-react\";\nimport { Children, type ComponentPropsWithRef, type FC, type ReactNode, useId } from \"react\";\n\nexport type FeatureBannerProps = Omit<ComponentPropsWithRef<\"a\">, \"children\" | \"title\"> & {\n readonly title: ReactNode;\n readonly description?: ReactNode;\n readonly artwork?: string | undefined;\n readonly action?: ReactNode;\n readonly mobileLayout?: \"banner\" | \"shallow\" | \"compact\";\n};\n\nexport const FeatureBanner: FC<FeatureBannerProps> = (props: FeatureBannerProps) => {\n const { title, description, artwork, action, mobileLayout = \"banner\", className, ...restProps } = props;\n const id = useId();\n const hasDescription = Children.toArray(description).some(child => {\n return child !== \"\";\n });\n const hasAction = Children.toArray(action).some(child => {\n return child !== \"\";\n });\n return (<a\n aria-labelledby={`${id}-title`}\n aria-describedby={hasDescription ? `${id}-intro` : undefined}\n {...restProps}\n className={cn(featureBannerStyles({\n mobileLayout,\n hasArtwork: Boolean(artwork),\n }), className)}\n >\n {artwork && (<img\n className={cn(featureBannerArtworkStyles())}\n src={artwork}\n alt=\"\"\n width={1920}\n height={620}\n loading=\"lazy\"\n decoding=\"async\"\n referrerPolicy=\"no-referrer\"\n />)}\n <div\n className={cn(featureBannerContentStyles({\n mobileLayout,\n hasArtwork: Boolean(artwork),\n }))}\n >\n <h2\n id={`${id}-title`}\n className=\"gridui-u-type-heading\"\n >\n {title}\n </h2>\n {hasDescription && (<p\n className=\"gridui-copy\"\n id={`${id}-intro`}\n >\n {description}\n </p>)}\n {hasAction && (<span\n className={cn(featureBannerActionStyles())}\n >\n {action}\n <ArrowUpRight\n aria-hidden=\"true\"\n size={18}\n />\n </span>)}\n </div>\n </a>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureDomain\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureDomainStyles = cva(cn(\n \"gridui-feature-domain\",\n \"gridui-u-type-code\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureDomain\n * @description Feature Domain\n */\n\nimport { featureDomainStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC } from \"react\";\n\nexport type FeatureDomainProps = ComponentPropsWithRef<\"span\">;\n\nexport const FeatureDomain: FC<FeatureDomainProps> = (props: FeatureDomainProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(featureDomainStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureIdentity\n * @description Feature Identity\n */\n\nimport { type FC, type ReactNode } from \"react\";\n\nexport type FeatureIdentityProps = {\n readonly logo: ReactNode;\n readonly children: ReactNode;\n};\n\nexport const FeatureIdentity: FC<FeatureIdentityProps> = (props: FeatureIdentityProps) => {\n const { logo, children } = props;\n return (<>\n {logo}\n <h2\n className=\"gridui-wordmark\"\n >\n {children}\n </h2>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureLinkStyles = cva(cn(\n \"gridui-feature-link\",\n \"gridui-u-flex gridui-u-h-full gridui-u-flex-col gridui-u-p-gridui-24 gridui-u-text-foreground gridui-u-bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] gridui-u-no-underline gridui-u-[transition:background-color_120ms_ease]\",\n \"gridui-u-min-[40rem]:py-gridui-32 gridui-u-min-[40rem]:px-gridui-48\",\n \"gridui-u-motion-reduce:transition-none\",\n));\n\nexport const featureCategoryStyles = cva(cn(\n \"gridui-feature-category\",\n \"gridui-u-mb-gridui-24\",\n));\n\nexport const featureIdentityStyles = cva(cn(\n \"gridui-feature-identity\",\n \"gridui-u-flex gridui-u-items-center gridui-u-gap-gridui-16\",\n \"gridui-u-[&_>_svg]:w-gridui-48 gridui-u-[&_>_svg]:h-gridui-48 gridui-u-[&_>_svg]:shrink-0\",\n \"gridui-u-[&_h2]:type-heading\",\n \"gridui-u-min-[40rem]:[&_>_svg]:w-gridui-64 gridui-u-min-[40rem]:[&_>_svg]:h-gridui-64\",\n));\n\nexport const featureDescriptionStyles = cva(cn(\n \"gridui-feature-description\",\n \"gridui-u-flex-1 gridui-u-mt-gridui-24 gridui-u-text-muted\",\n));\n\nexport const featureDestinationStyles = cva(cn(\n \"gridui-feature-destination\",\n \"gridui-u-flex gridui-u-flex-wrap gridui-u-items-center gridui-u-justify-between gridui-u-gap-gridui-16 gridui-u-mt-gridui-32 gridui-u-pt-gridui-16 gridui-u-border-t gridui-u-border-solid gridui-u-border-[color-mix(in_srgb,var(--gridui-feature-accent)_18%,var(--gridui-background))] gridui-u-text-(--gridui-feature-accent) gridui-u-type-caption\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureLink\n * @description Feature Link\n */\n\nimport { featureCategoryStyles, featureDescriptionStyles, featureDestinationStyles, featureIdentityStyles, featureLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { Children, type ComponentPropsWithRef, type CSSProperties, type FC, type ReactNode } from \"react\";\n\ntype PresentationStyle = CSSProperties & {\n [key: `--gridui-${string}`]: string | number;\n};\n\nexport type FeatureLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly seed: string;\n readonly category?: ReactNode;\n readonly identity: ReactNode;\n readonly description?: ReactNode;\n readonly destination?: ReactNode;\n};\n\nexport const FeatureLink: FC<FeatureLinkProps> = (props: FeatureLinkProps) => {\n const {\n seed,\n category,\n identity,\n description,\n destination,\n className,\n style,\n ...restProps\n } = props;\n const hasCategory = Children.toArray(category).some(child => {\n return child !== \"\";\n });\n const hasDescription = Children.toArray(description).some(child => {\n return child !== \"\";\n });\n const hasDestination = Children.toArray(destination).some(child => {\n return child !== \"\";\n });\n return (<a\n {...restProps}\n className={cn(featureLinkStyles(), className)}\n style={{\n \"--gridui-feature-seed\": seed,\n ...style,\n } as PresentationStyle}\n >\n {hasCategory && (<p\n className={cn(\"gridui-u-type-eyebrow gridui-u-text-muted\", featureCategoryStyles())}\n >\n {category}\n </p>)}\n <div\n className={cn(featureIdentityStyles())}\n >\n {identity}\n </div>\n {hasDescription && (<p\n className={cn(featureDescriptionStyles())}\n >\n {description}\n </p>)}\n {hasDestination && (<div\n className={cn(featureDestinationStyles())}\n >\n {destination}\n </div>)}\n </a>);\n};\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,qBAAqB,IAAI;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;ACND,SAAS,MAAAA,WAAU;AACnB,OAAoE;AAaxD;AAPL,IAAM,gBAAwC,CAAC,UAA8B;AAChF,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACP,IAAI;AACJ,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,mBAAmB,GAAG,SAAS;AAAA,MAE5C;AAAA;AAAA,QACA;AAAA;AAAA;AAAA,EACL;AACJ;;;ACtBA,SAAS,MAAAC,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,sBAAsBA,KAAID;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AACJ,GAAG;AAAA,EACC,UAAU;AAAA,IACN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,SAAS;AAAA,IACb;AAAA,IACA,YAAY;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,EACJ;AAAA,EACA,kBAAkB;AAAA,IACd;AAAA,MACI,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,WAAW;AAAA,IACf;AAAA,EACJ;AACJ,CAAC;AAEM,IAAM,6BAA6BC,KAAID;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,6BA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AAU;AAAA,EACrB,CAAC;AACD,SAAQ,gBAAAE;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWH,IAAG,kBAAkB,GAAG,SAAS;AAAA,MAC5C,OAAO;AAAA,QACH,yBAAyB;AAAA,QACzB,GAAG;AAAA,MACP;AAAA,MAEC;AAAA,uBAAgB,gBAAAE;AAAA,UAAC;AAAA;AAAA,YACd,WAAWF,IAAG,
|
|
6
|
-
"names": ["cn", "cn", "cva", "cn", "jsxs", "cn", "cva", "cn", "jsx", "jsx", "jsxs", "cn", "cva", "cn", "Children", "jsx", "jsxs"]
|
|
3
|
+
"sources": ["../src/feature-action/style.ts", "../src/feature-action/feature-action.tsx", "../src/feature-banner/style.ts", "../src/feature-banner/feature-banner.tsx", "../src/feature-domain/style.ts", "../src/feature-domain/feature-domain.tsx", "../src/feature-identity/feature-identity.tsx", "../src/feature-link/style.ts", "../src/feature-link/feature-link.tsx", "../src/feature-tile/style.ts", "../src/feature-tile/feature-tile.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureAction\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureVisitStyles = cva(cn(\n \"gridui-feature-visit\",\n \"gridui-u-feature--inline-flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-8\",\n \"gridui-u-feature--[&_svg]:w-gridui-16 gridui-u-feature--[&_svg]:h-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureAction\n * @description Feature Action\n */\n\nimport { featureVisitStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode } from \"react\";\n\nexport type FeatureActionProps = ComponentPropsWithRef<\"span\"> & {\n readonly icon: ReactNode;\n};\n\nexport const FeatureAction: FC<FeatureActionProps> = (props: FeatureActionProps) => {\n const {\n icon,\n children,\n className,\n ...restProps\n } = props;\n return (<span\n {...restProps}\n className={cn(featureVisitStyles(), className)}\n >\n {children}\n {icon}\n </span>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureBanner\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureBannerStyles = cva(cn(\n \"gridui-feature-banner\",\n \"gridui-u-feature--relative gridui-u-feature--isolate gridui-u-feature--grid gridui-u-feature--overflow-hidden gridui-u-feature--text-foreground gridui-u-feature--bg-surface gridui-u-feature--no-underline\",\n \"gridui-u-feature--min-[48rem]:items-center\",\n), {\n variants: {\n mobileLayout: {\n banner: \"gridui-u-feature--[--gridui-banner-artwork-height:10.25rem] gridui-u-feature--[--gridui-banner-fade-start:5rem]\",\n shallow: \"gridui-u-feature--[--gridui-banner-artwork-height:5.5rem] gridui-u-feature--[--gridui-banner-fade-start:2.5rem]\",\n compact: \"gridui-feature-banner-compact gridui-u-feature--max-[48rem]:p-gridui-24 gridui-u-feature--max-[48rem]:gap-gridui-16\",\n },\n hasArtwork: {\n true: \"gridui-u-feature--min-[48rem]:min-h-68\",\n false: \"gridui-feature-banner-without-artwork\",\n },\n },\n compoundVariants: [\n {\n mobileLayout: \"compact\",\n hasArtwork: true,\n className: \"gridui-u-feature--max-[48rem]:grid-cols-[80px_minmax(0,1fr)]\",\n },\n ],\n});\n\nexport const featureBannerArtworkStyles = cva(cn(\n \"gridui-feature-banner-artwork\",\n \"gridui-u-feature--object-cover gridui-u-feature--object-center\",\n \"gridui-u-feature--transition-transform gridui-u-feature--duration-240 gridui-u-feature--ease-[ease] gridui-u-feature--motion-reduce:transition-none gridui-u-feature--motion-reduce:duration-0\",\n));\n\nexport const featureBannerContentStyles = cva(cn(\n \"gridui-feature-banner-content gridui-u-feature--box-border gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-col gridui-u-feature--items-start gridui-u-feature--gap-gridui-16\",\n \"gridui-u-feature--min-[48rem]:py-gridui-32 gridui-u-feature--min-[48rem]:px-gridui-48\",\n), {\n variants: {\n mobileLayout: {\n banner: \"gridui-u-feature--max-[48rem]:px-gridui-24 gridui-u-feature--max-[48rem]:pb-gridui-32\",\n shallow: \"gridui-u-feature--max-[48rem]:px-gridui-24 gridui-u-feature--max-[48rem]:pb-gridui-24\",\n compact: \"\",\n },\n hasArtwork: {\n true: \"\",\n false: \"\",\n },\n },\n compoundVariants: [\n {\n mobileLayout: \"banner\",\n hasArtwork: true,\n className: \"gridui-u-feature--max-[48rem]:pt-44\",\n },\n {\n mobileLayout: \"shallow\",\n hasArtwork: true,\n className: \"gridui-u-feature--max-[48rem]:pt-25\",\n },\n {\n mobileLayout: [\n \"banner\",\n \"shallow\",\n ],\n hasArtwork: false,\n className: \"gridui-u-feature--max-[48rem]:pt-gridui-24\",\n },\n ],\n});\n\nexport const featureBannerActionStyles = cva(cn(\n \"gridui-feature-banner-action\",\n \"gridui-u-feature--inline-flex gridui-u-feature--min-h-11 gridui-u-feature--items-center gridui-u-feature--gap-gridui-8 gridui-u-feature--mt-gridui-8 gridui-u-feature--text-link gridui-u-feature--type-ui\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureBanner\n * @description Feature Banner\n */\n\nimport { featureBannerActionStyles, featureBannerArtworkStyles, featureBannerContentStyles, featureBannerStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { ArrowUpRight } from \"lucide-react\";\nimport { Children, type ComponentPropsWithRef, type FC, type ReactNode, useId } from \"react\";\n\nexport type FeatureBannerProps = Omit<ComponentPropsWithRef<\"a\">, \"children\" | \"title\"> & {\n readonly title: ReactNode;\n readonly description?: ReactNode;\n readonly artwork?: string | undefined;\n readonly action?: ReactNode;\n readonly mobileLayout?: \"banner\" | \"shallow\" | \"compact\";\n};\n\nexport const FeatureBanner: FC<FeatureBannerProps> = (props: FeatureBannerProps) => {\n const { title, description, artwork, action, mobileLayout = \"banner\", className, ...restProps } = props;\n const id = useId();\n const hasDescription = Children.toArray(description).some(child => {\n return child !== \"\";\n });\n const hasAction = Children.toArray(action).some(child => {\n return child !== \"\";\n });\n return (<a\n aria-labelledby={`${id}-title`}\n aria-describedby={hasDescription ? `${id}-intro` : undefined}\n {...restProps}\n className={cn(featureBannerStyles({\n mobileLayout,\n hasArtwork: Boolean(artwork),\n }), className)}\n >\n {artwork && (<img\n className={cn(featureBannerArtworkStyles())}\n src={artwork}\n alt=\"\"\n width={1920}\n height={620}\n loading=\"lazy\"\n decoding=\"async\"\n referrerPolicy=\"no-referrer\"\n />)}\n <div\n className={cn(featureBannerContentStyles({\n mobileLayout,\n hasArtwork: Boolean(artwork),\n }))}\n >\n <h2\n id={`${id}-title`}\n className=\"gridui-u-feature--type-heading\"\n >\n {title}\n </h2>\n {hasDescription && (<p\n className=\"gridui-copy\"\n id={`${id}-intro`}\n >\n {description}\n </p>)}\n {hasAction && (<span\n className={cn(featureBannerActionStyles())}\n >\n {action}\n <ArrowUpRight\n aria-hidden=\"true\"\n size={18}\n />\n </span>)}\n </div>\n </a>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureDomain\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureDomainStyles = cva(cn(\n \"gridui-feature-domain\",\n \"gridui-u-feature--type-code\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureDomain\n * @description Feature Domain\n */\n\nimport { featureDomainStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC } from \"react\";\n\nexport type FeatureDomainProps = ComponentPropsWithRef<\"span\">;\n\nexport const FeatureDomain: FC<FeatureDomainProps> = (props: FeatureDomainProps) => {\n const { className, ...restProps } = props;\n return (<span\n {...restProps}\n className={cn(featureDomainStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureIdentity\n * @description Feature Identity\n */\n\nimport { type FC, type ReactNode } from \"react\";\n\nexport type FeatureIdentityProps = {\n readonly logo: ReactNode;\n readonly children: ReactNode;\n};\n\nexport const FeatureIdentity: FC<FeatureIdentityProps> = (props: FeatureIdentityProps) => {\n const { logo, children } = props;\n return (<>\n {logo}\n <h2\n className=\"gridui-wordmark\"\n >\n {children}\n </h2>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureLinkStyles = cva(cn(\n \"gridui-feature-link\",\n \"gridui-u-feature--flex gridui-u-feature--h-full gridui-u-feature--flex-col gridui-u-feature--p-gridui-24 gridui-u-feature--text-foreground gridui-u-feature--bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] gridui-u-feature--no-underline gridui-u-feature--[transition:background-color_120ms_ease]\",\n \"gridui-u-feature--min-[40rem]:py-gridui-32 gridui-u-feature--min-[40rem]:px-gridui-48\",\n \"gridui-u-feature--motion-reduce:transition-none\",\n));\n\nexport const featureCategoryStyles = cva(cn(\n \"gridui-feature-category\",\n \"gridui-u-feature--mb-gridui-24\",\n));\n\nexport const featureIdentityStyles = cva(cn(\n \"gridui-feature-identity\",\n \"gridui-u-feature--flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-16\",\n \"gridui-u-feature--[&_>_svg]:w-gridui-48 gridui-u-feature--[&_>_svg]:h-gridui-48 gridui-u-feature--[&_>_svg]:shrink-0\",\n \"gridui-u-feature--[&_h2]:type-heading\",\n \"gridui-u-feature--min-[40rem]:[&_>_svg]:w-gridui-64 gridui-u-feature--min-[40rem]:[&_>_svg]:h-gridui-64\",\n));\n\nexport const featureDescriptionStyles = cva(cn(\n \"gridui-feature-description\",\n \"gridui-u-feature--flex-1 gridui-u-feature--mt-gridui-24 gridui-u-feature--text-muted\",\n));\n\nexport const featureDestinationStyles = cva(cn(\n \"gridui-feature-destination\",\n \"gridui-u-feature--flex gridui-u-feature--flex-wrap gridui-u-feature--items-center gridui-u-feature--justify-between gridui-u-feature--gap-gridui-16 gridui-u-feature--mt-gridui-32 gridui-u-feature--pt-gridui-16 gridui-u-feature--border-t gridui-u-feature--border-solid gridui-u-feature--border-border gridui-u-feature--text-(--gridui-feature-accent) gridui-u-feature--type-caption\",\n));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureLink\n * @description Feature Link\n */\n\nimport { featureCategoryStyles, featureDescriptionStyles, featureDestinationStyles, featureIdentityStyles, featureLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { Children, type ComponentPropsWithRef, type CSSProperties, type FC, type ReactNode } from \"react\";\n\ntype PresentationStyle = CSSProperties & {\n [key: `--gridui-${string}`]: string | number;\n};\n\nexport type FeatureLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly seed: string;\n readonly category?: ReactNode;\n readonly identity: ReactNode;\n readonly description?: ReactNode;\n readonly destination?: ReactNode;\n};\n\nexport const FeatureLink: FC<FeatureLinkProps> = (props: FeatureLinkProps) => {\n const {\n seed,\n category,\n identity,\n description,\n destination,\n className,\n style,\n ...restProps\n } = props;\n const hasCategory = Children.toArray(category).some(child => {\n return child !== \"\";\n });\n const hasDescription = Children.toArray(description).some(child => {\n return child !== \"\";\n });\n const hasDestination = Children.toArray(destination).some(child => {\n return child !== \"\";\n });\n return (<a\n {...restProps}\n className={cn(featureLinkStyles(), className)}\n style={{\n \"--gridui-feature-seed\": seed,\n ...style,\n } as PresentationStyle}\n >\n {hasCategory && (<p\n className={cn(\"gridui-u-feature--type-eyebrow gridui-u-feature--text-muted\", featureCategoryStyles())}\n >\n {category}\n </p>)}\n <div\n className={cn(featureIdentityStyles())}\n >\n {identity}\n </div>\n {hasDescription && (<p\n className={cn(featureDescriptionStyles())}\n >\n {description}\n </p>)}\n {hasDestination && (<div\n className={cn(featureDestinationStyles())}\n >\n {destination}\n </div>)}\n </a>);\n};\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureTile\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const featureTileStyles = cva(cn(\"gridui-u-feature--relative gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--h-full gridui-u-feature--flex-col gridui-u-feature--bg-surface gridui-u-feature--text-foreground gridui-u-feature--no-underline gridui-u-feature--wrap-anywhere\"));\n\nexport const featureTilePreviewStyles = cva(cn(\"gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-1 gridui-u-feature--items-center gridui-u-feature--justify-center gridui-u-feature--overflow-hidden gridui-u-feature--bg-background gridui-u-feature--p-gridui-24 gridui-u-feature--md:p-gridui-32\"));\n\nexport const featureTileContentStyles = cva(cn(\"gridui-u-feature--flex gridui-u-feature--min-w-0 gridui-u-feature--flex-col gridui-u-feature--items-start gridui-u-feature--gap-gridui-16 gridui-u-feature--p-gridui-24 gridui-u-feature--md:p-gridui-32\"));\n", "/**\n * @author WMXPY\n * @package Feature\n * @namespace FeatureTile\n * @description Feature Tile\n */\n\nimport { featureTileContentStyles, featureTilePreviewStyles, featureTileStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport { ArrowUpRight } from \"lucide-react\";\nimport { Children, type ComponentPropsWithRef, type FC, type ReactNode, useId } from \"react\";\n\nexport type FeatureTileProps = Omit<ComponentPropsWithRef<\"a\">, \"children\" | \"title\" | \"href\"> & {\n readonly href: string;\n readonly title: ReactNode;\n readonly description?: ReactNode;\n readonly preview?: ReactNode;\n readonly action?: ReactNode;\n};\n\nexport const FeatureTile: FC<FeatureTileProps> = (props: FeatureTileProps) => {\n const { title, description, preview, action, className, ...restProps } = props;\n const id = useId();\n const hasContent = (content: ReactNode): boolean => {\n return Children.toArray(content).some((child) => {\n return child !== \"\";\n });\n };\n return (<a\n aria-labelledby={restProps[\"aria-label\"] ? undefined : `${id}-title`}\n aria-describedby={hasContent(description) ? `${id}-description` : undefined}\n {...restProps}\n className={cn(featureTileStyles(), className)}\n >\n {hasContent(preview) && (<div\n aria-hidden=\"true\"\n className={cn(featureTilePreviewStyles())}\n >\n {preview}\n </div>)}\n <div\n className={cn(featureTileContentStyles())}\n >\n <h2\n id={`${id}-title`}\n className=\"gridui-u-feature--type-heading\"\n >\n {title}\n </h2>\n {hasContent(description) && (<p\n id={`${id}-description`}\n className=\"gridui-copy\"\n >\n {description}\n </p>)}\n {hasContent(action) && (<span\n className=\"gridui-u-feature--inline-flex gridui-u-feature--items-center gridui-u-feature--gap-gridui-8 gridui-u-feature--text-link gridui-u-feature--type-ui\"\n >\n {action}\n <ArrowUpRight\n aria-hidden=\"true\"\n size={18}\n />\n </span>)}\n </div>\n </a>);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,qBAAqB,IAAI;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;ACND,SAAS,MAAAA,WAAU;AACnB,OAAoE;AAaxD;AAPL,IAAM,gBAAwC,CAAC,UAA8B;AAChF,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACP,IAAI;AACJ,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,mBAAmB,GAAG,SAAS;AAAA,MAE5C;AAAA;AAAA,QACA;AAAA;AAAA;AAAA,EACL;AACJ;;;ACtBA,SAAS,MAAAC,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,sBAAsBA,KAAID;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AACJ,GAAG;AAAA,EACC,UAAU;AAAA,IACN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,SAAS;AAAA,IACb;AAAA,IACA,YAAY;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,EACJ;AAAA,EACA,kBAAkB;AAAA,IACd;AAAA,MACI,cAAc;AAAA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"jsxs", "cn", "cva", "cn", "jsx", "jsx", "jsxs", "cn", "cva", "cn", "Children", "jsx", "jsxs", "cn", "cva", "cn", "ArrowUpRight", "Children", "useId", "jsx", "jsxs"]
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -9,257 +9,266 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
@layer utilities {
|
|
12
|
-
.gridui-u-relative {
|
|
12
|
+
.gridui-u-feature--relative {
|
|
13
13
|
position: relative;
|
|
14
14
|
}
|
|
15
|
-
.gridui-u-isolate {
|
|
15
|
+
.gridui-u-feature--isolate {
|
|
16
16
|
isolation: isolate;
|
|
17
17
|
}
|
|
18
|
-
.gridui-u-mt-gridui-8 {
|
|
18
|
+
.gridui-u-feature--mt-gridui-8 {
|
|
19
19
|
margin-top: var(--gridui-space-8);
|
|
20
20
|
}
|
|
21
|
-
.gridui-u-mt-gridui-24 {
|
|
21
|
+
.gridui-u-feature--mt-gridui-24 {
|
|
22
22
|
margin-top: var(--gridui-space-24);
|
|
23
23
|
}
|
|
24
|
-
.gridui-u-mt-gridui-32 {
|
|
24
|
+
.gridui-u-feature--mt-gridui-32 {
|
|
25
25
|
margin-top: var(--gridui-space-32);
|
|
26
26
|
}
|
|
27
|
-
.gridui-u-mb-gridui-24 {
|
|
27
|
+
.gridui-u-feature--mb-gridui-24 {
|
|
28
28
|
margin-bottom: var(--gridui-space-24);
|
|
29
29
|
}
|
|
30
|
-
.gridui-u-box-border {
|
|
30
|
+
.gridui-u-feature--box-border {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
}
|
|
33
|
-
.gridui-u-flex {
|
|
33
|
+
.gridui-u-feature--flex {
|
|
34
34
|
display: flex;
|
|
35
35
|
}
|
|
36
|
-
.gridui-u-grid {
|
|
36
|
+
.gridui-u-feature--grid {
|
|
37
37
|
display: grid;
|
|
38
38
|
}
|
|
39
|
-
.gridui-u-inline-flex {
|
|
39
|
+
.gridui-u-feature--inline-flex {
|
|
40
40
|
display: inline-flex;
|
|
41
41
|
}
|
|
42
|
-
.gridui-u-h-full {
|
|
42
|
+
.gridui-u-feature--h-full {
|
|
43
43
|
height: 100%;
|
|
44
44
|
}
|
|
45
|
-
.gridui-u-min-h-11 {
|
|
45
|
+
.gridui-u-feature--min-h-11 {
|
|
46
46
|
min-height: calc(var(--spacing) * 11);
|
|
47
47
|
}
|
|
48
|
-
.gridui-u-min-w-0 {
|
|
48
|
+
.gridui-u-feature--min-w-0 {
|
|
49
49
|
min-width: 0px;
|
|
50
50
|
}
|
|
51
|
-
.gridui-u-flex-1 {
|
|
51
|
+
.gridui-u-feature--flex-1 {
|
|
52
52
|
flex: 1;
|
|
53
53
|
}
|
|
54
|
-
.gridui-u-flex-col {
|
|
54
|
+
.gridui-u-feature--flex-col {
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
}
|
|
57
|
-
.gridui-u-flex-wrap {
|
|
57
|
+
.gridui-u-feature--flex-wrap {
|
|
58
58
|
flex-wrap: wrap;
|
|
59
59
|
}
|
|
60
|
-
.gridui-u-items-center {
|
|
60
|
+
.gridui-u-feature--items-center {
|
|
61
61
|
align-items: center;
|
|
62
62
|
}
|
|
63
|
-
.gridui-u-items-start {
|
|
63
|
+
.gridui-u-feature--items-start {
|
|
64
64
|
align-items: flex-start;
|
|
65
65
|
}
|
|
66
|
-
.gridui-u-justify-between {
|
|
66
|
+
.gridui-u-feature--justify-between {
|
|
67
67
|
justify-content: space-between;
|
|
68
68
|
}
|
|
69
|
-
.gridui-u-
|
|
69
|
+
.gridui-u-feature--justify-center {
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
.gridui-u-feature--gap-gridui-8 {
|
|
70
73
|
gap: var(--gridui-space-8);
|
|
71
74
|
}
|
|
72
|
-
.gridui-u-gap-gridui-16 {
|
|
75
|
+
.gridui-u-feature--gap-gridui-16 {
|
|
73
76
|
gap: var(--gridui-space-16);
|
|
74
77
|
}
|
|
75
|
-
.gridui-u-overflow-hidden {
|
|
78
|
+
.gridui-u-feature--overflow-hidden {
|
|
76
79
|
overflow: hidden;
|
|
77
80
|
}
|
|
78
|
-
.gridui-u-border-t {
|
|
81
|
+
.gridui-u-feature--border-t {
|
|
79
82
|
border-top-style: var(--tw-border-style);
|
|
80
83
|
border-top-width: 1px;
|
|
81
84
|
}
|
|
82
|
-
.gridui-u-border-solid {
|
|
85
|
+
.gridui-u-feature--border-solid {
|
|
83
86
|
--tw-border-style: solid;
|
|
84
87
|
border-style: solid;
|
|
85
88
|
}
|
|
86
|
-
.gridui-u-
|
|
87
|
-
border-color: var(--gridui-
|
|
88
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
89
|
-
border-color: color-mix(in srgb,var(--gridui-feature-accent) 18%,var(--gridui-background));
|
|
90
|
-
}
|
|
89
|
+
.gridui-u-feature--border-border {
|
|
90
|
+
border-color: var(--gridui-border);
|
|
91
91
|
}
|
|
92
|
-
.gridui-u-bg-\[color-mix\(in_srgb\,var\(--gridui-feature-accent\)_3\%\,var\(--gridui-background\)\)\] {
|
|
92
|
+
.gridui-u-feature--bg-\[color-mix\(in_srgb\,var\(--gridui-feature-accent\)_3\%\,var\(--gridui-background\)\)\] {
|
|
93
93
|
background-color: var(--gridui-feature-accent);
|
|
94
94
|
@supports (color: color-mix(in lab, red, red)) {
|
|
95
95
|
background-color: color-mix(in srgb,var(--gridui-feature-accent) 3%,var(--gridui-background));
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
.gridui-u-bg-
|
|
98
|
+
.gridui-u-feature--bg-background {
|
|
99
|
+
background-color: var(--gridui-background);
|
|
100
|
+
}
|
|
101
|
+
.gridui-u-feature--bg-surface {
|
|
99
102
|
background-color: var(--gridui-surface);
|
|
100
103
|
}
|
|
101
|
-
.gridui-u-object-cover {
|
|
104
|
+
.gridui-u-feature--object-cover {
|
|
102
105
|
object-fit: cover;
|
|
103
106
|
}
|
|
104
|
-
.gridui-u-object-center {
|
|
107
|
+
.gridui-u-feature--object-center {
|
|
105
108
|
object-position: center;
|
|
106
109
|
}
|
|
107
|
-
.gridui-u-p-gridui-24 {
|
|
110
|
+
.gridui-u-feature--p-gridui-24 {
|
|
108
111
|
padding: var(--gridui-space-24);
|
|
109
112
|
}
|
|
110
|
-
.gridui-u-pt-gridui-16 {
|
|
113
|
+
.gridui-u-feature--pt-gridui-16 {
|
|
111
114
|
padding-top: var(--gridui-space-16);
|
|
112
115
|
}
|
|
113
|
-
.gridui-u-type-heading {
|
|
116
|
+
.gridui-u-feature--type-heading {
|
|
114
117
|
font: var(--gridui-type-heading);
|
|
115
118
|
letter-spacing: normal;
|
|
116
119
|
text-wrap: balance;
|
|
117
120
|
}
|
|
118
|
-
.gridui-u-type-caption {
|
|
121
|
+
.gridui-u-feature--type-caption {
|
|
119
122
|
font: var(--gridui-type-caption);
|
|
120
123
|
letter-spacing: normal;
|
|
121
124
|
}
|
|
122
|
-
.gridui-u-type-code {
|
|
125
|
+
.gridui-u-feature--type-code {
|
|
123
126
|
font: var(--gridui-type-code);
|
|
124
127
|
letter-spacing: normal;
|
|
125
128
|
}
|
|
126
|
-
.gridui-u-type-eyebrow {
|
|
129
|
+
.gridui-u-feature--type-eyebrow {
|
|
127
130
|
font: var(--gridui-type-eyebrow);
|
|
128
131
|
letter-spacing: 0.08em;
|
|
129
132
|
}
|
|
130
|
-
.gridui-u-type-ui {
|
|
133
|
+
.gridui-u-feature--type-ui {
|
|
131
134
|
font: var(--gridui-type-ui);
|
|
132
135
|
letter-spacing: normal;
|
|
133
136
|
}
|
|
134
|
-
.gridui-u-
|
|
137
|
+
.gridui-u-feature--wrap-anywhere {
|
|
138
|
+
overflow-wrap: anywhere;
|
|
139
|
+
}
|
|
140
|
+
.gridui-u-feature--text-\(--gridui-feature-accent\) {
|
|
135
141
|
color: var(--gridui-feature-accent);
|
|
136
142
|
}
|
|
137
|
-
.gridui-u-text-foreground {
|
|
143
|
+
.gridui-u-feature--text-foreground {
|
|
138
144
|
color: var(--gridui-foreground);
|
|
139
145
|
}
|
|
140
|
-
.gridui-u-text-link {
|
|
146
|
+
.gridui-u-feature--text-link {
|
|
141
147
|
color: var(--gridui-link);
|
|
142
148
|
}
|
|
143
|
-
.gridui-u-text-muted {
|
|
149
|
+
.gridui-u-feature--text-muted {
|
|
144
150
|
color: var(--gridui-muted);
|
|
145
151
|
}
|
|
146
|
-
.gridui-u-no-underline {
|
|
152
|
+
.gridui-u-feature--no-underline {
|
|
147
153
|
text-decoration-line: none;
|
|
148
154
|
}
|
|
149
|
-
.gridui-u-transition-transform {
|
|
155
|
+
.gridui-u-feature--transition-transform {
|
|
150
156
|
transition-property: transform, translate, scale, rotate;
|
|
151
157
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
152
158
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
153
159
|
}
|
|
154
|
-
.gridui-u-duration-240 {
|
|
160
|
+
.gridui-u-feature--duration-240 {
|
|
155
161
|
--tw-duration: 240ms;
|
|
156
162
|
transition-duration: 240ms;
|
|
157
163
|
}
|
|
158
|
-
.gridui-u-ease-\[ease\] {
|
|
164
|
+
.gridui-u-feature--ease-\[ease\] {
|
|
159
165
|
--tw-ease: ease;
|
|
160
166
|
transition-timing-function: ease;
|
|
161
167
|
}
|
|
162
|
-
.gridui-u
|
|
168
|
+
.gridui-u-feature--\[--gridui-banner-artwork-height\:5\.5rem\] {
|
|
163
169
|
--gridui-banner-artwork-height: 5.5rem;
|
|
164
170
|
}
|
|
165
|
-
.gridui-u
|
|
171
|
+
.gridui-u-feature--\[--gridui-banner-artwork-height\:10\.25rem\] {
|
|
166
172
|
--gridui-banner-artwork-height: 10.25rem;
|
|
167
173
|
}
|
|
168
|
-
.gridui-u
|
|
174
|
+
.gridui-u-feature--\[--gridui-banner-fade-start\:2\.5rem\] {
|
|
169
175
|
--gridui-banner-fade-start: 2.5rem;
|
|
170
176
|
}
|
|
171
|
-
.gridui-u
|
|
177
|
+
.gridui-u-feature--\[--gridui-banner-fade-start\:5rem\] {
|
|
172
178
|
--gridui-banner-fade-start: 5rem;
|
|
173
179
|
}
|
|
174
|
-
.gridui-u
|
|
180
|
+
.gridui-u-feature--\[transition\:background-color_120ms_ease\] {
|
|
175
181
|
transition: background-color 120ms ease;
|
|
176
182
|
}
|
|
177
183
|
@media (prefers-reduced-motion: reduce) {
|
|
178
|
-
.gridui-u-motion-reduce\:transition-none {
|
|
184
|
+
.gridui-u-feature--motion-reduce\:transition-none {
|
|
179
185
|
transition-property: none;
|
|
180
186
|
}
|
|
181
|
-
.gridui-u-motion-reduce\:duration-0 {
|
|
187
|
+
.gridui-u-feature--motion-reduce\:duration-0 {
|
|
182
188
|
--tw-duration: 0ms;
|
|
183
189
|
transition-duration: 0ms;
|
|
184
190
|
}
|
|
185
191
|
}
|
|
186
192
|
@media (width < 48rem) {
|
|
187
|
-
.gridui-u-max-\[48rem\]\:grid-cols-\[80px_minmax\(0\,1fr\)\] {
|
|
193
|
+
.gridui-u-feature--max-\[48rem\]\:grid-cols-\[80px_minmax\(0\,1fr\)\] {
|
|
188
194
|
grid-template-columns: 80px minmax(0,1fr);
|
|
189
195
|
}
|
|
190
|
-
.gridui-u-max-\[48rem\]\:gap-gridui-16 {
|
|
196
|
+
.gridui-u-feature--max-\[48rem\]\:gap-gridui-16 {
|
|
191
197
|
gap: var(--gridui-space-16);
|
|
192
198
|
}
|
|
193
|
-
.gridui-u-max-\[48rem\]\:p-gridui-24 {
|
|
199
|
+
.gridui-u-feature--max-\[48rem\]\:p-gridui-24 {
|
|
194
200
|
padding: var(--gridui-space-24);
|
|
195
201
|
}
|
|
196
|
-
.gridui-u-max-\[48rem\]\:px-gridui-24 {
|
|
202
|
+
.gridui-u-feature--max-\[48rem\]\:px-gridui-24 {
|
|
197
203
|
padding-inline: var(--gridui-space-24);
|
|
198
204
|
}
|
|
199
|
-
.gridui-u-max-\[48rem\]\:pt-25 {
|
|
205
|
+
.gridui-u-feature--max-\[48rem\]\:pt-25 {
|
|
200
206
|
padding-top: calc(var(--spacing) * 25);
|
|
201
207
|
}
|
|
202
|
-
.gridui-u-max-\[48rem\]\:pt-44 {
|
|
208
|
+
.gridui-u-feature--max-\[48rem\]\:pt-44 {
|
|
203
209
|
padding-top: calc(var(--spacing) * 44);
|
|
204
210
|
}
|
|
205
|
-
.gridui-u-max-\[48rem\]\:pt-gridui-24 {
|
|
211
|
+
.gridui-u-feature--max-\[48rem\]\:pt-gridui-24 {
|
|
206
212
|
padding-top: var(--gridui-space-24);
|
|
207
213
|
}
|
|
208
|
-
.gridui-u-max-\[48rem\]\:pb-gridui-24 {
|
|
214
|
+
.gridui-u-feature--max-\[48rem\]\:pb-gridui-24 {
|
|
209
215
|
padding-bottom: var(--gridui-space-24);
|
|
210
216
|
}
|
|
211
|
-
.gridui-u-max-\[48rem\]\:pb-gridui-32 {
|
|
217
|
+
.gridui-u-feature--max-\[48rem\]\:pb-gridui-32 {
|
|
212
218
|
padding-bottom: var(--gridui-space-32);
|
|
213
219
|
}
|
|
214
220
|
}
|
|
215
221
|
@media (width >= 40rem) {
|
|
216
|
-
.gridui-u-min-\[40rem\]\:px-gridui-48 {
|
|
222
|
+
.gridui-u-feature--min-\[40rem\]\:px-gridui-48 {
|
|
217
223
|
padding-inline: var(--gridui-space-48);
|
|
218
224
|
}
|
|
219
|
-
.gridui-u-min-\[40rem\]\:py-gridui-32 {
|
|
225
|
+
.gridui-u-feature--min-\[40rem\]\:py-gridui-32 {
|
|
220
226
|
padding-block: var(--gridui-space-32);
|
|
221
227
|
}
|
|
222
228
|
}
|
|
223
229
|
@media (width >= 48rem) {
|
|
224
|
-
.gridui-u-min-\[48rem\]\:min-h-68 {
|
|
230
|
+
.gridui-u-feature--min-\[48rem\]\:min-h-68 {
|
|
225
231
|
min-height: calc(var(--spacing) * 68);
|
|
226
232
|
}
|
|
227
|
-
.gridui-u-min-\[48rem\]\:items-center {
|
|
233
|
+
.gridui-u-feature--min-\[48rem\]\:items-center {
|
|
228
234
|
align-items: center;
|
|
229
235
|
}
|
|
230
|
-
.gridui-u-
|
|
236
|
+
.gridui-u-feature--md\:p-gridui-32 {
|
|
237
|
+
padding: var(--gridui-space-32);
|
|
238
|
+
}
|
|
239
|
+
.gridui-u-feature--min-\[48rem\]\:px-gridui-48 {
|
|
231
240
|
padding-inline: var(--gridui-space-48);
|
|
232
241
|
}
|
|
233
|
-
.gridui-u-min-\[48rem\]\:py-gridui-32 {
|
|
242
|
+
.gridui-u-feature--min-\[48rem\]\:py-gridui-32 {
|
|
234
243
|
padding-block: var(--gridui-space-32);
|
|
235
244
|
}
|
|
236
245
|
}
|
|
237
|
-
.gridui-u
|
|
246
|
+
.gridui-u-feature--\[\&_\>_svg\]\:h-gridui-48 > svg {
|
|
238
247
|
height: var(--gridui-space-48);
|
|
239
248
|
}
|
|
240
|
-
.gridui-u
|
|
249
|
+
.gridui-u-feature--\[\&_\>_svg\]\:w-gridui-48 > svg {
|
|
241
250
|
width: var(--gridui-space-48);
|
|
242
251
|
}
|
|
243
|
-
.gridui-u
|
|
252
|
+
.gridui-u-feature--\[\&_\>_svg\]\:shrink-0 > svg {
|
|
244
253
|
flex-shrink: 0;
|
|
245
254
|
}
|
|
246
255
|
@media (width >= 40rem) {
|
|
247
|
-
.gridui-u-min-\[40rem\]\:\[\&_\>_svg\]\:h-gridui-64 > svg {
|
|
256
|
+
.gridui-u-feature--min-\[40rem\]\:\[\&_\>_svg\]\:h-gridui-64 > svg {
|
|
248
257
|
height: var(--gridui-space-64);
|
|
249
258
|
}
|
|
250
|
-
.gridui-u-min-\[40rem\]\:\[\&_\>_svg\]\:w-gridui-64 > svg {
|
|
259
|
+
.gridui-u-feature--min-\[40rem\]\:\[\&_\>_svg\]\:w-gridui-64 > svg {
|
|
251
260
|
width: var(--gridui-space-64);
|
|
252
261
|
}
|
|
253
262
|
}
|
|
254
|
-
.gridui-u
|
|
263
|
+
.gridui-u-feature--\[\&_h2\]\:type-heading h2 {
|
|
255
264
|
font: var(--gridui-type-heading);
|
|
256
265
|
letter-spacing: normal;
|
|
257
266
|
text-wrap: balance;
|
|
258
267
|
}
|
|
259
|
-
.gridui-u
|
|
268
|
+
.gridui-u-feature--\[\&_svg\]\:h-gridui-16 svg {
|
|
260
269
|
height: var(--gridui-space-16);
|
|
261
270
|
}
|
|
262
|
-
.gridui-u
|
|
271
|
+
.gridui-u-feature--\[\&_svg\]\:w-gridui-16 svg {
|
|
263
272
|
width: var(--gridui-space-16);
|
|
264
273
|
}
|
|
265
274
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/feature",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"category": "landing",
|
|
6
6
|
"description": "GridUI React feature",
|
|
7
7
|
"usage": "`FeatureBanner` is a single native destination link with a heading and optional decorative image, description, and trailing arrow action. Import it from `@gridui/feature` and load the package stylesheet. Supply `href`, `title`, and optional `description`, `action`, and `artwork` (image URL). Native anchor props and refs are forwarded; `className` is merged. The title receives a unique accessible relationship by default; a description relationship is added only when description content is present. Omitted, empty, or false descriptions and actions add no wrapper or spacing. Without artwork, content uses the full width without an image gap, overlay, or minimum image height. Content slots must not contain interactive elements inside the link.",
|
|
8
8
|
"documentation": [
|
|
9
|
-
"README.md"
|
|
9
|
+
"README.md",
|
|
10
|
+
"docs/reference/README.md",
|
|
11
|
+
"docs/reference/feature-action.md",
|
|
12
|
+
"docs/reference/feature-banner.md",
|
|
13
|
+
"docs/reference/feature-domain.md",
|
|
14
|
+
"docs/reference/feature-identity.md",
|
|
15
|
+
"docs/reference/feature-link.md",
|
|
16
|
+
"docs/reference/feature-tile.md"
|
|
10
17
|
],
|
|
11
18
|
"exports": [
|
|
12
19
|
{
|
|
@@ -58,6 +65,16 @@
|
|
|
58
65
|
"name": "FeatureLinkProps",
|
|
59
66
|
"kind": "type",
|
|
60
67
|
"importPath": "@gridui/feature"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "FeatureTile",
|
|
71
|
+
"kind": "component",
|
|
72
|
+
"importPath": "@gridui/feature"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "FeatureTileProps",
|
|
76
|
+
"kind": "type",
|
|
77
|
+
"importPath": "@gridui/feature"
|
|
61
78
|
}
|
|
62
79
|
],
|
|
63
80
|
"styles": [
|
|
@@ -65,7 +82,11 @@
|
|
|
65
82
|
"@gridui/feature/styles.css"
|
|
66
83
|
],
|
|
67
84
|
"examples": [
|
|
85
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/banners.mdx",
|
|
86
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/destination-tiles.mdx",
|
|
87
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/destinations.mdx",
|
|
68
88
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-banner.stories.tsx",
|
|
69
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-link.stories.tsx"
|
|
89
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-link.stories.tsx",
|
|
90
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-tile.stories.tsx"
|
|
70
91
|
]
|
|
71
92
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!-- Generated by pnpm docs:storybook. -->
|
|
2
|
+
# Component reference
|
|
3
|
+
|
|
4
|
+
- [FeatureAction](feature-action.md)
|
|
5
|
+
- [FeatureBanner](feature-banner.md)
|
|
6
|
+
- [FeatureDomain](feature-domain.md)
|
|
7
|
+
- [FeatureIdentity](feature-identity.md)
|
|
8
|
+
- [FeatureLink](feature-link.md)
|
|
9
|
+
- [FeatureTile](feature-tile.md)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureAction
|
|
3
|
+
|
|
4
|
+
Public FeatureAction component from @gridui/feature. See the package guide for its composition contract.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureAction } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
18
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
19
|
+
|
|
20
|
+
### children
|
|
21
|
+
|
|
22
|
+
``ReactNode`` · Optional
|
|
23
|
+
|
|
24
|
+
Content rendered inside the component.
|
|
25
|
+
|
|
26
|
+
### onFocus
|
|
27
|
+
|
|
28
|
+
``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
29
|
+
|
|
30
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
31
|
+
|
|
32
|
+
### onBlur
|
|
33
|
+
|
|
34
|
+
``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
35
|
+
|
|
36
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
37
|
+
|
|
38
|
+
### onChange
|
|
39
|
+
|
|
40
|
+
``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
41
|
+
|
|
42
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
43
|
+
|
|
44
|
+
### onSubmit
|
|
45
|
+
|
|
46
|
+
``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
|
|
47
|
+
|
|
48
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
49
|
+
|
|
50
|
+
### onClick
|
|
51
|
+
|
|
52
|
+
``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
|
|
53
|
+
|
|
54
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
55
|
+
|
|
56
|
+
### icon
|
|
57
|
+
|
|
58
|
+
``ReactNode`` · Required
|
|
59
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureBanner
|
|
3
|
+
|
|
4
|
+
Highlights a feature with supporting content and actions in a banner. Use it to introduce an important capability on a public-facing page.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureBanner } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-banner.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
|
+
|
|
18
|
+
## API
|
|
19
|
+
|
|
20
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
21
|
+
|
|
22
|
+
### onFocus
|
|
23
|
+
|
|
24
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
25
|
+
|
|
26
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
27
|
+
|
|
28
|
+
### onBlur
|
|
29
|
+
|
|
30
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
31
|
+
|
|
32
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
33
|
+
|
|
34
|
+
### onChange
|
|
35
|
+
|
|
36
|
+
``(event: ChangeEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
37
|
+
|
|
38
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
39
|
+
|
|
40
|
+
### onSubmit
|
|
41
|
+
|
|
42
|
+
``(event: SubmitEvent<HTMLAnchorElement>): void`` · Optional
|
|
43
|
+
|
|
44
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
45
|
+
|
|
46
|
+
### onClick
|
|
47
|
+
|
|
48
|
+
``(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void`` · Optional
|
|
49
|
+
|
|
50
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
51
|
+
|
|
52
|
+
### title
|
|
53
|
+
|
|
54
|
+
``ReactNode`` · Required
|
|
55
|
+
|
|
56
|
+
### description
|
|
57
|
+
|
|
58
|
+
``ReactNode`` · Optional
|
|
59
|
+
|
|
60
|
+
### artwork
|
|
61
|
+
|
|
62
|
+
``string | undefined`` · Optional
|
|
63
|
+
|
|
64
|
+
### action
|
|
65
|
+
|
|
66
|
+
``ReactNode`` · Optional
|
|
67
|
+
|
|
68
|
+
### mobileLayout
|
|
69
|
+
|
|
70
|
+
``"banner" | "compact" | "shallow" | undefined`` · Optional
|
|
71
|
+
|
|
72
|
+
Default: ``"banner"``
|
|
73
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureDomain
|
|
3
|
+
|
|
4
|
+
Public FeatureDomain component from @gridui/feature. See the package guide for its composition contract.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureDomain } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
18
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
19
|
+
|
|
20
|
+
### children
|
|
21
|
+
|
|
22
|
+
``ReactNode`` · Optional
|
|
23
|
+
|
|
24
|
+
Content rendered inside the component.
|
|
25
|
+
|
|
26
|
+
### onFocus
|
|
27
|
+
|
|
28
|
+
``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
29
|
+
|
|
30
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
31
|
+
|
|
32
|
+
### onBlur
|
|
33
|
+
|
|
34
|
+
``(event: FocusEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
35
|
+
|
|
36
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
37
|
+
|
|
38
|
+
### onChange
|
|
39
|
+
|
|
40
|
+
``(event: ChangeEvent<HTMLSpanElement, Element>): void`` · Optional
|
|
41
|
+
|
|
42
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
43
|
+
|
|
44
|
+
### onSubmit
|
|
45
|
+
|
|
46
|
+
``(event: SubmitEvent<HTMLSpanElement>): void`` · Optional
|
|
47
|
+
|
|
48
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
49
|
+
|
|
50
|
+
### onClick
|
|
51
|
+
|
|
52
|
+
``(event: MouseEvent<HTMLSpanElement, MouseEvent>): void`` · Optional
|
|
53
|
+
|
|
54
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
55
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureIdentity
|
|
3
|
+
|
|
4
|
+
Public FeatureIdentity component from @gridui/feature. See the package guide for its composition contract.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureIdentity } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
18
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
19
|
+
|
|
20
|
+
### logo
|
|
21
|
+
|
|
22
|
+
``ReactNode`` · Required
|
|
23
|
+
|
|
24
|
+
### children
|
|
25
|
+
|
|
26
|
+
``ReactNode`` · Required
|
|
27
|
+
|
|
28
|
+
Content rendered inside the component.
|
|
29
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureLink
|
|
3
|
+
|
|
4
|
+
Presents a feature or destination as a prominent link. Use it to help users discover related capabilities or sections.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureLink } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-link.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
|
+
|
|
18
|
+
## API
|
|
19
|
+
|
|
20
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
21
|
+
|
|
22
|
+
### children
|
|
23
|
+
|
|
24
|
+
``ReactNode`` · Optional
|
|
25
|
+
|
|
26
|
+
Content rendered inside the component.
|
|
27
|
+
|
|
28
|
+
### onFocus
|
|
29
|
+
|
|
30
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
31
|
+
|
|
32
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
33
|
+
|
|
34
|
+
### onBlur
|
|
35
|
+
|
|
36
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
37
|
+
|
|
38
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
39
|
+
|
|
40
|
+
### onChange
|
|
41
|
+
|
|
42
|
+
``(event: ChangeEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
43
|
+
|
|
44
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
45
|
+
|
|
46
|
+
### onSubmit
|
|
47
|
+
|
|
48
|
+
``(event: SubmitEvent<HTMLAnchorElement>): void`` · Optional
|
|
49
|
+
|
|
50
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
51
|
+
|
|
52
|
+
### onClick
|
|
53
|
+
|
|
54
|
+
``(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void`` · Optional
|
|
55
|
+
|
|
56
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
|
+
|
|
58
|
+
### seed
|
|
59
|
+
|
|
60
|
+
``string`` · Required
|
|
61
|
+
|
|
62
|
+
### category
|
|
63
|
+
|
|
64
|
+
``ReactNode`` · Optional
|
|
65
|
+
|
|
66
|
+
### identity
|
|
67
|
+
|
|
68
|
+
``ReactNode`` · Required
|
|
69
|
+
|
|
70
|
+
### description
|
|
71
|
+
|
|
72
|
+
``ReactNode`` · Optional
|
|
73
|
+
|
|
74
|
+
### destination
|
|
75
|
+
|
|
76
|
+
``ReactNode`` · Optional
|
|
77
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
|
|
2
|
+
# FeatureTile
|
|
3
|
+
|
|
4
|
+
Presents a destination as one native link with a decorative preview above its title. Use it in a grid of applications, examples, or workspaces.
|
|
5
|
+
|
|
6
|
+
Import from ``@gridui/feature`` and load Theme before this family's stylesheet.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { FeatureTile } from "@gridui/feature";
|
|
10
|
+
import "@gridui/theme/styles.css";
|
|
11
|
+
import "@gridui/feature/styles.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/README.md) for shared behavior and stylesheet dependencies.
|
|
15
|
+
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-tile.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
|
+
|
|
18
|
+
## API
|
|
19
|
+
|
|
20
|
+
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
21
|
+
|
|
22
|
+
### onFocus
|
|
23
|
+
|
|
24
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
25
|
+
|
|
26
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
27
|
+
|
|
28
|
+
### onBlur
|
|
29
|
+
|
|
30
|
+
``(event: FocusEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
31
|
+
|
|
32
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
33
|
+
|
|
34
|
+
### onChange
|
|
35
|
+
|
|
36
|
+
``(event: ChangeEvent<HTMLAnchorElement, Element>): void`` · Optional
|
|
37
|
+
|
|
38
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
39
|
+
|
|
40
|
+
### onSubmit
|
|
41
|
+
|
|
42
|
+
``(event: SubmitEvent<HTMLAnchorElement>): void`` · Optional
|
|
43
|
+
|
|
44
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
45
|
+
|
|
46
|
+
### onClick
|
|
47
|
+
|
|
48
|
+
``(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void`` · Optional
|
|
49
|
+
|
|
50
|
+
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
51
|
+
|
|
52
|
+
### href
|
|
53
|
+
|
|
54
|
+
``string`` · Required
|
|
55
|
+
|
|
56
|
+
### title
|
|
57
|
+
|
|
58
|
+
``ReactNode`` · Required
|
|
59
|
+
|
|
60
|
+
### description
|
|
61
|
+
|
|
62
|
+
``ReactNode`` · Optional
|
|
63
|
+
|
|
64
|
+
### preview
|
|
65
|
+
|
|
66
|
+
``ReactNode`` · Optional
|
|
67
|
+
|
|
68
|
+
### action
|
|
69
|
+
|
|
70
|
+
``ReactNode`` · Optional
|
|
71
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/feature",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "GridUI React feature",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"react-dom": "^19.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@gridui/style-utils": "^
|
|
30
|
+
"@gridui/style-utils": "^4.0.0",
|
|
31
31
|
"@gridui/theme": "^2.5.3",
|
|
32
32
|
"class-variance-authority": "0.7.1",
|
|
33
|
-
"lucide-react": "1.
|
|
33
|
+
"lucide-react": "1.70.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@gridui-internal/configuration": "0.0.0-internal",
|