tutuca 0.11.2 → 0.12.0

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 (115) hide show
  1. package/dist/tutuca-cli.js +130 -104
  2. package/dist/tutuca-dev.ext.js +121 -90
  3. package/dist/tutuca-dev.js +121 -90
  4. package/dist/tutuca-dev.min.js +3 -3
  5. package/dist/tutuca-extra.ext.js +116 -59
  6. package/dist/tutuca-extra.js +116 -59
  7. package/dist/tutuca-extra.min.js +2 -2
  8. package/dist/tutuca-storybook.js +3 -3
  9. package/dist/tutuca.ext.js +116 -59
  10. package/dist/tutuca.js +116 -59
  11. package/dist/tutuca.min.js +2 -2
  12. package/package.json +1 -1
  13. package/skill/margaui/SKILL.md +105 -0
  14. package/skill/margaui/components/accordion.md +127 -0
  15. package/skill/margaui/components/alert.md +174 -0
  16. package/skill/margaui/components/aura.md +97 -0
  17. package/skill/margaui/components/avatar.md +220 -0
  18. package/skill/margaui/components/badge.md +193 -0
  19. package/skill/margaui/components/breadcrumbs.md +103 -0
  20. package/skill/margaui/components/button.md +322 -0
  21. package/skill/margaui/components/calendar.md +67 -0
  22. package/skill/margaui/components/card.md +373 -0
  23. package/skill/margaui/components/carousel.md +387 -0
  24. package/skill/margaui/components/chat.md +171 -0
  25. package/skill/margaui/components/checkbox.md +101 -0
  26. package/skill/margaui/components/collapse.md +172 -0
  27. package/skill/margaui/components/countdown.md +165 -0
  28. package/skill/margaui/components/diff.md +53 -0
  29. package/skill/margaui/components/divider.md +107 -0
  30. package/skill/margaui/components/dock.md +173 -0
  31. package/skill/margaui/components/drawer.md +184 -0
  32. package/skill/margaui/components/dropdown.md +388 -0
  33. package/skill/margaui/components/fab.md +346 -0
  34. package/skill/margaui/components/fieldset.md +88 -0
  35. package/skill/margaui/components/file-input.md +84 -0
  36. package/skill/margaui/components/filter.md +52 -0
  37. package/skill/margaui/components/footer.md +583 -0
  38. package/skill/margaui/components/hero.md +135 -0
  39. package/skill/margaui/components/hover-3d.md +129 -0
  40. package/skill/margaui/components/hover-gallery.md +49 -0
  41. package/skill/margaui/components/indicator.md +265 -0
  42. package/skill/margaui/components/input.md +389 -0
  43. package/skill/margaui/components/join.md +100 -0
  44. package/skill/margaui/components/kbd.md +127 -0
  45. package/skill/margaui/components/label.md +102 -0
  46. package/skill/margaui/components/link.md +96 -0
  47. package/skill/margaui/components/list.md +182 -0
  48. package/skill/margaui/components/loading.md +105 -0
  49. package/skill/margaui/components/mask.md +168 -0
  50. package/skill/margaui/components/megamenu.md +131 -0
  51. package/skill/margaui/components/menu.md +887 -0
  52. package/skill/margaui/components/mockup-browser.md +39 -0
  53. package/skill/margaui/components/mockup-code.md +81 -0
  54. package/skill/margaui/components/mockup-phone.md +39 -0
  55. package/skill/margaui/components/mockup-window.md +33 -0
  56. package/skill/margaui/components/modal.md +196 -0
  57. package/skill/margaui/components/navbar.md +282 -0
  58. package/skill/margaui/components/otp.md +171 -0
  59. package/skill/margaui/components/pagination.md +122 -0
  60. package/skill/margaui/components/progress.md +135 -0
  61. package/skill/margaui/components/radial-progress.md +67 -0
  62. package/skill/margaui/components/radio.md +133 -0
  63. package/skill/margaui/components/range.md +134 -0
  64. package/skill/margaui/components/rating.md +170 -0
  65. package/skill/margaui/components/select.md +225 -0
  66. package/skill/margaui/components/skeleton.md +64 -0
  67. package/skill/margaui/components/stack.md +142 -0
  68. package/skill/margaui/components/stat.md +254 -0
  69. package/skill/margaui/components/status.md +73 -0
  70. package/skill/margaui/components/steps.md +138 -0
  71. package/skill/margaui/components/swap.md +152 -0
  72. package/skill/margaui/components/tab.md +248 -0
  73. package/skill/margaui/components/table.md +1018 -0
  74. package/skill/margaui/components/text-rotate.md +91 -0
  75. package/skill/margaui/components/textarea.md +85 -0
  76. package/skill/margaui/components/theme-controller.md +266 -0
  77. package/skill/margaui/components/timeline.md +1356 -0
  78. package/skill/margaui/components/toast.md +165 -0
  79. package/skill/margaui/components/toggle.md +135 -0
  80. package/skill/margaui/components/tooltip.md +181 -0
  81. package/skill/margaui/components/validator.md +163 -0
  82. package/skill/tutuca/SKILL.md +56 -0
  83. package/skill/tutuca/advanced.md +212 -0
  84. package/skill/tutuca/cli.md +239 -0
  85. package/skill/tutuca/component-design.md +168 -0
  86. package/skill/tutuca/core.md +918 -0
  87. package/skill/tutuca/iteration.md +207 -0
  88. package/skill/tutuca/macros.md +86 -0
  89. package/skill/tutuca/margaui.md +175 -0
  90. package/skill/tutuca/messages-and-intents.md +399 -0
  91. package/skill/tutuca/patterns/README.md +48 -0
  92. package/skill/tutuca/patterns/add-a-story.md +26 -0
  93. package/skill/tutuca/patterns/bind-text-and-attributes.md +30 -0
  94. package/skill/tutuca/patterns/conditional-attribute-value.md +29 -0
  95. package/skill/tutuca/patterns/coordinate-components.md +54 -0
  96. package/skill/tutuca/patterns/edit-through-a-dynamic-target.md +27 -0
  97. package/skill/tutuca/patterns/enrich-each-item.md +25 -0
  98. package/skill/tutuca/patterns/file-input.md +39 -0
  99. package/skill/tutuca/patterns/filter-a-list.md +25 -0
  100. package/skill/tutuca/patterns/filter-and-paginate.md +60 -0
  101. package/skill/tutuca/patterns/handle-events.md +44 -0
  102. package/skill/tutuca/patterns/iterate-a-list.md +18 -0
  103. package/skill/tutuca/patterns/paginate-a-list.md +29 -0
  104. package/skill/tutuca/patterns/render-a-child-component.md +21 -0
  105. package/skill/tutuca/patterns/reuse-markup-with-macros.md +36 -0
  106. package/skill/tutuca/patterns/share-state-across-the-tree.md +38 -0
  107. package/skill/tutuca/patterns/show-or-hide-content.md +23 -0
  108. package/skill/tutuca/patterns/switch-between-views.md +30 -0
  109. package/skill/tutuca/patterns/tabbed-interface.md +43 -0
  110. package/skill/tutuca/semantics.md +195 -0
  111. package/skill/tutuca/storybook.md +270 -0
  112. package/skill/tutuca/styles.md +48 -0
  113. package/skill/tutuca/testing.md +345 -0
  114. package/skill/tutuca-source/SKILL.md +33 -0
  115. package/skill/tutuca-source/tutuca.ext.js +4301 -0
@@ -0,0 +1,171 @@
1
+ # otp
2
+
3
+ _one-time-password digit input (2FA / verification codes)_
4
+
5
+ ## What it does
6
+
7
+ A `<label class="otp">` wrapping N empty `<span>` boxes (one per digit) plus a single real `<input>`; the spans render as the visual digit boxes overlaying the input.
8
+
9
+ ## When to use
10
+
11
+ - 2FA / passwordless-login verification code entry.
12
+ - Number of `<span>` elements must match the input's `maxlength`/`pattern`.
13
+
14
+ ## Core classes
15
+
16
+ `otp`; modifier `otp-joined`; size `otp-xs|sm|md|lg|xl`; color `otp-neutral|primary|secondary|accent|info|success|warning|error`.
17
+
18
+ ## Examples
19
+
20
+ ### Otp
21
+
22
+ Source: `playground/components/otp/otp.html`
23
+
24
+ ```html
25
+ <label class="otp">
26
+ <span></span>
27
+ <span></span>
28
+ <span></span>
29
+ <span></span>
30
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
31
+ </label>
32
+ ```
33
+
34
+ ### Otp joined
35
+
36
+ Source: `playground/components/otp/otp-joined.html`
37
+
38
+ ```html
39
+ <label class="otp otp-joined">
40
+ <span></span>
41
+ <span></span>
42
+ <span></span>
43
+ <span></span>
44
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
45
+ </label>
46
+ ```
47
+
48
+ ### Otp sizes
49
+
50
+ Source: `playground/components/otp/otp-sizes.html`
51
+
52
+ ```html
53
+ <div class="flex flex-col gap-4 items-center">
54
+ <label class="otp otp-xs">
55
+ <span></span>
56
+ <span></span>
57
+ <span></span>
58
+ <span></span>
59
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
60
+ </label>
61
+ <label class="otp otp-sm">
62
+ <span></span>
63
+ <span></span>
64
+ <span></span>
65
+ <span></span>
66
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
67
+ </label>
68
+ <label class="otp otp-md">
69
+ <span></span>
70
+ <span></span>
71
+ <span></span>
72
+ <span></span>
73
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
74
+ </label>
75
+ <label class="otp otp-lg">
76
+ <span></span>
77
+ <span></span>
78
+ <span></span>
79
+ <span></span>
80
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
81
+ </label>
82
+ <label class="otp otp-xl">
83
+ <span></span>
84
+ <span></span>
85
+ <span></span>
86
+ <span></span>
87
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
88
+ </label>
89
+ </div>
90
+ ```
91
+
92
+ ### Otp with 6 digits
93
+
94
+ Source: `playground/components/otp/otp-with-6-digits.html`
95
+
96
+ ```html
97
+ <label class="otp">
98
+ <span></span>
99
+ <span></span>
100
+ <span></span>
101
+ <span></span>
102
+ <span></span>
103
+ <span></span>
104
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="6" pattern="[0-9]{6}" required />
105
+ </label>
106
+ ```
107
+
108
+ ### Otp with colors
109
+
110
+ Source: `playground/components/otp/otp-with-colors.html`
111
+
112
+ ```html
113
+ <div class="flex flex-col gap-4 items-center">
114
+ <label class="otp otp-neutral">
115
+ <span></span>
116
+ <span></span>
117
+ <span></span>
118
+ <span></span>
119
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
120
+ </label>
121
+ <label class="otp otp-primary">
122
+ <span></span>
123
+ <span></span>
124
+ <span></span>
125
+ <span></span>
126
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
127
+ </label>
128
+ <label class="otp otp-secondary">
129
+ <span></span>
130
+ <span></span>
131
+ <span></span>
132
+ <span></span>
133
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
134
+ </label>
135
+ <label class="otp otp-accent">
136
+ <span></span>
137
+ <span></span>
138
+ <span></span>
139
+ <span></span>
140
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
141
+ </label>
142
+ <label class="otp otp-info">
143
+ <span></span>
144
+ <span></span>
145
+ <span></span>
146
+ <span></span>
147
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
148
+ </label>
149
+ <label class="otp otp-success">
150
+ <span></span>
151
+ <span></span>
152
+ <span></span>
153
+ <span></span>
154
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
155
+ </label>
156
+ <label class="otp otp-warning">
157
+ <span></span>
158
+ <span></span>
159
+ <span></span>
160
+ <span></span>
161
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
162
+ </label>
163
+ <label class="otp otp-error">
164
+ <span></span>
165
+ <span></span>
166
+ <span></span>
167
+ <span></span>
168
+ <input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
169
+ </label>
170
+ </div>
171
+ ```
@@ -0,0 +1,122 @@
1
+ # pagination
2
+
3
+ _paged-navigation button row_
4
+
5
+ ## What it does
6
+
7
+ Row of buttons (often inside `join`) for paged navigation.
8
+
9
+ ## When to use
10
+
11
+ - Multi-page lists, search results.
12
+
13
+ ## Core classes
14
+
15
+ Built from `join` + `btn`.
16
+
17
+ ## Examples
18
+
19
+ ### Extra small buttons
20
+
21
+ Source: `playground/components/pagination/extra-small-buttons.html`
22
+
23
+ ```html
24
+ <div class="join">
25
+ <button class="join-item btn">«</button>
26
+ <button class="join-item btn">Page 22</button>
27
+ <button class="join-item btn">»</button>
28
+ </div>
29
+ ```
30
+
31
+ ### Nexprev outline buttons with equal width
32
+
33
+ Source: `playground/components/pagination/nexprev-outline-buttons-with-equal-width.html`
34
+
35
+ ```html
36
+ <div class="join grid grid-cols-2">
37
+ <button class="join-item btn btn-outline">Previous page</button>
38
+ <button class="join-item btn btn-outline">Next</button>
39
+ </div>
40
+ ```
41
+
42
+ ### Pagination with an active button
43
+
44
+ Source: `playground/components/pagination/pagination-with-an-active-button.html`
45
+
46
+ ```html
47
+ <div class="join">
48
+ <button class="join-item btn">1</button>
49
+ <button class="join-item btn btn-active">2</button>
50
+ <button class="join-item btn">3</button>
51
+ <button class="join-item btn">4</button>
52
+ </div>
53
+ ```
54
+
55
+ ### Sizes
56
+
57
+ Source: `playground/components/pagination/sizes.html`
58
+
59
+ ```html
60
+ <div class="join">
61
+ <button class="join-item btn btn-xs">1</button>
62
+ <button class="join-item btn btn-xs btn-active">2</button>
63
+ <button class="join-item btn btn-xs">3</button>
64
+ <button class="join-item btn btn-xs">4</button>
65
+ </div>
66
+ <div class="join">
67
+ <button class="join-item btn btn-sm">1</button>
68
+ <button class="join-item btn btn-sm btn-active">2</button>
69
+ <button class="join-item btn btn-sm">3</button>
70
+ <button class="join-item btn btn-sm">4</button>
71
+ </div>
72
+ <div class="join">
73
+ <button class="join-item btn btn-md">1</button>
74
+ <button class="join-item btn btn-md btn-active">2</button>
75
+ <button class="join-item btn btn-md">3</button>
76
+ <button class="join-item btn btn-md">4</button>
77
+ </div>
78
+ <div class="join">
79
+ <button class="join-item btn btn-lg">1</button>
80
+ <button class="join-item btn btn-lg btn-active">2</button>
81
+ <button class="join-item btn btn-lg">3</button>
82
+ <button class="join-item btn btn-lg">4</button>
83
+ </div>
84
+ <div class="join">
85
+ <button class="join-item btn btn-xl">1</button>
86
+ <button class="join-item btn btn-xl btn-active">2</button>
87
+ <button class="join-item btn btn-xl">3</button>
88
+ <button class="join-item btn btn-xl">4</button>
89
+ </div>
90
+ ```
91
+
92
+ ### Using radio inputs
93
+
94
+ Source: `playground/components/pagination/using-radio-inputs.html`
95
+
96
+ ```html
97
+ <div class="join">
98
+ <input
99
+ class="join-item btn btn-square"
100
+ type="radio"
101
+ name="options"
102
+ aria-label="1"
103
+ checked="checked" />
104
+ <input class="join-item btn btn-square" type="radio" name="options" aria-label="2" />
105
+ <input class="join-item btn btn-square" type="radio" name="options" aria-label="3" />
106
+ <input class="join-item btn btn-square" type="radio" name="options" aria-label="4" />
107
+ </div>
108
+ ```
109
+
110
+ ### With a disabled button
111
+
112
+ Source: `playground/components/pagination/with-a-disabled-button.html`
113
+
114
+ ```html
115
+ <div class="join">
116
+ <button class="join-item btn">1</button>
117
+ <button class="join-item btn">2</button>
118
+ <button class="join-item btn btn-disabled">...</button>
119
+ <button class="join-item btn">99</button>
120
+ <button class="join-item btn">100</button>
121
+ </div>
122
+ ```
@@ -0,0 +1,135 @@
1
+ # progress
2
+
3
+ _linear progress bar (`<progress>`)_
4
+
5
+ ## What it does
6
+
7
+ Themed `<progress>` bar; supports indeterminate state when `value` is omitted.
8
+
9
+ ## When to use
10
+
11
+ - Determinate progress (uploads, downloads, multi-step forms).
12
+ - For circular progress, use **radial-progress**.
13
+ - For pure spinners, use **loading**.
14
+
15
+ ## Core classes
16
+
17
+ `progress`; color `progress-primary|secondary|accent|info|success|warning|error|neutral`.
18
+
19
+ ## Examples
20
+
21
+ ### Progress
22
+
23
+ Source: `playground/components/progress/progress.html`
24
+
25
+ ```html
26
+ <progress class="progress w-56" value="0" max="100"></progress>
27
+ <progress class="progress w-56" value="10" max="100"></progress>
28
+ <progress class="progress w-56" value="40" max="100"></progress>
29
+ <progress class="progress w-56" value="70" max="100"></progress>
30
+ <progress class="progress w-56" value="100" max="100"></progress>
31
+ ```
32
+
33
+ ### Accent color
34
+
35
+ Source: `playground/components/progress/accent-color.html`
36
+
37
+ ```html
38
+ <progress class="progress progress-accent w-56" value="0" max="100"></progress>
39
+ <progress class="progress progress-accent w-56" value="10" max="100"></progress>
40
+ <progress class="progress progress-accent w-56" value="40" max="100"></progress>
41
+ <progress class="progress progress-accent w-56" value="70" max="100"></progress>
42
+ <progress class="progress progress-accent w-56" value="100" max="100"></progress>
43
+ ```
44
+
45
+ ### Error color
46
+
47
+ Source: `playground/components/progress/error-color.html`
48
+
49
+ ```html
50
+ <progress class="progress progress-error w-56" value="0" max="100"></progress>
51
+ <progress class="progress progress-error w-56" value="10" max="100"></progress>
52
+ <progress class="progress progress-error w-56" value="40" max="100"></progress>
53
+ <progress class="progress progress-error w-56" value="70" max="100"></progress>
54
+ <progress class="progress progress-error w-56" value="100" max="100"></progress>
55
+ ```
56
+
57
+ ### Indeterminate without value
58
+
59
+ Source: `playground/components/progress/indeterminate-without-value.html`
60
+
61
+ ```html
62
+ <progress class="progress w-56"></progress>
63
+ ```
64
+
65
+ ### Info color
66
+
67
+ Source: `playground/components/progress/info-color.html`
68
+
69
+ ```html
70
+ <progress class="progress progress-info w-56" value="0" max="100"></progress>
71
+ <progress class="progress progress-info w-56" value="10" max="100"></progress>
72
+ <progress class="progress progress-info w-56" value="40" max="100"></progress>
73
+ <progress class="progress progress-info w-56" value="70" max="100"></progress>
74
+ <progress class="progress progress-info w-56" value="100" max="100"></progress>
75
+ ```
76
+
77
+ ### Neutral color
78
+
79
+ Source: `playground/components/progress/neutral-color.html`
80
+
81
+ ```html
82
+ <progress class="progress progress-neutral w-56" value="0" max="100"></progress>
83
+ <progress class="progress progress-neutral w-56" value="10" max="100"></progress>
84
+ <progress class="progress progress-neutral w-56" value="40" max="100"></progress>
85
+ <progress class="progress progress-neutral w-56" value="70" max="100"></progress>
86
+ <progress class="progress progress-neutral w-56" value="100" max="100"></progress>
87
+ ```
88
+
89
+ ### Primary color
90
+
91
+ Source: `playground/components/progress/primary-color.html`
92
+
93
+ ```html
94
+ <progress class="progress progress-primary w-56" value="0" max="100"></progress>
95
+ <progress class="progress progress-primary w-56" value="10" max="100"></progress>
96
+ <progress class="progress progress-primary w-56" value="40" max="100"></progress>
97
+ <progress class="progress progress-primary w-56" value="70" max="100"></progress>
98
+ <progress class="progress progress-primary w-56" value="100" max="100"></progress>
99
+ ```
100
+
101
+ ### Secondary color
102
+
103
+ Source: `playground/components/progress/secondary-color.html`
104
+
105
+ ```html
106
+ <progress class="progress progress-secondary w-56" value="0" max="100"></progress>
107
+ <progress class="progress progress-secondary w-56" value="10" max="100"></progress>
108
+ <progress class="progress progress-secondary w-56" value="40" max="100"></progress>
109
+ <progress class="progress progress-secondary w-56" value="70" max="100"></progress>
110
+ <progress class="progress progress-secondary w-56" value="100" max="100"></progress>
111
+ ```
112
+
113
+ ### Success color
114
+
115
+ Source: `playground/components/progress/success-color.html`
116
+
117
+ ```html
118
+ <progress class="progress progress-success w-56" value="0" max="100"></progress>
119
+ <progress class="progress progress-success w-56" value="10" max="100"></progress>
120
+ <progress class="progress progress-success w-56" value="40" max="100"></progress>
121
+ <progress class="progress progress-success w-56" value="70" max="100"></progress>
122
+ <progress class="progress progress-success w-56" value="100" max="100"></progress>
123
+ ```
124
+
125
+ ### Warning color
126
+
127
+ Source: `playground/components/progress/warning-color.html`
128
+
129
+ ```html
130
+ <progress class="progress progress-warning w-56" value="0" max="100"></progress>
131
+ <progress class="progress progress-warning w-56" value="10" max="100"></progress>
132
+ <progress class="progress progress-warning w-56" value="40" max="100"></progress>
133
+ <progress class="progress progress-warning w-56" value="70" max="100"></progress>
134
+ <progress class="progress progress-warning w-56" value="100" max="100"></progress>
135
+ ```
@@ -0,0 +1,67 @@
1
+ # radial-progress
2
+
3
+ _circular progress indicator_
4
+
5
+ ## What it does
6
+
7
+ Circular progress indicator driven by CSS custom properties (`--value`, `--size`, `--thickness`).
8
+
9
+ ## When to use
10
+
11
+ - Compact circular progress, dashboards, KPIs.
12
+ - For linear progress, use **progress**.
13
+
14
+ ## Core classes
15
+
16
+ `radial-progress` with `style="--value:N"` (and optional `--size`, `--thickness`); colors via standard `text-…`/`bg-…` utilities.
17
+
18
+ ## Examples
19
+
20
+ ### Radial progress
21
+
22
+ Source: `playground/components/radial-progress/radial-progress.html`
23
+
24
+ ```html
25
+ <div class="radial-progress" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
26
+ ```
27
+
28
+ ### Custom color
29
+
30
+ Source: `playground/components/radial-progress/custom-color.html`
31
+
32
+ ```html
33
+ <div class="radial-progress text-primary" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
34
+ ```
35
+
36
+ ### Custom size and custom thickness
37
+
38
+ Source: `playground/components/radial-progress/custom-size-and-custom-thickness.html`
39
+
40
+ ```html
41
+ <div class="radial-progress" style="--value:70; --size:12rem; --thickness: 2px;" aria-valuenow="70" role="progressbar">70%</div>
42
+ <div class="radial-progress" style="--value:70; --size:12rem; --thickness: 2rem;" aria-valuenow="70" role="progressbar">70%</div>
43
+ ```
44
+
45
+ ### Different values
46
+
47
+ Source: `playground/components/radial-progress/different-values.html`
48
+
49
+ ```html
50
+ <div class="radial-progress" style="--value:0;" aria-valuenow="0" role="progressbar">0%</div>
51
+ <div class="radial-progress" style="--value:20;" aria-valuenow="20" role="progressbar">20%</div>
52
+ <div class="radial-progress" style="--value:60;" aria-valuenow="60" role="progressbar">60%</div>
53
+ <div class="radial-progress" style="--value:80;" aria-valuenow="80" role="progressbar">80%</div>
54
+ <div class="radial-progress" style="--value:100;" aria-valuenow="100" role="progressbar">100%</div>
55
+ ```
56
+
57
+ ### With background color and border
58
+
59
+ Source: `playground/components/radial-progress/with-background-color-and-border.html`
60
+
61
+ ```html
62
+ <div
63
+ class="radial-progress bg-primary text-primary-content border-primary border-4"
64
+ style="--value:70;" aria-valuenow="70" role="progressbar">
65
+ 70%
66
+ </div>
67
+ ```
@@ -0,0 +1,133 @@
1
+ # radio
2
+
3
+ _styled `<input type="radio">`_
4
+
5
+ ## What it does
6
+
7
+ Themed replacement for the native radio button.
8
+
9
+ ## When to use
10
+
11
+ - Single-choice form fields with all options visible.
12
+ - For dropdown single-choice, use **select**.
13
+
14
+ ## Core classes
15
+
16
+ `radio`; color `radio-primary|secondary|accent|info|success|warning|error|neutral`; size `radio-xs|sm|md|lg|xl`.
17
+
18
+ ## Examples
19
+
20
+ ### Radio
21
+
22
+ Source: `playground/components/radio/radio.html`
23
+
24
+ ```html
25
+ <input type="radio" name="radio-1" class="radio" checked="checked" />
26
+ <input type="radio" name="radio-1" class="radio" />
27
+ ```
28
+
29
+ ### Accent color
30
+
31
+ Source: `playground/components/radio/accent-color.html`
32
+
33
+ ```html
34
+ <input type="radio" name="radio-6" class="radio radio-accent" checked="checked" />
35
+ <input type="radio" name="radio-6" class="radio radio-accent" />
36
+ ```
37
+
38
+ ### Disabled
39
+
40
+ Source: `playground/components/radio/disabled.html`
41
+
42
+ ```html
43
+ <input type="radio" name="radio-11" class="radio" disabled checked="checked" />
44
+ <input type="radio" name="radio-11" class="radio" disabled />
45
+ ```
46
+
47
+ ### Error color
48
+
49
+ Source: `playground/components/radio/error-color.html`
50
+
51
+ ```html
52
+ <input type="radio" name="radio-10" class="radio radio-error" checked="checked" />
53
+ <input type="radio" name="radio-10" class="radio radio-error" />
54
+ ```
55
+
56
+ ### Info color
57
+
58
+ Source: `playground/components/radio/info-color.html`
59
+
60
+ ```html
61
+ <input type="radio" name="radio-9" class="radio radio-info" checked="checked" />
62
+ <input type="radio" name="radio-9" class="radio radio-info" />
63
+ ```
64
+
65
+ ### Neutral color
66
+
67
+ Source: `playground/components/radio/neutral-color.html`
68
+
69
+ ```html
70
+ <input type="radio" name="radio-3" class="radio radio-neutral" checked="checked" />
71
+ <input type="radio" name="radio-3" class="radio radio-neutral" />
72
+ ```
73
+
74
+ ### Primary color
75
+
76
+ Source: `playground/components/radio/primary-color.html`
77
+
78
+ ```html
79
+ <input type="radio" name="radio-4" class="radio radio-primary" checked="checked" />
80
+ <input type="radio" name="radio-4" class="radio radio-primary" />
81
+ ```
82
+
83
+ ### Radio sizes
84
+
85
+ Source: `playground/components/radio/radio-sizes.html`
86
+
87
+ ```html
88
+ <input type="radio" name="radio-2" class="radio radio-xs" checked="checked" />
89
+ <input type="radio" name="radio-2" class="radio radio-sm" checked="checked" />
90
+ <input type="radio" name="radio-2" class="radio radio-md" checked="checked" />
91
+ <input type="radio" name="radio-2" class="radio radio-lg" checked="checked" />
92
+ <input type="radio" name="radio-2" class="radio radio-xl" checked="checked" />
93
+ ```
94
+
95
+ ### Radio with custom colors
96
+
97
+ Source: `playground/components/radio/radio-with-custom-colors.html`
98
+
99
+ ```html
100
+ <input
101
+ type="radio" name="radio-12" checked="checked"
102
+ class="radio bg-red-100 border-red-300 checked:bg-red-200 checked:text-red-600 checked:border-red-600" />
103
+ <input
104
+ type="radio" name="radio-12" checked="checked"
105
+ class="radio bg-blue-100 border-blue-300 checked:bg-blue-200 checked:text-blue-600 checked:border-blue-600" />
106
+ ```
107
+
108
+ ### Secondary color
109
+
110
+ Source: `playground/components/radio/secondary-color.html`
111
+
112
+ ```html
113
+ <input type="radio" name="radio-5" class="radio radio-secondary" checked="checked" />
114
+ <input type="radio" name="radio-5" class="radio radio-secondary" />
115
+ ```
116
+
117
+ ### Success color
118
+
119
+ Source: `playground/components/radio/success-color.html`
120
+
121
+ ```html
122
+ <input type="radio" name="radio-7" class="radio radio-success" checked="checked" />
123
+ <input type="radio" name="radio-7" class="radio radio-success" />
124
+ ```
125
+
126
+ ### Warning color
127
+
128
+ Source: `playground/components/radio/warning-color.html`
129
+
130
+ ```html
131
+ <input type="radio" name="radio-8" class="radio radio-warning" checked="checked" />
132
+ <input type="radio" name="radio-8" class="radio radio-warning" />
133
+ ```