tutuca 0.11.0 → 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 (116) hide show
  1. package/dist/tutuca-cli.js +264 -361
  2. package/dist/tutuca-components.js +175 -175
  3. package/dist/tutuca-dev.ext.js +250 -323
  4. package/dist/tutuca-dev.js +250 -323
  5. package/dist/tutuca-dev.min.js +4 -4
  6. package/dist/tutuca-extra.ext.js +55 -46
  7. package/dist/tutuca-extra.js +55 -46
  8. package/dist/tutuca-extra.min.js +3 -3
  9. package/dist/tutuca-storybook.js +29 -29
  10. package/dist/tutuca.ext.js +55 -46
  11. package/dist/tutuca.js +55 -46
  12. package/dist/tutuca.min.js +3 -3
  13. package/package.json +4 -3
  14. package/skill/margaui/SKILL.md +0 -105
  15. package/skill/margaui/components/accordion.md +0 -127
  16. package/skill/margaui/components/alert.md +0 -174
  17. package/skill/margaui/components/aura.md +0 -97
  18. package/skill/margaui/components/avatar.md +0 -220
  19. package/skill/margaui/components/badge.md +0 -193
  20. package/skill/margaui/components/breadcrumbs.md +0 -103
  21. package/skill/margaui/components/button.md +0 -322
  22. package/skill/margaui/components/calendar.md +0 -67
  23. package/skill/margaui/components/card.md +0 -373
  24. package/skill/margaui/components/carousel.md +0 -387
  25. package/skill/margaui/components/chat.md +0 -171
  26. package/skill/margaui/components/checkbox.md +0 -101
  27. package/skill/margaui/components/collapse.md +0 -172
  28. package/skill/margaui/components/countdown.md +0 -165
  29. package/skill/margaui/components/diff.md +0 -53
  30. package/skill/margaui/components/divider.md +0 -107
  31. package/skill/margaui/components/dock.md +0 -173
  32. package/skill/margaui/components/drawer.md +0 -184
  33. package/skill/margaui/components/dropdown.md +0 -388
  34. package/skill/margaui/components/fab.md +0 -346
  35. package/skill/margaui/components/fieldset.md +0 -88
  36. package/skill/margaui/components/file-input.md +0 -84
  37. package/skill/margaui/components/filter.md +0 -52
  38. package/skill/margaui/components/footer.md +0 -583
  39. package/skill/margaui/components/hero.md +0 -135
  40. package/skill/margaui/components/hover-3d.md +0 -129
  41. package/skill/margaui/components/hover-gallery.md +0 -49
  42. package/skill/margaui/components/indicator.md +0 -265
  43. package/skill/margaui/components/input.md +0 -389
  44. package/skill/margaui/components/join.md +0 -100
  45. package/skill/margaui/components/kbd.md +0 -127
  46. package/skill/margaui/components/label.md +0 -102
  47. package/skill/margaui/components/link.md +0 -96
  48. package/skill/margaui/components/list.md +0 -182
  49. package/skill/margaui/components/loading.md +0 -105
  50. package/skill/margaui/components/mask.md +0 -168
  51. package/skill/margaui/components/megamenu.md +0 -131
  52. package/skill/margaui/components/menu.md +0 -887
  53. package/skill/margaui/components/mockup-browser.md +0 -39
  54. package/skill/margaui/components/mockup-code.md +0 -81
  55. package/skill/margaui/components/mockup-phone.md +0 -39
  56. package/skill/margaui/components/mockup-window.md +0 -33
  57. package/skill/margaui/components/modal.md +0 -196
  58. package/skill/margaui/components/navbar.md +0 -282
  59. package/skill/margaui/components/otp.md +0 -171
  60. package/skill/margaui/components/pagination.md +0 -122
  61. package/skill/margaui/components/progress.md +0 -135
  62. package/skill/margaui/components/radial-progress.md +0 -67
  63. package/skill/margaui/components/radio.md +0 -133
  64. package/skill/margaui/components/range.md +0 -134
  65. package/skill/margaui/components/rating.md +0 -170
  66. package/skill/margaui/components/select.md +0 -225
  67. package/skill/margaui/components/skeleton.md +0 -64
  68. package/skill/margaui/components/stack.md +0 -142
  69. package/skill/margaui/components/stat.md +0 -254
  70. package/skill/margaui/components/status.md +0 -73
  71. package/skill/margaui/components/steps.md +0 -138
  72. package/skill/margaui/components/swap.md +0 -152
  73. package/skill/margaui/components/tab.md +0 -248
  74. package/skill/margaui/components/table.md +0 -1018
  75. package/skill/margaui/components/text-rotate.md +0 -91
  76. package/skill/margaui/components/textarea.md +0 -85
  77. package/skill/margaui/components/theme-controller.md +0 -266
  78. package/skill/margaui/components/timeline.md +0 -1356
  79. package/skill/margaui/components/toast.md +0 -165
  80. package/skill/margaui/components/toggle.md +0 -135
  81. package/skill/margaui/components/tooltip.md +0 -181
  82. package/skill/margaui/components/validator.md +0 -163
  83. package/skill/tutuca/SKILL.md +0 -56
  84. package/skill/tutuca/advanced.md +0 -212
  85. package/skill/tutuca/cli.md +0 -239
  86. package/skill/tutuca/component-design.md +0 -168
  87. package/skill/tutuca/core.md +0 -908
  88. package/skill/tutuca/iteration.md +0 -207
  89. package/skill/tutuca/macros.md +0 -86
  90. package/skill/tutuca/margaui.md +0 -175
  91. package/skill/tutuca/messages-and-intents.md +0 -399
  92. package/skill/tutuca/patterns/README.md +0 -48
  93. package/skill/tutuca/patterns/add-a-story.md +0 -26
  94. package/skill/tutuca/patterns/bind-text-and-attributes.md +0 -30
  95. package/skill/tutuca/patterns/conditional-attribute-value.md +0 -29
  96. package/skill/tutuca/patterns/coordinate-components.md +0 -54
  97. package/skill/tutuca/patterns/edit-through-a-dynamic-target.md +0 -27
  98. package/skill/tutuca/patterns/enrich-each-item.md +0 -25
  99. package/skill/tutuca/patterns/file-input.md +0 -39
  100. package/skill/tutuca/patterns/filter-a-list.md +0 -25
  101. package/skill/tutuca/patterns/filter-and-paginate.md +0 -60
  102. package/skill/tutuca/patterns/handle-events.md +0 -38
  103. package/skill/tutuca/patterns/iterate-a-list.md +0 -18
  104. package/skill/tutuca/patterns/paginate-a-list.md +0 -29
  105. package/skill/tutuca/patterns/render-a-child-component.md +0 -21
  106. package/skill/tutuca/patterns/reuse-markup-with-macros.md +0 -36
  107. package/skill/tutuca/patterns/share-state-across-the-tree.md +0 -38
  108. package/skill/tutuca/patterns/show-or-hide-content.md +0 -23
  109. package/skill/tutuca/patterns/switch-between-views.md +0 -30
  110. package/skill/tutuca/patterns/tabbed-interface.md +0 -43
  111. package/skill/tutuca/semantics.md +0 -195
  112. package/skill/tutuca/storybook.md +0 -270
  113. package/skill/tutuca/styles.md +0 -48
  114. package/skill/tutuca/testing.md +0 -346
  115. package/skill/tutuca-source/SKILL.md +0 -33
  116. package/skill/tutuca-source/tutuca.ext.js +0 -4235
@@ -1,373 +0,0 @@
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
- ```