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,346 +0,0 @@
1
- # fab
2
-
3
- _floating action button (single or speed-dial)_
4
-
5
- ## What it does
6
-
7
- Floating action button with optional speed-dial children.
8
-
9
- ## When to use
10
-
11
- - Single primary action floating over scrollable content (compose, add).
12
-
13
- ## Core classes
14
-
15
- `fab`; modifier `fab-flower` for radial speed-dial; inner `fab-main-action`, `fab-close`.
16
-
17
- ## Examples
18
-
19
- ### A single fab floating action button
20
-
21
- Source: `playground/components/fab/a-single-fab-floating-action-button.html`
22
-
23
- ```html
24
- <div class="fab">
25
- <button class="btn btn-lg btn-circle btn-primary">F</button>
26
- </div>
27
- ```
28
-
29
- ### Fab and flower speed dial with svg icons
30
-
31
- Source: `playground/components/fab/fab-and-flower-speed-dial-with-svg-icons.html`
32
-
33
- ```html
34
- <div class="fab fab-flower">
35
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
36
- <div tabindex="0" role="button" class="btn btn-circle btn-lg">
37
- <svg
38
- aria-label="New"
39
- xmlns="http://www.w3.org/2000/svg"
40
- viewBox="0 0 16 16"
41
- fill="currentColor"
42
- class="size-6"
43
- >
44
- <path
45
- d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"
46
- />
47
- </svg>
48
- </div>
49
-
50
- <!-- Main Action button replaces the original button when FAB is open -->
51
- <button class="fab-main-action btn btn-circle btn-lg btn-primary">
52
- <svg
53
- aria-label="New post"
54
- xmlns="http://www.w3.org/2000/svg"
55
- viewBox="0 0 16 16"
56
- fill="currentColor"
57
- class="size-6"
58
- >
59
- <path
60
- fill-rule="evenodd"
61
- d="M11.013 2.513a1.75 1.75 0 0 1 2.475 2.474L6.226 12.25a2.751 2.751 0 0 1-.892.596l-2.047.848a.75.75 0 0 1-.98-.98l.848-2.047a2.75 2.75 0 0 1 .596-.892l7.262-7.261Z"
62
- clip-rule="evenodd"
63
- />
64
- </svg>
65
- </button>
66
-
67
- <!-- buttons that show up when FAB is open -->
68
- <button class="btn btn-circle btn-lg">
69
- <svg
70
- aria-label="New camera photo"
71
- xmlns="http://www.w3.org/2000/svg"
72
- viewBox="0 0 16 16"
73
- fill="currentColor"
74
- class="size-6"
75
- >
76
- <path d="M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" />
77
- <path
78
- fill-rule="evenodd"
79
- d="M2.5 5A1.5 1.5 0 0 0 1 6.5v5A1.5 1.5 0 0 0 2.5 13h11a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 13.5 5h-.879a1.5 1.5 0 0 1-1.06-.44l-1.122-1.12A1.5 1.5 0 0 0 9.38 3H6.62a1.5 1.5 0 0 0-1.06.44L4.439 4.56A1.5 1.5 0 0 1 3.38 5H2.5ZM11 8.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
80
- clip-rule="evenodd"
81
- />
82
- </svg>
83
- </button>
84
- <button class="btn btn-circle btn-lg">
85
- <svg
86
- aria-label="New poll"
87
- xmlns="http://www.w3.org/2000/svg"
88
- viewBox="0 0 16 16"
89
- fill="currentColor"
90
- class="size-6"
91
- >
92
- <path
93
- d="M3 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM6.25 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 7.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 11.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM4 12.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
94
- />
95
- </svg>
96
- </button>
97
- <button class="btn btn-circle btn-lg">
98
- <svg
99
- aria-label="New gallery photo"
100
- xmlns="http://www.w3.org/2000/svg"
101
- viewBox="0 0 16 16"
102
- fill="currentColor"
103
- class="size-6"
104
- >
105
- <path
106
- fill-rule="evenodd"
107
- d="M2 4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm10.5 5.707a.5.5 0 0 0-.146-.353l-1-1a.5.5 0 0 0-.708 0L9.354 9.646a.5.5 0 0 1-.708 0L6.354 7.354a.5.5 0 0 0-.708 0l-2 2a.5.5 0 0 0-.146.353V12a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V9.707ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"
108
- clip-rule="evenodd"
109
- />
110
- </svg>
111
- </button>
112
- <button class="btn btn-circle btn-lg">
113
- <svg
114
- aria-label="New voice"
115
- xmlns="http://www.w3.org/2000/svg"
116
- viewBox="0 0 16 16"
117
- fill="currentColor"
118
- class="size-6"
119
- >
120
- <path d="M8 1a2 2 0 0 0-2 2v4a2 2 0 1 0 4 0V3a2 2 0 0 0-2-2Z" />
121
- <path
122
- d="M4.5 7A.75.75 0 0 0 3 7a5.001 5.001 0 0 0 4.25 4.944V13.5h-1.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-1.5v-1.556A5.001 5.001 0 0 0 13 7a.75.75 0 0 0-1.5 0 3.5 3.5 0 1 1-7 0Z"
123
- />
124
- </svg>
125
- </button>
126
- </div>
127
- ```
128
-
129
- ### Fab and flower speed dial with tooltip
130
-
131
- Source: `playground/components/fab/fab-and-flower-speed-dial-with-tooltip.html`
132
-
133
- ```html
134
- <div class="fab fab-flower">
135
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
136
- <div tabindex="0" role="button" class="btn btn-lg btn-info btn-circle">F</div>
137
-
138
- <!-- Main Action button replaces the original button when FAB is open -->
139
- <button class="fab-main-action btn btn-circle btn-lg btn-success">M</button>
140
-
141
- <!-- buttons that show up when FAB is open -->
142
- <div class="tooltip tooltip-left" data-tip="Label A">
143
- <button class="btn btn-lg btn-circle">A</button>
144
- </div>
145
- <div class="tooltip tooltip-left" data-tip="Label B">
146
- <button class="btn btn-lg btn-circle">B</button>
147
- </div>
148
- <div class="tooltip" data-tip="Label C">
149
- <button class="btn btn-lg btn-circle">C</button>
150
- </div>
151
- <div class="tooltip" data-tip="Label D">
152
- <button class="btn btn-lg btn-circle">D</button>
153
- </div>
154
- </div>
155
- ```
156
-
157
- ### Fab and speed dial vertical
158
-
159
- Source: `playground/components/fab/fab-and-speed-dial-vertical.html`
160
-
161
- ```html
162
- <div class="fab">
163
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
164
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">F</div>
165
-
166
- <!-- buttons that show up when FAB is open -->
167
- <button class="btn btn-lg btn-circle">A</button>
168
- <button class="btn btn-lg btn-circle">B</button>
169
- <button class="btn btn-lg btn-circle">C</button>
170
- </div>
171
- ```
172
-
173
- ### Fab and speed dial with labels and fab close button
174
-
175
- Source: `playground/components/fab/fab-and-speed-dial-with-labels-and-fab-close-button.html`
176
-
177
- ```html
178
- <div class="fab">
179
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
180
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-info">F</div>
181
-
182
- <!-- close button should not be focusable so it can close the FAB when clicked. It's just a visual placeholder -->
183
- <div class="fab-close">
184
- Close <span class="btn btn-circle btn-lg btn-error">✕</span>
185
- </div>
186
-
187
- <!-- buttons that show up when FAB is open -->
188
- <div>Label A <button class="btn btn-lg btn-circle">A</button></div>
189
- <div>Label B <button class="btn btn-lg btn-circle">B</button></div>
190
- <div>Label C <button class="btn btn-lg btn-circle">C</button></div>
191
- </div>
192
- ```
193
-
194
- ### Fab and speed dial with labels and fab main action button
195
-
196
- Source: `playground/components/fab/fab-and-speed-dial-with-labels-and-fab-main-action-button.html`
197
-
198
- ```html
199
- <div class="fab">
200
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
201
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">F</div>
202
-
203
- <!-- Main Action button replaces the original button when FAB is open -->
204
- <div class="fab-main-action">
205
- Main Action <button class="btn btn-circle btn-secondary btn-lg">M</button>
206
- </div>
207
-
208
- <!-- buttons that show up when FAB is open -->
209
- <div>Label A <button class="btn btn-lg btn-circle">A</button></div>
210
- <div>Label B <button class="btn btn-lg btn-circle">B</button></div>
211
- <div>Label C <button class="btn btn-lg btn-circle">C</button></div>
212
- </div>
213
- ```
214
-
215
- ### Fab and speed dial with labels
216
-
217
- Source: `playground/components/fab/fab-and-speed-dial-with-labels.html`
218
-
219
- ```html
220
- <div class="fab">
221
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
222
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-success">F</div>
223
-
224
- <!-- buttons that show up when FAB is open -->
225
- <div>Label B <button class="btn btn-lg btn-circle">A</button></div>
226
- <div>Label C <button class="btn btn-lg btn-circle">B</button></div>
227
- <div>Label D <button class="btn btn-lg btn-circle">C</button></div>
228
- </div>
229
- ```
230
-
231
- ### Fab and speed dial with rectangle buttons
232
-
233
- Source: `playground/components/fab/fab-and-speed-dial-with-rectangle-buttons.html`
234
-
235
- ```html
236
- <div class="fab">
237
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
238
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-success">F</div>
239
-
240
- <!-- buttons that show up when FAB is open -->
241
- <button class="btn btn-lg">Button A</button>
242
- <button class="btn btn-lg">Button B</button>
243
- <button class="btn btn-lg">Button C</button>
244
- </div>
245
- ```
246
-
247
- ### Fab and speed dial with svg icons
248
-
249
- Source: `playground/components/fab/fab-and-speed-dial-with-svg-icons.html`
250
-
251
- ```html
252
- <div class="fab">
253
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
254
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-secondary">
255
- <svg
256
- aria-label="New"
257
- xmlns="http://www.w3.org/2000/svg"
258
- fill="none"
259
- viewBox="0 0 24 24"
260
- stroke-width="2"
261
- stroke="currentColor"
262
- class="size-6"
263
- >
264
- <path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
265
- </svg>
266
- </div>
267
-
268
- <!-- buttons that show up when FAB is open -->
269
- <button class="btn btn-lg btn-circle">
270
- <svg
271
- aria-label="Camera"
272
- xmlns="http://www.w3.org/2000/svg"
273
- fill="none"
274
- viewBox="0 0 24 24"
275
- stroke-width="1.5"
276
- stroke="currentColor"
277
- class="size-6"
278
- >
279
- <path
280
- stroke-linecap="round"
281
- stroke-linejoin="round"
282
- d="M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"
283
- />
284
- <path
285
- stroke-linecap="round"
286
- stroke-linejoin="round"
287
- d="M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"
288
- />
289
- </svg>
290
- </button>
291
- <button class="btn btn-lg btn-circle">
292
- <svg
293
- aria-label="Gallery"
294
- xmlns="http://www.w3.org/2000/svg"
295
- fill="none"
296
- viewBox="0 0 24 24"
297
- stroke-width="1.5"
298
- stroke="currentColor"
299
- class="size-6"
300
- >
301
- <path
302
- stroke-linecap="round"
303
- stroke-linejoin="round"
304
- d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"
305
- />
306
- </svg>
307
- </button>
308
- <button class="btn btn-lg btn-circle">
309
- <svg
310
- aria-label="Voice"
311
- xmlns="http://www.w3.org/2000/svg"
312
- fill="none"
313
- viewBox="0 0 24 24"
314
- stroke-width="1.5"
315
- stroke="currentColor"
316
- class="size-6"
317
- >
318
- <path
319
- stroke-linecap="round"
320
- stroke-linejoin="round"
321
- d="M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"
322
- />
323
- </svg>
324
- </button>
325
- </div>
326
- ```
327
-
328
- ### Fab flower and speed dial
329
-
330
- Source: `playground/components/fab/fab-flower-and-speed-dial.html`
331
-
332
- ```html
333
- <div class="fab fab-flower">
334
- <!-- a focusable div with tabindex is necessary to work on all browsers. role="button" is necessary for accessibility -->
335
- <div tabindex="0" role="button" class="btn btn-lg btn-circle btn-success">F</div>
336
-
337
- <!-- Main Action button replaces the original button when FAB is open -->
338
- <button class="fab-main-action btn btn-circle btn-lg">M</button>
339
-
340
- <!-- buttons that show up when FAB is open -->
341
- <button class="btn btn-lg btn-circle">A</button>
342
- <button class="btn btn-lg btn-circle">B</button>
343
- <button class="btn btn-lg btn-circle">C</button>
344
- <button class="btn btn-lg btn-circle">D</button>
345
- </div>
346
- ```
@@ -1,88 +0,0 @@
1
- # fieldset
2
-
3
- _themed `<fieldset>` group with legend + label slots_
4
-
5
- ## What it does
6
-
7
- Themed grouping container for related form inputs with `fieldset-legend` and helper `fieldset-label`.
8
-
9
- ## When to use
10
-
11
- - Logical groupings of form fields (login form, address form section).
12
-
13
- ## Examples
14
-
15
- ### Fieldset fieldset legend and label
16
-
17
- Source: `playground/components/fieldset/fieldset-fieldset-legend-and-label.html`
18
-
19
- ```html
20
- <fieldset class="fieldset">
21
- <legend class="fieldset-legend">Page title</legend>
22
- <input type="text" class="input" placeholder="My awesome page" />
23
- <p class="label">You can edit page title later on from settings</p>
24
- </fieldset>
25
- ```
26
-
27
- ### Fieldset with background and border
28
-
29
- Source: `playground/components/fieldset/fieldset-with-background-and-border.html`
30
-
31
- ```html
32
- <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
33
- <legend class="fieldset-legend">Page title</legend>
34
- <input type="text" class="input" placeholder="My awesome page" />
35
- <p class="label">You can edit page title later on from settings</p>
36
- </fieldset>
37
- ```
38
-
39
- ### Fieldset with multiple inputs
40
-
41
- Source: `playground/components/fieldset/fieldset-with-multiple-inputs.html`
42
-
43
- ```html
44
- <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
45
- <legend class="fieldset-legend">Page details</legend>
46
-
47
- <label class="label">Title</label>
48
- <input type="text" class="input" placeholder="My awesome page" />
49
-
50
- <label class="label">Slug</label>
51
- <input type="text" class="input" placeholder="my-awesome-page" />
52
-
53
- <label class="label">Author</label>
54
- <input type="text" class="input" placeholder="Name" />
55
- </fieldset>
56
- ```
57
-
58
- ### Fieldset with multiple join items
59
-
60
- Source: `playground/components/fieldset/fieldset-with-multiple-join-items.html`
61
-
62
- ```html
63
- <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
64
- <legend class="fieldset-legend">Settings</legend>
65
- <div class="join">
66
- <input type="text" class="input join-item" placeholder="Product name" />
67
- <button class="btn join-item">save</button>
68
- </div>
69
- </fieldset>
70
- ```
71
-
72
- ### Login form with fieldset
73
-
74
- Source: `playground/components/fieldset/login-form-with-fieldset.html`
75
-
76
- ```html
77
- <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
78
- <legend class="fieldset-legend">Login</legend>
79
-
80
- <label class="label">Email</label>
81
- <input type="email" class="input" placeholder="Email" />
82
-
83
- <label class="label">Password</label>
84
- <input type="password" class="input" placeholder="Password" />
85
-
86
- <button class="btn btn-neutral mt-4">Login</button>
87
- </fieldset>
88
- ```
@@ -1,84 +0,0 @@
1
- # file-input
2
-
3
- _styled file picker_
4
-
5
- ## What it does
6
-
7
- Themed file-picker input.
8
-
9
- ## When to use
10
-
11
- - File-upload form fields.
12
-
13
- ## Core classes
14
-
15
- `file-input`; color `file-input-primary|…`; style `file-input-ghost`; size `file-input-xs|sm|md|lg|xl`.
16
-
17
- ## Examples
18
-
19
- ### File input
20
-
21
- Source: `playground/components/file-input/file-input.html`
22
-
23
- ```html
24
- <input type="file" class="file-input" />
25
- ```
26
-
27
- ### Disabled
28
-
29
- Source: `playground/components/file-input/disabled.html`
30
-
31
- ```html
32
- <input type="file" placeholder="You can't touch this" class="file-input" disabled />
33
- ```
34
-
35
- ### File input ghost
36
-
37
- Source: `playground/components/file-input/file-input-ghost.html`
38
-
39
- ```html
40
- <input type="file" class="file-input file-input-ghost" />
41
- ```
42
-
43
- ### Primary color
44
-
45
- Source: `playground/components/file-input/primary-color.html`
46
-
47
- ```html
48
- <input type="file" class="file-input file-input-primary" />
49
- <input type="file" class="file-input file-input-secondary" />
50
- <input type="file" class="file-input file-input-accent" />
51
- <input type="file" class="file-input file-input-neutral" />
52
- <input type="file" class="file-input file-input-info" />
53
- <input type="file" class="file-input file-input-success" />
54
- <input type="file" class="file-input file-input-warning" />
55
- <input type="file" class="file-input file-input-error" />
56
- ```
57
-
58
- ### Sizes
59
-
60
- Source: `playground/components/file-input/sizes.html`
61
-
62
- ```html
63
- <input type="file" class="file-input file-input-xs" />
64
-
65
- <input type="file" class="file-input file-input-sm" />
66
-
67
- <input type="file" class="file-input file-input-md" />
68
-
69
- <input type="file" class="file-input file-input-lg" />
70
-
71
- <input type="file" class="file-input file-input-xl" />
72
- ```
73
-
74
- ### With fieldset and label
75
-
76
- Source: `playground/components/file-input/with-fieldset-and-label.html`
77
-
78
- ```html
79
- <fieldset class="fieldset">
80
- <legend class="fieldset-legend">Pick a file</legend>
81
- <input type="file" class="file-input" />
82
- <label class="label">Max size 2MB</label>
83
- </fieldset>
84
- ```
@@ -1,52 +0,0 @@
1
- # filter
2
-
3
- _radio-button filter group (with reset)_
4
-
5
- ## What it does
6
-
7
- Group of mutually exclusive `<input type="radio">` options styled as buttons, with a built-in reset.
8
-
9
- ## When to use
10
-
11
- - Filter chips on listing pages.
12
-
13
- ## Examples
14
-
15
- ### Filter using html form checkboxes and a reset button
16
-
17
- Source: `playground/components/filter/filter-using-html-form-checkboxes-and-a-reset-button.html`
18
-
19
- ```html
20
- <form>
21
- <input class="btn" type="checkbox" name="frameworks" aria-label="Svelte"/>
22
- <input class="btn" type="checkbox" name="frameworks" aria-label="Vue"/>
23
- <input class="btn" type="checkbox" name="frameworks" aria-label="React"/>
24
- <input class="btn btn-square" type="reset" value="×"/>
25
- </form>
26
- ```
27
-
28
- ### Filter using html form radio buttons and reset button
29
-
30
- Source: `playground/components/filter/filter-using-html-form-radio-buttons-and-reset-button.html`
31
-
32
- ```html
33
- <form class="filter">
34
- <input class="btn btn-square" type="reset" value="×"/>
35
- <input class="btn" type="radio" name="frameworks" aria-label="Svelte"/>
36
- <input class="btn" type="radio" name="frameworks" aria-label="Vue"/>
37
- <input class="btn" type="radio" name="frameworks" aria-label="React"/>
38
- </form>
39
- ```
40
-
41
- ### Filter without html form
42
-
43
- Source: `playground/components/filter/filter-without-html-form.html`
44
-
45
- ```html
46
- <div class="filter">
47
- <input class="btn filter-reset" type="radio" name="metaframeworks" aria-label="All"/>
48
- <input class="btn" type="radio" name="metaframeworks" aria-label="Sveltekit"/>
49
- <input class="btn" type="radio" name="metaframeworks" aria-label="Nuxt"/>
50
- <input class="btn" type="radio" name="metaframeworks" aria-label="Next.js"/>
51
- </div>
52
- ```