@gridui/rail-profile 1.0.1 → 1.0.4
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 +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +15 -15
- package/docs/catalog.json +28 -0
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@ Core family. Public API: `RailProfile`, `RailProfileProps`.
|
|
|
5
5
|
Import components from `@gridui/rail-profile` and load `@gridui/rail-profile/styles.css` after Theme.
|
|
6
6
|
Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
|
-
See [component ownership](
|
|
8
|
+
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/rail-profile/.changeset/history).
|
|
9
9
|
|
|
10
10
|
## RailProfile
|
|
11
11
|
|
|
12
12
|
Import `RailProfile` and `RailProfileProps` from `@gridui/rail-profile`.
|
|
13
|
-
Ordered process lists belong to [`@gridui/steps`](
|
|
13
|
+
Ordered process lists belong to [`@gridui/steps`](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/steps/README.md), which
|
|
14
14
|
owns the Steps component and stylesheet. Task state and timeline coordination
|
|
15
15
|
remain with Layout's TaskTimeline.
|
|
16
16
|
|
package/dist/index.js
CHANGED
|
@@ -3,19 +3,19 @@ import { cn } from "@gridui/style-utils";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
var railProfileStyles = cva(cn(
|
|
5
5
|
"gridui-rail-profile",
|
|
6
|
-
"flex flex-col items-center gap-gridui-8"
|
|
6
|
+
"gridui-u-flex gridui-u-flex-col gridui-u-items-center gridui-u-gap-gridui-8"
|
|
7
7
|
));
|
|
8
8
|
var railTextStyles = cva(cn(
|
|
9
9
|
"gridui-rail-text",
|
|
10
|
-
"[writing-mode:vertical-rl] whitespace-nowrap"
|
|
10
|
+
"gridui-u-[writing-mode:vertical-rl] gridui-u-whitespace-nowrap"
|
|
11
11
|
));
|
|
12
12
|
var railCaptionStyles = cva(cn(
|
|
13
13
|
"gridui-rail-caption",
|
|
14
|
-
"text-muted"
|
|
14
|
+
"gridui-u-text-muted"
|
|
15
15
|
));
|
|
16
16
|
var railAvatarStyles = cva(cn(
|
|
17
17
|
"gridui-rail-avatar",
|
|
18
|
-
"grid w-gridui-24 h-gridui-24 place-items-center rounded-[50%] text-accent-foreground bg-accent-background"
|
|
18
|
+
"gridui-u-grid gridui-u-w-gridui-24 gridui-u-h-gridui-24 gridui-u-place-items-center gridui-u-rounded-[50%] gridui-u-text-accent-foreground gridui-u-bg-accent-background"
|
|
19
19
|
));
|
|
20
20
|
|
|
21
21
|
// src/rail-profile/rail-profile.tsx
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/rail-profile/style.ts", "../src/rail-profile/rail-profile.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Rail Profile\n * @namespace RailProfile\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const railProfileStyles = cva(cn(\n \"gridui-rail-profile\",\n \"flex flex-col items-center gap-gridui-8\",\n));\n\nexport const railTextStyles = cva(cn(\n \"gridui-rail-text\",\n \"[writing-mode:vertical-rl] whitespace-nowrap\",\n));\n\nexport const railCaptionStyles = cva(cn(\n \"gridui-rail-caption\",\n \"text-muted\",\n));\n\nexport const railAvatarStyles = cva(cn(\n \"gridui-rail-avatar\",\n \"grid w-gridui-24 h-gridui-24 place-items-center rounded-[50%] text-accent-foreground bg-accent-background\",\n));\n", "/**\n * @author WMXPY\n * @package Rail Profile\n * @namespace RailProfile\n * @description Rail Profile\n */\n\nimport { railAvatarStyles, railCaptionStyles, railProfileStyles, railTextStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC, ReactNode } from \"react\";\n\nexport type RailProfileProps = {\n readonly avatar?: ReactNode;\n readonly name?: ReactNode;\n readonly caption?: ReactNode;\n readonly action: ReactNode;\n};\n\nexport const RailProfile: FC<RailProfileProps> = (props: RailProfileProps) => {\n const { avatar, name, caption, action } = props;\n return (<div\n className={cn(railProfileStyles())}\n >\n {name ? (<div\n className={cn(railProfileStyles())}\n role=\"status\"\n >\n <span\n className={cn(railAvatarStyles())}\n aria-hidden=\"true\"\n >\n {avatar}\n </span>\n <span\n className={cn(railTextStyles())}\n >\n {name}\n </span>\n <span\n className={cn(railTextStyles(), railCaptionStyles())}\n >\n {caption}\n </span>\n </div>) : action}\n </div>);\n};\n"],
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Rail Profile\n * @namespace RailProfile\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const railProfileStyles = cva(cn(\n \"gridui-rail-profile\",\n \"gridui-u-flex gridui-u-flex-col gridui-u-items-center gridui-u-gap-gridui-8\",\n));\n\nexport const railTextStyles = cva(cn(\n \"gridui-rail-text\",\n \"gridui-u-[writing-mode:vertical-rl] gridui-u-whitespace-nowrap\",\n));\n\nexport const railCaptionStyles = cva(cn(\n \"gridui-rail-caption\",\n \"gridui-u-text-muted\",\n));\n\nexport const railAvatarStyles = cva(cn(\n \"gridui-rail-avatar\",\n \"gridui-u-grid gridui-u-w-gridui-24 gridui-u-h-gridui-24 gridui-u-place-items-center gridui-u-rounded-[50%] gridui-u-text-accent-foreground gridui-u-bg-accent-background\",\n));\n", "/**\n * @author WMXPY\n * @package Rail Profile\n * @namespace RailProfile\n * @description Rail Profile\n */\n\nimport { railAvatarStyles, railCaptionStyles, railProfileStyles, railTextStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC, ReactNode } from \"react\";\n\nexport type RailProfileProps = {\n readonly avatar?: ReactNode;\n readonly name?: ReactNode;\n readonly caption?: ReactNode;\n readonly action: ReactNode;\n};\n\nexport const RailProfile: FC<RailProfileProps> = (props: RailProfileProps) => {\n const { avatar, name, caption, action } = props;\n return (<div\n className={cn(railProfileStyles())}\n >\n {name ? (<div\n className={cn(railProfileStyles())}\n role=\"status\"\n >\n <span\n className={cn(railAvatarStyles())}\n aria-hidden=\"true\"\n >\n {avatar}\n </span>\n <span\n className={cn(railTextStyles())}\n >\n {name}\n </span>\n <span\n className={cn(railTextStyles(), railCaptionStyles())}\n >\n {caption}\n </span>\n </div>) : action}\n </div>);\n};\n"],
|
|
5
5
|
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,oBAAoB,IAAI;AAAA,EACjC;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,iBAAiB,IAAI;AAAA,EAC9B;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,oBAAoB,IAAI;AAAA,EACjC;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,mBAAmB,IAAI;AAAA,EAChC;AAAA,EACA;AACJ,CAAC;;;ACpBD,SAAS,MAAAA,WAAU;AAeF,SAIL,KAJK;AALV,IAAM,cAAoC,CAAC,UAA4B;AAC1E,QAAM,EAAE,QAAQ,MAAM,SAAS,OAAO,IAAI;AAC1C,SAAQ;AAAA,IAAC;AAAA;AAAA,MACL,WAAWA,IAAG,kBAAkB,CAAC;AAAA,MAEhC,iBAAQ;AAAA,QAAC;AAAA;AAAA,UACN,WAAWA,IAAG,kBAAkB,CAAC;AAAA,UACjC,MAAK;AAAA,UAEL;AAAA;AAAA,cAAC;AAAA;AAAA,gBACG,WAAWA,IAAG,iBAAiB,CAAC;AAAA,gBAChC,eAAY;AAAA,gBAEX;AAAA;AAAA,YACL;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACG,WAAWA,IAAG,eAAe,CAAC;AAAA,gBAE7B;AAAA;AAAA,YACL;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACG,WAAWA,IAAG,eAAe,GAAG,kBAAkB,CAAC;AAAA,gBAElD;AAAA;AAAA,YACL;AAAA;AAAA;AAAA,MACJ,IAAU;AAAA;AAAA,EACd;AACJ;",
|
|
6
6
|
"names": ["cn"]
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer theme, base, components, utilities;
|
|
3
3
|
@layer utilities {
|
|
4
|
-
.flex {
|
|
4
|
+
.gridui-u-flex {
|
|
5
5
|
display: flex;
|
|
6
6
|
}
|
|
7
|
-
.grid {
|
|
7
|
+
.gridui-u-grid {
|
|
8
8
|
display: grid;
|
|
9
9
|
}
|
|
10
|
-
.h-gridui-24 {
|
|
10
|
+
.gridui-u-h-gridui-24 {
|
|
11
11
|
height: var(--gridui-space-24);
|
|
12
12
|
}
|
|
13
|
-
.w-gridui-24 {
|
|
13
|
+
.gridui-u-w-gridui-24 {
|
|
14
14
|
width: var(--gridui-space-24);
|
|
15
15
|
}
|
|
16
|
-
.flex-col {
|
|
16
|
+
.gridui-u-flex-col {
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
|
-
.place-items-center {
|
|
19
|
+
.gridui-u-place-items-center {
|
|
20
20
|
place-items: center;
|
|
21
21
|
}
|
|
22
|
-
.items-center {
|
|
22
|
+
.gridui-u-items-center {
|
|
23
23
|
align-items: center;
|
|
24
24
|
}
|
|
25
|
-
.gap-gridui-8 {
|
|
25
|
+
.gridui-u-gap-gridui-8 {
|
|
26
26
|
gap: var(--gridui-space-8);
|
|
27
27
|
}
|
|
28
|
-
.rounded-\[50\%\] {
|
|
28
|
+
.gridui-u-rounded-\[50\%\] {
|
|
29
29
|
border-radius: 50%;
|
|
30
30
|
}
|
|
31
|
-
.bg-accent-background {
|
|
31
|
+
.gridui-u-bg-accent-background {
|
|
32
32
|
background-color: var(--gridui-accent-background);
|
|
33
33
|
}
|
|
34
|
-
.whitespace-nowrap {
|
|
34
|
+
.gridui-u-whitespace-nowrap {
|
|
35
35
|
white-space: nowrap;
|
|
36
36
|
}
|
|
37
|
-
.text-accent-foreground {
|
|
37
|
+
.gridui-u-text-accent-foreground {
|
|
38
38
|
color: var(--gridui-accent-foreground);
|
|
39
39
|
}
|
|
40
|
-
.text-muted {
|
|
40
|
+
.gridui-u-text-muted {
|
|
41
41
|
color: var(--gridui-muted);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
.gridui-u-\[writing-mode\:vertical-rl\] {
|
|
44
44
|
writing-mode: vertical-rl;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "@gridui/rail-profile",
|
|
4
|
+
"version": "1.0.4",
|
|
5
|
+
"category": "core",
|
|
6
|
+
"description": "GridUI React rail profile",
|
|
7
|
+
"usage": "RailProfile presents supplied `name`, optional `avatar`, and `caption` vertically. When `name` is absent, it renders the supplied `action`. The application owns account state and the action; RailProfile does not fetch a profile, authenticate, or provide Grid rail geometry. Put it inside a Grid FrameRail when a page rail is needed.",
|
|
8
|
+
"documentation": [
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"exports": [
|
|
12
|
+
{
|
|
13
|
+
"name": "RailProfile",
|
|
14
|
+
"kind": "component",
|
|
15
|
+
"importPath": "@gridui/rail-profile"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "RailProfileProps",
|
|
19
|
+
"kind": "type",
|
|
20
|
+
"importPath": "@gridui/rail-profile"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"styles": [
|
|
24
|
+
"@gridui/theme/styles.css",
|
|
25
|
+
"@gridui/rail-profile/styles.css"
|
|
26
|
+
],
|
|
27
|
+
"examples": []
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/rail-profile",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "GridUI React rail profile",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"README.md"
|
|
9
|
+
"README.md",
|
|
10
|
+
"docs"
|
|
10
11
|
],
|
|
11
12
|
"sideEffects": [
|
|
12
13
|
"**/*.css"
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
"react-dom": "^19.2.0"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@gridui/style-utils": "^2.
|
|
30
|
-
"@gridui/theme": "^2.
|
|
30
|
+
"@gridui/style-utils": "^2.2.2",
|
|
31
|
+
"@gridui/theme": "^2.5.3",
|
|
31
32
|
"class-variance-authority": "0.7.1"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
@@ -44,8 +45,6 @@
|
|
|
44
45
|
},
|
|
45
46
|
"scripts": {
|
|
46
47
|
"build": "node ../../scripts/compilation/package.ts",
|
|
47
|
-
"compile": "tsc --project tsconfig.json"
|
|
48
|
-
"test": "jest --passWithNoTests",
|
|
49
|
-
"coverage": "jest --coverage --passWithNoTests"
|
|
48
|
+
"compile": "tsc --project tsconfig.json"
|
|
50
49
|
}
|
|
51
50
|
}
|