@gridui/feature 1.0.7 → 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 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,32 @@ 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.
@@ -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
@@ -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-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;;;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;A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KAAK,WAAS;AAC/D,WAAO,UAAU;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,+DAA+D,sBAAsB,CAAC;AAAA,YAEnG;AAAA;AAAA,QACL;AAAA,QACA,gBAAAE;AAAA,UAAC;AAAA;AAAA,YACG,WAAWF,IAAG,sBAAsB,CAAC;AAAA,YAEpC;AAAA;AAAA,QACL;AAAA,QACC,kBAAmB,gBAAAE;AAAA,UAAC;AAAA;AAAA,YACjB,WAAWF,IAAG,yBAAyB,CAAC;AAAA,YAEvC;AAAA;AAAA,QACL;AAAA,QACC,kBAAmB,gBAAAE;AAAA,UAAC;AAAA;AAAA,YACjB,WAAWF,IAAG,yBAAyB,CAAC;AAAA,YAEvC;AAAA;AAAA,QACL;AAAA;AAAA;AAAA,EACJ;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/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,GA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AAAA;AAAA,gBAAC;AAAA;AAAA,kBAC1B,IAAI,GAAG,EAAE;AAAA,kBACT,WAAU;AAAA,kBAET;AAAA;AAAA,cACL;AAAA,cACC,WAAW,MAAM,KAAM,gBAAAC;AAAA,gBAAC;AAAA;AAAA,kBACrB,WAAU;AAAA,kBAET;AAAA;AAAA,oBACD,gBAAAD;AAAA,sBAACH;AAAA,sBAAA;AAAA,wBACG,eAAY;AAAA,wBACZ,MAAM;AAAA;AAAA,oBACV;AAAA;AAAA;AAAA,cACJ;AAAA;AAAA;AAAA,QACJ;AAAA;AAAA;AAAA,EACJ;AACJ;",
6
+ "names": ["cn", "cn", "cva", "cn", "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
@@ -66,6 +66,9 @@
66
66
  .gridui-u-feature--justify-between {
67
67
  justify-content: space-between;
68
68
  }
69
+ .gridui-u-feature--justify-center {
70
+ justify-content: center;
71
+ }
69
72
  .gridui-u-feature--gap-gridui-8 {
70
73
  gap: var(--gridui-space-8);
71
74
  }
@@ -92,6 +95,9 @@
92
95
  background-color: color-mix(in srgb,var(--gridui-feature-accent) 3%,var(--gridui-background));
93
96
  }
94
97
  }
98
+ .gridui-u-feature--bg-background {
99
+ background-color: var(--gridui-background);
100
+ }
95
101
  .gridui-u-feature--bg-surface {
96
102
  background-color: var(--gridui-surface);
97
103
  }
@@ -128,6 +134,9 @@
128
134
  font: var(--gridui-type-ui);
129
135
  letter-spacing: normal;
130
136
  }
137
+ .gridui-u-feature--wrap-anywhere {
138
+ overflow-wrap: anywhere;
139
+ }
131
140
  .gridui-u-feature--text-\(--gridui-feature-accent\) {
132
141
  color: var(--gridui-feature-accent);
133
142
  }
@@ -224,6 +233,9 @@
224
233
  .gridui-u-feature--min-\[48rem\]\:items-center {
225
234
  align-items: center;
226
235
  }
236
+ .gridui-u-feature--md\:p-gridui-32 {
237
+ padding: var(--gridui-space-32);
238
+ }
227
239
  .gridui-u-feature--min-\[48rem\]\:px-gridui-48 {
228
240
  padding-inline: var(--gridui-space-48);
229
241
  }
package/docs/catalog.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/feature",
4
- "version": "1.0.7",
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.7",
3
+ "version": "1.1.0",
4
4
  "description": "GridUI React feature",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "react-dom": "^19.2.0"
28
28
  },
29
29
  "dependencies": {
30
- "@gridui/style-utils": "^3.0.0",
30
+ "@gridui/style-utils": "^4.0.0",
31
31
  "@gridui/theme": "^2.5.3",
32
32
  "class-variance-authority": "0.7.1",
33
33
  "lucide-react": "1.70.0"