@dogsbay/ui 0.2.0-beta.16 → 0.2.0-beta.161

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.
Files changed (40) hide show
  1. package/package.json +37 -12
  2. package/src/alert/CollapsibleAlert.astro +33 -7
  3. package/src/alert/icon.ts +8 -15
  4. package/src/api-layout/ApiLayout.astro +28 -4
  5. package/src/api-layout/ExampleBlock.astro +3 -2
  6. package/src/api-params/ApiParams.astro +1 -1
  7. package/src/api-symbol/ApiSymbol.astro +1 -1
  8. package/src/api-symbol/api-symbol.css +14 -11
  9. package/src/avatar/Avatar.astro +6 -2
  10. package/src/badge/Badge.astro +3 -10
  11. package/src/badge/variants.ts +39 -0
  12. package/src/code-block/CodeBlock.astro +38 -8
  13. package/src/code-rich/CodeRich.astro +149 -15
  14. package/src/code-rich/code-rich.css +54 -2
  15. package/src/code-rich/markers.ts +66 -0
  16. package/src/content-renderer/ContentRenderer.astro +47 -6
  17. package/src/content-renderer/InlineRenderer.astro +24 -1
  18. package/src/details-sheet/DetailsSheet.astro +28 -0
  19. package/src/details-sheet/index.ts +1 -0
  20. package/src/docs-layout/DocsLayout.astro +36 -4
  21. package/src/endpoint-card/EndpointCard.astro +59 -1
  22. package/src/files/FileTree.astro +16 -0
  23. package/src/files/index.ts +2 -0
  24. package/src/files/markup.ts +34 -0
  25. package/src/image/Image.astro +23 -2
  26. package/src/kbd/Kbd.astro +2 -3
  27. package/src/kbd/variants.ts +3 -0
  28. package/src/link-card/LinkCard.astro +10 -3
  29. package/src/property-list/PropertyList.astro +3 -2
  30. package/src/sidebar/Sidebar.astro +16 -6
  31. package/src/sidebar/SidebarNavMark.astro +85 -0
  32. package/src/sidebar/SidebarNavTree.astro +111 -7
  33. package/src/sidebar/sidebar.ts +2 -2
  34. package/src/steps/Steps.astro +5 -0
  35. package/src/steps/SubSteps.astro +5 -0
  36. package/src/table/Table.astro +18 -3
  37. package/src/table/TableCell.astro +1 -1
  38. package/src/table/TableHead.astro +1 -1
  39. package/src/toc/TableOfContents.astro +10 -10
  40. package/src/youtube/YouTube.astro +2 -2
@@ -2,7 +2,7 @@
2
2
  import { tv } from "tailwind-variants";
3
3
 
4
4
  const tableHead = tv({
5
- base: "h-10 px-2 text-left align-middle font-semibold text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0",
5
+ base: "px-2 py-2 text-left align-bottom font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",
6
6
  });
7
7
 
8
8
  interface Props {
@@ -99,40 +99,40 @@ const filtered = headings.filter(
99
99
  line-height: 1.4;
100
100
  }
101
101
  .toc-kind-class {
102
- background-color: oklch(0.55 0.18 265 / 0.15);
103
- color: oklch(0.55 0.18 265);
102
+ background-color: oklch(0.44 0.18 265 / 0.15);
103
+ color: oklch(0.44 0.18 265);
104
104
  }
105
105
  :global(.dark) .toc-kind-class {
106
106
  background-color: oklch(0.7 0.15 265 / 0.2);
107
107
  color: oklch(0.7 0.15 265);
108
108
  }
109
109
  .toc-kind-meth {
110
- background-color: oklch(0.55 0.15 155 / 0.15);
111
- color: oklch(0.55 0.15 155);
110
+ background-color: oklch(0.44 0.15 155 / 0.15);
111
+ color: oklch(0.44 0.15 155);
112
112
  }
113
113
  :global(.dark) .toc-kind-meth {
114
114
  background-color: oklch(0.7 0.15 155 / 0.2);
115
115
  color: oklch(0.7 0.15 155);
116
116
  }
117
117
  .toc-kind-attr {
118
- background-color: oklch(0.6 0.15 55 / 0.15);
119
- color: oklch(0.6 0.15 55);
118
+ background-color: oklch(0.44 0.15 55 / 0.15);
119
+ color: oklch(0.44 0.15 55);
120
120
  }
121
121
  :global(.dark) .toc-kind-attr {
122
122
  background-color: oklch(0.75 0.15 55 / 0.2);
123
123
  color: oklch(0.75 0.15 55);
124
124
  }
125
125
  .toc-kind-func {
126
- background-color: oklch(0.55 0.18 330 / 0.15);
127
- color: oklch(0.55 0.18 330);
126
+ background-color: oklch(0.44 0.18 330 / 0.15);
127
+ color: oklch(0.44 0.18 330);
128
128
  }
129
129
  :global(.dark) .toc-kind-func {
130
130
  background-color: oklch(0.7 0.15 330 / 0.2);
131
131
  color: oklch(0.7 0.15 330);
132
132
  }
133
133
  .toc-kind-module {
134
- background-color: oklch(0.5 0.12 200 / 0.15);
135
- color: oklch(0.5 0.12 200);
134
+ background-color: oklch(0.44 0.12 200 / 0.15);
135
+ color: oklch(0.44 0.12 200);
136
136
  }
137
137
  :global(.dark) .toc-kind-module {
138
138
  background-color: oklch(0.65 0.12 200 / 0.2);
@@ -55,10 +55,10 @@ const embedUrl = `https://${domain}/embed/${id}?autoplay=1${params ? "&" + param
55
55
  tabindex="0"
56
56
  aria-label={`Play: ${title}`}
57
57
  >
58
- {/* Thumbnail */}
58
+ {/* Thumbnail: decorative, the button's label already says "Play: <title>" (axe image-redundant-alt) */}
59
59
  <img
60
60
  src={posterUrl}
61
- alt={title}
61
+ alt=""
62
62
  loading="lazy"
63
63
  class="absolute inset-0 h-full w-full object-cover transition-opacity duration-300 group-hover/yt:opacity-80"
64
64
  />