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,373 @@
1
+ # card
2
+
3
+ _container with figure, body, title, actions_
4
+
5
+ ## What it does
6
+
7
+ Self-contained content card with optional figure (image), body, title, and actions row.
8
+
9
+ ## When to use
10
+
11
+ - Product tiles, summary panels, pricing tiles, blog post previews.
12
+ - For a thin labelled chip, use **badge** instead.
13
+
14
+ ## Examples
15
+
16
+ ### Card
17
+
18
+ Source: `playground/components/card/card.html`
19
+
20
+ ```html
21
+ <div class="card bg-base-100 w-96 shadow-sm">
22
+ <figure>
23
+ <img
24
+ src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
25
+ alt="Shoes" />
26
+ </figure>
27
+ <div class="card-body">
28
+ <h2 class="card-title">Card Title</h2>
29
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
30
+ <div class="card-actions justify-end">
31
+ <button class="btn btn-primary">Buy Now</button>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ ```
36
+
37
+ ### Card sizes
38
+
39
+ Source: `playground/components/card/card-sizes.html`
40
+
41
+ ```html
42
+ <div class="card w-96 bg-base-100 card-xs shadow-sm">
43
+ <div class="card-body">
44
+ <h2 class="card-title">Xsmall Card</h2>
45
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
46
+ <div class="justify-end card-actions">
47
+ <button class="btn btn-primary">Buy Now</button>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="card w-96 bg-base-100 card-sm shadow-sm">
53
+ <div class="card-body">
54
+ <h2 class="card-title">Small Card</h2>
55
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
56
+ <div class="justify-end card-actions">
57
+ <button class="btn btn-primary">Buy Now</button>
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <div class="card w-96 bg-base-100 card-md shadow-sm">
63
+ <div class="card-body">
64
+ <h2 class="card-title">Medium Card</h2>
65
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
66
+ <div class="justify-end card-actions">
67
+ <button class="btn btn-primary">Buy Now</button>
68
+ </div>
69
+ </div>
70
+ </div>
71
+
72
+ <div class="card w-96 bg-base-100 card-lg shadow-sm">
73
+ <div class="card-body">
74
+ <h2 class="card-title">Large Card</h2>
75
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
76
+ <div class="justify-end card-actions">
77
+ <button class="btn btn-primary">Buy Now</button>
78
+ </div>
79
+ </div>
80
+ </div>
81
+
82
+ <div class="card w-96 bg-base-100 card-xl shadow-sm">
83
+ <div class="card-body">
84
+ <h2 class="card-title">Xlarge Card</h2>
85
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
86
+ <div class="justify-end card-actions">
87
+ <button class="btn btn-primary">Buy Now</button>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ ```
92
+
93
+ ### Card with a card border
94
+
95
+ Source: `playground/components/card/card-with-a-card-border.html`
96
+
97
+ ```html
98
+ <div class="card card-border bg-base-100 w-96">
99
+ <div class="card-body">
100
+ <h2 class="card-title">Card Title</h2>
101
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
102
+ <div class="card-actions justify-end">
103
+ <button class="btn btn-primary">Buy Now</button>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ ```
108
+
109
+ ### Card with a dash border
110
+
111
+ Source: `playground/components/card/card-with-a-dash-border.html`
112
+
113
+ ```html
114
+ <div class="card card-dash bg-base-100 w-96">
115
+ <div class="card-body">
116
+ <h2 class="card-title">Card Title</h2>
117
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
118
+ <div class="card-actions justify-end">
119
+ <button class="btn btn-primary">Buy Now</button>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ ```
124
+
125
+ ### Card with action on top
126
+
127
+ Source: `playground/components/card/card-with-action-on-top.html`
128
+
129
+ ```html
130
+ <div class="card bg-base-100 w-96 shadow-sm">
131
+ <div class="card-body">
132
+ <div class="card-actions justify-end">
133
+ <button class="btn btn-square btn-sm">
134
+ <svg
135
+ xmlns="http://www.w3.org/2000/svg"
136
+ class="h-6 w-6"
137
+ fill="none"
138
+ viewBox="0 0 24 24"
139
+ stroke="currentColor">
140
+ <path
141
+ stroke-linecap="round"
142
+ stroke-linejoin="round"
143
+ stroke-width="2"
144
+ d="M6 18L18 6M6 6l12 12" />
145
+ </svg>
146
+ </button>
147
+ </div>
148
+ <p>We are using cookies for no reason.</p>
149
+ </div>
150
+ </div>
151
+ ```
152
+
153
+ ### Card with badge
154
+
155
+ Source: `playground/components/card/card-with-badge.html`
156
+
157
+ ```html
158
+ <div class="card bg-base-100 w-96 shadow-sm">
159
+ <figure>
160
+ <img
161
+ src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
162
+ alt="Shoes" />
163
+ </figure>
164
+ <div class="card-body">
165
+ <h2 class="card-title">
166
+ Card Title
167
+ <div class="badge badge-secondary">NEW</div>
168
+ </h2>
169
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
170
+ <div class="card-actions justify-end">
171
+ <div class="badge badge-outline">Fashion</div>
172
+ <div class="badge badge-outline">Products</div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ ```
177
+
178
+ ### Card with bottom image
179
+
180
+ Source: `playground/components/card/card-with-bottom-image.html`
181
+
182
+ ```html
183
+ <div class="card bg-base-100 w-96 shadow-sm">
184
+ <div class="card-body">
185
+ <h2 class="card-title">Card Title</h2>
186
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
187
+ </div>
188
+ <figure>
189
+ <img
190
+ src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
191
+ alt="Shoes" />
192
+ </figure>
193
+ </div>
194
+ ```
195
+
196
+ ### Card with centered content and paddings
197
+
198
+ Source: `playground/components/card/card-with-centered-content-and-paddings.html`
199
+
200
+ ```html
201
+ <div class="card bg-base-100 w-96 shadow-sm">
202
+ <figure class="px-10 pt-10">
203
+ <img
204
+ src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
205
+ alt="Shoes"
206
+ class="rounded-xl" />
207
+ </figure>
208
+ <div class="card-body items-center text-center">
209
+ <h2 class="card-title">Card Title</h2>
210
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
211
+ <div class="card-actions">
212
+ <button class="btn btn-primary">Buy Now</button>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ ```
217
+
218
+ ### Card with custom color
219
+
220
+ Source: `playground/components/card/card-with-custom-color.html`
221
+
222
+ ```html
223
+ <div class="card bg-primary text-primary-content w-96">
224
+ <div class="card-body">
225
+ <h2 class="card-title">Card title!</h2>
226
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
227
+ <div class="card-actions justify-end">
228
+ <button class="btn">Buy Now</button>
229
+ </div>
230
+ </div>
231
+ </div>
232
+ ```
233
+
234
+ ### Card with image on side
235
+
236
+ Source: `playground/components/card/card-with-image-on-side.html`
237
+
238
+ ```html
239
+ <div class="card card-side bg-base-100 shadow-sm">
240
+ <figure>
241
+ <img
242
+ src="https://img.daisyui.com/images/stock/photo-1635805737707-575885ab0820.webp"
243
+ alt="Movie" />
244
+ </figure>
245
+ <div class="card-body">
246
+ <h2 class="card-title">New movie is released!</h2>
247
+ <p>Click the button to watch on Jetflix app.</p>
248
+ <div class="card-actions justify-end">
249
+ <button class="btn btn-primary">Watch</button>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ ```
254
+
255
+ ### Card with image overlay
256
+
257
+ Source: `playground/components/card/card-with-image-overlay.html`
258
+
259
+ ```html
260
+ <div class="card bg-base-100 image-full w-96 shadow-sm">
261
+ <figure>
262
+ <img
263
+ src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
264
+ alt="Shoes" />
265
+ </figure>
266
+ <div class="card-body">
267
+ <h2 class="card-title">Card Title</h2>
268
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
269
+ <div class="card-actions justify-end">
270
+ <button class="btn btn-primary">Buy Now</button>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ ```
275
+
276
+ ### Card with no image
277
+
278
+ Source: `playground/components/card/card-with-no-image.html`
279
+
280
+ ```html
281
+ <div class="card bg-base-100 w-96 shadow-sm">
282
+ <div class="card-body">
283
+ <h2 class="card-title">Card title!</h2>
284
+ <p>A card component has a figure, a body part, and inside body there are title and actions parts</p>
285
+ <div class="card-actions justify-end">
286
+ <button class="btn btn-primary">Buy Now</button>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ ```
291
+
292
+ ### Centered card with neutral color
293
+
294
+ Source: `playground/components/card/centered-card-with-neutral-color.html`
295
+
296
+ ```html
297
+ <div class="card bg-neutral text-neutral-content w-96">
298
+ <div class="card-body items-center text-center">
299
+ <h2 class="card-title">Cookies!</h2>
300
+ <p>We are using cookies for no reason.</p>
301
+ <div class="card-actions justify-end">
302
+ <button class="btn btn-primary">Accept</button>
303
+ <button class="btn btn-ghost">Deny</button>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ ```
308
+
309
+ ### Pricing card
310
+
311
+ Source: `playground/components/card/pricing-card.html`
312
+
313
+ ```html
314
+ <div class="card w-96 bg-base-100 shadow-sm">
315
+ <div class="card-body">
316
+ <span class="badge badge-xs badge-warning">Most Popular</span>
317
+ <div class="flex justify-between">
318
+ <h2 class="text-3xl font-bold">Premium</h2>
319
+ <span class="text-xl">$29/mo</span>
320
+ </div>
321
+ <ul class="mt-6 flex flex-col gap-2 text-xs">
322
+ <li>
323
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
324
+ <span>High-resolution image generation</span>
325
+ </li>
326
+ <li>
327
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
328
+ <span>Customizable style templates</span>
329
+ </li>
330
+ <li>
331
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
332
+ <span>Batch processing capabilities</span>
333
+ </li>
334
+ <li>
335
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
336
+ <span>AI-driven image enhancements</span>
337
+ </li>
338
+ <li class="opacity-50">
339
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-base-content/50" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
340
+ <span class="line-through">Seamless cloud integration</span>
341
+ </li>
342
+ <li class="opacity-50">
343
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-base-content/50" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
344
+ <span class="line-through">Real-time collaboration tools</span>
345
+ </li>
346
+ </ul>
347
+ <div class="mt-6">
348
+ <button class="btn btn-primary btn-block">Subscribe</button>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ ```
353
+
354
+ ### Responsive card vertical on small screen horizontal on large screen
355
+
356
+ Source: `playground/components/card/responsive-card-vertical-on-small-screen-horizontal-on-large-screen.html`
357
+
358
+ ```html
359
+ <div class="card lg:card-side bg-base-100 shadow-sm">
360
+ <figure>
361
+ <img
362
+ src="https://img.daisyui.com/images/stock/photo-1494232410401-ad00d5433cfa.webp"
363
+ alt="Album" />
364
+ </figure>
365
+ <div class="card-body">
366
+ <h2 class="card-title">New album is released!</h2>
367
+ <p>Click the button to listen on Spotiwhy app.</p>
368
+ <div class="card-actions justify-end">
369
+ <button class="btn btn-primary">Listen</button>
370
+ </div>
371
+ </div>
372
+ </div>
373
+ ```