tutuca 0.11.1 → 0.11.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.
Files changed (107) hide show
  1. package/dist/tutuca-dev.ext.js +6 -1
  2. package/dist/tutuca-dev.js +6 -1
  3. package/dist/tutuca-dev.min.js +1 -1
  4. package/package.json +1 -1
  5. package/skill/margaui/SKILL.md +0 -105
  6. package/skill/margaui/components/accordion.md +0 -127
  7. package/skill/margaui/components/alert.md +0 -174
  8. package/skill/margaui/components/aura.md +0 -97
  9. package/skill/margaui/components/avatar.md +0 -220
  10. package/skill/margaui/components/badge.md +0 -193
  11. package/skill/margaui/components/breadcrumbs.md +0 -103
  12. package/skill/margaui/components/button.md +0 -322
  13. package/skill/margaui/components/calendar.md +0 -67
  14. package/skill/margaui/components/card.md +0 -373
  15. package/skill/margaui/components/carousel.md +0 -387
  16. package/skill/margaui/components/chat.md +0 -171
  17. package/skill/margaui/components/checkbox.md +0 -101
  18. package/skill/margaui/components/collapse.md +0 -172
  19. package/skill/margaui/components/countdown.md +0 -165
  20. package/skill/margaui/components/diff.md +0 -53
  21. package/skill/margaui/components/divider.md +0 -107
  22. package/skill/margaui/components/dock.md +0 -173
  23. package/skill/margaui/components/drawer.md +0 -184
  24. package/skill/margaui/components/dropdown.md +0 -388
  25. package/skill/margaui/components/fab.md +0 -346
  26. package/skill/margaui/components/fieldset.md +0 -88
  27. package/skill/margaui/components/file-input.md +0 -84
  28. package/skill/margaui/components/filter.md +0 -52
  29. package/skill/margaui/components/footer.md +0 -583
  30. package/skill/margaui/components/hero.md +0 -135
  31. package/skill/margaui/components/hover-3d.md +0 -129
  32. package/skill/margaui/components/hover-gallery.md +0 -49
  33. package/skill/margaui/components/indicator.md +0 -265
  34. package/skill/margaui/components/input.md +0 -389
  35. package/skill/margaui/components/join.md +0 -100
  36. package/skill/margaui/components/kbd.md +0 -127
  37. package/skill/margaui/components/label.md +0 -102
  38. package/skill/margaui/components/link.md +0 -96
  39. package/skill/margaui/components/list.md +0 -182
  40. package/skill/margaui/components/loading.md +0 -105
  41. package/skill/margaui/components/mask.md +0 -168
  42. package/skill/margaui/components/megamenu.md +0 -131
  43. package/skill/margaui/components/menu.md +0 -887
  44. package/skill/margaui/components/mockup-browser.md +0 -39
  45. package/skill/margaui/components/mockup-code.md +0 -81
  46. package/skill/margaui/components/mockup-phone.md +0 -39
  47. package/skill/margaui/components/mockup-window.md +0 -33
  48. package/skill/margaui/components/modal.md +0 -196
  49. package/skill/margaui/components/navbar.md +0 -282
  50. package/skill/margaui/components/otp.md +0 -171
  51. package/skill/margaui/components/pagination.md +0 -122
  52. package/skill/margaui/components/progress.md +0 -135
  53. package/skill/margaui/components/radial-progress.md +0 -67
  54. package/skill/margaui/components/radio.md +0 -133
  55. package/skill/margaui/components/range.md +0 -134
  56. package/skill/margaui/components/rating.md +0 -170
  57. package/skill/margaui/components/select.md +0 -225
  58. package/skill/margaui/components/skeleton.md +0 -64
  59. package/skill/margaui/components/stack.md +0 -142
  60. package/skill/margaui/components/stat.md +0 -254
  61. package/skill/margaui/components/status.md +0 -73
  62. package/skill/margaui/components/steps.md +0 -138
  63. package/skill/margaui/components/swap.md +0 -152
  64. package/skill/margaui/components/tab.md +0 -248
  65. package/skill/margaui/components/table.md +0 -1018
  66. package/skill/margaui/components/text-rotate.md +0 -91
  67. package/skill/margaui/components/textarea.md +0 -85
  68. package/skill/margaui/components/theme-controller.md +0 -266
  69. package/skill/margaui/components/timeline.md +0 -1356
  70. package/skill/margaui/components/toast.md +0 -165
  71. package/skill/margaui/components/toggle.md +0 -135
  72. package/skill/margaui/components/tooltip.md +0 -181
  73. package/skill/margaui/components/validator.md +0 -163
  74. package/skill/tutuca/SKILL.md +0 -56
  75. package/skill/tutuca/advanced.md +0 -212
  76. package/skill/tutuca/cli.md +0 -239
  77. package/skill/tutuca/component-design.md +0 -168
  78. package/skill/tutuca/core.md +0 -910
  79. package/skill/tutuca/iteration.md +0 -207
  80. package/skill/tutuca/macros.md +0 -86
  81. package/skill/tutuca/margaui.md +0 -175
  82. package/skill/tutuca/messages-and-intents.md +0 -399
  83. package/skill/tutuca/patterns/README.md +0 -48
  84. package/skill/tutuca/patterns/add-a-story.md +0 -26
  85. package/skill/tutuca/patterns/bind-text-and-attributes.md +0 -30
  86. package/skill/tutuca/patterns/conditional-attribute-value.md +0 -29
  87. package/skill/tutuca/patterns/coordinate-components.md +0 -54
  88. package/skill/tutuca/patterns/edit-through-a-dynamic-target.md +0 -27
  89. package/skill/tutuca/patterns/enrich-each-item.md +0 -25
  90. package/skill/tutuca/patterns/file-input.md +0 -39
  91. package/skill/tutuca/patterns/filter-a-list.md +0 -25
  92. package/skill/tutuca/patterns/filter-and-paginate.md +0 -60
  93. package/skill/tutuca/patterns/handle-events.md +0 -38
  94. package/skill/tutuca/patterns/iterate-a-list.md +0 -18
  95. package/skill/tutuca/patterns/paginate-a-list.md +0 -29
  96. package/skill/tutuca/patterns/render-a-child-component.md +0 -21
  97. package/skill/tutuca/patterns/reuse-markup-with-macros.md +0 -36
  98. package/skill/tutuca/patterns/share-state-across-the-tree.md +0 -38
  99. package/skill/tutuca/patterns/show-or-hide-content.md +0 -23
  100. package/skill/tutuca/patterns/switch-between-views.md +0 -30
  101. package/skill/tutuca/patterns/tabbed-interface.md +0 -43
  102. package/skill/tutuca/semantics.md +0 -195
  103. package/skill/tutuca/storybook.md +0 -270
  104. package/skill/tutuca/styles.md +0 -48
  105. package/skill/tutuca/testing.md +0 -346
  106. package/skill/tutuca-source/SKILL.md +0 -33
  107. package/skill/tutuca-source/tutuca.ext.js +0 -4244
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tutuca",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "type": "module",
5
5
  "description": "SPA framework with Immer-powered immutable state and virtual DOM",
6
6
  "main": "./dist/tutuca.js",
@@ -1,105 +0,0 @@
1
- ---
2
- name: margaui
3
- description: Use when writing HTML/CSS that uses the margaui component library — Tailwind v4 utility classes like `btn`, `card`, `alert`, `modal`, `navbar`, `dropdown`, `toast`, themes via `data-theme`. margaui is API-compatible with daisyUI, so this skill also applies when working with daisyUI markup. Provides per-component usage notes and copy-paste examples.
4
- ---
5
-
6
- # margaui
7
-
8
- margaui is a Tailwind v4–native CSS component library: 68 components defined as Tailwind v4 `@utility` classes, plus 35 themes selected via `data-theme` on any ancestor element.
9
-
10
- ## Relationship to daisyUI
11
-
12
- margaui is **API-compatible with [daisyUI](https://daisyui.com/)** and currently tracks **daisyUI v5.6.6**. The class names (`btn`, `btn-primary`, `card`, `card-body`, `alert-info`, `modal-box`, `dropdown-content`, …), modifier vocabulary, and DOM structure mirror daisyUI. Differences are implementation-level (Tailwind v4 native, in-browser compiler, `@supports` fallbacks for `color-mix`), not API-level.
13
-
14
- Practical implication: **daisyUI documentation and examples are valid references** when this skill doesn't cover something. If a component is documented for daisyUI, the same markup works in margaui.
15
-
16
- ## Themes
17
-
18
- Set on any element (most often `<html>` or `<body>`):
19
-
20
- ```html
21
- <html data-theme="dracula">
22
- ```
23
-
24
- `light` is the default — applied via `:root` and `:host`, so pages work without an explicit `data-theme`. 35 themes available: `abyss`, `acid`, `aqua`, `autumn`, `black`, `bumblebee`, `business`, `caramellatte`, `cmyk`, `coffee`, `corporate`, `cupcake`, `cyberpunk`, `dark`, `dim`, `dracula`, `emerald`, `fantasy`, `forest`, `garden`, `halloween`, `lemonade`, `light`, `lofi`, `luxury`, `night`, `nord`, `pastel`, `retro`, `silk`, `sunset`, `synthwave`, `valentine`, `winter`, `wireframe`.
25
-
26
- ## Conventions across components
27
-
28
- - **Theme-driven colors.** Use semantic color utilities (`bg-base-100`, `bg-base-200`, `text-base-content`, `text-primary`, `bg-primary`, `text-primary-content`, etc.) rather than hard-coded palette colors — this keeps components correct across all 35 themes.
29
- - **Modifier suffixes are consistent.** Most components share the same vocabulary: color (`-primary`, `-secondary`, `-accent`, `-info`, `-success`, `-warning`, `-error`, `-neutral`, `-ghost`), style (`-outline`, `-soft`, `-dash`), size (`-xs`, `-sm`, `-md`, `-lg`, `-xl`), state (`-active`, `-disabled`).
30
- - **Tailwind utilities work normally.** Responsive prefixes (`sm:`, `md:`, …), state variants (`hover:`, `focus:`, …), and arbitrary values all compose with margaui classes.
31
- - **`@utility` classes, not `@apply`.** Internally components are defined with Tailwind v4's `@utility` directive, so they tree-shake on demand and can be combined freely.
32
- - **Color modifiers are generated, not hand-written.** A component's color variants (`btn-primary`, `badge-success`, `alert-info`, …) resolve from the theme's 16 semantic colors via Tailwind v4's `--value(--color-*)`, so one definition per component covers every color and tracks the active `data-theme`.
33
-
34
- ## Component index
35
-
36
- Read the linked file when the user's task involves that component. Each file has _What it does_, _When to use_, _Core classes_, and copy-paste HTML examples drawn from `playground/components/<name>/`.
37
-
38
- - [accordion](components/accordion.md) — collapsible sections (single-open via radio, free via details)
39
- - [alert](components/alert.md) — inline notification box (info / success / warning / error)
40
- - [aura](components/aura.md) — animated glowing border wrapper (rainbow, holo, dual, silver, gold, glow)
41
- - [avatar](components/avatar.md) — user picture / placeholder, with optional ring, mask, presence
42
- - [badge](components/badge.md) — small label / counter chip
43
- - [breadcrumbs](components/breadcrumbs.md) — path-style navigation trail
44
- - [button](components/button.md) — `btn` with color / size / shape / style modifiers
45
- - [calendar](components/calendar.md) — date picker (uses external Cally web component)
46
- - [card](components/card.md) — container with figure, body, title, actions
47
- - [carousel](components/carousel.md) — horizontal/vertical scroll-snap slideshow
48
- - [chat](components/chat.md) — chat bubble (start/end alignment)
49
- - [checkbox](components/checkbox.md) — styled `<input type="checkbox">`
50
- - [collapse](components/collapse.md) — single show/hide region (details/summary or checkbox)
51
- - [countdown](components/countdown.md) — animated digit transitions for timers / clocks
52
- - [diff](components/diff.md) — side-by-side image/text comparison with draggable handle
53
- - [divider](components/divider.md) — horizontal / vertical separator with optional label
54
- - [dock](components/dock.md) — bottom navigation bar (mobile-style)
55
- - [drawer](components/drawer.md) — off-canvas sidebar (toggle via checkbox)
56
- - [dropdown](components/dropdown.md) — click/hover/focus menu attached to a trigger
57
- - [fab](components/fab.md) — floating action button (single or speed-dial)
58
- - [fieldset](components/fieldset.md) — themed `<fieldset>` group with legend + label slots
59
- - [file-input](components/file-input.md) — styled file picker
60
- - [filter](components/filter.md) — radio-button filter group (with reset)
61
- - [footer](components/footer.md) — page footer with column groupings
62
- - [hero](components/hero.md) — full-width banner section (centered or with figure)
63
- - [hover-3d](components/hover-3d.md) — 3D tilt effect on hover (cards / images)
64
- - [hover-gallery](components/hover-gallery.md) — swap images by hovering across regions
65
- - [indicator](components/indicator.md) — wrap an element to overlay a badge / status / button at a corner
66
- - [input](components/input.md) — themed text-style input wrapper
67
- - [join](components/join.md) — group adjacent items so borders/radii merge
68
- - [kbd](components/kbd.md) — keyboard-key visual
69
- - [label](components/label.md) — input label (inline or floating)
70
- - [link](components/link.md) — themed `<a>`
71
- - [list](components/list.md) — vertical list with grid-style columns
72
- - [loading](components/loading.md) — loading spinner / dots / bars / ring / ball / infinity
73
- - [mask](components/mask.md) — clip an element to a shape (circle, hex, star, …)
74
- - [megamenu](components/megamenu.md) — large horizontal nav bar whose items open big popover panels
75
- - [menu](components/menu.md) — vertical/horizontal nav list (sidebar, sub-menus)
76
- - [mockup-browser](components/mockup-browser.md) — browser-window chrome wrapper for screenshots
77
- - [mockup-code](components/mockup-code.md) — terminal/code-block visual
78
- - [mockup-phone](components/mockup-phone.md) — phone-frame wrapper for screenshots
79
- - [mockup-window](components/mockup-window.md) — OS-window chrome wrapper for screenshots
80
- - [modal](components/modal.md) — dialog / pop-up (native `<dialog>` or checkbox-driven)
81
- - [navbar](components/navbar.md) — top navigation bar with start/center/end slots
82
- - [otp](components/otp.md) — one-time-password digit input (2FA / verification codes)
83
- - [pagination](components/pagination.md) — paged-navigation button row
84
- - [progress](components/progress.md) — linear progress bar (`<progress>`)
85
- - [radial-progress](components/radial-progress.md) — circular progress indicator
86
- - [radio](components/radio.md) — styled `<input type="radio">`
87
- - [range](components/range.md) — styled `<input type="range">` slider
88
- - [rating](components/rating.md) — star / heart rating (radio inputs + masks)
89
- - [select](components/select.md) — styled `<select>`
90
- - [skeleton](components/skeleton.md) — shimmering placeholder for loading content
91
- - [stack](components/stack.md) — stack children (Z-axis)
92
- - [stat](components/stat.md) — KPI / metric tile (title + value + desc)
93
- - [status](components/status.md) — small colored status dot
94
- - [steps](components/steps.md) — multi-step progress indicator
95
- - [swap](components/swap.md) — toggle between two children (icon swap, hamburger)
96
- - [tab](components/tab.md) — tabbed content (radio inputs or anchors)
97
- - [table](components/table.md) — themed `<table>` (zebra, hover, pinned rows/cols, sizes)
98
- - [text-rotate](components/text-rotate.md) — cycle through words in place (CSS animation)
99
- - [textarea](components/textarea.md) — styled `<textarea>`
100
- - [theme-controller](components/theme-controller.md) — checkbox / radio / dropdown that switches `data-theme`
101
- - [timeline](components/timeline.md) — vertical or horizontal event timeline
102
- - [toast](components/toast.md) — fixed-position notification stack (corner overlays)
103
- - [toggle](components/toggle.md) — on/off switch (styled checkbox)
104
- - [tooltip](components/tooltip.md) — hover/focus tooltip on any element
105
- - [validator](components/validator.md) — show validation message tied to a form input
@@ -1,127 +0,0 @@
1
- # accordion
2
-
3
- _collapsible sections (single-open via radio, free via details)_
4
-
5
- ## What it does
6
-
7
- Vertically stacked, expandable sections that show one panel of content at a time.
8
-
9
- ## When to use
10
-
11
- - Grouped FAQ-style content where most items stay collapsed.
12
- - For a single show/hide region without grouping, use **collapse** instead.
13
-
14
- ## Core classes
15
-
16
- `collapse` on each item, all sharing the same `name="…"` (radio inputs) for single-open behavior; modifiers `collapse-arrow`, `collapse-plus`, `join-item` when wrapped in `join`.
17
-
18
- ## Examples
19
-
20
- ### Accordion using details
21
-
22
- Source: `playground/components/accordion/accordion-using-details.html`
23
-
24
- ```html
25
- <details class="collapse bg-base-100 border border-base-300" name="my-accordion-det-1" open>
26
- <summary class="collapse-title font-semibold">How do I create an account?</summary>
27
- <div class="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div>
28
- </details>
29
- <details class="collapse bg-base-100 border border-base-300" name="my-accordion-det-1">
30
- <summary class="collapse-title font-semibold">I forgot my password. What should I do?</summary>
31
- <div class="collapse-content text-sm">Click on "Forgot Password" on the login page and follow the instructions sent to your email.</div>
32
- </details>
33
- <details class="collapse bg-base-100 border border-base-300" name="my-accordion-det-1">
34
- <summary class="collapse-title font-semibold">How do I update my profile information?</summary>
35
- <div class="collapse-content text-sm">Go to "My Account" settings and select "Edit Profile" to make changes.</div>
36
- </details>
37
- ```
38
-
39
- ### Accordion using radio inputs
40
-
41
- Source: `playground/components/accordion/accordion-using-radio-inputs.html`
42
-
43
- ```html
44
- <div class="collapse bg-base-100 border border-base-300">
45
- <input type="radio" name="my-accordion-1" checked="checked" />
46
- <div class="collapse-title font-semibold">How do I create an account?</div>
47
- <div class="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div>
48
- </div>
49
- <div class="collapse bg-base-100 border border-base-300">
50
- <input type="radio" name="my-accordion-1" />
51
- <div class="collapse-title font-semibold">I forgot my password. What should I do?</div>
52
- <div class="collapse-content text-sm">Click on "Forgot Password" on the login page and follow the instructions sent to your email.</div>
53
- </div>
54
- <div class="collapse bg-base-100 border border-base-300">
55
- <input type="radio" name="my-accordion-1" />
56
- <div class="collapse-title font-semibold">How do I update my profile information?</div>
57
- <div class="collapse-content text-sm">Go to "My Account" settings and select "Edit Profile" to make changes.</div>
58
- </div>
59
- ```
60
-
61
- ### Accordion with arrow icon
62
-
63
- Source: `playground/components/accordion/accordion-with-arrow-icon.html`
64
-
65
- ```html
66
- <div class="collapse collapse-arrow bg-base-100 border border-base-300">
67
- <input type="radio" name="my-accordion-2" checked="checked" />
68
- <div class="collapse-title font-semibold">How do I create an account?</div>
69
- <div class="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div>
70
- </div>
71
- <div class="collapse collapse-arrow bg-base-100 border border-base-300">
72
- <input type="radio" name="my-accordion-2" />
73
- <div class="collapse-title font-semibold">I forgot my password. What should I do?</div>
74
- <div class="collapse-content text-sm">Click on "Forgot Password" on the login page and follow the instructions sent to your email.</div>
75
- </div>
76
- <div class="collapse collapse-arrow bg-base-100 border border-base-300">
77
- <input type="radio" name="my-accordion-2" />
78
- <div class="collapse-title font-semibold">How do I update my profile information?</div>
79
- <div class="collapse-content text-sm">Go to "My Account" settings and select "Edit Profile" to make changes.</div>
80
- </div>
81
- ```
82
-
83
- ### Accordion with plusminus icon
84
-
85
- Source: `playground/components/accordion/accordion-with-plusminus-icon.html`
86
-
87
- ```html
88
- <div class="collapse collapse-plus bg-base-100 border border-base-300">
89
- <input type="radio" name="my-accordion-3" checked="checked" />
90
- <div class="collapse-title font-semibold">How do I create an account?</div>
91
- <div class="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div>
92
- </div>
93
- <div class="collapse collapse-plus bg-base-100 border border-base-300">
94
- <input type="radio" name="my-accordion-3" />
95
- <div class="collapse-title font-semibold">I forgot my password. What should I do?</div>
96
- <div class="collapse-content text-sm">Click on "Forgot Password" on the login page and follow the instructions sent to your email.</div>
97
- </div>
98
- <div class="collapse collapse-plus bg-base-100 border border-base-300">
99
- <input type="radio" name="my-accordion-3" />
100
- <div class="collapse-title font-semibold">How do I update my profile information?</div>
101
- <div class="collapse-content text-sm">Go to "My Account" settings and select "Edit Profile" to make changes.</div>
102
- </div>
103
- ```
104
-
105
- ### Using accordion and join together
106
-
107
- Source: `playground/components/accordion/using-accordion-and-join-together.html`
108
-
109
- ```html
110
- <div class="join join-vertical bg-base-100">
111
- <div class="collapse collapse-arrow join-item border-base-300 border">
112
- <input type="radio" name="my-accordion-4" checked="checked" />
113
- <div class="collapse-title font-semibold">How do I create an account?</div>
114
- <div class="collapse-content text-sm">Click the "Sign Up" button in the top right corner and follow the registration process.</div>
115
- </div>
116
- <div class="collapse collapse-arrow join-item border-base-300 border">
117
- <input type="radio" name="my-accordion-4" />
118
- <div class="collapse-title font-semibold">I forgot my password. What should I do?</div>
119
- <div class="collapse-content text-sm">Click on "Forgot Password" on the login page and follow the instructions sent to your email.</div>
120
- </div>
121
- <div class="collapse collapse-arrow join-item border-base-300 border">
122
- <input type="radio" name="my-accordion-4" />
123
- <div class="collapse-title font-semibold">How do I update my profile information?</div>
124
- <div class="collapse-content text-sm">Go to "My Account" settings and select "Edit Profile" to make changes.</div>
125
- </div>
126
- </div>
127
- ```
@@ -1,174 +0,0 @@
1
- # alert
2
-
3
- _inline notification box (info / success / warning / error)_
4
-
5
- ## What it does
6
-
7
- Inline, non-blocking notification box with an icon and message, optionally with action buttons.
8
-
9
- ## When to use
10
-
11
- - Persistent feedback inline with content (form errors, status banners).
12
- - For transient pop-ups that auto-dismiss, use **toast** instead.
13
-
14
- ## Core classes
15
-
16
- `alert`; color `alert-info|success|warning|error`; style `alert-outline|dash|soft`; usually paired with `role="alert"`.
17
-
18
- ## Examples
19
-
20
- ### Alert
21
-
22
- Source: `playground/components/alert/alert.html`
23
-
24
- ```html
25
- <div role="alert" class="alert">
26
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-info h-6 w-6 shrink-0">
27
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
28
- </svg>
29
- <span>12 unread messages. Tap to see.</span>
30
- </div>
31
- ```
32
-
33
- ### Alert dash style
34
-
35
- Source: `playground/components/alert/alert-dash-style.html`
36
-
37
- ```html
38
- <div role="alert" class="alert alert-info alert-dash">
39
- <span>12 unread messages. Tap to see.</span>
40
- </div>
41
- <div role="alert" class="alert alert-success alert-dash">
42
- <span>Your purchase has been confirmed!</span>
43
- </div>
44
- <div role="alert" class="alert alert-warning alert-dash">
45
- <span>Warning: Invalid email address!</span>
46
- </div>
47
- <div role="alert" class="alert alert-error alert-dash">
48
- <span>Error! Task failed successfully.</span>
49
- </div>
50
- ```
51
-
52
- ### Alert outline style
53
-
54
- Source: `playground/components/alert/alert-outline-style.html`
55
-
56
- ```html
57
- <div role="alert" class="alert alert-info alert-outline">
58
- <span>12 unread messages. Tap to see.</span>
59
- </div>
60
- <div role="alert" class="alert alert-success alert-outline">
61
- <span>Your purchase has been confirmed!</span>
62
- </div>
63
- <div role="alert" class="alert alert-warning alert-outline">
64
- <span>Warning: Invalid email address!</span>
65
- </div>
66
- <div role="alert" class="alert alert-error alert-outline">
67
- <span>Error! Task failed successfully.</span>
68
- </div>
69
- ```
70
-
71
- ### Alert soft style
72
-
73
- Source: `playground/components/alert/alert-soft-style.html`
74
-
75
- ```html
76
- <div role="alert" class="alert alert-info alert-soft">
77
- <span>12 unread messages. Tap to see.</span>
78
- </div>
79
- <div role="alert" class="alert alert-success alert-soft">
80
- <span>Your purchase has been confirmed!</span>
81
- </div>
82
- <div role="alert" class="alert alert-warning alert-soft">
83
- <span>Warning: Invalid email address!</span>
84
- </div>
85
- <div role="alert" class="alert alert-error alert-soft">
86
- <span>Error! Task failed successfully.</span>
87
- </div>
88
- ```
89
-
90
- ### Alert with buttons — responsive
91
-
92
- Source: `playground/components/alert/alert-with-buttons--responsive.html`
93
-
94
- ```html
95
- <div role="alert" class="alert alert-vertical sm:alert-horizontal">
96
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-info h-6 w-6 shrink-0">
97
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
98
- </svg>
99
- <span>we use cookies for no reason.</span>
100
- <div>
101
- <button class="btn btn-sm">Deny</button>
102
- <button class="btn btn-sm btn-primary">Accept</button>
103
- </div>
104
- </div>
105
- ```
106
-
107
- ### Alert with title and description
108
-
109
- Source: `playground/components/alert/alert-with-title-and-description.html`
110
-
111
- ```html
112
- <div role="alert" class="alert alert-vertical sm:alert-horizontal">
113
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-info h-6 w-6 shrink-0">
114
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
115
- </svg>
116
- <div>
117
- <h3 class="font-bold">New message!</h3>
118
- <div class="text-xs">You have 1 unread message</div>
119
- </div>
120
- <button class="btn btn-sm">See</button>
121
- </div>
122
- ```
123
-
124
- ### Error color
125
-
126
- Source: `playground/components/alert/error-color.html`
127
-
128
- ```html
129
- <div role="alert" class="alert alert-error">
130
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current" fill="none" viewBox="0 0 24 24">
131
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
132
- </svg>
133
- <span>Error! Task failed successfully.</span>
134
- </div>
135
- ```
136
-
137
- ### Info color
138
-
139
- Source: `playground/components/alert/info-color.html`
140
-
141
- ```html
142
- <div role="alert" class="alert alert-info">
143
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="h-6 w-6 shrink-0 stroke-current">
144
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
145
- </svg>
146
- <span>New software update available.</span>
147
- </div>
148
- ```
149
-
150
- ### Success color
151
-
152
- Source: `playground/components/alert/success-color.html`
153
-
154
- ```html
155
- <div role="alert" class="alert alert-success">
156
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current" fill="none" viewBox="0 0 24 24">
157
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
158
- </svg>
159
- <span>Your purchase has been confirmed!</span>
160
- </div>
161
- ```
162
-
163
- ### Warning color
164
-
165
- Source: `playground/components/alert/warning-color.html`
166
-
167
- ```html
168
- <div role="alert" class="alert alert-warning">
169
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current" fill="none" viewBox="0 0 24 24">
170
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
171
- </svg>
172
- <span>Warning: Invalid email address!</span>
173
- </div>
174
- ```
@@ -1,97 +0,0 @@
1
- # aura
2
-
3
- _animated glowing border wrapper (rainbow, holo, dual, silver, gold, glow)_
4
-
5
- ## What it does
6
-
7
- Wraps any element in an animated conic-gradient border light. Auto-picks corner radius when wrapping a card/alert/button/input/select/checkbox/toggle/badge.
8
-
9
- ## When to use
10
-
11
- - Highlighting the single most important button, card, or promo element on a page.
12
- - Not for general emphasis — use sparingly, it's an eye-catching animated effect.
13
-
14
- ## Core classes
15
-
16
- `aura`; style `aura-rainbow|holo|dual|silver|gold|glow`; size `aura-xs|sm|md|lg|xl`.
17
-
18
- ## Examples
19
-
20
- ### Aura sizes
21
-
22
- Source: `playground/components/aura/aura-sizes.html`
23
-
24
- ```html
25
- <div class="flex flex-wrap gap-6 items-center">
26
- <div class="aura aura-xs">
27
- <button class="btn btn-primary">xs</button>
28
- </div>
29
- <div class="aura aura-sm">
30
- <button class="btn btn-primary">sm</button>
31
- </div>
32
- <div class="aura aura-md">
33
- <button class="btn btn-primary">md</button>
34
- </div>
35
- <div class="aura aura-lg">
36
- <button class="btn btn-primary">lg</button>
37
- </div>
38
- <div class="aura aura-xl">
39
- <button class="btn btn-primary">xl</button>
40
- </div>
41
- </div>
42
- ```
43
-
44
- ### Aura styles
45
-
46
- Source: `playground/components/aura/aura-styles.html`
47
-
48
- ```html
49
- <div class="flex flex-wrap gap-6 items-center">
50
- <div class="aura">
51
- <button class="btn">default</button>
52
- </div>
53
- <div class="aura aura-rainbow">
54
- <button class="btn">rainbow</button>
55
- </div>
56
- <div class="aura aura-holo">
57
- <button class="btn">holo</button>
58
- </div>
59
- <div class="aura aura-dual">
60
- <button class="btn">dual</button>
61
- </div>
62
- <div class="aura aura-silver">
63
- <button class="btn">silver</button>
64
- </div>
65
- <div class="aura aura-gold">
66
- <button class="btn">gold</button>
67
- </div>
68
- <div class="aura aura-glow">
69
- <button class="btn">glow</button>
70
- </div>
71
- </div>
72
- ```
73
-
74
- ### Aura wrapping a button
75
-
76
- Source: `playground/components/aura/aura-wrapping-a-button.html`
77
-
78
- ```html
79
- <div class="aura">
80
- <button class="btn btn-primary">Buy now</button>
81
- </div>
82
- ```
83
-
84
- ### Aura wrapping a card
85
-
86
- Source: `playground/components/aura/aura-wrapping-a-card.html`
87
-
88
- ```html
89
- <div class="aura aura-rainbow">
90
- <div class="card bg-base-100 w-64 shadow-sm">
91
- <div class="card-body">
92
- <h2 class="card-title">Featured</h2>
93
- <p>This card is wrapped in an aura effect.</p>
94
- </div>
95
- </div>
96
- </div>
97
- ```