@gridui/brand-link 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 CHANGED
@@ -1,3 +1,8 @@
1
- # Temporary Holding Version
1
+ # @gridui/brand-link
2
2
 
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.
3
+ Core family. Public API: `BrandLink`, `BrandLinkProps`.
4
+
5
+ Import components from `@gridui/brand-link` and load `@gridui/brand-link/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/).
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Brand Link
4
+ * @namespace BrandLink
5
+ * @description Brand Link
6
+ */
7
+ import type { ComponentPropsWithRef, FC } from "react";
8
+ export type BrandLinkProps = ComponentPropsWithRef<"a"> & {
9
+ readonly size?: "compact" | "standard" | "large";
10
+ };
11
+ export declare const BrandLink: FC<BrandLinkProps>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Brand Link
4
+ * @namespace BrandLink
5
+ * @description Style
6
+ */
7
+ export declare const brandLinkStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Brand Link
4
+ * @namespace Root
5
+ * @description Index
6
+ */
7
+ export type { BrandLinkProps } from "./brand-link/brand-link";
8
+ export { BrandLink } from "./brand-link/brand-link";
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ // src/brand-link/style.ts
2
+ import { cn } from "@gridui/style-utils";
3
+ import { cva } from "class-variance-authority";
4
+ var brandLinkStyles = cva(cn(
5
+ "gridui-brand-link",
6
+ "inline-flex shrink-0 items-center gap-gridui-8 whitespace-nowrap text-foreground font-brand font-medium no-underline",
7
+ "data-[size='compact']:text-[1.1875rem] data-[size='compact']:leading-[1.2] data-[size='compact']:tracking-[-0.02em]",
8
+ "data-[size='standard']:text-[1.375rem] data-[size='standard']:tracking-[-0.04em]",
9
+ "data-[size='large']:text-[1.5rem] data-[size='large']:tracking-[-0.04em]",
10
+ "[@media(max-width:23.999rem)]:data-[size='standard']:text-[1.125rem]",
11
+ "[@media(max-width:23.999rem)]:[&[data-size='standard']_svg]:w-gridui-32 [@media(max-width:23.999rem)]:[&[data-size='standard']_svg]:h-gridui-32"
12
+ ));
13
+
14
+ // src/brand-link/brand-link.tsx
15
+ import { cn as cn2 } from "@gridui/style-utils";
16
+ import { jsx } from "react/jsx-runtime";
17
+ var BrandLink = (props) => {
18
+ const { size = "standard", className, ...restProps } = props;
19
+ return /* @__PURE__ */ jsx(
20
+ "a",
21
+ {
22
+ ...restProps,
23
+ className: cn2(brandLinkStyles(), className),
24
+ "data-size": size
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ BrandLink
30
+ };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/brand-link/style.ts", "../src/brand-link/brand-link.tsx"],
4
+ "sourcesContent": ["/**\n * @author WMXPY\n * @package Brand Link\n * @namespace BrandLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const brandLinkStyles = cva(cn(\n \"gridui-brand-link\",\n \"inline-flex shrink-0 items-center gap-gridui-8 whitespace-nowrap text-foreground font-brand font-medium no-underline\",\n \"data-[size='compact']:text-[1.1875rem] data-[size='compact']:leading-[1.2] data-[size='compact']:tracking-[-0.02em]\",\n \"data-[size='standard']:text-[1.375rem] data-[size='standard']:tracking-[-0.04em]\",\n \"data-[size='large']:text-[1.5rem] data-[size='large']:tracking-[-0.04em]\",\n \"[@media(max-width:23.999rem)]:data-[size='standard']:text-[1.125rem]\",\n \"[@media(max-width:23.999rem)]:[&[data-size='standard']_svg]:w-gridui-32 [@media(max-width:23.999rem)]:[&[data-size='standard']_svg]:h-gridui-32\",\n));\n", "/**\n * @author WMXPY\n * @package Brand Link\n * @namespace BrandLink\n * @description Brand Link\n */\n\nimport { brandLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type BrandLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly size?: \"compact\" | \"standard\" | \"large\";\n};\n\nexport const BrandLink: FC<BrandLinkProps> = (props: BrandLinkProps) => {\n const { size = \"standard\", className, ...restProps } = props;\n return (<a\n {...restProps}\n className={cn(brandLinkStyles(), className)}\n data-size={size}\n />);\n};\n"],
5
+ "mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,kBAAkB,IAAI;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;ACVD,SAAS,MAAAA,WAAU;AASP;AAFL,IAAM,YAAgC,CAAC,UAA0B;AACpE,QAAM,EAAE,OAAO,YAAY,WAAW,GAAG,UAAU,IAAI;AACvD,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,gBAAgB,GAAG,SAAS;AAAA,MAC1C,aAAW;AAAA;AAAA,EACf;AACJ;",
6
+ "names": ["cn"]
7
+ }
@@ -0,0 +1,95 @@
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
+ --font-weight-medium: 500;
7
+ }
8
+ }
9
+ @layer utilities {
10
+ .inline-flex {
11
+ display: inline-flex;
12
+ }
13
+ .shrink-0 {
14
+ flex-shrink: 0;
15
+ }
16
+ .items-center {
17
+ align-items: center;
18
+ }
19
+ .gap-gridui-8 {
20
+ gap: var(--gridui-space-8);
21
+ }
22
+ .font-brand {
23
+ font-family: var(--gridui-font-brand);
24
+ }
25
+ .font-medium {
26
+ --tw-font-weight: var(--font-weight-medium);
27
+ font-weight: var(--font-weight-medium);
28
+ }
29
+ .whitespace-nowrap {
30
+ white-space: nowrap;
31
+ }
32
+ .text-foreground {
33
+ color: var(--gridui-foreground);
34
+ }
35
+ .no-underline {
36
+ text-decoration-line: none;
37
+ }
38
+ .data-\[size\=\'compact\'\]\:text-\[1\.1875rem\][data-size='compact'] {
39
+ font-size: 1.1875rem;
40
+ }
41
+ .data-\[size\=\'compact\'\]\:leading-\[1\.2\][data-size='compact'] {
42
+ --tw-leading: 1.2;
43
+ line-height: 1.2;
44
+ }
45
+ .data-\[size\=\'compact\'\]\:tracking-\[-0\.02em\][data-size='compact'] {
46
+ --tw-tracking: -0.02em;
47
+ letter-spacing: -0.02em;
48
+ }
49
+ .data-\[size\=\'large\'\]\:text-\[1\.5rem\][data-size='large'] {
50
+ font-size: 1.5rem;
51
+ }
52
+ .data-\[size\=\'large\'\]\:tracking-\[-0\.04em\][data-size='large'] {
53
+ --tw-tracking: -0.04em;
54
+ letter-spacing: -0.04em;
55
+ }
56
+ .data-\[size\=\'standard\'\]\:text-\[1\.375rem\][data-size='standard'] {
57
+ font-size: 1.375rem;
58
+ }
59
+ .data-\[size\=\'standard\'\]\:tracking-\[-0\.04em\][data-size='standard'] {
60
+ --tw-tracking: -0.04em;
61
+ letter-spacing: -0.04em;
62
+ }
63
+ @media (max-width:23.999rem) {
64
+ .\[\@media\(max-width\:23\.999rem\)\]\:data-\[size\=\'standard\'\]\:text-\[1\.125rem\][data-size='standard'] {
65
+ font-size: 1.125rem;
66
+ }
67
+ .\[\@media\(max-width\:23\.999rem\)\]\:\[\&\[data-size\=\'standard\'\]_svg\]\:h-gridui-32[data-size='standard'] svg {
68
+ height: var(--gridui-space-32);
69
+ }
70
+ .\[\@media\(max-width\:23\.999rem\)\]\:\[\&\[data-size\=\'standard\'\]_svg\]\:w-gridui-32[data-size='standard'] svg {
71
+ width: var(--gridui-space-32);
72
+ }
73
+ }
74
+ }
75
+ @property --tw-font-weight {
76
+ syntax: "*";
77
+ inherits: false;
78
+ }
79
+ @property --tw-leading {
80
+ syntax: "*";
81
+ inherits: false;
82
+ }
83
+ @property --tw-tracking {
84
+ syntax: "*";
85
+ inherits: false;
86
+ }
87
+ @layer properties {
88
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
89
+ *, ::before, ::after, ::backdrop {
90
+ --tw-font-weight: initial;
91
+ --tw-leading: initial;
92
+ --tw-tracking: initial;
93
+ }
94
+ }
95
+ }
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@gridui/brand-link",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.0",
4
+ "description": "GridUI React brand link",
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
+ },
33
+ "devDependencies": {
34
+ "@gridui-internal/configuration": "0.0.0",
35
+ "@jest/globals": "30.5.2",
36
+ "@types/jest": "30.0.0",
37
+ "@types/node": "26.6.5",
38
+ "@types/react": "19.3.0",
39
+ "@types/react-dom": "19.3.0",
40
+ "jest": "30.5.2",
41
+ "react": "19.3.1",
42
+ "react-dom": "19.3.1",
43
+ "typescript": "6.0.3"
44
+ },
45
+ "scripts": {
46
+ "build": "node ../../scripts/compilation/package.ts",
47
+ "compile": "tsc --project tsconfig.json",
48
+ "test": "jest --passWithNoTests",
49
+ "coverage": "jest --coverage --passWithNoTests"
50
+ }
6
51
  }