fulldev-ui 0.22.1 → 0.22.3

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 (172) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/package.json +3 -3
  4. package/public/r/cta-1.json +1 -1
  5. package/public/r/cta-2.json +1 -1
  6. package/public/r/cta-3.json +1 -1
  7. package/public/r/cta-4.json +1 -1
  8. package/public/r/cta-5.json +1 -1
  9. package/public/r/cta-6.json +1 -1
  10. package/public/r/cta-7.json +1 -1
  11. package/public/r/cta-8.json +1 -1
  12. package/public/r/doc-1.json +1 -1
  13. package/public/r/dropdown-menu.json +1 -1
  14. package/public/r/faqs-1.json +1 -1
  15. package/public/r/faqs-2.json +1 -1
  16. package/public/r/faqs-3.json +1 -1
  17. package/public/r/faqs-4.json +1 -1
  18. package/public/r/pricing-1.json +1 -1
  19. package/public/r/registry.json +12 -12
  20. package/public/r/select.json +1 -1
  21. package/public/r/styles/base-luma/cta-1.json +1 -1
  22. package/public/r/styles/base-luma/cta-2.json +1 -1
  23. package/public/r/styles/base-luma/cta-3.json +1 -1
  24. package/public/r/styles/base-luma/cta-4.json +1 -1
  25. package/public/r/styles/base-luma/cta-5.json +1 -1
  26. package/public/r/styles/base-luma/cta-6.json +1 -1
  27. package/public/r/styles/base-luma/cta-7.json +1 -1
  28. package/public/r/styles/base-luma/cta-8.json +1 -1
  29. package/public/r/styles/base-luma/doc-1.json +1 -1
  30. package/public/r/styles/base-luma/dropdown-menu.json +1 -1
  31. package/public/r/styles/base-luma/faqs-1.json +1 -1
  32. package/public/r/styles/base-luma/faqs-2.json +1 -1
  33. package/public/r/styles/base-luma/faqs-3.json +1 -1
  34. package/public/r/styles/base-luma/faqs-4.json +1 -1
  35. package/public/r/styles/base-luma/pricing-1.json +1 -1
  36. package/public/r/styles/base-luma/registry.json +12 -12
  37. package/public/r/styles/base-luma/select.json +1 -1
  38. package/public/r/styles/base-luma/theme-toggle.json +1 -1
  39. package/public/r/styles/base-lyra/cta-1.json +1 -1
  40. package/public/r/styles/base-lyra/cta-2.json +1 -1
  41. package/public/r/styles/base-lyra/cta-3.json +1 -1
  42. package/public/r/styles/base-lyra/cta-4.json +1 -1
  43. package/public/r/styles/base-lyra/cta-5.json +1 -1
  44. package/public/r/styles/base-lyra/cta-6.json +1 -1
  45. package/public/r/styles/base-lyra/cta-7.json +1 -1
  46. package/public/r/styles/base-lyra/cta-8.json +1 -1
  47. package/public/r/styles/base-lyra/doc-1.json +1 -1
  48. package/public/r/styles/base-lyra/dropdown-menu.json +1 -1
  49. package/public/r/styles/base-lyra/faqs-1.json +1 -1
  50. package/public/r/styles/base-lyra/faqs-2.json +1 -1
  51. package/public/r/styles/base-lyra/faqs-3.json +1 -1
  52. package/public/r/styles/base-lyra/faqs-4.json +1 -1
  53. package/public/r/styles/base-lyra/pricing-1.json +1 -1
  54. package/public/r/styles/base-lyra/registry.json +12 -12
  55. package/public/r/styles/base-lyra/select.json +1 -1
  56. package/public/r/styles/base-lyra/theme-toggle.json +1 -1
  57. package/public/r/styles/base-maia/cta-1.json +1 -1
  58. package/public/r/styles/base-maia/cta-2.json +1 -1
  59. package/public/r/styles/base-maia/cta-3.json +1 -1
  60. package/public/r/styles/base-maia/cta-4.json +1 -1
  61. package/public/r/styles/base-maia/cta-5.json +1 -1
  62. package/public/r/styles/base-maia/cta-6.json +1 -1
  63. package/public/r/styles/base-maia/cta-7.json +1 -1
  64. package/public/r/styles/base-maia/cta-8.json +1 -1
  65. package/public/r/styles/base-maia/doc-1.json +1 -1
  66. package/public/r/styles/base-maia/dropdown-menu.json +1 -1
  67. package/public/r/styles/base-maia/faqs-1.json +1 -1
  68. package/public/r/styles/base-maia/faqs-2.json +1 -1
  69. package/public/r/styles/base-maia/faqs-3.json +1 -1
  70. package/public/r/styles/base-maia/faqs-4.json +1 -1
  71. package/public/r/styles/base-maia/pricing-1.json +1 -1
  72. package/public/r/styles/base-maia/registry.json +12 -12
  73. package/public/r/styles/base-maia/select.json +1 -1
  74. package/public/r/styles/base-maia/theme-toggle.json +1 -1
  75. package/public/r/styles/base-mira/cta-1.json +1 -1
  76. package/public/r/styles/base-mira/cta-2.json +1 -1
  77. package/public/r/styles/base-mira/cta-3.json +1 -1
  78. package/public/r/styles/base-mira/cta-4.json +1 -1
  79. package/public/r/styles/base-mira/cta-5.json +1 -1
  80. package/public/r/styles/base-mira/cta-6.json +1 -1
  81. package/public/r/styles/base-mira/cta-7.json +1 -1
  82. package/public/r/styles/base-mira/cta-8.json +1 -1
  83. package/public/r/styles/base-mira/doc-1.json +1 -1
  84. package/public/r/styles/base-mira/dropdown-menu.json +1 -1
  85. package/public/r/styles/base-mira/faqs-1.json +1 -1
  86. package/public/r/styles/base-mira/faqs-2.json +1 -1
  87. package/public/r/styles/base-mira/faqs-3.json +1 -1
  88. package/public/r/styles/base-mira/faqs-4.json +1 -1
  89. package/public/r/styles/base-mira/pricing-1.json +1 -1
  90. package/public/r/styles/base-mira/registry.json +12 -12
  91. package/public/r/styles/base-mira/select.json +1 -1
  92. package/public/r/styles/base-mira/theme-toggle.json +1 -1
  93. package/public/r/styles/base-nova/cta-1.json +1 -1
  94. package/public/r/styles/base-nova/cta-2.json +1 -1
  95. package/public/r/styles/base-nova/cta-3.json +1 -1
  96. package/public/r/styles/base-nova/cta-4.json +1 -1
  97. package/public/r/styles/base-nova/cta-5.json +1 -1
  98. package/public/r/styles/base-nova/cta-6.json +1 -1
  99. package/public/r/styles/base-nova/cta-7.json +1 -1
  100. package/public/r/styles/base-nova/cta-8.json +1 -1
  101. package/public/r/styles/base-nova/doc-1.json +1 -1
  102. package/public/r/styles/base-nova/dropdown-menu.json +1 -1
  103. package/public/r/styles/base-nova/faqs-1.json +1 -1
  104. package/public/r/styles/base-nova/faqs-2.json +1 -1
  105. package/public/r/styles/base-nova/faqs-3.json +1 -1
  106. package/public/r/styles/base-nova/faqs-4.json +1 -1
  107. package/public/r/styles/base-nova/pricing-1.json +1 -1
  108. package/public/r/styles/base-nova/registry.json +12 -12
  109. package/public/r/styles/base-nova/select.json +1 -1
  110. package/public/r/styles/base-nova/theme-toggle.json +1 -1
  111. package/public/r/styles/base-rhea/cta-1.json +1 -1
  112. package/public/r/styles/base-rhea/cta-2.json +1 -1
  113. package/public/r/styles/base-rhea/cta-3.json +1 -1
  114. package/public/r/styles/base-rhea/cta-4.json +1 -1
  115. package/public/r/styles/base-rhea/cta-5.json +1 -1
  116. package/public/r/styles/base-rhea/cta-6.json +1 -1
  117. package/public/r/styles/base-rhea/cta-7.json +1 -1
  118. package/public/r/styles/base-rhea/cta-8.json +1 -1
  119. package/public/r/styles/base-rhea/doc-1.json +1 -1
  120. package/public/r/styles/base-rhea/dropdown-menu.json +1 -1
  121. package/public/r/styles/base-rhea/faqs-1.json +1 -1
  122. package/public/r/styles/base-rhea/faqs-2.json +1 -1
  123. package/public/r/styles/base-rhea/faqs-3.json +1 -1
  124. package/public/r/styles/base-rhea/faqs-4.json +1 -1
  125. package/public/r/styles/base-rhea/pricing-1.json +1 -1
  126. package/public/r/styles/base-rhea/registry.json +12 -12
  127. package/public/r/styles/base-rhea/select.json +1 -1
  128. package/public/r/styles/base-rhea/theme-toggle.json +1 -1
  129. package/public/r/styles/base-sera/cta-1.json +1 -1
  130. package/public/r/styles/base-sera/cta-2.json +1 -1
  131. package/public/r/styles/base-sera/cta-3.json +1 -1
  132. package/public/r/styles/base-sera/cta-4.json +1 -1
  133. package/public/r/styles/base-sera/cta-5.json +1 -1
  134. package/public/r/styles/base-sera/cta-6.json +1 -1
  135. package/public/r/styles/base-sera/cta-7.json +1 -1
  136. package/public/r/styles/base-sera/cta-8.json +1 -1
  137. package/public/r/styles/base-sera/doc-1.json +1 -1
  138. package/public/r/styles/base-sera/dropdown-menu.json +1 -1
  139. package/public/r/styles/base-sera/faqs-1.json +1 -1
  140. package/public/r/styles/base-sera/faqs-2.json +1 -1
  141. package/public/r/styles/base-sera/faqs-3.json +1 -1
  142. package/public/r/styles/base-sera/faqs-4.json +1 -1
  143. package/public/r/styles/base-sera/pricing-1.json +1 -1
  144. package/public/r/styles/base-sera/registry.json +12 -12
  145. package/public/r/styles/base-sera/select.json +1 -1
  146. package/public/r/styles/base-sera/theme-toggle.json +1 -1
  147. package/public/r/styles/base-vega/cta-1.json +1 -1
  148. package/public/r/styles/base-vega/cta-2.json +1 -1
  149. package/public/r/styles/base-vega/cta-3.json +1 -1
  150. package/public/r/styles/base-vega/cta-4.json +1 -1
  151. package/public/r/styles/base-vega/cta-5.json +1 -1
  152. package/public/r/styles/base-vega/cta-6.json +1 -1
  153. package/public/r/styles/base-vega/cta-7.json +1 -1
  154. package/public/r/styles/base-vega/cta-8.json +1 -1
  155. package/public/r/styles/base-vega/doc-1.json +1 -1
  156. package/public/r/styles/base-vega/dropdown-menu.json +1 -1
  157. package/public/r/styles/base-vega/faqs-1.json +1 -1
  158. package/public/r/styles/base-vega/faqs-2.json +1 -1
  159. package/public/r/styles/base-vega/faqs-3.json +1 -1
  160. package/public/r/styles/base-vega/faqs-4.json +1 -1
  161. package/public/r/styles/base-vega/pricing-1.json +1 -1
  162. package/public/r/styles/base-vega/registry.json +12 -12
  163. package/public/r/styles/base-vega/select.json +1 -1
  164. package/public/r/styles/base-vega/theme-toggle.json +1 -1
  165. package/public/r/theme-toggle.json +1 -1
  166. package/registry.json +12 -12
  167. package/src/components/blocks/doc-1.astro +4 -1
  168. package/src/components/blocks/pricing-1.astro +1 -1
  169. package/src/components/ui/dropdown-menu/dropdown-menu-content.astro +1 -1
  170. package/src/components/ui/select/select-content.astro +1 -1
  171. package/src/components/ui/theme-toggle/theme-provider.astro +14 -0
  172. package/src/styles/global.css +38 -0
@@ -17,7 +17,7 @@
17
17
  },
18
18
  {
19
19
  "path": "src/components/ui/theme-toggle/theme-provider.astro",
20
- "content": "<script is:inline>\n // A stored \"dark\" or \"light\" is the visitor's choice. Without one, such as\n // no value or \"system\", the theme follows the system.\n const getStoredTheme = () => {\n if (typeof localStorage === \"undefined\") return null\n const theme = localStorage.getItem(\"theme\")\n return theme === \"dark\" || theme === \"light\" ? theme : null\n }\n\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\")\n\n const getThemePreference = () =>\n getStoredTheme() ?? (media.matches ? \"dark\" : \"light\")\n\n const disableTransitionsTemporarily = () => {\n const style = document.createElement(\"style\")\n\n style.appendChild(\n document.createTextNode(\n \"*, *::before, *::after { transition: none !important; }\"\n )\n )\n\n document.head.appendChild(style)\n\n return () => {\n void document.documentElement.offsetHeight\n\n requestAnimationFrame(() => {\n style.remove()\n })\n }\n }\n\n // The theme this provider applied last. A class change to another theme\n // comes from outside, such as a toggle without the provider, and is saved\n // as the visitor's choice.\n let appliedTheme\n\n const applyTheme = (theme, disableTransitions = false) => {\n const restoreTransitions = disableTransitions\n ? disableTransitionsTemporarily()\n : null\n\n appliedTheme = theme\n document.documentElement.classList[theme === \"dark\" ? \"add\" : \"remove\"](\n \"dark\"\n )\n\n restoreTransitions?.()\n }\n\n // \"dark\" or \"light\" saves a choice; \"system\" follows the system again.\n window.__setTheme = (theme) => {\n if (typeof localStorage !== \"undefined\")\n localStorage.setItem(\"theme\", theme)\n applyTheme(getThemePreference(), true)\n }\n\n applyTheme(getThemePreference())\n\n // Follow the system while there is no choice, and a choice made in\n // another window or frame of the site.\n media.addEventListener(\"change\", () => {\n if (!getStoredTheme()) applyTheme(getThemePreference(), true)\n })\n window.addEventListener(\"storage\", (event) => {\n if (event.storageArea !== localStorage) return\n if (event.key === \"theme\" || event.key === null)\n applyTheme(getThemePreference(), true)\n })\n\n if (typeof localStorage !== \"undefined\") {\n const observer = new MutationObserver(() => {\n const theme = document.documentElement.classList.contains(\"dark\")\n ? \"dark\"\n : \"light\"\n if (theme === appliedTheme) return\n appliedTheme = theme\n localStorage.setItem(\"theme\", theme)\n })\n\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n })\n }\n</script>\n",
20
+ "content": "<script is:inline>\n // A stored \"dark\" or \"light\" is the visitor's choice. Without one, such as\n // no value or \"system\", the theme follows the system.\n const getStoredTheme = () => {\n if (typeof localStorage === \"undefined\") return null\n const theme = localStorage.getItem(\"theme\")\n return theme === \"dark\" || theme === \"light\" ? theme : null\n }\n\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\")\n\n const getThemePreference = () =>\n getStoredTheme() ?? (media.matches ? \"dark\" : \"light\")\n\n const disableTransitionsTemporarily = () => {\n const style = document.createElement(\"style\")\n\n style.appendChild(\n document.createTextNode(\n \"*, *::before, *::after { transition: none !important; }\"\n )\n )\n\n document.head.appendChild(style)\n\n return () => {\n void document.documentElement.offsetHeight\n\n requestAnimationFrame(() => {\n style.remove()\n })\n }\n }\n\n // The theme this provider applied last. A class change to another theme\n // comes from outside, such as a toggle without the provider, and is saved\n // as the visitor's choice.\n let appliedTheme\n\n const applyTheme = (theme, disableTransitions = false) => {\n const restoreTransitions = disableTransitions\n ? disableTransitionsTemporarily()\n : null\n\n appliedTheme = theme\n document.documentElement.classList[theme === \"dark\" ? \"add\" : \"remove\"](\n \"dark\"\n )\n\n restoreTransitions?.()\n }\n\n // \"dark\" or \"light\" saves a choice; \"system\" follows the system again.\n window.__setTheme = (theme) => {\n if (typeof localStorage !== \"undefined\")\n localStorage.setItem(\"theme\", theme)\n applyTheme(getThemePreference(), true)\n }\n\n applyTheme(getThemePreference())\n\n // Follow the system while there is no choice, and a choice made in\n // another window or frame of the site.\n media.addEventListener(\"change\", () => {\n if (!getStoredTheme()) applyTheme(getThemePreference(), true)\n })\n window.addEventListener(\"storage\", (event) => {\n if (event.storageArea !== localStorage) return\n if (event.key === \"theme\" || event.key === null)\n applyTheme(getThemePreference(), true)\n })\n\n // Astro's <ClientRouter /> replaces the <html> attributes with those of the\n // next page, which cannot know the theme. Carry the theme over before the\n // swap, so it neither flashes nor reaches the observer below as a choice.\n document.addEventListener(\"astro:before-swap\", (event) => {\n const swap = event.swap\n event.swap = function (...args) {\n event.newDocument.documentElement.classList.toggle(\n \"dark\",\n appliedTheme === \"dark\"\n )\n return swap.apply(this, args)\n }\n })\n\n if (typeof localStorage !== \"undefined\") {\n const observer = new MutationObserver(() => {\n const theme = document.documentElement.classList.contains(\"dark\")\n ? \"dark\"\n : \"light\"\n if (theme === appliedTheme) return\n appliedTheme = theme\n localStorage.setItem(\"theme\", theme)\n })\n\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n })\n }\n</script>\n",
21
21
  "type": "registry:ui"
22
22
  },
23
23
  {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  {
19
19
  "path": "src/components/ui/theme-toggle/theme-provider.astro",
20
- "content": "<script is:inline>\n // A stored \"dark\" or \"light\" is the visitor's choice. Without one, such as\n // no value or \"system\", the theme follows the system.\n const getStoredTheme = () => {\n if (typeof localStorage === \"undefined\") return null\n const theme = localStorage.getItem(\"theme\")\n return theme === \"dark\" || theme === \"light\" ? theme : null\n }\n\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\")\n\n const getThemePreference = () =>\n getStoredTheme() ?? (media.matches ? \"dark\" : \"light\")\n\n const disableTransitionsTemporarily = () => {\n const style = document.createElement(\"style\")\n\n style.appendChild(\n document.createTextNode(\n \"*, *::before, *::after { transition: none !important; }\"\n )\n )\n\n document.head.appendChild(style)\n\n return () => {\n void document.documentElement.offsetHeight\n\n requestAnimationFrame(() => {\n style.remove()\n })\n }\n }\n\n // The theme this provider applied last. A class change to another theme\n // comes from outside, such as a toggle without the provider, and is saved\n // as the visitor's choice.\n let appliedTheme\n\n const applyTheme = (theme, disableTransitions = false) => {\n const restoreTransitions = disableTransitions\n ? disableTransitionsTemporarily()\n : null\n\n appliedTheme = theme\n document.documentElement.classList[theme === \"dark\" ? \"add\" : \"remove\"](\n \"dark\"\n )\n\n restoreTransitions?.()\n }\n\n // \"dark\" or \"light\" saves a choice; \"system\" follows the system again.\n window.__setTheme = (theme) => {\n if (typeof localStorage !== \"undefined\")\n localStorage.setItem(\"theme\", theme)\n applyTheme(getThemePreference(), true)\n }\n\n applyTheme(getThemePreference())\n\n // Follow the system while there is no choice, and a choice made in\n // another window or frame of the site.\n media.addEventListener(\"change\", () => {\n if (!getStoredTheme()) applyTheme(getThemePreference(), true)\n })\n window.addEventListener(\"storage\", (event) => {\n if (event.storageArea !== localStorage) return\n if (event.key === \"theme\" || event.key === null)\n applyTheme(getThemePreference(), true)\n })\n\n if (typeof localStorage !== \"undefined\") {\n const observer = new MutationObserver(() => {\n const theme = document.documentElement.classList.contains(\"dark\")\n ? \"dark\"\n : \"light\"\n if (theme === appliedTheme) return\n appliedTheme = theme\n localStorage.setItem(\"theme\", theme)\n })\n\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n })\n }\n</script>\n",
20
+ "content": "<script is:inline>\n // A stored \"dark\" or \"light\" is the visitor's choice. Without one, such as\n // no value or \"system\", the theme follows the system.\n const getStoredTheme = () => {\n if (typeof localStorage === \"undefined\") return null\n const theme = localStorage.getItem(\"theme\")\n return theme === \"dark\" || theme === \"light\" ? theme : null\n }\n\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\")\n\n const getThemePreference = () =>\n getStoredTheme() ?? (media.matches ? \"dark\" : \"light\")\n\n const disableTransitionsTemporarily = () => {\n const style = document.createElement(\"style\")\n\n style.appendChild(\n document.createTextNode(\n \"*, *::before, *::after { transition: none !important; }\"\n )\n )\n\n document.head.appendChild(style)\n\n return () => {\n void document.documentElement.offsetHeight\n\n requestAnimationFrame(() => {\n style.remove()\n })\n }\n }\n\n // The theme this provider applied last. A class change to another theme\n // comes from outside, such as a toggle without the provider, and is saved\n // as the visitor's choice.\n let appliedTheme\n\n const applyTheme = (theme, disableTransitions = false) => {\n const restoreTransitions = disableTransitions\n ? disableTransitionsTemporarily()\n : null\n\n appliedTheme = theme\n document.documentElement.classList[theme === \"dark\" ? \"add\" : \"remove\"](\n \"dark\"\n )\n\n restoreTransitions?.()\n }\n\n // \"dark\" or \"light\" saves a choice; \"system\" follows the system again.\n window.__setTheme = (theme) => {\n if (typeof localStorage !== \"undefined\")\n localStorage.setItem(\"theme\", theme)\n applyTheme(getThemePreference(), true)\n }\n\n applyTheme(getThemePreference())\n\n // Follow the system while there is no choice, and a choice made in\n // another window or frame of the site.\n media.addEventListener(\"change\", () => {\n if (!getStoredTheme()) applyTheme(getThemePreference(), true)\n })\n window.addEventListener(\"storage\", (event) => {\n if (event.storageArea !== localStorage) return\n if (event.key === \"theme\" || event.key === null)\n applyTheme(getThemePreference(), true)\n })\n\n // Astro's <ClientRouter /> replaces the <html> attributes with those of the\n // next page, which cannot know the theme. Carry the theme over before the\n // swap, so it neither flashes nor reaches the observer below as a choice.\n document.addEventListener(\"astro:before-swap\", (event) => {\n const swap = event.swap\n event.swap = function (...args) {\n event.newDocument.documentElement.classList.toggle(\n \"dark\",\n appliedTheme === \"dark\"\n )\n return swap.apply(this, args)\n }\n })\n\n if (typeof localStorage !== \"undefined\") {\n const observer = new MutationObserver(() => {\n const theme = document.documentElement.classList.contains(\"dark\")\n ? \"dark\"\n : \"light\"\n if (theme === appliedTheme) return\n appliedTheme = theme\n localStorage.setItem(\"theme\", theme)\n })\n\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"class\"],\n })\n }\n</script>\n",
21
21
  "type": "registry:ui"
22
22
  },
23
23
  {
package/registry.json CHANGED
@@ -2604,7 +2604,7 @@
2604
2604
  {
2605
2605
  "name": "cta-1",
2606
2606
  "type": "registry:block",
2607
- "title": "Cta 1",
2607
+ "title": "CTA 1",
2608
2608
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2609
2609
  "categories": ["cta"],
2610
2610
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2624,7 +2624,7 @@
2624
2624
  {
2625
2625
  "name": "cta-2",
2626
2626
  "type": "registry:block",
2627
- "title": "Cta 2",
2627
+ "title": "CTA 2",
2628
2628
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2629
2629
  "categories": ["cta"],
2630
2630
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2649,7 +2649,7 @@
2649
2649
  {
2650
2650
  "name": "cta-3",
2651
2651
  "type": "registry:block",
2652
- "title": "Cta 3",
2652
+ "title": "CTA 3",
2653
2653
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2654
2654
  "categories": ["cta"],
2655
2655
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2669,7 +2669,7 @@
2669
2669
  {
2670
2670
  "name": "cta-4",
2671
2671
  "type": "registry:block",
2672
- "title": "Cta 4",
2672
+ "title": "CTA 4",
2673
2673
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2674
2674
  "categories": ["cta"],
2675
2675
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2694,7 +2694,7 @@
2694
2694
  {
2695
2695
  "name": "cta-5",
2696
2696
  "type": "registry:block",
2697
- "title": "Cta 5",
2697
+ "title": "CTA 5",
2698
2698
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2699
2699
  "categories": ["cta"],
2700
2700
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2715,7 +2715,7 @@
2715
2715
  {
2716
2716
  "name": "cta-6",
2717
2717
  "type": "registry:block",
2718
- "title": "Cta 6",
2718
+ "title": "CTA 6",
2719
2719
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2720
2720
  "categories": ["cta"],
2721
2721
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2740,7 +2740,7 @@
2740
2740
  {
2741
2741
  "name": "cta-7",
2742
2742
  "type": "registry:block",
2743
- "title": "Cta 7",
2743
+ "title": "CTA 7",
2744
2744
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2745
2745
  "categories": ["cta"],
2746
2746
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2759,7 +2759,7 @@
2759
2759
  {
2760
2760
  "name": "cta-8",
2761
2761
  "type": "registry:block",
2762
- "title": "Cta 8",
2762
+ "title": "CTA 8",
2763
2763
  "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
2764
2764
  "categories": ["cta"],
2765
2765
  "docs": "https://ui.full.dev/blocks/cta/",
@@ -2797,7 +2797,7 @@
2797
2797
  {
2798
2798
  "name": "faqs-1",
2799
2799
  "type": "registry:block",
2800
- "title": "Faqs 1",
2800
+ "title": "FAQs 1",
2801
2801
  "description": "FAQ sections for product pages, launches, and documentation support content.",
2802
2802
  "categories": ["faqs"],
2803
2803
  "docs": "https://ui.full.dev/blocks/faqs/",
@@ -2816,7 +2816,7 @@
2816
2816
  {
2817
2817
  "name": "faqs-2",
2818
2818
  "type": "registry:block",
2819
- "title": "Faqs 2",
2819
+ "title": "FAQs 2",
2820
2820
  "description": "FAQ sections for product pages, launches, and documentation support content.",
2821
2821
  "categories": ["faqs"],
2822
2822
  "docs": "https://ui.full.dev/blocks/faqs/",
@@ -2835,7 +2835,7 @@
2835
2835
  {
2836
2836
  "name": "faqs-3",
2837
2837
  "type": "registry:block",
2838
- "title": "Faqs 3",
2838
+ "title": "FAQs 3",
2839
2839
  "description": "FAQ sections for product pages, launches, and documentation support content.",
2840
2840
  "categories": ["faqs"],
2841
2841
  "docs": "https://ui.full.dev/blocks/faqs/",
@@ -2854,7 +2854,7 @@
2854
2854
  {
2855
2855
  "name": "faqs-4",
2856
2856
  "type": "registry:block",
2857
- "title": "Faqs 4",
2857
+ "title": "FAQs 4",
2858
2858
  "description": "FAQ sections for product pages, launches, and documentation support content.",
2859
2859
  "categories": ["faqs"],
2860
2860
  "docs": "https://ui.full.dev/blocks/faqs/",
@@ -324,7 +324,10 @@ const openLinks = markdownUrl
324
324
  border: 0;
325
325
  border-radius: 0;
326
326
  background: transparent !important;
327
- padding: 1rem 3.5rem 1rem 1rem;
327
+ padding: 1rem 4rem 1rem 1rem;
328
+ /* Long lines fade out before the copy button instead of running under
329
+ it; the end padding scrolls the last characters past the fade. */
330
+ mask-image: linear-gradient(to left, transparent 2.75rem, #000 3.75rem);
328
331
  font-family: var(--font-mono);
329
332
  font-size: var(--text-sm);
330
333
  line-height: var(--text-sm--line-height);
@@ -66,7 +66,7 @@ const {
66
66
  </div>
67
67
  </SectionContainer>
68
68
  <SectionContainer>
69
- <div class="mx-auto grid w-full justify-center gap-6 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(16rem,18rem))]">
69
+ <div class="mx-auto grid w-full grid-cols-1 justify-center gap-6 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(16rem,18rem))]">
70
70
  {plans.map((plan) => (
71
71
  <Card
72
72
  class={cn("flex flex-col", plan.featured && "ring-primary ring-2")}
@@ -47,7 +47,7 @@ const {
47
47
  data-collision-padding={collisionPadding}
48
48
  hidden={hidden}
49
49
  class={cn(
50
- "cn-dropdown-menu-content cn-dropdown-menu-content-logical cn-menu-target cn-menu-translucent z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",
50
+ "cn-dropdown-menu-content cn-dropdown-menu-content-logical cn-menu-target cn-menu-translucent z-50 max-h-[var(--available-height,min(24rem,calc(100svh-2rem)))] w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",
51
51
  className
52
52
  )}
53
53
  {...props}
@@ -60,7 +60,7 @@ const {
60
60
  <div
61
61
  data-slot="select-viewport"
62
62
  data-position={position}
63
- class="data-[position=item-aligned]:w-full data-[position=popper]:min-w-36"
63
+ class="max-h-[min(24rem,calc(100svh-2rem))] overflow-y-auto data-[position=item-aligned]:w-full data-[position=popper]:min-w-36"
64
64
  >
65
65
  <slot />
66
66
  </div>
@@ -70,6 +70,20 @@
70
70
  applyTheme(getThemePreference(), true)
71
71
  })
72
72
 
73
+ // Astro's <ClientRouter /> replaces the <html> attributes with those of the
74
+ // next page, which cannot know the theme. Carry the theme over before the
75
+ // swap, so it neither flashes nor reaches the observer below as a choice.
76
+ document.addEventListener("astro:before-swap", (event) => {
77
+ const swap = event.swap
78
+ event.swap = function (...args) {
79
+ event.newDocument.documentElement.classList.toggle(
80
+ "dark",
81
+ appliedTheme === "dark"
82
+ )
83
+ return swap.apply(this, args)
84
+ }
85
+ })
86
+
73
87
  if (typeof localStorage !== "undefined") {
74
88
  const observer = new MutationObserver(() => {
75
89
  const theme = document.documentElement.classList.contains("dark")
@@ -184,8 +184,46 @@
184
184
  }
185
185
  html {
186
186
  @apply font-sans;
187
+ /* Links to a heading land below the sticky docs header. */
188
+ scroll-padding-top: 5rem;
187
189
  }
188
190
  body {
189
191
  @apply bg-background font-sans text-foreground;
190
192
  }
191
193
  }
194
+
195
+ /* Code blocks in the page text that Doc1 does not wrap, such as those in a
196
+ list or on block pages, look like Doc1's. Examples keep their own. */
197
+ @layer components {
198
+ article
199
+ pre.astro-code:not(
200
+ .docs-code-block > pre,
201
+ [data-slot="live-code-panel"] pre
202
+ ) {
203
+ border: 1px solid var(--color-border);
204
+ border-radius: var(--radius-xl);
205
+ background: color-mix(
206
+ in oklab,
207
+ var(--color-muted) 60%,
208
+ transparent
209
+ ) !important;
210
+ padding: 1rem;
211
+ font-size: var(--text-sm);
212
+ }
213
+
214
+ .dark
215
+ article
216
+ pre.astro-code:not(
217
+ .docs-code-block > pre,
218
+ [data-slot="live-code-panel"] pre
219
+ ),
220
+ .dark
221
+ article
222
+ pre.astro-code:not(
223
+ .docs-code-block > pre,
224
+ [data-slot="live-code-panel"] pre
225
+ )
226
+ span[style*="--shiki-dark"] {
227
+ color: var(--shiki-dark) !important;
228
+ }
229
+ }