Add D-prefixed Blazor wrappers for every daisyUI 5 component

Components/Daisy/ wraps all 69 components in daisyUI's llms.txt, grouped by
daisyUI's categories (Actions, DataDisplay, Navigation, Feedback, DataInput,
Layout, Mockup), with part components where daisyUI has repeating parts (DTab,
DMenuItem, DTimelineItem, ...).
- Each enum maps to whole literal class names in a switch, so Tailwind's scanner
  generates them. Nothing is concatenated.
- Value-holding fields derive from DInputBase<TValue>, Blazor's InputBase, so
  @bind-Value and EditForm validation work. Invalid fields get the component's
  *-error class.
- Open and active state lives in C# (@bind-IsOpen, @bind-Active) and is rendered
  with daisyUI's *-open modifiers. DDropdown adds an outside-click layer and
  Escape. No component uses JS interop.
- The one exception is DCalendar, which wraps the Cally web component, vendored
  as wwwroot/vendor/cally.js (0.9.2, MIT).

/styleguide (not linked) renders every component in all its colours, sizes and
states, with a theme and hue picker that previews without saving.

neo.css follows what the styleguide showed:
- select keeps daisyUI's arrow;
- skeleton-text isn't sunk;
- the phone mockup and dock are raised;
- active menu items and OTP digits are inset;
- a joined accordion is raised as one block.
The primary, secondary and accent colours are deeper, so they still read as
text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-03 12:01:42 +02:00
1 parent 8e03d12a3e
commit 90e4b9200c
127 files changed
+6962 -17

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
@* Styleguide: the Mockup components (Browser, Code, Phone, Window). *@
<div class="grid gap-8 lg:grid-cols-2">
<section class="flex flex-col gap-3">
<h3 class="text-lg font-bold">DMockupBrowser</h3>
<DMockupBrowser Url="https://decepub.thepra.dev" class="w-full border border-base-300"
ContentClass="grid h-40 place-content-center border-t border-base-300">
Hello!
</DMockupBrowser>
<DMockupBrowser class="w-full bg-base-300" ContentClass="grid h-24 place-content-center bg-base-200">
<Toolbar><span class="mx-auto text-sm opacity-60">Custom toolbar</span></Toolbar>
<ChildContent>Content</ChildContent>
</DMockupBrowser>
</section>
<section class="flex flex-col gap-3">
<h3 class="text-lg font-bold">DMockupCode</h3>
<DMockupCode class="w-full">
<DMockupCodeLine Prefix="$">npm i daisyui</DMockupCodeLine>
<DMockupCodeLine Prefix=">" class="text-warning">installing...</DMockupCodeLine>
<DMockupCodeLine Prefix=">" class="text-success">Done!</DMockupCodeLine>
</DMockupCode>
<DMockupCode class="w-full">
<DMockupCodeLine Prefix="1">dotnet build</DMockupCodeLine>
<DMockupCodeLine Prefix="2" class="bg-warning text-warning-content">bash tools/tailwind.sh build</DMockupCodeLine>
<DMockupCodeLine Prefix="3">dotnet run</DMockupCodeLine>
</DMockupCode>
<DMockupCode class="w-full bg-primary text-primary-content">
<DMockupCodeLine>No prefix, primary colors</DMockupCodeLine>
</DMockupCode>
</section>
<section class="flex flex-col gap-3">
<h3 class="text-lg font-bold">DMockupPhone</h3>
<div class="flex flex-wrap gap-6">
<DMockupPhone class="max-w-56">
<div class="grid h-full place-content-center bg-neutral text-neutral-content">It's Glowtime.</div>
</DMockupPhone>
<DMockupPhone class="max-w-56 border-primary">
<img src="https://picsum.photos/seed/phone/462/978" alt="wallpaper" />
</DMockupPhone>
</div>
</section>
<section class="flex flex-col gap-3">
<h3 class="text-lg font-bold">DMockupWindow</h3>
<DMockupWindow class="w-full border border-base-300" ContentClass="grid h-40 place-content-center border-t border-base-300">
Hello!
</DMockupWindow>
<DMockupWindow class="w-full bg-base-300" ContentClass="grid h-24 place-content-center bg-base-200">
On a background color
</DMockupWindow>
</section>
</div>