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.
- package/dist/tutuca-cli.js +92 -39
- package/dist/tutuca-dev.js +18 -0
- package/dist/tutuca-dev.min.js +1 -1
- package/package.json +6 -7
- package/skill/immutable-js/SKILL.md +79 -0
- package/skill/immutable-js/references/collection.md +346 -0
- package/skill/immutable-js/references/conversions.md +99 -0
- package/skill/immutable-js/references/deep-updates.md +172 -0
- package/skill/immutable-js/references/equality.md +95 -0
- package/skill/immutable-js/references/list.md +266 -0
- package/skill/immutable-js/references/map.md +300 -0
- package/skill/immutable-js/references/predicates.md +93 -0
- package/skill/immutable-js/references/range-repeat.md +55 -0
- package/skill/immutable-js/references/record.md +196 -0
- package/skill/immutable-js/references/seq.md +248 -0
- package/skill/immutable-js/references/set.md +270 -0
- package/skill/immutable-js/references/shallow-functional.md +99 -0
- package/skill/immutable-js/references/stack.md +210 -0
- package/skill/margaui/SKILL.md +101 -0
- package/skill/margaui/components/accordion.md +127 -0
- package/skill/margaui/components/alert.md +174 -0
- package/skill/margaui/components/avatar.md +220 -0
- package/skill/margaui/components/badge.md +193 -0
- package/skill/margaui/components/breadcrumbs.md +103 -0
- package/skill/margaui/components/button.md +322 -0
- package/skill/margaui/components/calendar.md +67 -0
- package/skill/margaui/components/card.md +373 -0
- package/skill/margaui/components/carousel.md +387 -0
- package/skill/margaui/components/chat.md +171 -0
- package/skill/margaui/components/checkbox.md +101 -0
- package/skill/margaui/components/collapse.md +172 -0
- package/skill/margaui/components/countdown.md +165 -0
- package/skill/margaui/components/diff.md +53 -0
- package/skill/margaui/components/divider.md +107 -0
- package/skill/margaui/components/dock.md +173 -0
- package/skill/margaui/components/drawer.md +184 -0
- package/skill/margaui/components/dropdown.md +388 -0
- package/skill/margaui/components/fab.md +346 -0
- package/skill/margaui/components/fieldset.md +88 -0
- package/skill/margaui/components/file-input.md +84 -0
- package/skill/margaui/components/filter.md +52 -0
- package/skill/margaui/components/footer.md +583 -0
- package/skill/margaui/components/hero.md +135 -0
- package/skill/margaui/components/hover-3d.md +129 -0
- package/skill/margaui/components/hover-gallery.md +49 -0
- package/skill/margaui/components/indicator.md +265 -0
- package/skill/margaui/components/input.md +389 -0
- package/skill/margaui/components/join.md +100 -0
- package/skill/margaui/components/kbd.md +127 -0
- package/skill/margaui/components/label.md +102 -0
- package/skill/margaui/components/link.md +96 -0
- package/skill/margaui/components/list.md +182 -0
- package/skill/margaui/components/loading.md +105 -0
- package/skill/margaui/components/mask.md +168 -0
- package/skill/margaui/components/menu.md +856 -0
- package/skill/margaui/components/mockup-browser.md +39 -0
- package/skill/margaui/components/mockup-code.md +81 -0
- package/skill/margaui/components/mockup-phone.md +39 -0
- package/skill/margaui/components/mockup-window.md +33 -0
- package/skill/margaui/components/modal.md +178 -0
- package/skill/margaui/components/navbar.md +282 -0
- package/skill/margaui/components/pagination.md +122 -0
- package/skill/margaui/components/progress.md +135 -0
- package/skill/margaui/components/radial-progress.md +67 -0
- package/skill/margaui/components/radio.md +133 -0
- package/skill/margaui/components/range.md +134 -0
- package/skill/margaui/components/rating.md +170 -0
- package/skill/margaui/components/select.md +225 -0
- package/skill/margaui/components/skeleton.md +64 -0
- package/skill/margaui/components/stack.md +142 -0
- package/skill/margaui/components/stat.md +254 -0
- package/skill/margaui/components/status.md +73 -0
- package/skill/margaui/components/steps.md +138 -0
- package/skill/margaui/components/swap.md +152 -0
- package/skill/margaui/components/tab.md +248 -0
- package/skill/margaui/components/table.md +1018 -0
- package/skill/margaui/components/text-rotate.md +91 -0
- package/skill/margaui/components/textarea.md +85 -0
- package/skill/margaui/components/theme-controller.md +266 -0
- package/skill/margaui/components/timeline.md +1356 -0
- package/skill/margaui/components/toast.md +165 -0
- package/skill/margaui/components/toggle.md +135 -0
- package/skill/margaui/components/tooltip.md +181 -0
- package/skill/margaui/components/validator.md +163 -0
- package/skill/{advanced.md → tutuca/advanced.md} +5 -0
- package/skill/{cli.md → tutuca/cli.md} +17 -0
- package/skill/{core.md → tutuca/core.md} +5 -0
- /package/skill/{SKILL.md → tutuca/SKILL.md} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# rating
|
|
2
|
+
|
|
3
|
+
_star / heart rating (radio inputs + masks)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Star/heart rating built from masked radio inputs.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Product / content ratings.
|
|
12
|
+
- For read-only display, set `disabled` on the inputs.
|
|
13
|
+
|
|
14
|
+
## Core classes
|
|
15
|
+
|
|
16
|
+
`rating`; size `rating-xs|sm|md|lg|xl`; modifier `rating-half`; child inputs use `mask mask-star|heart|…`.
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
### Rating
|
|
21
|
+
|
|
22
|
+
Source: `playground/components/rating/rating.html`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div class="rating">
|
|
26
|
+
<input type="radio" name="rating-1" class="mask mask-star" aria-label="1 star" />
|
|
27
|
+
<input type="radio" name="rating-1" class="mask mask-star" aria-label="2 star" checked="checked" />
|
|
28
|
+
<input type="radio" name="rating-1" class="mask mask-star" aria-label="3 star" />
|
|
29
|
+
<input type="radio" name="rating-1" class="mask mask-star" aria-label="4 star" />
|
|
30
|
+
<input type="radio" name="rating-1" class="mask mask-star" aria-label="5 star" />
|
|
31
|
+
</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Half stars
|
|
35
|
+
|
|
36
|
+
Source: `playground/components/rating/half-stars.html`
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div class="rating rating-lg rating-half">
|
|
40
|
+
<input type="radio" name="rating-11" class="rating-hidden" />
|
|
41
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-1 bg-green-500" aria-label="0.5 star" />
|
|
42
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-2 bg-green-500" aria-label="1 star" />
|
|
43
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-1 bg-green-500" aria-label="1.5 star" checked="checked" />
|
|
44
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-2 bg-green-500" aria-label="2 star" />
|
|
45
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-1 bg-green-500" aria-label="2.5 star" />
|
|
46
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-2 bg-green-500" aria-label="3 star" />
|
|
47
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-1 bg-green-500" aria-label="3.5 star" />
|
|
48
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-2 bg-green-500" aria-label="4 star" />
|
|
49
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-1 bg-green-500" aria-label="4.5 star" />
|
|
50
|
+
<input type="radio" name="rating-11" class="mask mask-star-2 mask-half-2 bg-green-500" aria-label="5 star" />
|
|
51
|
+
</div>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Mask heart with multiple colors
|
|
55
|
+
|
|
56
|
+
Source: `playground/components/rating/mask-heart-with-multiple-colors.html`
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<div class="rating gap-1">
|
|
60
|
+
<input type="radio" name="rating-3" class="mask mask-heart bg-red-400" aria-label="1 star" />
|
|
61
|
+
<input type="radio" name="rating-3" class="mask mask-heart bg-orange-400" aria-label="2 star" checked="checked" />
|
|
62
|
+
<input type="radio" name="rating-3" class="mask mask-heart bg-yellow-400" aria-label="3 star" />
|
|
63
|
+
<input type="radio" name="rating-3" class="mask mask-heart bg-lime-400" aria-label="4 star" />
|
|
64
|
+
<input type="radio" name="rating-3" class="mask mask-heart bg-green-400" aria-label="5 star" />
|
|
65
|
+
</div>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Mask star 2 with green 500 color
|
|
69
|
+
|
|
70
|
+
Source: `playground/components/rating/mask-star-2-with-green-500-color.html`
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="rating">
|
|
74
|
+
<input type="radio" name="rating-4" class="mask mask-star-2 bg-green-500" aria-label="1 star" />
|
|
75
|
+
<input type="radio" name="rating-4" class="mask mask-star-2 bg-green-500" aria-label="2 star" checked="checked" />
|
|
76
|
+
<input type="radio" name="rating-4" class="mask mask-star-2 bg-green-500" aria-label="3 star" />
|
|
77
|
+
<input type="radio" name="rating-4" class="mask mask-star-2 bg-green-500" aria-label="4 star" />
|
|
78
|
+
<input type="radio" name="rating-4" class="mask mask-star-2 bg-green-500" aria-label="5 star" />
|
|
79
|
+
</div>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Mask star 2 with warning color
|
|
83
|
+
|
|
84
|
+
Source: `playground/components/rating/mask-star-2-with-warning-color.html`
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<div class="rating">
|
|
88
|
+
<input type="radio" name="rating-2" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
89
|
+
<input type="radio" name="rating-2" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
90
|
+
<input type="radio" name="rating-2" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
91
|
+
<input type="radio" name="rating-2" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
92
|
+
<input type="radio" name="rating-2" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
93
|
+
</div>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Read only rating
|
|
97
|
+
|
|
98
|
+
Source: `playground/components/rating/read-only-rating.html`
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<div class="rating">
|
|
102
|
+
<div class="mask mask-star" aria-label="1 star"></div>
|
|
103
|
+
<div class="mask mask-star" aria-label="2 star"></div>
|
|
104
|
+
<div class="mask mask-star" aria-label="3 star" aria-current="true"></div>
|
|
105
|
+
<div class="mask mask-star" aria-label="4 star"></div>
|
|
106
|
+
<div class="mask mask-star" aria-label="5 star"></div>
|
|
107
|
+
</div>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Sizes
|
|
111
|
+
|
|
112
|
+
Source: `playground/components/rating/sizes.html`
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<!-- xs -->
|
|
116
|
+
<div class="rating rating-xs">
|
|
117
|
+
<input type="radio" name="rating-5" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
118
|
+
<input type="radio" name="rating-5" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
119
|
+
<input type="radio" name="rating-5" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
120
|
+
<input type="radio" name="rating-5" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
121
|
+
<input type="radio" name="rating-5" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
122
|
+
</div>
|
|
123
|
+
<!-- sm -->
|
|
124
|
+
<div class="rating rating-sm">
|
|
125
|
+
<input type="radio" name="rating-6" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
126
|
+
<input type="radio" name="rating-6" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
127
|
+
<input type="radio" name="rating-6" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
128
|
+
<input type="radio" name="rating-6" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
129
|
+
<input type="radio" name="rating-6" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
130
|
+
</div>
|
|
131
|
+
<!-- md -->
|
|
132
|
+
<div class="rating rating-md">
|
|
133
|
+
<input type="radio" name="rating-7" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
134
|
+
<input type="radio" name="rating-7" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
135
|
+
<input type="radio" name="rating-7" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
136
|
+
<input type="radio" name="rating-7" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
137
|
+
<input type="radio" name="rating-7" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
138
|
+
</div>
|
|
139
|
+
<!-- lg -->
|
|
140
|
+
<div class="rating rating-lg">
|
|
141
|
+
<input type="radio" name="rating-8" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
142
|
+
<input type="radio" name="rating-8" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
143
|
+
<input type="radio" name="rating-8" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
144
|
+
<input type="radio" name="rating-8" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
145
|
+
<input type="radio" name="rating-8" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
146
|
+
</div>
|
|
147
|
+
<!-- xl -->
|
|
148
|
+
<div class="rating rating-xl">
|
|
149
|
+
<input type="radio" name="rating-9" class="mask mask-star-2 bg-orange-400" aria-label="1 star" />
|
|
150
|
+
<input type="radio" name="rating-9" class="mask mask-star-2 bg-orange-400" aria-label="2 star" checked="checked" />
|
|
151
|
+
<input type="radio" name="rating-9" class="mask mask-star-2 bg-orange-400" aria-label="3 star" />
|
|
152
|
+
<input type="radio" name="rating-9" class="mask mask-star-2 bg-orange-400" aria-label="4 star" />
|
|
153
|
+
<input type="radio" name="rating-9" class="mask mask-star-2 bg-orange-400" aria-label="5 star" />
|
|
154
|
+
</div>
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### With rating hidden
|
|
158
|
+
|
|
159
|
+
Source: `playground/components/rating/with-rating-hidden.html`
|
|
160
|
+
|
|
161
|
+
```html
|
|
162
|
+
<div class="rating rating-lg">
|
|
163
|
+
<input type="radio" name="rating-10" class="rating-hidden" aria-label="clear" />
|
|
164
|
+
<input type="radio" name="rating-10" class="mask mask-star-2" aria-label="1 star" />
|
|
165
|
+
<input type="radio" name="rating-10" class="mask mask-star-2" aria-label="2 star" checked="checked" />
|
|
166
|
+
<input type="radio" name="rating-10" class="mask mask-star-2" aria-label="3 star" />
|
|
167
|
+
<input type="radio" name="rating-10" class="mask mask-star-2" aria-label="4 star" />
|
|
168
|
+
<input type="radio" name="rating-10" class="mask mask-star-2" aria-label="5 star" />
|
|
169
|
+
</div>
|
|
170
|
+
```
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# select
|
|
2
|
+
|
|
3
|
+
_styled `<select>`_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Themed `<select>` dropdown.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Single-choice form fields with many options.
|
|
12
|
+
- For visible single-choice (few options), use **radio**.
|
|
13
|
+
|
|
14
|
+
## Core classes
|
|
15
|
+
|
|
16
|
+
`select`; color `select-primary|secondary|accent|info|success|warning|error|neutral`; style `select-ghost`; size `select-xs|sm|md|lg|xl`.
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
### Select
|
|
21
|
+
|
|
22
|
+
Source: `playground/components/select/select.html`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<select class="select">
|
|
26
|
+
<option disabled selected>Pick a color</option>
|
|
27
|
+
<option>Crimson</option>
|
|
28
|
+
<option>Amber</option>
|
|
29
|
+
<option>Velvet</option>
|
|
30
|
+
</select>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Accent color
|
|
34
|
+
|
|
35
|
+
Source: `playground/components/select/accent-color.html`
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<select class="select select-accent">
|
|
39
|
+
<option selected disabled>Color scheme</option>
|
|
40
|
+
<option>Light mode</option>
|
|
41
|
+
<option>Dark mode</option>
|
|
42
|
+
<option>System</option>
|
|
43
|
+
</select>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Disabled
|
|
47
|
+
|
|
48
|
+
Source: `playground/components/select/disabled.html`
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<select class="select" disabled>
|
|
52
|
+
<option>You can't touch this</option>
|
|
53
|
+
</select>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Error color
|
|
57
|
+
|
|
58
|
+
Source: `playground/components/select/error-color.html`
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<select class="select select-error">
|
|
62
|
+
<option disabled selected>Pick an AI Model</option>
|
|
63
|
+
<option>GPT-4</option>
|
|
64
|
+
<option>Claude</option>
|
|
65
|
+
<option>Llama</option>
|
|
66
|
+
</select>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Ghost no background
|
|
70
|
+
|
|
71
|
+
Source: `playground/components/select/ghost-no-background.html`
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<select class="select select-ghost">
|
|
75
|
+
<option disabled selected>Pick a font</option>
|
|
76
|
+
<option>Inter</option>
|
|
77
|
+
<option>Poppins</option>
|
|
78
|
+
<option>Raleway</option>
|
|
79
|
+
</select>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Info color
|
|
83
|
+
|
|
84
|
+
Source: `playground/components/select/info-color.html`
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<select class="select select-info">
|
|
88
|
+
<option disabled selected>Pick a Framework</option>
|
|
89
|
+
<option>React</option>
|
|
90
|
+
<option>Vue</option>
|
|
91
|
+
<option>Angular</option>
|
|
92
|
+
</select>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Neutral color
|
|
96
|
+
|
|
97
|
+
Source: `playground/components/select/neutral-color.html`
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<select class="select select-neutral">
|
|
101
|
+
<option disabled selected>Server location</option>
|
|
102
|
+
<option>North America</option>
|
|
103
|
+
<option>EU west</option>
|
|
104
|
+
<option>South East Asia</option>
|
|
105
|
+
</select>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Primary color
|
|
109
|
+
|
|
110
|
+
Source: `playground/components/select/primary-color.html`
|
|
111
|
+
|
|
112
|
+
```html
|
|
113
|
+
<select class="select select-primary">
|
|
114
|
+
<option disabled selected>Pick a text editor</option>
|
|
115
|
+
<option>VScode</option>
|
|
116
|
+
<option>VScode fork</option>
|
|
117
|
+
<option>Another VScode fork</option>
|
|
118
|
+
</select>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Secondary color
|
|
122
|
+
|
|
123
|
+
Source: `playground/components/select/secondary-color.html`
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<select class="select select-secondary">
|
|
127
|
+
<option disabled selected>Pick a language</option>
|
|
128
|
+
<option>Zig</option>
|
|
129
|
+
<option>Go</option>
|
|
130
|
+
<option>Rust</option>
|
|
131
|
+
</select>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Sizes
|
|
135
|
+
|
|
136
|
+
Source: `playground/components/select/sizes.html`
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<select class="select select-xs">
|
|
140
|
+
<option disabled selected>Xsmall</option>
|
|
141
|
+
<option>Xsmall Apple</option>
|
|
142
|
+
<option>Xsmall Orange</option>
|
|
143
|
+
<option>Xsmall Tomato</option>
|
|
144
|
+
</select>
|
|
145
|
+
<select class="select select-sm">
|
|
146
|
+
<option disabled selected>Small</option>
|
|
147
|
+
<option>Small Apple</option>
|
|
148
|
+
<option>Small Orange</option>
|
|
149
|
+
<option>Small Tomato</option>
|
|
150
|
+
</select>
|
|
151
|
+
<select class="select select-md">
|
|
152
|
+
<option disabled selected>Medium</option>
|
|
153
|
+
<option>Medium Apple</option>
|
|
154
|
+
<option>Medium Orange</option>
|
|
155
|
+
<option>Medium Tomato</option>
|
|
156
|
+
</select>
|
|
157
|
+
<select class="select select-lg">
|
|
158
|
+
<option disabled selected>Large</option>
|
|
159
|
+
<option>Large Apple</option>
|
|
160
|
+
<option>Large Orange</option>
|
|
161
|
+
<option>Large Tomato</option>
|
|
162
|
+
</select>
|
|
163
|
+
<select class="select select-xl">
|
|
164
|
+
<option disabled selected>Xlarge</option>
|
|
165
|
+
<option>Xlarge Apple</option>
|
|
166
|
+
<option>Xlarge Orange</option>
|
|
167
|
+
<option>Xlarge Tomato</option>
|
|
168
|
+
</select>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Success color
|
|
172
|
+
|
|
173
|
+
Source: `playground/components/select/success-color.html`
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<select class="select select-success">
|
|
177
|
+
<option disabled selected>Pick a Runtime</option>
|
|
178
|
+
<option>npm</option>
|
|
179
|
+
<option>Bun</option>
|
|
180
|
+
<option>yarn</option>
|
|
181
|
+
</select>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Using os native style for the options dropdown
|
|
185
|
+
|
|
186
|
+
Source: `playground/components/select/using-os-native-style-for-the-options-dropdown.html`
|
|
187
|
+
|
|
188
|
+
```html
|
|
189
|
+
<select class="select appearance-none">
|
|
190
|
+
<option disabled selected>Pick a color</option>
|
|
191
|
+
<option>Crimson</option>
|
|
192
|
+
<option>Amber</option>
|
|
193
|
+
<option>Velvet</option>
|
|
194
|
+
</select>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Warning color
|
|
198
|
+
|
|
199
|
+
Source: `playground/components/select/warning-color.html`
|
|
200
|
+
|
|
201
|
+
```html
|
|
202
|
+
<select class="select select-warning">
|
|
203
|
+
<option disabled selected>Pick an OS</option>
|
|
204
|
+
<option>Windows</option>
|
|
205
|
+
<option>MacOS</option>
|
|
206
|
+
<option>Linux</option>
|
|
207
|
+
</select>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### With fieldset and labels
|
|
211
|
+
|
|
212
|
+
Source: `playground/components/select/with-fieldset-and-labels.html`
|
|
213
|
+
|
|
214
|
+
```html
|
|
215
|
+
<fieldset class="fieldset">
|
|
216
|
+
<legend class="fieldset-legend">Browsers</legend>
|
|
217
|
+
<select class="select">
|
|
218
|
+
<option disabled selected>Pick a browser</option>
|
|
219
|
+
<option>Chrome</option>
|
|
220
|
+
<option>FireFox</option>
|
|
221
|
+
<option>Safari</option>
|
|
222
|
+
</select>
|
|
223
|
+
<span class="label">Optional</span>
|
|
224
|
+
</fieldset>
|
|
225
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# skeleton
|
|
2
|
+
|
|
3
|
+
_shimmering placeholder for loading content_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Animated content-shaped placeholder for loading states.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Loading states where you want the layout to pre-fill (lists, cards).
|
|
12
|
+
- For abstract spinners, use **loading**.
|
|
13
|
+
|
|
14
|
+
## Core classes
|
|
15
|
+
|
|
16
|
+
`skeleton`.
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
### Skeleton
|
|
21
|
+
|
|
22
|
+
Source: `playground/components/skeleton/skeleton.html`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div class="skeleton h-32 w-32"></div>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Skeleton — circle with content
|
|
29
|
+
|
|
30
|
+
Source: `playground/components/skeleton/skeleton---circle-with-content.html`
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<div class="flex w-52 flex-col gap-4">
|
|
34
|
+
<div class="flex items-center gap-4">
|
|
35
|
+
<div class="skeleton h-16 w-16 shrink-0 rounded-full"></div>
|
|
36
|
+
<div class="flex flex-col gap-4">
|
|
37
|
+
<div class="skeleton h-4 w-20"></div>
|
|
38
|
+
<div class="skeleton h-4 w-28"></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="skeleton h-32 w-full"></div>
|
|
42
|
+
</div>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Skeleton — rectangle with content
|
|
46
|
+
|
|
47
|
+
Source: `playground/components/skeleton/skeleton---rectangle-with-content.html`
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<div class="flex w-52 flex-col gap-4">
|
|
51
|
+
<div class="skeleton h-32 w-full"></div>
|
|
52
|
+
<div class="skeleton h-4 w-28"></div>
|
|
53
|
+
<div class="skeleton h-4 w-full"></div>
|
|
54
|
+
<div class="skeleton h-4 w-full"></div>
|
|
55
|
+
</div>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Skeleton text — animated gradient text
|
|
59
|
+
|
|
60
|
+
Source: `playground/components/skeleton/skeleton-text---animated-gradient-text.html`
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<span class="skeleton skeleton-text">AI is thinking harder...</span>
|
|
64
|
+
```
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# stack
|
|
2
|
+
|
|
3
|
+
_stack children (Z-axis)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Stacks children on top of each other (Z-axis), with optional offset/spread for card-stack effects.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Stacked-card visual effects, layered images.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`stack`; modifiers `stack-top|start|end` and shadow modifiers.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### 3 divs in a stack
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/stack/3-divs-in-a-stack.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="stack h-20 w-32">
|
|
25
|
+
<div class="bg-primary text-primary-content grid place-content-center rounded-box">1</div>
|
|
26
|
+
<div class="bg-accent text-accent-content grid place-content-center rounded-box">2</div>
|
|
27
|
+
<div class="bg-secondary text-secondary-content grid place-content-center rounded-box">
|
|
28
|
+
3
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Stacked cards end direction
|
|
34
|
+
|
|
35
|
+
Source: `playground/components/stack/stacked-cards-end-direction.html`
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<div class="stack stack-end size-28">
|
|
39
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
40
|
+
<div class="card-body">A</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
43
|
+
<div class="card-body">B</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
46
|
+
<div class="card-body">C</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Stacked cards start direction
|
|
52
|
+
|
|
53
|
+
Source: `playground/components/stack/stacked-cards-start-direction.html`
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<div class="stack stack-start size-28">
|
|
57
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
58
|
+
<div class="card-body">A</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
61
|
+
<div class="card-body">B</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
64
|
+
<div class="card-body">C</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Stacked cards top direction
|
|
70
|
+
|
|
71
|
+
Source: `playground/components/stack/stacked-cards-top-direction.html`
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<div class="stack stack-top size-28">
|
|
75
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
76
|
+
<div class="card-body">A</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
79
|
+
<div class="card-body">B</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="border-base-content card bg-base-100 border text-center">
|
|
82
|
+
<div class="card-body">C</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Stacked cards with shadow
|
|
88
|
+
|
|
89
|
+
Source: `playground/components/stack/stacked-cards-with-shadow.html`
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<div class="stack">
|
|
93
|
+
<div class="card bg-base-200 text-center shadow-md">
|
|
94
|
+
<div class="card-body">A</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="card bg-base-200 text-center shadow">
|
|
97
|
+
<div class="card-body">B</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="card bg-base-200 text-center shadow-sm">
|
|
100
|
+
<div class="card-body">C</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Stacked cards
|
|
106
|
+
|
|
107
|
+
Source: `playground/components/stack/stacked-cards.html`
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
<div class="stack">
|
|
111
|
+
<div class="card shadow-md bg-base-100">
|
|
112
|
+
<div class="card-body">
|
|
113
|
+
<h2 class="card-title">Notification 1</h2>
|
|
114
|
+
<p>You have 3 unread messages. Tap here to see.</p>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="card shadow-md bg-base-100">
|
|
118
|
+
<div class="card-body">
|
|
119
|
+
<h2 class="card-title">Notification 2</h2>
|
|
120
|
+
<p>You have 3 unread messages. Tap here to see.</p>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="card shadow-md bg-base-100">
|
|
124
|
+
<div class="card-body">
|
|
125
|
+
<h2 class="card-title">Notification 3</h2>
|
|
126
|
+
<p>You have 3 unread messages. Tap here to see.</p>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Stacked images
|
|
133
|
+
|
|
134
|
+
Source: `playground/components/stack/stacked-images.html`
|
|
135
|
+
|
|
136
|
+
```html
|
|
137
|
+
<div class="stack w-48">
|
|
138
|
+
<img src="https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp" class="rounded-box" />
|
|
139
|
+
<img src="https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp" class="rounded-box" />
|
|
140
|
+
<img src="https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp" class="rounded-box" />
|
|
141
|
+
</div>
|
|
142
|
+
```
|