tutuca 0.9.39 → 0.9.41

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 (88) hide show
  1. package/dist/tutuca-cli.js +92 -39
  2. package/dist/tutuca-dev.js +18 -0
  3. package/dist/tutuca-dev.min.js +1 -1
  4. package/package.json +6 -7
  5. package/skill/immutable-js/SKILL.md +79 -0
  6. package/skill/immutable-js/references/collection.md +346 -0
  7. package/skill/immutable-js/references/conversions.md +99 -0
  8. package/skill/immutable-js/references/deep-updates.md +172 -0
  9. package/skill/immutable-js/references/equality.md +95 -0
  10. package/skill/immutable-js/references/list.md +266 -0
  11. package/skill/immutable-js/references/map.md +300 -0
  12. package/skill/immutable-js/references/predicates.md +93 -0
  13. package/skill/immutable-js/references/range-repeat.md +55 -0
  14. package/skill/immutable-js/references/record.md +196 -0
  15. package/skill/immutable-js/references/seq.md +248 -0
  16. package/skill/immutable-js/references/set.md +270 -0
  17. package/skill/immutable-js/references/shallow-functional.md +99 -0
  18. package/skill/immutable-js/references/stack.md +210 -0
  19. package/skill/margaui/SKILL.md +101 -0
  20. package/skill/margaui/components/accordion.md +127 -0
  21. package/skill/margaui/components/alert.md +174 -0
  22. package/skill/margaui/components/avatar.md +220 -0
  23. package/skill/margaui/components/badge.md +193 -0
  24. package/skill/margaui/components/breadcrumbs.md +103 -0
  25. package/skill/margaui/components/button.md +322 -0
  26. package/skill/margaui/components/calendar.md +67 -0
  27. package/skill/margaui/components/card.md +373 -0
  28. package/skill/margaui/components/carousel.md +387 -0
  29. package/skill/margaui/components/chat.md +171 -0
  30. package/skill/margaui/components/checkbox.md +101 -0
  31. package/skill/margaui/components/collapse.md +172 -0
  32. package/skill/margaui/components/countdown.md +165 -0
  33. package/skill/margaui/components/diff.md +53 -0
  34. package/skill/margaui/components/divider.md +107 -0
  35. package/skill/margaui/components/dock.md +173 -0
  36. package/skill/margaui/components/drawer.md +184 -0
  37. package/skill/margaui/components/dropdown.md +388 -0
  38. package/skill/margaui/components/fab.md +346 -0
  39. package/skill/margaui/components/fieldset.md +88 -0
  40. package/skill/margaui/components/file-input.md +84 -0
  41. package/skill/margaui/components/filter.md +52 -0
  42. package/skill/margaui/components/footer.md +583 -0
  43. package/skill/margaui/components/hero.md +135 -0
  44. package/skill/margaui/components/hover-3d.md +129 -0
  45. package/skill/margaui/components/hover-gallery.md +49 -0
  46. package/skill/margaui/components/indicator.md +265 -0
  47. package/skill/margaui/components/input.md +389 -0
  48. package/skill/margaui/components/join.md +100 -0
  49. package/skill/margaui/components/kbd.md +127 -0
  50. package/skill/margaui/components/label.md +102 -0
  51. package/skill/margaui/components/link.md +96 -0
  52. package/skill/margaui/components/list.md +182 -0
  53. package/skill/margaui/components/loading.md +105 -0
  54. package/skill/margaui/components/mask.md +168 -0
  55. package/skill/margaui/components/menu.md +856 -0
  56. package/skill/margaui/components/mockup-browser.md +39 -0
  57. package/skill/margaui/components/mockup-code.md +81 -0
  58. package/skill/margaui/components/mockup-phone.md +39 -0
  59. package/skill/margaui/components/mockup-window.md +33 -0
  60. package/skill/margaui/components/modal.md +178 -0
  61. package/skill/margaui/components/navbar.md +282 -0
  62. package/skill/margaui/components/pagination.md +122 -0
  63. package/skill/margaui/components/progress.md +135 -0
  64. package/skill/margaui/components/radial-progress.md +67 -0
  65. package/skill/margaui/components/radio.md +133 -0
  66. package/skill/margaui/components/range.md +134 -0
  67. package/skill/margaui/components/rating.md +170 -0
  68. package/skill/margaui/components/select.md +225 -0
  69. package/skill/margaui/components/skeleton.md +64 -0
  70. package/skill/margaui/components/stack.md +142 -0
  71. package/skill/margaui/components/stat.md +254 -0
  72. package/skill/margaui/components/status.md +73 -0
  73. package/skill/margaui/components/steps.md +138 -0
  74. package/skill/margaui/components/swap.md +152 -0
  75. package/skill/margaui/components/tab.md +248 -0
  76. package/skill/margaui/components/table.md +1018 -0
  77. package/skill/margaui/components/text-rotate.md +91 -0
  78. package/skill/margaui/components/textarea.md +85 -0
  79. package/skill/margaui/components/theme-controller.md +266 -0
  80. package/skill/margaui/components/timeline.md +1356 -0
  81. package/skill/margaui/components/toast.md +165 -0
  82. package/skill/margaui/components/toggle.md +135 -0
  83. package/skill/margaui/components/tooltip.md +181 -0
  84. package/skill/margaui/components/validator.md +163 -0
  85. package/skill/{advanced.md → tutuca/advanced.md} +5 -0
  86. package/skill/{cli.md → tutuca/cli.md} +17 -0
  87. package/skill/{core.md → tutuca/core.md} +5 -0
  88. /package/skill/{SKILL.md → tutuca/SKILL.md} +0 -0
@@ -0,0 +1,387 @@
1
+ # carousel
2
+
3
+ _horizontal/vertical scroll-snap slideshow_
4
+
5
+ ## What it does
6
+
7
+ CSS scroll-snap based slideshow. No JS required; navigation via anchor links to `id`-tagged items.
8
+
9
+ ## When to use
10
+
11
+ - Image galleries or feature walkthroughs where the user controls pacing.
12
+ - For purely hover-driven image switching, use **hover-gallery**.
13
+
14
+ ## Core classes
15
+
16
+ `carousel`; modifiers `carousel-start|center|end`, `carousel-vertical`; items use `carousel-item`.
17
+
18
+ ## Examples
19
+
20
+ ### Carousel with full width items
21
+
22
+ Source: `playground/components/carousel/carousel-with-full-width-items.html`
23
+
24
+ ```html
25
+ <div class="carousel rounded-box w-64">
26
+ <div class="carousel-item w-full">
27
+ <img
28
+ src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp"
29
+ class="w-full"
30
+ alt="Tailwind CSS Carousel component" />
31
+ </div>
32
+ <div class="carousel-item w-full">
33
+ <img
34
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
35
+ class="w-full"
36
+ alt="Tailwind CSS Carousel component" />
37
+ </div>
38
+ <div class="carousel-item w-full">
39
+ <img
40
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
41
+ class="w-full"
42
+ alt="Tailwind CSS Carousel component" />
43
+ </div>
44
+ <div class="carousel-item w-full">
45
+ <img
46
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
47
+ class="w-full"
48
+ alt="Tailwind CSS Carousel component" />
49
+ </div>
50
+ <div class="carousel-item w-full">
51
+ <img
52
+ src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp"
53
+ class="w-full"
54
+ alt="Tailwind CSS Carousel component" />
55
+ </div>
56
+ <div class="carousel-item w-full">
57
+ <img
58
+ src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp"
59
+ class="w-full"
60
+ alt="Tailwind CSS Carousel component" />
61
+ </div>
62
+ <div class="carousel-item w-full">
63
+ <img
64
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
65
+ class="w-full"
66
+ alt="Tailwind CSS Carousel component" />
67
+ </div>
68
+ </div>
69
+ ```
70
+
71
+ ### Carousel with half width items
72
+
73
+ Source: `playground/components/carousel/carousel-with-half-width-items.html`
74
+
75
+ ```html
76
+ <div class="carousel rounded-box w-96">
77
+ <div class="carousel-item w-1/2">
78
+ <img
79
+ src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp"
80
+ class="w-full" />
81
+ </div>
82
+ <div class="carousel-item w-1/2">
83
+ <img
84
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
85
+ class="w-full" />
86
+ </div>
87
+ <div class="carousel-item w-1/2">
88
+ <img
89
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
90
+ class="w-full" />
91
+ </div>
92
+ <div class="carousel-item w-1/2">
93
+ <img
94
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
95
+ class="w-full" />
96
+ </div>
97
+ <div class="carousel-item w-1/2">
98
+ <img
99
+ src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp"
100
+ class="w-full" />
101
+ </div>
102
+ <div class="carousel-item w-1/2">
103
+ <img
104
+ src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp"
105
+ class="w-full" />
106
+ </div>
107
+ <div class="carousel-item w-1/2">
108
+ <img
109
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
110
+ class="w-full" />
111
+ </div>
112
+ </div>
113
+ ```
114
+
115
+ ### Carousel with indicator buttons
116
+
117
+ Source: `playground/components/carousel/carousel-with-indicator-buttons.html`
118
+
119
+ ```html
120
+ <div class="carousel w-full">
121
+ <div id="item1" class="carousel-item w-full">
122
+ <img
123
+ src="https://img.daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.webp"
124
+ class="w-full" />
125
+ </div>
126
+ <div id="item2" class="carousel-item w-full">
127
+ <img
128
+ src="https://img.daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.webp"
129
+ class="w-full" />
130
+ </div>
131
+ <div id="item3" class="carousel-item w-full">
132
+ <img
133
+ src="https://img.daisyui.com/images/stock/photo-1414694762283-acccc27bca85.webp"
134
+ class="w-full" />
135
+ </div>
136
+ <div id="item4" class="carousel-item w-full">
137
+ <img
138
+ src="https://img.daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.webp"
139
+ class="w-full" />
140
+ </div>
141
+ </div>
142
+ <div class="flex w-full justify-center gap-2 py-2">
143
+ <a href="#item1" class="btn btn-xs">1</a>
144
+ <a href="#item2" class="btn btn-xs">2</a>
145
+ <a href="#item3" class="btn btn-xs">3</a>
146
+ <a href="#item4" class="btn btn-xs">4</a>
147
+ </div>
148
+ ```
149
+
150
+ ### Carousel with nextprev buttons
151
+
152
+ Source: `playground/components/carousel/carousel-with-nextprev-buttons.html`
153
+
154
+ ```html
155
+ <div class="carousel w-full">
156
+ <div id="slide1" class="carousel-item relative w-full">
157
+ <img
158
+ src="https://img.daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.webp"
159
+ class="w-full" />
160
+ <div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
161
+ <a href="#slide4" class="btn btn-circle">❮</a>
162
+ <a href="#slide2" class="btn btn-circle">❯</a>
163
+ </div>
164
+ </div>
165
+ <div id="slide2" class="carousel-item relative w-full">
166
+ <img
167
+ src="https://img.daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.webp"
168
+ class="w-full" />
169
+ <div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
170
+ <a href="#slide1" class="btn btn-circle">❮</a>
171
+ <a href="#slide3" class="btn btn-circle">❯</a>
172
+ </div>
173
+ </div>
174
+ <div id="slide3" class="carousel-item relative w-full">
175
+ <img
176
+ src="https://img.daisyui.com/images/stock/photo-1414694762283-acccc27bca85.webp"
177
+ class="w-full" />
178
+ <div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
179
+ <a href="#slide2" class="btn btn-circle">❮</a>
180
+ <a href="#slide4" class="btn btn-circle">❯</a>
181
+ </div>
182
+ </div>
183
+ <div id="slide4" class="carousel-item relative w-full">
184
+ <img
185
+ src="https://img.daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.webp"
186
+ class="w-full" />
187
+ <div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
188
+ <a href="#slide3" class="btn btn-circle">❮</a>
189
+ <a href="#slide1" class="btn btn-circle">❯</a>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ ```
194
+
195
+ ### Full bleed carousel
196
+
197
+ Source: `playground/components/carousel/full-bleed-carousel.html`
198
+
199
+ ```html
200
+ <div class="carousel carousel-center bg-neutral rounded-box max-w-md space-x-4 p-4">
201
+ <div class="carousel-item">
202
+ <img
203
+ src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp"
204
+ class="rounded-box" />
205
+ </div>
206
+ <div class="carousel-item">
207
+ <img
208
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
209
+ class="rounded-box" />
210
+ </div>
211
+ <div class="carousel-item">
212
+ <img
213
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
214
+ class="rounded-box" />
215
+ </div>
216
+ <div class="carousel-item">
217
+ <img
218
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
219
+ class="rounded-box" />
220
+ </div>
221
+ <div class="carousel-item">
222
+ <img
223
+ src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp"
224
+ class="rounded-box" />
225
+ </div>
226
+ <div class="carousel-item">
227
+ <img
228
+ src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp"
229
+ class="rounded-box" />
230
+ </div>
231
+ <div class="carousel-item">
232
+ <img
233
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
234
+ class="rounded-box" />
235
+ </div>
236
+ </div>
237
+ ```
238
+
239
+ ### Snap to center
240
+
241
+ Source: `playground/components/carousel/snap-to-center.html`
242
+
243
+ ```html
244
+ <div class="carousel carousel-center rounded-box">
245
+ <div class="carousel-item">
246
+ <img src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp" alt="Pizza" />
247
+ </div>
248
+ <div class="carousel-item">
249
+ <img
250
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
251
+ alt="Pizza" />
252
+ </div>
253
+ <div class="carousel-item">
254
+ <img
255
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
256
+ alt="Pizza" />
257
+ </div>
258
+ <div class="carousel-item">
259
+ <img
260
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
261
+ alt="Pizza" />
262
+ </div>
263
+ <div class="carousel-item">
264
+ <img src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp" alt="Pizza" />
265
+ </div>
266
+ <div class="carousel-item">
267
+ <img src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp" alt="Pizza" />
268
+ </div>
269
+ <div class="carousel-item">
270
+ <img
271
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
272
+ alt="Pizza" />
273
+ </div>
274
+ </div>
275
+ ```
276
+
277
+ ### Snap to end
278
+
279
+ Source: `playground/components/carousel/snap-to-end.html`
280
+
281
+ ```html
282
+ <div class="carousel carousel-end rounded-box">
283
+ <div class="carousel-item">
284
+ <img src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp" alt="Drink" />
285
+ </div>
286
+ <div class="carousel-item">
287
+ <img
288
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
289
+ alt="Drink" />
290
+ </div>
291
+ <div class="carousel-item">
292
+ <img
293
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
294
+ alt="Drink" />
295
+ </div>
296
+ <div class="carousel-item">
297
+ <img
298
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
299
+ alt="Drink" />
300
+ </div>
301
+ <div class="carousel-item">
302
+ <img src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp" alt="Drink" />
303
+ </div>
304
+ <div class="carousel-item">
305
+ <img src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp" alt="Drink" />
306
+ </div>
307
+ <div class="carousel-item">
308
+ <img
309
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
310
+ alt="Drink" />
311
+ </div>
312
+ </div>
313
+ ```
314
+
315
+ ### Snap to start default
316
+
317
+ Source: `playground/components/carousel/snap-to-start-default.html`
318
+
319
+ ```html
320
+ <div class="carousel rounded-box">
321
+ <div class="carousel-item">
322
+ <img
323
+ src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp"
324
+ alt="Burger" />
325
+ </div>
326
+ <div class="carousel-item">
327
+ <img
328
+ src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp"
329
+ alt="Burger" />
330
+ </div>
331
+ <div class="carousel-item">
332
+ <img
333
+ src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp"
334
+ alt="Burger" />
335
+ </div>
336
+ <div class="carousel-item">
337
+ <img
338
+ src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp"
339
+ alt="Burger" />
340
+ </div>
341
+ <div class="carousel-item">
342
+ <img
343
+ src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp"
344
+ alt="Burger" />
345
+ </div>
346
+ <div class="carousel-item">
347
+ <img
348
+ src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp"
349
+ alt="Burger" />
350
+ </div>
351
+ <div class="carousel-item">
352
+ <img
353
+ src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp"
354
+ alt="Burger" />
355
+ </div>
356
+ </div>
357
+ ```
358
+
359
+ ### Vertical carousel
360
+
361
+ Source: `playground/components/carousel/vertical-carousel.html`
362
+
363
+ ```html
364
+ <div class="carousel carousel-vertical rounded-box h-96">
365
+ <div class="carousel-item h-full">
366
+ <img src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp" />
367
+ </div>
368
+ <div class="carousel-item h-full">
369
+ <img src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp" />
370
+ </div>
371
+ <div class="carousel-item h-full">
372
+ <img src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp" />
373
+ </div>
374
+ <div class="carousel-item h-full">
375
+ <img src="https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp" />
376
+ </div>
377
+ <div class="carousel-item h-full">
378
+ <img src="https://img.daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.webp" />
379
+ </div>
380
+ <div class="carousel-item h-full">
381
+ <img src="https://img.daisyui.com/images/stock/photo-1559181567-c3190ca9959b.webp" />
382
+ </div>
383
+ <div class="carousel-item h-full">
384
+ <img src="https://img.daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.webp" />
385
+ </div>
386
+ </div>
387
+ ```
@@ -0,0 +1,171 @@
1
+ # chat
2
+
3
+ _chat bubble (start/end alignment)_
4
+
5
+ ## What it does
6
+
7
+ Speech-bubble layout for messaging UIs, with optional avatar, header, footer.
8
+
9
+ ## When to use
10
+
11
+ - Conversation transcripts (chat apps, AI chat UIs).
12
+
13
+ ## Core classes
14
+
15
+ `chat chat-start|chat-end`; inner `chat-image`, `chat-header`, `chat-bubble`, `chat-footer`; bubble color via `chat-bubble-primary|secondary|accent|info|success|warning|error`.
16
+
17
+ ## Examples
18
+
19
+ ### Chat bubble with colors
20
+
21
+ Source: `playground/components/chat/chat-bubble-with-colors.html`
22
+
23
+ ```html
24
+ <div class="chat chat-start">
25
+ <div class="chat-bubble chat-bubble-primary">What kind of nonsense is this</div>
26
+ </div>
27
+ <div class="chat chat-start">
28
+ <div class="chat-bubble chat-bubble-secondary">
29
+ Put me on the Council and not make me a Master!??
30
+ </div>
31
+ </div>
32
+ <div class="chat chat-start">
33
+ <div class="chat-bubble chat-bubble-accent">
34
+ That's never been done in the history of the Jedi.
35
+ </div>
36
+ </div>
37
+ <div class="chat chat-start">
38
+ <div class="chat-bubble chat-bubble-neutral">It's insulting!</div>
39
+ </div>
40
+ <div class="chat chat-end">
41
+ <div class="chat-bubble chat-bubble-info">Calm down, Anakin.</div>
42
+ </div>
43
+ <div class="chat chat-end">
44
+ <div class="chat-bubble chat-bubble-success">You have been given a great honor.</div>
45
+ </div>
46
+ <div class="chat chat-end">
47
+ <div class="chat-bubble chat-bubble-warning">To be on the Council at your age.</div>
48
+ </div>
49
+ <div class="chat chat-end">
50
+ <div class="chat-bubble chat-bubble-error">It's never happened before.</div>
51
+ </div>
52
+ ```
53
+
54
+ ### Chat start and chat end
55
+
56
+ Source: `playground/components/chat/chat-start-and-chat-end.html`
57
+
58
+ ```html
59
+ <div class="chat chat-start">
60
+ <div class="chat-bubble">
61
+ It's over Anakin,
62
+ <br />
63
+ I have the high ground.
64
+ </div>
65
+ </div>
66
+ <div class="chat chat-end">
67
+ <div class="chat-bubble">You underestimate my power!</div>
68
+ </div>
69
+ ```
70
+
71
+ ### Chat with header and footer
72
+
73
+ Source: `playground/components/chat/chat-with-header-and-footer.html`
74
+
75
+ ```html
76
+ <div class="chat chat-start">
77
+ <div class="chat-header">
78
+ Obi-Wan Kenobi
79
+ <time class="text-xs opacity-50">2 hours ago</time>
80
+ </div>
81
+ <div class="chat-bubble">You were the Chosen One!</div>
82
+ <div class="chat-footer opacity-50">Seen</div>
83
+ </div>
84
+ <div class="chat chat-start">
85
+ <div class="chat-header">
86
+ Obi-Wan Kenobi
87
+ <time class="text-xs opacity-50">2 hour ago</time>
88
+ </div>
89
+ <div class="chat-bubble">I loved you.</div>
90
+ <div class="chat-footer opacity-50">Delivered</div>
91
+ </div>
92
+ ```
93
+
94
+ ### Chat with image header and footer
95
+
96
+ Source: `playground/components/chat/chat-with-image-header-and-footer.html`
97
+
98
+ ```html
99
+ <div class="chat chat-start">
100
+ <div class="chat-image avatar">
101
+ <div class="w-10 rounded-full">
102
+ <img
103
+ alt="Tailwind CSS chat bubble component"
104
+ src="https://img.daisyui.com/images/profile/demo/kenobee@192.webp"
105
+ />
106
+ </div>
107
+ </div>
108
+ <div class="chat-header">
109
+ Obi-Wan Kenobi
110
+ <time class="text-xs opacity-50">12:45</time>
111
+ </div>
112
+ <div class="chat-bubble">You were the Chosen One!</div>
113
+ <div class="chat-footer opacity-50">Delivered</div>
114
+ </div>
115
+ <div class="chat chat-end">
116
+ <div class="chat-image avatar">
117
+ <div class="w-10 rounded-full">
118
+ <img
119
+ alt="Tailwind CSS chat bubble component"
120
+ src="https://img.daisyui.com/images/profile/demo/anakeen@192.webp"
121
+ />
122
+ </div>
123
+ </div>
124
+ <div class="chat-header">
125
+ Anakin
126
+ <time class="text-xs opacity-50">12:46</time>
127
+ </div>
128
+ <div class="chat-bubble">I hate you!</div>
129
+ <div class="chat-footer opacity-50">Seen at 12:46</div>
130
+ </div>
131
+ ```
132
+
133
+ ### Chat with image
134
+
135
+ Source: `playground/components/chat/chat-with-image.html`
136
+
137
+ ```html
138
+ <div class="chat chat-start">
139
+ <div class="chat-image avatar">
140
+ <div class="w-10 rounded-full">
141
+ <img
142
+ alt="Tailwind CSS chat bubble component"
143
+ src="https://img.daisyui.com/images/profile/demo/kenobee@192.webp"
144
+ />
145
+ </div>
146
+ </div>
147
+ <div class="chat-bubble">It was said that you would, destroy the Sith, not join them.</div>
148
+ </div>
149
+ <div class="chat chat-start">
150
+ <div class="chat-image avatar">
151
+ <div class="w-10 rounded-full">
152
+ <img
153
+ alt="Tailwind CSS chat bubble component"
154
+ src="https://img.daisyui.com/images/profile/demo/kenobee@192.webp"
155
+ />
156
+ </div>
157
+ </div>
158
+ <div class="chat-bubble">It was you who would bring balance to the Force</div>
159
+ </div>
160
+ <div class="chat chat-start">
161
+ <div class="chat-image avatar">
162
+ <div class="w-10 rounded-full">
163
+ <img
164
+ alt="Tailwind CSS chat bubble component"
165
+ src="https://img.daisyui.com/images/profile/demo/kenobee@192.webp"
166
+ />
167
+ </div>
168
+ </div>
169
+ <div class="chat-bubble">Not leave it in Darkness</div>
170
+ </div>
171
+ ```
@@ -0,0 +1,101 @@
1
+ # checkbox
2
+
3
+ _styled `<input type="checkbox">`_
4
+
5
+ ## What it does
6
+
7
+ Themed replacement for the native checkbox.
8
+
9
+ ## When to use
10
+
11
+ - Multi-select / boolean form fields.
12
+ - For a sliding on/off switch, use **toggle**.
13
+
14
+ ## Core classes
15
+
16
+ `checkbox`; color `checkbox-primary|secondary|accent|info|success|warning|error|neutral`; size `checkbox-xs|sm|md|lg|xl`.
17
+
18
+ ## Examples
19
+
20
+ ### Checkbox
21
+
22
+ Source: `playground/components/checkbox/checkbox.html`
23
+
24
+ ```html
25
+ <input type="checkbox" checked="checked" class="checkbox" />
26
+ ```
27
+
28
+ ### Checkbox with custom colors
29
+
30
+ Source: `playground/components/checkbox/checkbox-with-custom-colors.html`
31
+
32
+ ```html
33
+ <input
34
+ type="checkbox"
35
+ checked="checked"
36
+ class="checkbox border-indigo-600 bg-indigo-500 checked:border-orange-500 checked:bg-orange-400 checked:text-orange-800"
37
+ />
38
+ ```
39
+
40
+ ### Colors
41
+
42
+ Source: `playground/components/checkbox/colors.html`
43
+
44
+ ```html
45
+ <input type="checkbox" checked="checked" class="checkbox checkbox-primary" />
46
+ <input type="checkbox" checked="checked" class="checkbox checkbox-secondary" />
47
+ <input type="checkbox" checked="checked" class="checkbox checkbox-accent" />
48
+ <input type="checkbox" checked="checked" class="checkbox checkbox-neutral" />
49
+
50
+ <input type="checkbox" checked="checked" class="checkbox checkbox-info" />
51
+ <input type="checkbox" checked="checked" class="checkbox checkbox-success" />
52
+ <input type="checkbox" checked="checked" class="checkbox checkbox-warning" />
53
+ <input type="checkbox" checked="checked" class="checkbox checkbox-error" />
54
+ ```
55
+
56
+ ### Disabled
57
+
58
+ Source: `playground/components/checkbox/disabled.html`
59
+
60
+ ```html
61
+ <input type="checkbox" class="checkbox" disabled />
62
+ <input type="checkbox" class="checkbox" disabled checked="checked" />
63
+ ```
64
+
65
+ ### Indeterminate
66
+
67
+ Source: `playground/components/checkbox/indeterminate.html`
68
+
69
+ ```html
70
+ <!-- You can make a checkbox indeterminate using JS -->
71
+ <script>
72
+ document.getElementById("my-checkbox").indeterminate = true
73
+ </script>
74
+ <input type="checkbox" class="checkbox" id="my-checkbox" />
75
+ ```
76
+
77
+ ### Sizes
78
+
79
+ Source: `playground/components/checkbox/sizes.html`
80
+
81
+ ```html
82
+ <input type="checkbox" checked="checked" class="checkbox checkbox-xs" />
83
+ <input type="checkbox" checked="checked" class="checkbox checkbox-sm" />
84
+ <input type="checkbox" checked="checked" class="checkbox checkbox-md" />
85
+ <input type="checkbox" checked="checked" class="checkbox checkbox-lg" />
86
+ <input type="checkbox" checked="checked" class="checkbox checkbox-xl" />
87
+ ```
88
+
89
+ ### With fieldset and label
90
+
91
+ Source: `playground/components/checkbox/with-fieldset-and-label.html`
92
+
93
+ ```html
94
+ <fieldset class="fieldset bg-base-100 border-base-300 rounded-box w-64 border p-4">
95
+ <legend class="fieldset-legend">Login options</legend>
96
+ <label class="label">
97
+ <input type="checkbox" checked="checked" class="checkbox" />
98
+ Remember me
99
+ </label>
100
+ </fieldset>
101
+ ```