@thebuilder/umbraco-docs 1.0.0 → 1.0.2

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.
@@ -21,18 +21,28 @@ const visiblePackages = packages.filter((item) => item.id !== currentPackageId);
21
21
  {visiblePackages.length > 0 && (
22
22
  <section class="udocs-shell udocs-ecosystem" aria-labelledby="udocs-ecosystem-title">
23
23
  <SectionHeading id="udocs-ecosystem-title" title={title} description={description} />
24
- <ul class="udocs-ecosystem__list" role="list">
24
+ <ul
25
+ class:list={[
26
+ "udocs-ecosystem__list",
27
+ { "udocs-ecosystem__list--compact": visiblePackages.length <= 2 },
28
+ ]}
29
+ role="list"
30
+ >
25
31
  {visiblePackages.map((item) => (
26
32
  <li class="udocs-ecosystem__item" data-udocs-reveal>
27
- <img src={item.logo} width="48" height="48" alt="" loading="lazy" />
28
- <div>
29
- <div class="udocs-ecosystem__title">
30
- <h3>{item.name}</h3>
31
- <span>{item.status}</span>
33
+ <a class="udocs-ecosystem__card" href={item.links.docs} aria-label={`${item.name} documentation`}>
34
+ <img src={item.logo} width="48" height="48" alt="" loading="lazy" />
35
+ <div class="udocs-ecosystem__content">
36
+ <div class="udocs-ecosystem__title">
37
+ <h3>{item.name}</h3>
38
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
39
+ <path d="M5 12h14"></path>
40
+ <path d="m13 6 6 6-6 6"></path>
41
+ </svg>
42
+ </div>
43
+ <p>{item.summary}</p>
32
44
  </div>
33
- <p>{item.summary}</p>
34
- <a href={item.links.docs}>Read the docs <span aria-hidden="true">→</span></a>
35
- </div>
45
+ </a>
36
46
  </li>
37
47
  ))}
38
48
  </ul>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thebuilder/umbraco-docs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Composable Blume presentation and metadata contracts for TheBuilder Umbraco package documentation.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- @layer udocs.tokens, udocs.components, udocs.motion;
1
+ @layer udocs.tokens, udocs.motion;
2
2
 
3
3
  @layer udocs.tokens {
4
4
  :where([data-udocs-root]) {
@@ -12,8 +12,7 @@
12
12
  }
13
13
  }
14
14
 
15
- @layer udocs.components {
16
- .udocs-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
15
+ .udocs-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
17
16
  .udocs-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
18
17
  .udocs-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 8vw, 6rem); }
19
18
  .udocs-hero__glow { position: absolute; inset: -30% -10% auto; height: 40rem; background: radial-gradient(circle at top, color-mix(in oklab, var(--udocs-accent) 24%, transparent), transparent 70%); pointer-events: none; }
@@ -37,27 +36,35 @@
37
36
  .udocs-section-heading--center { margin-inline: auto; text-align: center; }
38
37
  .udocs-section-heading__rule { display: block; width: 2.75rem; height: 0.25rem; margin-bottom: 1.15rem; border-radius: 999px; background: var(--udocs-gradient); }
39
38
  .udocs-section-heading--center .udocs-section-heading__rule { margin-inline: auto; }
40
- .udocs-section-heading h2 { margin: 0 0 0.75rem; font-family: var(--blume-font-display, system-ui); font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
39
+ .udocs-section-heading h2 { margin: 0 0 0.75rem; font-family: var(--blume-font-display, system-ui); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 750; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
41
40
  .udocs-section-heading p { margin: 0; color: var(--udocs-muted-foreground); font-size: 1.05rem; line-height: 1.65; }
42
41
  .udocs-screenshot { margin: 2.5rem 0 0; overflow: hidden; border: 1px solid var(--udocs-border); border-radius: calc(var(--udocs-radius) * 1.4); background: var(--udocs-muted); box-shadow: 0 24px 55px -30px color-mix(in oklab, var(--udocs-accent) 40%, transparent); }
43
42
  .udocs-screenshot__bar { display: flex; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--udocs-border); }
44
43
  .udocs-screenshot__bar span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: color-mix(in oklab, var(--udocs-muted-foreground) 40%, transparent); }
45
44
  .udocs-screenshot img { display: block; width: 100%; height: auto; }
46
45
  .udocs-ecosystem { margin-block: clamp(4rem, 9vw, 7rem); }
47
- .udocs-ecosystem__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
48
- .udocs-ecosystem__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem; border: 1px solid var(--udocs-border); border-radius: calc(var(--udocs-radius) * 1.2); background: color-mix(in oklab, var(--udocs-muted) 40%, transparent); }
49
- .udocs-ecosystem__title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
50
- .udocs-ecosystem h3, .udocs-ecosystem p { margin: 0; }
51
- .udocs-ecosystem__title span { color: var(--udocs-muted-foreground); font-size: 0.75rem; text-transform: capitalize; }
52
- .udocs-ecosystem p { margin-block: 0.4rem 0.8rem; color: var(--udocs-muted-foreground); line-height: 1.55; }
53
- .udocs-ecosystem a { color: var(--udocs-accent); font-weight: 650; text-decoration: none; }
54
- .udocs-ecosystem a:hover { text-decoration: underline; }
55
- }
46
+ .udocs-ecosystem__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
47
+ .udocs-ecosystem__list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
48
+ .udocs-ecosystem__item { min-width: 0; }
49
+ .udocs-ecosystem__card { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100%; gap: 1rem; padding: 1.4rem; border: 1px solid var(--udocs-border); border-radius: calc(var(--udocs-radius) * 1.4); background: color-mix(in oklab, var(--udocs-muted) 38%, transparent); color: var(--udocs-foreground); text-decoration: none; box-shadow: 0 1px 2px color-mix(in oklab, var(--udocs-foreground) 5%, transparent); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
50
+ .udocs-ecosystem__card:hover { border-color: color-mix(in oklab, var(--udocs-accent) 45%, var(--udocs-border)); box-shadow: 0 16px 32px -22px color-mix(in oklab, var(--udocs-accent) 55%, transparent); transform: translateY(-3px); }
51
+ .udocs-ecosystem__card:focus-visible { border-color: var(--udocs-accent); outline: 2px solid var(--udocs-accent); outline-offset: 3px; }
52
+ .udocs-ecosystem__card > img { width: 3rem; height: 3rem; object-fit: contain; }
53
+ .udocs-ecosystem__content { min-width: 0; }
54
+ .udocs-ecosystem__title { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
55
+ .udocs-ecosystem__title h3 { margin: 0; font-family: var(--blume-font-display, system-ui); font-size: 1.125rem; font-weight: 750; line-height: 1.25; }
56
+ .udocs-ecosystem__title svg { flex: none; color: var(--udocs-accent); transition: transform 180ms ease; }
57
+ .udocs-ecosystem__card:hover .udocs-ecosystem__title svg { transform: translateX(3px); }
58
+ .udocs-ecosystem p { margin: 0.55rem 0 0; color: var(--udocs-muted-foreground); line-height: 1.55; }
59
+ @media (max-width: 56rem) { .udocs-ecosystem__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
60
+ @media (max-width: 40rem) { .udocs-ecosystem__list { grid-template-columns: 1fr; } }
56
61
 
57
62
  @layer udocs.motion {
58
63
  [data-udocs-motion="true"] [data-udocs-reveal] { opacity: 0; transform: translateY(0.75rem); transition: opacity 0.45s ease, transform 0.45s ease; }
59
64
  [data-udocs-motion="true"] [data-udocs-visible="true"] { opacity: 1; transform: none; }
60
65
  @media (prefers-reduced-motion: reduce) {
61
66
  [data-udocs-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
67
+ .udocs-ecosystem__card, .udocs-ecosystem__title svg { transition: none; }
68
+ .udocs-ecosystem__card:hover, .udocs-ecosystem__card:hover .udocs-ecosystem__title svg { transform: none; }
62
69
  }
63
70
  }