1- import { mdiCheckCircle , mdiFlask } from "@mdi/js"
1+ import { mdiCheckCircle } from "@mdi/js"
22import { LongContent } from "#src/demos/interactive/LongContent.jsx"
33import { DetailsDialog } from "#ui/interactive/dialog/DetailsDialog.jsx"
44import { Icon } from "#ui/static/icon/Icon.jsx"
@@ -15,7 +15,6 @@ export function DemoDetailsDialog() {
1515 </ p >
1616 < div class = "grid gap-4 max-w-2xl" >
1717 < SimpleDemo />
18- < RichSummaryDemo />
1918 < LongContentDemo />
2019 </ div >
2120 </ div >
@@ -27,18 +26,18 @@ function SimpleDemo() {
2726 < div >
2827 < h2 class = "text-xl font-semibold mb-3" > Simple</ h2 >
2928 < DetailsDialog
30- title = "Direct bioavailability "
29+ title = "What's included "
3130 content = { ( ) => (
3231 < div class = "space-y-3" >
33- < p > The infusion bypasses the gut and makes micronutrients available immediately .</ p >
32+ < p > A short summary that expands into a few supporting details .</ p >
3433 < ul class = "space-y-2" >
3534 < li class = "flex items-start gap-2" >
3635 < Icon path = { mdiCheckCircle } class = "size-5 mt-0.5 text-green-600 shrink-0" />
37- < span > Useful when gut absorption is impaired .</ span >
36+ < span > Server-rendered so the content is indexable .</ span >
3837 </ li >
3938 < li class = "flex items-start gap-2" >
4039 < Icon path = { mdiCheckCircle } class = "size-5 mt-0.5 text-green-600 shrink-0" />
41- < span > Helpful when the body needs fast support .</ span >
40+ < span > Opens as a modal once JavaScript loads .</ span >
4241 </ li >
4342 </ ul >
4443 </ div >
@@ -48,42 +47,6 @@ function SimpleDemo() {
4847 )
4948}
5049
51- function RichSummaryDemo ( ) {
52- return (
53- < div >
54- < h2 class = "text-xl font-semibold mb-3" > Custom summary face</ h2 >
55- < DetailsDialog
56- title = "NAD+ Infusion"
57- summaryEl = { ( ) => (
58- < div class = "flex items-center gap-3" >
59- < Icon path = { mdiFlask } class = "size-6 text-blue-600" />
60- < span >
61- < span class = "block font-semibold" > NAD+ Infusion</ span >
62- < span class = "block text-sm text-muted-foreground" > Cellular energy & longevity support</ span >
63- </ span >
64- </ div >
65- ) }
66- content = { ( ) => (
67- < dl class = "grid gap-2" >
68- < div >
69- < dt class = "font-semibold inline" > Protocol: </ dt >
70- < dd class = "inline" > 250–500 mg over 2–3 hours.</ dd >
71- </ div >
72- < div >
73- < dt class = "font-semibold inline" > Ideal for: </ dt >
74- < dd class = "inline" > Fatigue, regeneration, anti-aging programs.</ dd >
75- </ div >
76- < div >
77- < dt class = "font-semibold inline" > Duration: </ dt >
78- < dd class = "inline" > 2–3 hours per session.</ dd >
79- </ div >
80- </ dl >
81- ) }
82- />
83- </ div >
84- )
85- }
86-
8750function LongContentDemo ( ) {
8851 return (
8952 < div >
0 commit comments