@gridui/feature 0.0.0-stage → 0.0.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 +52 -2
- package/dist/feature-action/feature-action.d.ts +11 -0
- package/dist/feature-action/style.d.ts +7 -0
- package/dist/feature-banner/feature-banner.d.ts +15 -0
- package/dist/feature-banner/style.d.ts +16 -0
- package/dist/feature-domain/feature-domain.d.ts +9 -0
- package/dist/feature-domain/style.d.ts +7 -0
- package/dist/feature-identity/feature-identity.d.ts +12 -0
- package/dist/feature-link/feature-link.d.ts +15 -0
- package/dist/feature-link/style.d.ts +11 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +336 -0
- package/dist/index.js.map +7 -0
- package/dist/styles.css +363 -0
- package/package.json +49 -3
package/README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @gridui/feature
|
|
2
|
+
|
|
3
|
+
Landing family. Public API: `FeatureAction`, `FeatureActionProps`, `FeatureBanner`, `FeatureBannerProps`, `FeatureDomain`, `FeatureDomainProps`, `FeatureIdentity`, `FeatureIdentityProps`, `FeatureLink`, `FeatureLinkProps`.
|
|
4
|
+
|
|
5
|
+
Import components from `@gridui/feature` and load `@gridui/feature/styles.css` after Theme.
|
|
6
|
+
Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
|
|
7
|
+
|
|
8
|
+
See [component ownership](../../docs/component-ownership.md) and [release history](.changeset/history/).
|
|
9
|
+
|
|
10
|
+
## Feature banners
|
|
11
|
+
|
|
12
|
+
`FeatureBanner` is a single native destination link with a heading and optional
|
|
13
|
+
decorative image, description, and trailing arrow action. Import it
|
|
14
|
+
from `@gridui/feature` and load the package stylesheet.
|
|
15
|
+
Supply `href`, `title`, and optional `description`, `action`, and `artwork`
|
|
16
|
+
(image URL). Native anchor props and refs are forwarded; `className` is merged.
|
|
17
|
+
The title receives a unique accessible relationship by default; a description
|
|
18
|
+
relationship is added only when description content is present. Omitted, empty,
|
|
19
|
+
or false descriptions and actions add no wrapper or spacing. Without artwork,
|
|
20
|
+
content uses the full width without an image gap, overlay, or minimum image height.
|
|
21
|
+
Content slots must not contain interactive elements inside the link.
|
|
22
|
+
|
|
23
|
+
`mobileLayout` selects the layout below 48rem:
|
|
24
|
+
|
|
25
|
+
- `"banner"` (default): artwork is 164px tall and content starts at 176px;
|
|
26
|
+
without artwork, content has a 24px top inset.
|
|
27
|
+
- `"shallow"`: artwork is 88px tall and content starts at 100px;
|
|
28
|
+
without artwork, content has a 24px top inset.
|
|
29
|
+
- `"compact"`: an 80px square thumbnail sits beside the content, with no
|
|
30
|
+
gradient overlay. Without artwork, content uses the full available width.
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<FeatureBanner
|
|
34
|
+
href="/tools/example/"
|
|
35
|
+
title="Example tool"
|
|
36
|
+
description="Edit a local save in your browser."
|
|
37
|
+
artwork="/images/example.webp"
|
|
38
|
+
action="Open editor"
|
|
39
|
+
mobileLayout="shallow"
|
|
40
|
+
/>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
A featured-first list can pass `"shallow"` to its first item and `"compact"`
|
|
44
|
+
to later items. The list owns that decision; the banner does not inspect position.
|
|
45
|
+
At 48rem, all variants use the same desktop layout:
|
|
46
|
+
with artwork, the banner is at least 272px tall, artwork covers the right 76%,
|
|
47
|
+
and content occupies 49%. Fine-pointer hover enlarges artwork and underlines
|
|
48
|
+
the action;
|
|
49
|
+
reduced motion disables artwork transitions and scaling. Images are decorative,
|
|
50
|
+
lazy-loaded, asynchronously decoded, and requested without a referrer.
|
|
51
|
+
The enclosing Grid owns boundaries and list geometry. Applications own destination
|
|
52
|
+
selection, image URLs, translated copy, and list headings.
|
|
2
53
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureAction
|
|
5
|
+
* @description Feature Action
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
|
+
export type FeatureActionProps = ComponentPropsWithRef<"span"> & {
|
|
9
|
+
readonly icon: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const FeatureAction: FC<FeatureActionProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureBanner
|
|
5
|
+
* @description Feature Banner
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
|
+
export type FeatureBannerProps = Omit<ComponentPropsWithRef<"a">, "children" | "title"> & {
|
|
9
|
+
readonly title: ReactNode;
|
|
10
|
+
readonly description?: ReactNode;
|
|
11
|
+
readonly artwork?: string | undefined;
|
|
12
|
+
readonly action?: ReactNode;
|
|
13
|
+
readonly mobileLayout?: "banner" | "shallow" | "compact";
|
|
14
|
+
};
|
|
15
|
+
export declare const FeatureBanner: FC<FeatureBannerProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureBanner
|
|
5
|
+
* @description Style
|
|
6
|
+
*/
|
|
7
|
+
export declare const featureBannerStyles: (props?: ({
|
|
8
|
+
mobileLayout?: "banner" | "shallow" | "compact" | null | undefined;
|
|
9
|
+
hasArtwork?: boolean | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export declare const featureBannerArtworkStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
12
|
+
export declare const featureBannerContentStyles: (props?: ({
|
|
13
|
+
mobileLayout?: "banner" | "shallow" | "compact" | null | undefined;
|
|
14
|
+
hasArtwork?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const featureBannerActionStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureDomain
|
|
5
|
+
* @description Feature Domain
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentPropsWithRef, type FC } from "react";
|
|
8
|
+
export type FeatureDomainProps = ComponentPropsWithRef<"span">;
|
|
9
|
+
export declare const FeatureDomain: FC<FeatureDomainProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureIdentity
|
|
5
|
+
* @description Feature Identity
|
|
6
|
+
*/
|
|
7
|
+
import { type FC, type ReactNode } from "react";
|
|
8
|
+
export type FeatureIdentityProps = {
|
|
9
|
+
readonly logo: ReactNode;
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const FeatureIdentity: FC<FeatureIdentityProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureLink
|
|
5
|
+
* @description Feature Link
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
8
|
+
export type FeatureLinkProps = ComponentPropsWithRef<"a"> & {
|
|
9
|
+
readonly seed: string;
|
|
10
|
+
readonly category?: ReactNode;
|
|
11
|
+
readonly identity: ReactNode;
|
|
12
|
+
readonly description?: ReactNode;
|
|
13
|
+
readonly destination?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const FeatureLink: FC<FeatureLinkProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace FeatureLink
|
|
5
|
+
* @description Style
|
|
6
|
+
*/
|
|
7
|
+
export declare const featureLinkStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
+
export declare const featureCategoryStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
export declare const featureIdentityStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
export declare const featureDescriptionStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
11
|
+
export declare const featureDestinationStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Feature
|
|
4
|
+
* @namespace Root
|
|
5
|
+
* @description Index
|
|
6
|
+
*/
|
|
7
|
+
export type { FeatureActionProps } from "./feature-action/feature-action";
|
|
8
|
+
export { FeatureAction } from "./feature-action/feature-action";
|
|
9
|
+
export type { FeatureBannerProps } from "./feature-banner/feature-banner";
|
|
10
|
+
export { FeatureBanner } from "./feature-banner/feature-banner";
|
|
11
|
+
export type { FeatureDomainProps } from "./feature-domain/feature-domain";
|
|
12
|
+
export { FeatureDomain } from "./feature-domain/feature-domain";
|
|
13
|
+
export type { FeatureIdentityProps } from "./feature-identity/feature-identity";
|
|
14
|
+
export { FeatureIdentity } from "./feature-identity/feature-identity";
|
|
15
|
+
export type { FeatureLinkProps } from "./feature-link/feature-link";
|
|
16
|
+
export { FeatureLink } from "./feature-link/feature-link";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
// src/feature-action/style.ts
|
|
2
|
+
import { cn } from "@gridui/style-utils";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
var featureVisitStyles = cva(cn(
|
|
5
|
+
"gridui-feature-visit",
|
|
6
|
+
"inline-flex items-center gap-gridui-8",
|
|
7
|
+
"[&_svg]:w-gridui-16 [&_svg]:h-gridui-16"
|
|
8
|
+
));
|
|
9
|
+
|
|
10
|
+
// src/feature-action/feature-action.tsx
|
|
11
|
+
import { cn as cn2 } from "@gridui/style-utils";
|
|
12
|
+
import "react";
|
|
13
|
+
import { jsxs } from "react/jsx-runtime";
|
|
14
|
+
var FeatureAction = (props) => {
|
|
15
|
+
const {
|
|
16
|
+
icon,
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
...restProps
|
|
20
|
+
} = props;
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
"span",
|
|
23
|
+
{
|
|
24
|
+
...restProps,
|
|
25
|
+
className: cn2(featureVisitStyles(), className),
|
|
26
|
+
children: [
|
|
27
|
+
children,
|
|
28
|
+
icon
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/feature-banner/style.ts
|
|
35
|
+
import { cn as cn3 } from "@gridui/style-utils";
|
|
36
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
37
|
+
var featureBannerStyles = cva2(cn3(
|
|
38
|
+
"gridui-feature-banner",
|
|
39
|
+
"relative isolate grid overflow-hidden text-foreground bg-surface no-underline",
|
|
40
|
+
"min-[48rem]:items-center"
|
|
41
|
+
), {
|
|
42
|
+
variants: {
|
|
43
|
+
mobileLayout: {
|
|
44
|
+
banner: "[--gridui-banner-artwork-height:164px] [--gridui-banner-fade-start:80px]",
|
|
45
|
+
shallow: "[--gridui-banner-artwork-height:88px] [--gridui-banner-fade-start:40px]",
|
|
46
|
+
compact: "gridui-feature-banner-compact max-[48rem]:p-gridui-24 max-[48rem]:gap-gridui-16"
|
|
47
|
+
},
|
|
48
|
+
hasArtwork: {
|
|
49
|
+
true: "min-[48rem]:min-h-68",
|
|
50
|
+
false: "gridui-feature-banner-without-artwork"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
compoundVariants: [
|
|
54
|
+
{
|
|
55
|
+
mobileLayout: "compact",
|
|
56
|
+
hasArtwork: true,
|
|
57
|
+
className: "max-[48rem]:grid-cols-[80px_minmax(0,1fr)]"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
var featureBannerArtworkStyles = cva2(cn3(
|
|
62
|
+
"gridui-feature-banner-artwork",
|
|
63
|
+
"object-cover object-center",
|
|
64
|
+
"transition-transform duration-240 ease-[ease] motion-reduce:transition-none motion-reduce:duration-0"
|
|
65
|
+
));
|
|
66
|
+
var featureBannerContentStyles = cva2(cn3(
|
|
67
|
+
"gridui-feature-banner-content box-border flex min-w-0 flex-col items-start gap-gridui-16",
|
|
68
|
+
"min-[48rem]:py-gridui-32 min-[48rem]:px-gridui-48"
|
|
69
|
+
), {
|
|
70
|
+
variants: {
|
|
71
|
+
mobileLayout: {
|
|
72
|
+
banner: "max-[48rem]:px-gridui-24 max-[48rem]:pb-gridui-32",
|
|
73
|
+
shallow: "max-[48rem]:px-gridui-24 max-[48rem]:pb-gridui-24",
|
|
74
|
+
compact: ""
|
|
75
|
+
},
|
|
76
|
+
hasArtwork: {
|
|
77
|
+
true: "",
|
|
78
|
+
false: ""
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
compoundVariants: [
|
|
82
|
+
{
|
|
83
|
+
mobileLayout: "banner",
|
|
84
|
+
hasArtwork: true,
|
|
85
|
+
className: "max-[48rem]:pt-44"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
mobileLayout: "shallow",
|
|
89
|
+
hasArtwork: true,
|
|
90
|
+
className: "max-[48rem]:pt-25"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
mobileLayout: [
|
|
94
|
+
"banner",
|
|
95
|
+
"shallow"
|
|
96
|
+
],
|
|
97
|
+
hasArtwork: false,
|
|
98
|
+
className: "max-[48rem]:pt-gridui-24"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
});
|
|
102
|
+
var featureBannerActionStyles = cva2(cn3(
|
|
103
|
+
"gridui-feature-banner-action",
|
|
104
|
+
"inline-flex min-h-11 items-center gap-gridui-8 mt-gridui-8 text-link type-ui"
|
|
105
|
+
));
|
|
106
|
+
|
|
107
|
+
// src/feature-banner/feature-banner.tsx
|
|
108
|
+
import { cn as cn4 } from "@gridui/style-utils";
|
|
109
|
+
import { ArrowUpRight } from "lucide-react";
|
|
110
|
+
import { Children, useId } from "react";
|
|
111
|
+
import { jsx, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
112
|
+
var FeatureBanner = (props) => {
|
|
113
|
+
const { title, description, artwork, action, mobileLayout = "banner", className, ...restProps } = props;
|
|
114
|
+
const id = useId();
|
|
115
|
+
const hasDescription = Children.toArray(description).some((child) => {
|
|
116
|
+
return child !== "";
|
|
117
|
+
});
|
|
118
|
+
const hasAction = Children.toArray(action).some((child) => {
|
|
119
|
+
return child !== "";
|
|
120
|
+
});
|
|
121
|
+
return /* @__PURE__ */ jsxs2(
|
|
122
|
+
"a",
|
|
123
|
+
{
|
|
124
|
+
"aria-labelledby": `${id}-title`,
|
|
125
|
+
"aria-describedby": hasDescription ? `${id}-intro` : void 0,
|
|
126
|
+
...restProps,
|
|
127
|
+
className: cn4(featureBannerStyles({
|
|
128
|
+
mobileLayout,
|
|
129
|
+
hasArtwork: Boolean(artwork)
|
|
130
|
+
}), className),
|
|
131
|
+
children: [
|
|
132
|
+
artwork && /* @__PURE__ */ jsx(
|
|
133
|
+
"img",
|
|
134
|
+
{
|
|
135
|
+
className: cn4(featureBannerArtworkStyles()),
|
|
136
|
+
src: artwork,
|
|
137
|
+
alt: "",
|
|
138
|
+
width: 1920,
|
|
139
|
+
height: 620,
|
|
140
|
+
loading: "lazy",
|
|
141
|
+
decoding: "async",
|
|
142
|
+
referrerPolicy: "no-referrer"
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ jsxs2(
|
|
146
|
+
"div",
|
|
147
|
+
{
|
|
148
|
+
className: cn4(featureBannerContentStyles({
|
|
149
|
+
mobileLayout,
|
|
150
|
+
hasArtwork: Boolean(artwork)
|
|
151
|
+
})),
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ jsx(
|
|
154
|
+
"h2",
|
|
155
|
+
{
|
|
156
|
+
id: `${id}-title`,
|
|
157
|
+
className: "type-heading",
|
|
158
|
+
children: title
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
hasDescription && /* @__PURE__ */ jsx(
|
|
162
|
+
"p",
|
|
163
|
+
{
|
|
164
|
+
className: "gridui-copy",
|
|
165
|
+
id: `${id}-intro`,
|
|
166
|
+
children: description
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
hasAction && /* @__PURE__ */ jsxs2(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
className: cn4(featureBannerActionStyles()),
|
|
173
|
+
children: [
|
|
174
|
+
action,
|
|
175
|
+
/* @__PURE__ */ jsx(
|
|
176
|
+
ArrowUpRight,
|
|
177
|
+
{
|
|
178
|
+
"aria-hidden": "true",
|
|
179
|
+
size: 18
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
// src/feature-domain/style.ts
|
|
194
|
+
import { cn as cn5 } from "@gridui/style-utils";
|
|
195
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
196
|
+
var featureDomainStyles = cva3(cn5(
|
|
197
|
+
"gridui-feature-domain",
|
|
198
|
+
"type-code"
|
|
199
|
+
));
|
|
200
|
+
|
|
201
|
+
// src/feature-domain/feature-domain.tsx
|
|
202
|
+
import { cn as cn6 } from "@gridui/style-utils";
|
|
203
|
+
import "react";
|
|
204
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
205
|
+
var FeatureDomain = (props) => {
|
|
206
|
+
const { className, ...restProps } = props;
|
|
207
|
+
return /* @__PURE__ */ jsx2(
|
|
208
|
+
"span",
|
|
209
|
+
{
|
|
210
|
+
...restProps,
|
|
211
|
+
className: cn6(featureDomainStyles(), className)
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// src/feature-identity/feature-identity.tsx
|
|
217
|
+
import "react";
|
|
218
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
219
|
+
var FeatureIdentity = (props) => {
|
|
220
|
+
const { logo, children } = props;
|
|
221
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
222
|
+
logo,
|
|
223
|
+
/* @__PURE__ */ jsx3(
|
|
224
|
+
"h2",
|
|
225
|
+
{
|
|
226
|
+
className: "gridui-wordmark",
|
|
227
|
+
children
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
] });
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
// src/feature-link/style.ts
|
|
234
|
+
import { cn as cn7 } from "@gridui/style-utils";
|
|
235
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
236
|
+
var featureLinkStyles = cva4(cn7(
|
|
237
|
+
"gridui-feature-link",
|
|
238
|
+
"flex h-full flex-col p-gridui-24 text-foreground bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] no-underline [transition:background-color_120ms_ease]",
|
|
239
|
+
"[&:hover]:bg-[color-mix(in_srgb,var(--gridui-feature-accent)_7%,var(--gridui-background))]",
|
|
240
|
+
"min-[40rem]:py-gridui-32 min-[40rem]:px-gridui-48",
|
|
241
|
+
"motion-reduce:transition-none"
|
|
242
|
+
));
|
|
243
|
+
var featureCategoryStyles = cva4(cn7(
|
|
244
|
+
"gridui-feature-category",
|
|
245
|
+
"mb-gridui-24"
|
|
246
|
+
));
|
|
247
|
+
var featureIdentityStyles = cva4(cn7(
|
|
248
|
+
"gridui-feature-identity",
|
|
249
|
+
"flex items-center gap-gridui-16",
|
|
250
|
+
"[&_>_svg]:w-gridui-48 [&_>_svg]:h-gridui-48 [&_>_svg]:shrink-0",
|
|
251
|
+
"[&_h2]:type-heading",
|
|
252
|
+
"min-[40rem]:[&_>_svg]:w-gridui-64 min-[40rem]:[&_>_svg]:h-gridui-64"
|
|
253
|
+
));
|
|
254
|
+
var featureDescriptionStyles = cva4(cn7(
|
|
255
|
+
"gridui-feature-description",
|
|
256
|
+
"flex-1 mt-gridui-24 text-muted"
|
|
257
|
+
));
|
|
258
|
+
var featureDestinationStyles = cva4(cn7(
|
|
259
|
+
"gridui-feature-destination",
|
|
260
|
+
"flex flex-wrap items-center justify-between gap-gridui-16 mt-gridui-32 pt-gridui-16 border-t border-solid border-[color-mix(in_srgb,var(--gridui-feature-accent)_18%,var(--gridui-background))] text-(--gridui-feature-accent) type-caption"
|
|
261
|
+
));
|
|
262
|
+
|
|
263
|
+
// src/feature-link/feature-link.tsx
|
|
264
|
+
import { cn as cn8 } from "@gridui/style-utils";
|
|
265
|
+
import { Children as Children2 } from "react";
|
|
266
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
267
|
+
var FeatureLink = (props) => {
|
|
268
|
+
const {
|
|
269
|
+
seed,
|
|
270
|
+
category,
|
|
271
|
+
identity,
|
|
272
|
+
description,
|
|
273
|
+
destination,
|
|
274
|
+
className,
|
|
275
|
+
style,
|
|
276
|
+
...restProps
|
|
277
|
+
} = props;
|
|
278
|
+
const hasCategory = Children2.toArray(category).some((child) => {
|
|
279
|
+
return child !== "";
|
|
280
|
+
});
|
|
281
|
+
const hasDescription = Children2.toArray(description).some((child) => {
|
|
282
|
+
return child !== "";
|
|
283
|
+
});
|
|
284
|
+
const hasDestination = Children2.toArray(destination).some((child) => {
|
|
285
|
+
return child !== "";
|
|
286
|
+
});
|
|
287
|
+
return /* @__PURE__ */ jsxs4(
|
|
288
|
+
"a",
|
|
289
|
+
{
|
|
290
|
+
...restProps,
|
|
291
|
+
className: cn8(featureLinkStyles(), className),
|
|
292
|
+
style: {
|
|
293
|
+
"--gridui-feature-seed": seed,
|
|
294
|
+
...style
|
|
295
|
+
},
|
|
296
|
+
children: [
|
|
297
|
+
hasCategory && /* @__PURE__ */ jsx4(
|
|
298
|
+
"p",
|
|
299
|
+
{
|
|
300
|
+
className: cn8("type-eyebrow text-muted", featureCategoryStyles()),
|
|
301
|
+
children: category
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ jsx4(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
className: cn8(featureIdentityStyles()),
|
|
308
|
+
children: identity
|
|
309
|
+
}
|
|
310
|
+
),
|
|
311
|
+
hasDescription && /* @__PURE__ */ jsx4(
|
|
312
|
+
"p",
|
|
313
|
+
{
|
|
314
|
+
className: cn8(featureDescriptionStyles()),
|
|
315
|
+
children: description
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
hasDestination && /* @__PURE__ */ jsx4(
|
|
319
|
+
"div",
|
|
320
|
+
{
|
|
321
|
+
className: cn8(featureDestinationStyles()),
|
|
322
|
+
children: destination
|
|
323
|
+
}
|
|
324
|
+
)
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
};
|
|
329
|
+
export {
|
|
330
|
+
FeatureAction,
|
|
331
|
+
FeatureBanner,
|
|
332
|
+
FeatureDomain,
|
|
333
|
+
FeatureIdentity,
|
|
334
|
+
FeatureLink
|
|
335
|
+
};
|
|
336
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
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 \"inline-flex items-center gap-gridui-8\",\n \"[&_svg]:w-gridui-16 [&_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 \"relative isolate grid overflow-hidden text-foreground bg-surface no-underline\",\n \"min-[48rem]:items-center\",\n), {\n variants: {\n mobileLayout: {\n banner: \"[--gridui-banner-artwork-height:164px] [--gridui-banner-fade-start:80px]\",\n shallow: \"[--gridui-banner-artwork-height:88px] [--gridui-banner-fade-start:40px]\",\n compact: \"gridui-feature-banner-compact max-[48rem]:p-gridui-24 max-[48rem]:gap-gridui-16\",\n },\n hasArtwork: {\n true: \"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: \"max-[48rem]:grid-cols-[80px_minmax(0,1fr)]\",\n },\n ],\n});\n\nexport const featureBannerArtworkStyles = cva(cn(\n \"gridui-feature-banner-artwork\",\n \"object-cover object-center\",\n \"transition-transform duration-240 ease-[ease] motion-reduce:transition-none motion-reduce:duration-0\",\n));\n\nexport const featureBannerContentStyles = cva(cn(\n \"gridui-feature-banner-content box-border flex min-w-0 flex-col items-start gap-gridui-16\",\n \"min-[48rem]:py-gridui-32 min-[48rem]:px-gridui-48\",\n), {\n variants: {\n mobileLayout: {\n banner: \"max-[48rem]:px-gridui-24 max-[48rem]:pb-gridui-32\",\n shallow: \"max-[48rem]:px-gridui-24 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: \"max-[48rem]:pt-44\",\n },\n {\n mobileLayout: \"shallow\",\n hasArtwork: true,\n className: \"max-[48rem]:pt-25\",\n },\n {\n mobileLayout: [\n \"banner\",\n \"shallow\",\n ],\n hasArtwork: false,\n className: \"max-[48rem]:pt-gridui-24\",\n },\n ],\n});\n\nexport const featureBannerActionStyles = cva(cn(\n \"gridui-feature-banner-action\",\n \"inline-flex min-h-11 items-center gap-gridui-8 mt-gridui-8 text-link 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=\"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 \"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 \"flex h-full flex-col p-gridui-24 text-foreground bg-[color-mix(in_srgb,var(--gridui-feature-accent)_3%,var(--gridui-background))] no-underline [transition:background-color_120ms_ease]\",\n \"[&:hover]:bg-[color-mix(in_srgb,var(--gridui-feature-accent)_7%,var(--gridui-background))]\",\n \"min-[40rem]:py-gridui-32 min-[40rem]:px-gridui-48\",\n \"motion-reduce:transition-none\",\n));\n\nexport const featureCategoryStyles = cva(cn(\n \"gridui-feature-category\",\n \"mb-gridui-24\",\n));\n\nexport const featureIdentityStyles = cva(cn(\n \"gridui-feature-identity\",\n \"flex items-center gap-gridui-16\",\n \"[&_>_svg]:w-gridui-48 [&_>_svg]:h-gridui-48 [&_>_svg]:shrink-0\",\n \"[&_h2]:type-heading\",\n \"min-[40rem]:[&_>_svg]:w-gridui-64 min-[40rem]:[&_>_svg]:h-gridui-64\",\n));\n\nexport const featureDescriptionStyles = cva(cn(\n \"gridui-feature-description\",\n \"flex-1 mt-gridui-24 text-muted\",\n));\n\nexport const featureDestinationStyles = cva(cn(\n \"gridui-feature-destination\",\n \"flex flex-wrap items-center justify-between gap-gridui-16 mt-gridui-32 pt-gridui-16 border-t border-solid border-[color-mix(in_srgb,var(--gridui-feature-accent)_18%,var(--gridui-background))] text-(--gridui-feature-accent) 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(\"type-eyebrow 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;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AA;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"]
|
|
7
|
+
}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
--default-transition-duration: 150ms;
|
|
8
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@layer utilities {
|
|
12
|
+
.relative {
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
.isolate {
|
|
16
|
+
isolation: isolate;
|
|
17
|
+
}
|
|
18
|
+
.mt-gridui-8 {
|
|
19
|
+
margin-top: var(--gridui-space-8);
|
|
20
|
+
}
|
|
21
|
+
.mt-gridui-24 {
|
|
22
|
+
margin-top: var(--gridui-space-24);
|
|
23
|
+
}
|
|
24
|
+
.mt-gridui-32 {
|
|
25
|
+
margin-top: var(--gridui-space-32);
|
|
26
|
+
}
|
|
27
|
+
.mb-gridui-24 {
|
|
28
|
+
margin-bottom: var(--gridui-space-24);
|
|
29
|
+
}
|
|
30
|
+
.box-border {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
.flex {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
.grid {
|
|
37
|
+
display: grid;
|
|
38
|
+
}
|
|
39
|
+
.inline-flex {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
}
|
|
42
|
+
.h-full {
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
.min-h-11 {
|
|
46
|
+
min-height: calc(var(--spacing) * 11);
|
|
47
|
+
}
|
|
48
|
+
.min-w-0 {
|
|
49
|
+
min-width: 0px;
|
|
50
|
+
}
|
|
51
|
+
.flex-1 {
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
.flex-col {
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
}
|
|
57
|
+
.flex-wrap {
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
}
|
|
60
|
+
.items-center {
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
.items-start {
|
|
64
|
+
align-items: flex-start;
|
|
65
|
+
}
|
|
66
|
+
.justify-between {
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
}
|
|
69
|
+
.gap-gridui-8 {
|
|
70
|
+
gap: var(--gridui-space-8);
|
|
71
|
+
}
|
|
72
|
+
.gap-gridui-16 {
|
|
73
|
+
gap: var(--gridui-space-16);
|
|
74
|
+
}
|
|
75
|
+
.overflow-hidden {
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
}
|
|
78
|
+
.border-t {
|
|
79
|
+
border-top-style: var(--tw-border-style);
|
|
80
|
+
border-top-width: 1px;
|
|
81
|
+
}
|
|
82
|
+
.border-solid {
|
|
83
|
+
--tw-border-style: solid;
|
|
84
|
+
border-style: solid;
|
|
85
|
+
}
|
|
86
|
+
.border-\[color-mix\(in_srgb\,var\(--gridui-feature-accent\)_18\%\,var\(--gridui-background\)\)\] {
|
|
87
|
+
border-color: var(--gridui-feature-accent);
|
|
88
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
89
|
+
border-color: color-mix(in srgb,var(--gridui-feature-accent) 18%,var(--gridui-background));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.bg-\[color-mix\(in_srgb\,var\(--gridui-feature-accent\)_3\%\,var\(--gridui-background\)\)\] {
|
|
93
|
+
background-color: var(--gridui-feature-accent);
|
|
94
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
95
|
+
background-color: color-mix(in srgb,var(--gridui-feature-accent) 3%,var(--gridui-background));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.bg-surface {
|
|
99
|
+
background-color: var(--gridui-surface);
|
|
100
|
+
}
|
|
101
|
+
.object-cover {
|
|
102
|
+
object-fit: cover;
|
|
103
|
+
}
|
|
104
|
+
.object-center {
|
|
105
|
+
object-position: center;
|
|
106
|
+
}
|
|
107
|
+
.p-gridui-24 {
|
|
108
|
+
padding: var(--gridui-space-24);
|
|
109
|
+
}
|
|
110
|
+
.pt-gridui-16 {
|
|
111
|
+
padding-top: var(--gridui-space-16);
|
|
112
|
+
}
|
|
113
|
+
.type-heading {
|
|
114
|
+
font: var(--gridui-type-heading);
|
|
115
|
+
letter-spacing: normal;
|
|
116
|
+
text-wrap: balance;
|
|
117
|
+
}
|
|
118
|
+
.type-caption {
|
|
119
|
+
font: var(--gridui-type-caption);
|
|
120
|
+
letter-spacing: normal;
|
|
121
|
+
}
|
|
122
|
+
.type-code {
|
|
123
|
+
font: var(--gridui-type-code);
|
|
124
|
+
letter-spacing: normal;
|
|
125
|
+
}
|
|
126
|
+
.type-eyebrow {
|
|
127
|
+
font: var(--gridui-type-eyebrow);
|
|
128
|
+
letter-spacing: 0.08em;
|
|
129
|
+
}
|
|
130
|
+
.type-ui {
|
|
131
|
+
font: var(--gridui-type-ui);
|
|
132
|
+
letter-spacing: normal;
|
|
133
|
+
}
|
|
134
|
+
.text-\(--gridui-feature-accent\) {
|
|
135
|
+
color: var(--gridui-feature-accent);
|
|
136
|
+
}
|
|
137
|
+
.text-foreground {
|
|
138
|
+
color: var(--gridui-foreground);
|
|
139
|
+
}
|
|
140
|
+
.text-link {
|
|
141
|
+
color: var(--gridui-link);
|
|
142
|
+
}
|
|
143
|
+
.text-muted {
|
|
144
|
+
color: var(--gridui-muted);
|
|
145
|
+
}
|
|
146
|
+
.no-underline {
|
|
147
|
+
text-decoration-line: none;
|
|
148
|
+
}
|
|
149
|
+
.transition-transform {
|
|
150
|
+
transition-property: transform, translate, scale, rotate;
|
|
151
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
152
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
153
|
+
}
|
|
154
|
+
.duration-240 {
|
|
155
|
+
--tw-duration: 240ms;
|
|
156
|
+
transition-duration: 240ms;
|
|
157
|
+
}
|
|
158
|
+
.ease-\[ease\] {
|
|
159
|
+
--tw-ease: ease;
|
|
160
|
+
transition-timing-function: ease;
|
|
161
|
+
}
|
|
162
|
+
.\[--gridui-banner-artwork-height\:88px\] {
|
|
163
|
+
--gridui-banner-artwork-height: 88px;
|
|
164
|
+
}
|
|
165
|
+
.\[--gridui-banner-artwork-height\:164px\] {
|
|
166
|
+
--gridui-banner-artwork-height: 164px;
|
|
167
|
+
}
|
|
168
|
+
.\[--gridui-banner-fade-start\:40px\] {
|
|
169
|
+
--gridui-banner-fade-start: 40px;
|
|
170
|
+
}
|
|
171
|
+
.\[--gridui-banner-fade-start\:80px\] {
|
|
172
|
+
--gridui-banner-fade-start: 80px;
|
|
173
|
+
}
|
|
174
|
+
.\[transition\:background-color_120ms_ease\] {
|
|
175
|
+
transition: background-color 120ms ease;
|
|
176
|
+
}
|
|
177
|
+
@media (prefers-reduced-motion: reduce) {
|
|
178
|
+
.motion-reduce\:transition-none {
|
|
179
|
+
transition-property: none;
|
|
180
|
+
}
|
|
181
|
+
.motion-reduce\:duration-0 {
|
|
182
|
+
--tw-duration: 0ms;
|
|
183
|
+
transition-duration: 0ms;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
@media (width < 48rem) {
|
|
187
|
+
.max-\[48rem\]\:grid-cols-\[80px_minmax\(0\,1fr\)\] {
|
|
188
|
+
grid-template-columns: 80px minmax(0,1fr);
|
|
189
|
+
}
|
|
190
|
+
.max-\[48rem\]\:gap-gridui-16 {
|
|
191
|
+
gap: var(--gridui-space-16);
|
|
192
|
+
}
|
|
193
|
+
.max-\[48rem\]\:p-gridui-24 {
|
|
194
|
+
padding: var(--gridui-space-24);
|
|
195
|
+
}
|
|
196
|
+
.max-\[48rem\]\:px-gridui-24 {
|
|
197
|
+
padding-inline: var(--gridui-space-24);
|
|
198
|
+
}
|
|
199
|
+
.max-\[48rem\]\:pt-25 {
|
|
200
|
+
padding-top: calc(var(--spacing) * 25);
|
|
201
|
+
}
|
|
202
|
+
.max-\[48rem\]\:pt-44 {
|
|
203
|
+
padding-top: calc(var(--spacing) * 44);
|
|
204
|
+
}
|
|
205
|
+
.max-\[48rem\]\:pt-gridui-24 {
|
|
206
|
+
padding-top: var(--gridui-space-24);
|
|
207
|
+
}
|
|
208
|
+
.max-\[48rem\]\:pb-gridui-24 {
|
|
209
|
+
padding-bottom: var(--gridui-space-24);
|
|
210
|
+
}
|
|
211
|
+
.max-\[48rem\]\:pb-gridui-32 {
|
|
212
|
+
padding-bottom: var(--gridui-space-32);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@media (width >= 40rem) {
|
|
216
|
+
.min-\[40rem\]\:px-gridui-48 {
|
|
217
|
+
padding-inline: var(--gridui-space-48);
|
|
218
|
+
}
|
|
219
|
+
.min-\[40rem\]\:py-gridui-32 {
|
|
220
|
+
padding-block: var(--gridui-space-32);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
@media (width >= 48rem) {
|
|
224
|
+
.min-\[48rem\]\:min-h-68 {
|
|
225
|
+
min-height: calc(var(--spacing) * 68);
|
|
226
|
+
}
|
|
227
|
+
.min-\[48rem\]\:items-center {
|
|
228
|
+
align-items: center;
|
|
229
|
+
}
|
|
230
|
+
.min-\[48rem\]\:px-gridui-48 {
|
|
231
|
+
padding-inline: var(--gridui-space-48);
|
|
232
|
+
}
|
|
233
|
+
.min-\[48rem\]\:py-gridui-32 {
|
|
234
|
+
padding-block: var(--gridui-space-32);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
.\[\&_\>_svg\]\:h-gridui-48 > svg {
|
|
238
|
+
height: var(--gridui-space-48);
|
|
239
|
+
}
|
|
240
|
+
.\[\&_\>_svg\]\:w-gridui-48 > svg {
|
|
241
|
+
width: var(--gridui-space-48);
|
|
242
|
+
}
|
|
243
|
+
.\[\&_\>_svg\]\:shrink-0 > svg {
|
|
244
|
+
flex-shrink: 0;
|
|
245
|
+
}
|
|
246
|
+
@media (width >= 40rem) {
|
|
247
|
+
.min-\[40rem\]\:\[\&_\>_svg\]\:h-gridui-64 > svg {
|
|
248
|
+
height: var(--gridui-space-64);
|
|
249
|
+
}
|
|
250
|
+
.min-\[40rem\]\:\[\&_\>_svg\]\:w-gridui-64 > svg {
|
|
251
|
+
width: var(--gridui-space-64);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
.\[\&_h2\]\:type-heading h2 {
|
|
255
|
+
font: var(--gridui-type-heading);
|
|
256
|
+
letter-spacing: normal;
|
|
257
|
+
text-wrap: balance;
|
|
258
|
+
}
|
|
259
|
+
.\[\&_svg\]\:h-gridui-16 svg {
|
|
260
|
+
height: var(--gridui-space-16);
|
|
261
|
+
}
|
|
262
|
+
.\[\&_svg\]\:w-gridui-16 svg {
|
|
263
|
+
width: var(--gridui-space-16);
|
|
264
|
+
}
|
|
265
|
+
.\[\&\:hover\]\:bg-\[color-mix\(in_srgb\,var\(--gridui-feature-accent\)_7\%\,var\(--gridui-background\)\)\]:hover {
|
|
266
|
+
background-color: var(--gridui-feature-accent);
|
|
267
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
268
|
+
background-color: color-mix(in srgb,var(--gridui-feature-accent) 7%,var(--gridui-background));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
@layer components {
|
|
273
|
+
.gridui-feature-link {
|
|
274
|
+
--gridui-feature-accent: light-dark(var(--gridui-feature-seed), var(--gridui-feature-seed));
|
|
275
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
276
|
+
--gridui-feature-accent: light-dark(var(--gridui-feature-seed), color-mix(in srgb, var(--gridui-feature-seed) 35%, #ffffff));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
.gridui-feature-banner-artwork {
|
|
280
|
+
position: absolute;
|
|
281
|
+
z-index: var(--gridui-z-artwork);
|
|
282
|
+
inset: 0 0 auto;
|
|
283
|
+
width: 100%;
|
|
284
|
+
height: var(--gridui-banner-artwork-height);
|
|
285
|
+
}
|
|
286
|
+
.gridui-feature-banner::before {
|
|
287
|
+
position: absolute;
|
|
288
|
+
z-index: var(--gridui-z-background);
|
|
289
|
+
inset: 0;
|
|
290
|
+
background: linear-gradient(to bottom, transparent var(--gridui-banner-fade-start), var(--gridui-background) var(--gridui-banner-artwork-height));
|
|
291
|
+
content: "";
|
|
292
|
+
}
|
|
293
|
+
.gridui-feature-banner-without-artwork::before {
|
|
294
|
+
content: none;
|
|
295
|
+
}
|
|
296
|
+
@media (width < 48rem) {
|
|
297
|
+
.gridui-feature-banner-compact > .gridui-feature-banner-artwork {
|
|
298
|
+
position: relative;
|
|
299
|
+
z-index: var(--gridui-z-base);
|
|
300
|
+
inset: auto;
|
|
301
|
+
width: 80px;
|
|
302
|
+
height: 80px;
|
|
303
|
+
}
|
|
304
|
+
.gridui-feature-banner-compact::before {
|
|
305
|
+
content: none;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
@media (hover: hover) and (pointer: fine) {
|
|
309
|
+
.gridui-feature-banner:hover .gridui-feature-banner-artwork {
|
|
310
|
+
transform: scale(1.025);
|
|
311
|
+
}
|
|
312
|
+
.gridui-feature-banner:hover .gridui-feature-banner-action {
|
|
313
|
+
text-decoration: underline;
|
|
314
|
+
text-underline-offset: 0.25em;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
@media (min-width: 48rem) {
|
|
318
|
+
.gridui-feature-banner-artwork {
|
|
319
|
+
inset: 0 0 0 auto;
|
|
320
|
+
width: 76%;
|
|
321
|
+
height: 100%;
|
|
322
|
+
}
|
|
323
|
+
.gridui-feature-banner-content {
|
|
324
|
+
width: 49%;
|
|
325
|
+
}
|
|
326
|
+
.gridui-feature-banner-without-artwork > .gridui-feature-banner-content {
|
|
327
|
+
width: 100%;
|
|
328
|
+
}
|
|
329
|
+
.gridui-feature-banner::before {
|
|
330
|
+
background: linear-gradient(to right, var(--gridui-background) 32%, var(--gridui-background) 42%, transparent 76%);
|
|
331
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
332
|
+
background: linear-gradient(to right, var(--gridui-background) 32%, color-mix(in srgb, var(--gridui-background) 92%, transparent) 42%, transparent 76%);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
@media (prefers-reduced-motion: reduce) {
|
|
337
|
+
.gridui-feature-banner:hover .gridui-feature-banner-artwork {
|
|
338
|
+
transform: none;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
@property --tw-border-style {
|
|
343
|
+
syntax: "*";
|
|
344
|
+
inherits: false;
|
|
345
|
+
initial-value: solid;
|
|
346
|
+
}
|
|
347
|
+
@property --tw-duration {
|
|
348
|
+
syntax: "*";
|
|
349
|
+
inherits: false;
|
|
350
|
+
}
|
|
351
|
+
@property --tw-ease {
|
|
352
|
+
syntax: "*";
|
|
353
|
+
inherits: false;
|
|
354
|
+
}
|
|
355
|
+
@layer properties {
|
|
356
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
357
|
+
*, ::before, ::after, ::backdrop {
|
|
358
|
+
--tw-border-style: solid;
|
|
359
|
+
--tw-duration: initial;
|
|
360
|
+
--tw-ease: initial;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/feature",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "GridUI React feature",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^19.2.0",
|
|
26
|
+
"react-dom": "^19.2.0"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@gridui/style-utils": "^2.1.2",
|
|
30
|
+
"@gridui/theme": "^2.1.2",
|
|
31
|
+
"class-variance-authority": "0.7.1",
|
|
32
|
+
"lucide-react": "1.62.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@gridui-internal/configuration": "0.0.0",
|
|
36
|
+
"@jest/globals": "30.5.2",
|
|
37
|
+
"@types/jest": "30.0.0",
|
|
38
|
+
"@types/node": "26.6.5",
|
|
39
|
+
"@types/react": "19.3.0",
|
|
40
|
+
"@types/react-dom": "19.3.0",
|
|
41
|
+
"jest": "30.5.2",
|
|
42
|
+
"react": "19.3.1",
|
|
43
|
+
"react-dom": "19.3.1",
|
|
44
|
+
"typescript": "6.0.3"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "node ../../scripts/compilation/package.ts",
|
|
48
|
+
"compile": "tsc --project tsconfig.json",
|
|
49
|
+
"test": "jest",
|
|
50
|
+
"coverage": "jest --coverage"
|
|
51
|
+
}
|
|
6
52
|
}
|