@gridui/brand-link 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/styled.js +2 -0
- package/dist/styles.local.css +95 -0
- package/docs/catalog.json +2 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -3,7 +3,17 @@
|
|
|
3
3
|
Core family. Public API: `BrandLink`, `BrandLinkProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/brand-link` and load `@gridui/brand-link/styles.css` after Theme.
|
|
6
|
-
|
|
6
|
+
Applications own routes, labels, state persistence, and branding.
|
|
7
|
+
|
|
8
|
+
## Styles
|
|
9
|
+
|
|
10
|
+
Load Theme once. Use `@gridui/brand-link/styled` for automatic component CSS in
|
|
11
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/brand-link/styles.css`.
|
|
12
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
13
|
+
dependency styles; Theme/reset remain separate. See the
|
|
14
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
15
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
16
|
+
|
|
7
17
|
|
|
8
18
|
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/brand-link/.changeset/history).
|
|
9
19
|
|
package/dist/styled.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | 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
|
+
.gridui-u-brand-link--inline-flex {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-brand-link--shrink-0 {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-brand-link--items-center {
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-brand-link--gap-gridui-8 {
|
|
20
|
+
gap: var(--gridui-space-8);
|
|
21
|
+
}
|
|
22
|
+
.gridui-u-brand-link--font-brand {
|
|
23
|
+
font-family: var(--gridui-font-brand);
|
|
24
|
+
}
|
|
25
|
+
.gridui-u-brand-link--font-medium {
|
|
26
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
27
|
+
font-weight: var(--font-weight-medium);
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-brand-link--whitespace-nowrap {
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-brand-link--text-foreground {
|
|
33
|
+
color: var(--gridui-foreground);
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-brand-link--no-underline {
|
|
36
|
+
text-decoration-line: none;
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-brand-link--data-\[size\=\'compact\'\]\:text-\[1\.1875rem\][data-size='compact'] {
|
|
39
|
+
font-size: 1.1875rem;
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-brand-link--data-\[size\=\'compact\'\]\:leading-\[1\.2\][data-size='compact'] {
|
|
42
|
+
--tw-leading: 1.2;
|
|
43
|
+
line-height: 1.2;
|
|
44
|
+
}
|
|
45
|
+
.gridui-u-brand-link--data-\[size\=\'compact\'\]\:tracking-\[-0\.02em\][data-size='compact'] {
|
|
46
|
+
--tw-tracking: -0.02em;
|
|
47
|
+
letter-spacing: -0.02em;
|
|
48
|
+
}
|
|
49
|
+
.gridui-u-brand-link--data-\[size\=\'large\'\]\:text-\[1\.5rem\][data-size='large'] {
|
|
50
|
+
font-size: 1.5rem;
|
|
51
|
+
}
|
|
52
|
+
.gridui-u-brand-link--data-\[size\=\'large\'\]\:tracking-\[-0\.04em\][data-size='large'] {
|
|
53
|
+
--tw-tracking: -0.04em;
|
|
54
|
+
letter-spacing: -0.04em;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-brand-link--data-\[size\=\'standard\'\]\:text-\[1\.375rem\][data-size='standard'] {
|
|
57
|
+
font-size: 1.375rem;
|
|
58
|
+
}
|
|
59
|
+
.gridui-u-brand-link--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
|
+
.gridui-u-brand-link--\[\@media\(max-width\:23\.999rem\)\]\:data-\[size\=\'standard\'\]\:text-\[1\.125rem\][data-size='standard'] {
|
|
65
|
+
font-size: 1.125rem;
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-brand-link--\[\@media\(max-width\:23\.999rem\)\]\:\[\&\[data-size\=\'standard\'\]_svg\]\:h-gridui-32[data-size='standard'] svg {
|
|
68
|
+
height: var(--gridui-space-32);
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-brand-link--\[\@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: block))) 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/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/brand-link",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"category": "core",
|
|
6
6
|
"description": "GridUI React brand link",
|
|
7
7
|
"usage": "Component reference contains focused API pages for each public component.",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@gridui/theme/styles.css",
|
|
27
27
|
"@gridui/brand-link/styles.css"
|
|
28
28
|
],
|
|
29
|
+
"styledImport": "@gridui/brand-link/styled",
|
|
29
30
|
"examples": [
|
|
30
31
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/brand-link/stories/brand-navigation.mdx",
|
|
31
32
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/brand-link/stories/getting-started.mdx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/brand-link",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "GridUI React brand link",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -28,7 +33,7 @@
|
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
35
|
"@gridui/style-utils": "^4.0.0",
|
|
31
|
-
"@gridui/theme": "^
|
|
36
|
+
"@gridui/theme": "^4.0.0",
|
|
32
37
|
"class-variance-authority": "0.7.1"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|