@gridui/feature 1.1.0 → 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 +5 -0
- package/dist/feature-banner/feature-banner.d.ts +0 -6
- package/dist/feature-link/feature-link.d.ts +0 -6
- package/dist/index.js +13 -4
- package/dist/index.js.map +4 -4
- package/dist/styles.css +14 -12
- package/docs/catalog.json +2 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -81,3 +81,8 @@ destination separator uses the surrounding palette’s structural border token
|
|
|
81
81
|
so it matches the enclosing Grid boundary.
|
|
82
82
|
|
|
83
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;
|
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",
|
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", "/**\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;;;
|
|
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"]
|
|
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 <Arr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AAAA,IACrB,CAAC;AAAA,EACL;AACA,SAAQ,gBAAAG;AAAA,IAAC;AAAA;AAAA,MACL,mBAAiB,UAAU,YAAY,IAAI,SAAY,GAAG,EAAE;AAAA,MAC5D,oBAAkB,WAAW,WAAW,IAAI,GAAG,EAAE,iBAAiB;AAAA,MACjE,GAAG;AAAA,MACJ,WAAWL,KAAG,kBAAkB,GAAG,SAAS;AAAA,MAE3C;AAAA,mBAAW,OAAO,KAAM,gBAAAI;AAAA,UAAC;AAAA;AAAA,YACtB,eAAY;AAAA,YACZ,WAAWJ,KAAG,yBAAyB,CAAC;AAAA,YAEvC;AAAA;AAAA,QACL;AAAA,QACA,gBAAAK;AAAA,UAAC;AAAA;AAAA,YACG,WAAWL,KAAG,yBAAyB,CAAC;AAAA,YAExC;AAAA,8BAAAI;AAAA,gBAAC;AAAA;AAAA,kBACG,IAAI,GAAG,EAAE;AAAA,kBACT,WAAU;AAAA,kBAET;AAAA;AAAA,cACL;AAAA,cACC,WAAW,WAAW,KAAM,gBAAAA;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", "useMotionStyle", "cn", "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 {
|
|
@@ -115,23 +113,28 @@
|
|
|
115
113
|
}
|
|
116
114
|
.gridui-u-feature--type-heading {
|
|
117
115
|
font: var(--gridui-type-heading);
|
|
116
|
+
font-family: var(--gridui-font-body);
|
|
118
117
|
letter-spacing: normal;
|
|
119
118
|
text-wrap: balance;
|
|
120
119
|
}
|
|
121
120
|
.gridui-u-feature--type-caption {
|
|
122
121
|
font: var(--gridui-type-caption);
|
|
122
|
+
font-family: var(--gridui-font-body);
|
|
123
123
|
letter-spacing: normal;
|
|
124
124
|
}
|
|
125
125
|
.gridui-u-feature--type-code {
|
|
126
126
|
font: var(--gridui-type-code);
|
|
127
|
+
font-family: var(--gridui-font-mono);
|
|
127
128
|
letter-spacing: normal;
|
|
128
129
|
}
|
|
129
130
|
.gridui-u-feature--type-eyebrow {
|
|
130
131
|
font: var(--gridui-type-eyebrow);
|
|
132
|
+
font-family: var(--gridui-font-mono);
|
|
131
133
|
letter-spacing: 0.08em;
|
|
132
134
|
}
|
|
133
135
|
.gridui-u-feature--type-ui {
|
|
134
136
|
font: var(--gridui-type-ui);
|
|
137
|
+
font-family: var(--gridui-font-body);
|
|
135
138
|
letter-spacing: normal;
|
|
136
139
|
}
|
|
137
140
|
.gridui-u-feature--wrap-anywhere {
|
|
@@ -152,14 +155,12 @@
|
|
|
152
155
|
.gridui-u-feature--no-underline {
|
|
153
156
|
text-decoration-line: none;
|
|
154
157
|
}
|
|
155
|
-
.gridui-u-feature--transition
|
|
156
|
-
transition-property: transform
|
|
157
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
158
|
-
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);
|
|
159
160
|
}
|
|
160
|
-
.gridui-u-feature--duration-
|
|
161
|
-
--tw-duration:
|
|
162
|
-
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));
|
|
163
164
|
}
|
|
164
165
|
.gridui-u-feature--ease-\[ease\] {
|
|
165
166
|
--tw-ease: ease;
|
|
@@ -177,8 +178,8 @@
|
|
|
177
178
|
.gridui-u-feature--\[--gridui-banner-fade-start\:5rem\] {
|
|
178
179
|
--gridui-banner-fade-start: 5rem;
|
|
179
180
|
}
|
|
180
|
-
.gridui-u-feature--\[transition\:background-
|
|
181
|
-
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);
|
|
182
183
|
}
|
|
183
184
|
@media (prefers-reduced-motion: reduce) {
|
|
184
185
|
.gridui-u-feature--motion-reduce\:transition-none {
|
|
@@ -262,6 +263,7 @@
|
|
|
262
263
|
}
|
|
263
264
|
.gridui-u-feature--\[\&_h2\]\:type-heading h2 {
|
|
264
265
|
font: var(--gridui-type-heading);
|
|
266
|
+
font-family: var(--gridui-font-body);
|
|
265
267
|
letter-spacing: normal;
|
|
266
268
|
text-wrap: balance;
|
|
267
269
|
}
|
|
@@ -310,7 +312,7 @@
|
|
|
310
312
|
}
|
|
311
313
|
@media (hover: hover) and (pointer: fine) {
|
|
312
314
|
.gridui-feature-banner:hover .gridui-feature-banner-artwork {
|
|
313
|
-
transform: scale(1.025);
|
|
315
|
+
transform: var(--gridui-motion-transform, scale(1.025));
|
|
314
316
|
}
|
|
315
317
|
.gridui-feature-banner:hover .gridui-feature-banner-action {
|
|
316
318
|
text-decoration: underline;
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/feature",
|
|
4
|
-
"version": "1.
|
|
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.",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/banners.mdx",
|
|
86
86
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/destination-tiles.mdx",
|
|
87
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",
|
|
88
89
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-banner.stories.tsx",
|
|
89
90
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-link.stories.tsx",
|
|
90
91
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/feature/stories/feature-tile.stories.tsx"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/feature",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "GridUI React feature",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -28,14 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@gridui/style-utils": "^4.0.0",
|
|
31
|
-
"@gridui/theme": "^
|
|
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
|
}
|