@gridui/feature 1.0.7 → 1.2.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 +30 -1
- package/dist/feature-banner/feature-banner.d.ts +0 -6
- package/dist/feature-link/feature-link.d.ts +0 -6
- 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 +96 -5
- package/dist/index.js.map +4 -4
- package/dist/styles.css +26 -12
- package/docs/catalog.json +25 -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 +7 -7
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.
|
|
@@ -52,8 +52,37 @@ The enclosing Grid owns boundaries and list geometry. Applications own destinati
|
|
|
52
52
|
selection, image URLs, translated copy, and list headings.
|
|
53
53
|
|
|
54
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
|
+
|
|
55
77
|
## Feature links
|
|
56
78
|
|
|
57
79
|
`FeatureLink` uses its seed for decorative tint and destination text. Its
|
|
58
80
|
destination separator uses the surrounding palette’s structural border token
|
|
59
81
|
so it matches the enclosing Grid boundary.
|
|
82
|
+
|
|
83
|
+
[Component reference](docs/reference/README.md) contains focused API pages for each public component.
|
|
84
|
+
|
|
85
|
+
Shared animation policy and tempo come from `MotionConfig` in `@gridui/motion`.
|
|
86
|
+
Disabled or reduced-motion policy settles decoration without disabling interaction.
|
|
87
|
+
See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/motion)
|
|
88
|
+
for CSS scopes, portal behavior, and specialized timing contracts.
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @package Feature
|
|
4
|
-
* @namespace FeatureBanner
|
|
5
|
-
* @description Feature Banner
|
|
6
|
-
*/
|
|
7
1
|
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
2
|
export type FeatureBannerProps = Omit<ComponentPropsWithRef<"a">, "children" | "title"> & {
|
|
9
3
|
readonly title: ReactNode;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @package Feature
|
|
4
|
-
* @namespace FeatureLink
|
|
5
|
-
* @description Feature Link
|
|
6
|
-
*/
|
|
7
1
|
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
2
|
export type FeatureLinkProps = ComponentPropsWithRef<"a"> & {
|
|
9
3
|
readonly seed: string;
|
|
@@ -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
|
@@ -31,6 +31,9 @@ var FeatureAction = (props) => {
|
|
|
31
31
|
);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
// src/feature-banner/feature-banner.tsx
|
|
35
|
+
import { useMotionStyle } from "@gridui/motion/policy";
|
|
36
|
+
|
|
34
37
|
// src/feature-banner/style.ts
|
|
35
38
|
import { cn as cn3 } from "@gridui/style-utils";
|
|
36
39
|
import { cva as cva2 } from "class-variance-authority";
|
|
@@ -61,7 +64,7 @@ var featureBannerStyles = cva2(cn3(
|
|
|
61
64
|
var featureBannerArtworkStyles = cva2(cn3(
|
|
62
65
|
"gridui-feature-banner-artwork",
|
|
63
66
|
"gridui-u-feature--object-cover gridui-u-feature--object-center",
|
|
64
|
-
"gridui-u-feature--transition-transform gridui-u-feature--duration-
|
|
67
|
+
"gridui-u-feature--[transition-property:var(--gridui-motion-transition,transform)] gridui-u-feature--duration-[calc(var(--gridui-motion-duration-deliberate)*var(--gridui-motion-factor,1))] gridui-u-feature--ease-[ease] gridui-u-feature--motion-reduce:transition-none gridui-u-feature--motion-reduce:duration-0"
|
|
65
68
|
));
|
|
66
69
|
var featureBannerContentStyles = cva2(cn3(
|
|
67
70
|
"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",
|
|
@@ -110,6 +113,7 @@ import { ArrowUpRight } from "lucide-react";
|
|
|
110
113
|
import { Children, useId } from "react";
|
|
111
114
|
import { jsx, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
112
115
|
var FeatureBanner = (props) => {
|
|
116
|
+
const motionStyle = useMotionStyle();
|
|
113
117
|
const { title, description, artwork, action, mobileLayout = "banner", className, ...restProps } = props;
|
|
114
118
|
const id = useId();
|
|
115
119
|
const hasDescription = Children.toArray(description).some((child) => {
|
|
@@ -128,6 +132,7 @@ var FeatureBanner = (props) => {
|
|
|
128
132
|
mobileLayout,
|
|
129
133
|
hasArtwork: Boolean(artwork)
|
|
130
134
|
}), className),
|
|
135
|
+
style: { ...props.style, ...motionStyle },
|
|
131
136
|
children: [
|
|
132
137
|
artwork && /* @__PURE__ */ jsx(
|
|
133
138
|
"img",
|
|
@@ -230,12 +235,15 @@ var FeatureIdentity = (props) => {
|
|
|
230
235
|
] });
|
|
231
236
|
};
|
|
232
237
|
|
|
238
|
+
// src/feature-link/feature-link.tsx
|
|
239
|
+
import { useMotionStyle as useMotionStyle2 } from "@gridui/motion/policy";
|
|
240
|
+
|
|
233
241
|
// src/feature-link/style.ts
|
|
234
242
|
import { cn as cn7 } from "@gridui/style-utils";
|
|
235
243
|
import { cva as cva4 } from "class-variance-authority";
|
|
236
244
|
var featureLinkStyles = cva4(cn7(
|
|
237
245
|
"gridui-feature-link",
|
|
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-
|
|
246
|
+
"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:var(--gridui-motion-transition,background-color_calc(var(--gridui-motion-duration-quick)*var(--gridui-motion-factor,1))_ease)]",
|
|
239
247
|
"gridui-u-feature--min-[40rem]:py-gridui-32 gridui-u-feature--min-[40rem]:px-gridui-48",
|
|
240
248
|
"gridui-u-feature--motion-reduce:transition-none"
|
|
241
249
|
));
|
|
@@ -264,6 +272,7 @@ import { cn as cn8 } from "@gridui/style-utils";
|
|
|
264
272
|
import { Children as Children2 } from "react";
|
|
265
273
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
266
274
|
var FeatureLink = (props) => {
|
|
275
|
+
const motionStyle = useMotionStyle2();
|
|
267
276
|
const {
|
|
268
277
|
seed,
|
|
269
278
|
category,
|
|
@@ -288,10 +297,10 @@ var FeatureLink = (props) => {
|
|
|
288
297
|
{
|
|
289
298
|
...restProps,
|
|
290
299
|
className: cn8(featureLinkStyles(), className),
|
|
291
|
-
style: {
|
|
300
|
+
style: { ...{
|
|
292
301
|
"--gridui-feature-seed": seed,
|
|
293
302
|
...style
|
|
294
|
-
},
|
|
303
|
+
}, ...motionStyle },
|
|
295
304
|
children: [
|
|
296
305
|
hasCategory && /* @__PURE__ */ jsx4(
|
|
297
306
|
"p",
|
|
@@ -325,11 +334,93 @@ var FeatureLink = (props) => {
|
|
|
325
334
|
}
|
|
326
335
|
);
|
|
327
336
|
};
|
|
337
|
+
|
|
338
|
+
// src/feature-tile/style.ts
|
|
339
|
+
import { cn as cn9 } from "@gridui/style-utils";
|
|
340
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
341
|
+
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"));
|
|
342
|
+
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"));
|
|
343
|
+
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"));
|
|
344
|
+
|
|
345
|
+
// src/feature-tile/feature-tile.tsx
|
|
346
|
+
import { cn as cn10 } from "@gridui/style-utils";
|
|
347
|
+
import { ArrowUpRight as ArrowUpRight2 } from "lucide-react";
|
|
348
|
+
import { Children as Children3, useId as useId2 } from "react";
|
|
349
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
350
|
+
var FeatureTile = (props) => {
|
|
351
|
+
const { title, description, preview, action, className, ...restProps } = props;
|
|
352
|
+
const id = useId2();
|
|
353
|
+
const hasContent = (content) => {
|
|
354
|
+
return Children3.toArray(content).some((child) => {
|
|
355
|
+
return child !== "";
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
return /* @__PURE__ */ jsxs5(
|
|
359
|
+
"a",
|
|
360
|
+
{
|
|
361
|
+
"aria-labelledby": restProps["aria-label"] ? void 0 : `${id}-title`,
|
|
362
|
+
"aria-describedby": hasContent(description) ? `${id}-description` : void 0,
|
|
363
|
+
...restProps,
|
|
364
|
+
className: cn10(featureTileStyles(), className),
|
|
365
|
+
children: [
|
|
366
|
+
hasContent(preview) && /* @__PURE__ */ jsx5(
|
|
367
|
+
"div",
|
|
368
|
+
{
|
|
369
|
+
"aria-hidden": "true",
|
|
370
|
+
className: cn10(featureTilePreviewStyles()),
|
|
371
|
+
children: preview
|
|
372
|
+
}
|
|
373
|
+
),
|
|
374
|
+
/* @__PURE__ */ jsxs5(
|
|
375
|
+
"div",
|
|
376
|
+
{
|
|
377
|
+
className: cn10(featureTileContentStyles()),
|
|
378
|
+
children: [
|
|
379
|
+
/* @__PURE__ */ jsx5(
|
|
380
|
+
"h2",
|
|
381
|
+
{
|
|
382
|
+
id: `${id}-title`,
|
|
383
|
+
className: "gridui-u-feature--type-heading",
|
|
384
|
+
children: title
|
|
385
|
+
}
|
|
386
|
+
),
|
|
387
|
+
hasContent(description) && /* @__PURE__ */ jsx5(
|
|
388
|
+
"p",
|
|
389
|
+
{
|
|
390
|
+
id: `${id}-description`,
|
|
391
|
+
className: "gridui-copy",
|
|
392
|
+
children: description
|
|
393
|
+
}
|
|
394
|
+
),
|
|
395
|
+
hasContent(action) && /* @__PURE__ */ jsxs5(
|
|
396
|
+
"span",
|
|
397
|
+
{
|
|
398
|
+
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",
|
|
399
|
+
children: [
|
|
400
|
+
action,
|
|
401
|
+
/* @__PURE__ */ jsx5(
|
|
402
|
+
ArrowUpRight2,
|
|
403
|
+
{
|
|
404
|
+
"aria-hidden": "true",
|
|
405
|
+
size: 18
|
|
406
|
+
}
|
|
407
|
+
)
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
};
|
|
328
418
|
export {
|
|
329
419
|
FeatureAction,
|
|
330
420
|
FeatureBanner,
|
|
331
421
|
FeatureDomain,
|
|
332
422
|
FeatureIdentity,
|
|
333
|
-
FeatureLink
|
|
423
|
+
FeatureLink,
|
|
424
|
+
FeatureTile
|
|
334
425
|
};
|
|
335
426
|
//# 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/
|
|
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"],
|
|
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;;;
|
|
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/feature-banner.tsx", "../src/feature-banner/style.ts", "../src/feature-domain/style.ts", "../src/feature-domain/feature-domain.tsx", "../src/feature-identity/feature-identity.tsx", "../src/feature-link/feature-link.tsx", "../src/feature-link/style.ts", "../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", "import { useMotionStyle } from \"@gridui/motion/policy\";\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 motionStyle = useMotionStyle();\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 style={{ ...(props.style), ...motionStyle }}\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 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-property:var(--gridui-motion-transition,transform)] gridui-u-feature--duration-[calc(var(--gridui-motion-duration-deliberate)*var(--gridui-motion-factor,1))] 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 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", "import { useMotionStyle } from \"@gridui/motion/policy\";\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 motionStyle = useMotionStyle();\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), ...motionStyle }}\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 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:var(--gridui-motion-transition,background-color_calc(var(--gridui-motion-duration-quick)*var(--gridui-motion-factor,1))_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 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;;;AC7BA,SAAS,sBAAsB;;;ACO/B,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,6BAA6BC,KAAID;AAAA,EAC1C;AAAA,EACA;AACJ,GAAG;AAAA,EACC,UAAU;AAAA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"cva", "cn", "Children", "jsx", "jsxs", "useMotionStyle", "cn", "cva", "cn", "ArrowUpRight", "Children", "useId", "jsx", "jsxs"]
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
@layer theme {
|
|
5
5
|
:root, :host {
|
|
6
6
|
--spacing: 0.25rem;
|
|
7
|
-
--default-transition-duration: 150ms;
|
|
8
|
-
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
9
|
@layer utilities {
|
|
@@ -66,6 +64,9 @@
|
|
|
66
64
|
.gridui-u-feature--justify-between {
|
|
67
65
|
justify-content: space-between;
|
|
68
66
|
}
|
|
67
|
+
.gridui-u-feature--justify-center {
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
69
70
|
.gridui-u-feature--gap-gridui-8 {
|
|
70
71
|
gap: var(--gridui-space-8);
|
|
71
72
|
}
|
|
@@ -92,6 +93,9 @@
|
|
|
92
93
|
background-color: color-mix(in srgb,var(--gridui-feature-accent) 3%,var(--gridui-background));
|
|
93
94
|
}
|
|
94
95
|
}
|
|
96
|
+
.gridui-u-feature--bg-background {
|
|
97
|
+
background-color: var(--gridui-background);
|
|
98
|
+
}
|
|
95
99
|
.gridui-u-feature--bg-surface {
|
|
96
100
|
background-color: var(--gridui-surface);
|
|
97
101
|
}
|
|
@@ -109,25 +113,33 @@
|
|
|
109
113
|
}
|
|
110
114
|
.gridui-u-feature--type-heading {
|
|
111
115
|
font: var(--gridui-type-heading);
|
|
116
|
+
font-family: var(--gridui-font-body);
|
|
112
117
|
letter-spacing: normal;
|
|
113
118
|
text-wrap: balance;
|
|
114
119
|
}
|
|
115
120
|
.gridui-u-feature--type-caption {
|
|
116
121
|
font: var(--gridui-type-caption);
|
|
122
|
+
font-family: var(--gridui-font-body);
|
|
117
123
|
letter-spacing: normal;
|
|
118
124
|
}
|
|
119
125
|
.gridui-u-feature--type-code {
|
|
120
126
|
font: var(--gridui-type-code);
|
|
127
|
+
font-family: var(--gridui-font-mono);
|
|
121
128
|
letter-spacing: normal;
|
|
122
129
|
}
|
|
123
130
|
.gridui-u-feature--type-eyebrow {
|
|
124
131
|
font: var(--gridui-type-eyebrow);
|
|
132
|
+
font-family: var(--gridui-font-mono);
|
|
125
133
|
letter-spacing: 0.08em;
|
|
126
134
|
}
|
|
127
135
|
.gridui-u-feature--type-ui {
|
|
128
136
|
font: var(--gridui-type-ui);
|
|
137
|
+
font-family: var(--gridui-font-body);
|
|
129
138
|
letter-spacing: normal;
|
|
130
139
|
}
|
|
140
|
+
.gridui-u-feature--wrap-anywhere {
|
|
141
|
+
overflow-wrap: anywhere;
|
|
142
|
+
}
|
|
131
143
|
.gridui-u-feature--text-\(--gridui-feature-accent\) {
|
|
132
144
|
color: var(--gridui-feature-accent);
|
|
133
145
|
}
|
|
@@ -143,14 +155,12 @@
|
|
|
143
155
|
.gridui-u-feature--no-underline {
|
|
144
156
|
text-decoration-line: none;
|
|
145
157
|
}
|
|
146
|
-
.gridui-u-feature--transition
|
|
147
|
-
transition-property: transform
|
|
148
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
149
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
158
|
+
.gridui-u-feature--\[transition-property\:var\(--gridui-motion-transition\,transform\)\] {
|
|
159
|
+
transition-property: var(--gridui-motion-transition,transform);
|
|
150
160
|
}
|
|
151
|
-
.gridui-u-feature--duration-
|
|
152
|
-
--tw-duration:
|
|
153
|
-
transition-duration:
|
|
161
|
+
.gridui-u-feature--duration-\[calc\(var\(--gridui-motion-duration-deliberate\)\*var\(--gridui-motion-factor\,1\)\)\] {
|
|
162
|
+
--tw-duration: calc(var(--gridui-motion-duration-deliberate) * var(--gridui-motion-factor,1));
|
|
163
|
+
transition-duration: calc(var(--gridui-motion-duration-deliberate) * var(--gridui-motion-factor,1));
|
|
154
164
|
}
|
|
155
165
|
.gridui-u-feature--ease-\[ease\] {
|
|
156
166
|
--tw-ease: ease;
|
|
@@ -168,8 +178,8 @@
|
|
|
168
178
|
.gridui-u-feature--\[--gridui-banner-fade-start\:5rem\] {
|
|
169
179
|
--gridui-banner-fade-start: 5rem;
|
|
170
180
|
}
|
|
171
|
-
.gridui-u-feature--\[transition\:background-
|
|
172
|
-
transition: background-color
|
|
181
|
+
.gridui-u-feature--\[transition\:var\(--gridui-motion-transition\,background-color_calc\(var\(--gridui-motion-duration-quick\)\*var\(--gridui-motion-factor\,1\)\)_ease\)\] {
|
|
182
|
+
transition: var(--gridui-motion-transition,background-color calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1)) ease);
|
|
173
183
|
}
|
|
174
184
|
@media (prefers-reduced-motion: reduce) {
|
|
175
185
|
.gridui-u-feature--motion-reduce\:transition-none {
|
|
@@ -224,6 +234,9 @@
|
|
|
224
234
|
.gridui-u-feature--min-\[48rem\]\:items-center {
|
|
225
235
|
align-items: center;
|
|
226
236
|
}
|
|
237
|
+
.gridui-u-feature--md\:p-gridui-32 {
|
|
238
|
+
padding: var(--gridui-space-32);
|
|
239
|
+
}
|
|
227
240
|
.gridui-u-feature--min-\[48rem\]\:px-gridui-48 {
|
|
228
241
|
padding-inline: var(--gridui-space-48);
|
|
229
242
|
}
|
|
@@ -250,6 +263,7 @@
|
|
|
250
263
|
}
|
|
251
264
|
.gridui-u-feature--\[\&_h2\]\:type-heading h2 {
|
|
252
265
|
font: var(--gridui-type-heading);
|
|
266
|
+
font-family: var(--gridui-font-body);
|
|
253
267
|
letter-spacing: normal;
|
|
254
268
|
text-wrap: balance;
|
|
255
269
|
}
|
|
@@ -298,7 +312,7 @@
|
|
|
298
312
|
}
|
|
299
313
|
@media (hover: hover) and (pointer: fine) {
|
|
300
314
|
.gridui-feature-banner:hover .gridui-feature-banner-artwork {
|
|
301
|
-
transform: scale(1.025);
|
|
315
|
+
transform: var(--gridui-motion-transform, scale(1.025));
|
|
302
316
|
}
|
|
303
317
|
.gridui-feature-banner:hover .gridui-feature-banner-action {
|
|
304
318
|
text-decoration: underline;
|
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.2.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,12 @@
|
|
|
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",
|
|
88
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/getting-started.mdx",
|
|
68
89
|
"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"
|
|
90
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-link.stories.tsx",
|
|
91
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-tile.stories.tsx"
|
|
70
92
|
]
|
|
71
93
|
}
|
|
@@ -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.2.0",
|
|
4
4
|
"description": "GridUI React feature",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,15 +27,16 @@
|
|
|
27
27
|
"react-dom": "^19.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@gridui/style-utils": "^
|
|
31
|
-
"@gridui/theme": "^
|
|
30
|
+
"@gridui/style-utils": "^4.0.0",
|
|
31
|
+
"@gridui/theme": "^3.0.0",
|
|
32
32
|
"class-variance-authority": "0.7.1",
|
|
33
|
-
"lucide-react": "1.
|
|
33
|
+
"lucide-react": "1.72.0",
|
|
34
|
+
"@gridui/motion": "^1.0.1"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
37
38
|
"@jest/globals": "30.5.2",
|
|
38
|
-
"@storybook/react-vite": "10.6.
|
|
39
|
+
"@storybook/react-vite": "10.6.7",
|
|
39
40
|
"@types/jest": "30.0.0",
|
|
40
41
|
"@types/node": "26.6.6",
|
|
41
42
|
"@types/react": "19.3.0",
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build": "node ../../scripts/compilation/package.ts",
|
|
50
51
|
"compile": "tsc --project tsconfig.json",
|
|
51
|
-
"test": "jest"
|
|
52
|
-
"coverage": "jest --coverage"
|
|
52
|
+
"test": "jest"
|
|
53
53
|
}
|
|
54
54
|
}
|