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,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
|
+
```
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# range
|
|
2
|
+
|
|
3
|
+
_styled `<input type="range">` slider_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Themed range slider.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Numeric ranges where exact precision is less important than feel.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`range`; color `range-primary|secondary|accent|info|success|warning|error|neutral`; size `range-xs|sm|md|lg|xl`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Range
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/range/range.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<input type="range" min="0" max="100" value="40" class="range" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Accent color
|
|
28
|
+
|
|
29
|
+
Source: `playground/components/range/accent-color.html`
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<input type="range" min="0" max="100" value="40" class="range range-accent" />
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Error color
|
|
36
|
+
|
|
37
|
+
Source: `playground/components/range/error-color.html`
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<input type="range" min="0" max="100" value="40" class="range range-error" />
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Info color
|
|
44
|
+
|
|
45
|
+
Source: `playground/components/range/info-color.html`
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<input type="range" min="0" max="100" value="40" class="range range-info" />
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Neutral color
|
|
52
|
+
|
|
53
|
+
Source: `playground/components/range/neutral-color.html`
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<input type="range" min="0" max="100" value="40" class="range range-neutral" />
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Primary color
|
|
60
|
+
|
|
61
|
+
Source: `playground/components/range/primary-color.html`
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<input type="range" min="0" max="100" value="40" class="range range-primary" />
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Range with custom color and no fill
|
|
68
|
+
|
|
69
|
+
Source: `playground/components/range/range-with-custom-color-and-no-fill.html`
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<input type="range" min="0" max="100" value="40"
|
|
73
|
+
class="range text-blue-300 [--range-bg:orange] [--range-thumb:blue] [--range-fill:0]" />
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Secondary color
|
|
77
|
+
|
|
78
|
+
Source: `playground/components/range/secondary-color.html`
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<input type="range" min="0" max="100" value="40" class="range range-secondary" />
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Sizes
|
|
85
|
+
|
|
86
|
+
Source: `playground/components/range/sizes.html`
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<input type="range" min="0" max="100" value="30" class="range range-xs" />
|
|
90
|
+
<input type="range" min="0" max="100" value="40" class="range range-sm" />
|
|
91
|
+
<input type="range" min="0" max="100" value="50" class="range range-md" />
|
|
92
|
+
<input type="range" min="0" max="100" value="60" class="range range-lg" />
|
|
93
|
+
<input type="range" min="0" max="100" value="70" class="range range-xl" />
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Success color
|
|
97
|
+
|
|
98
|
+
Source: `playground/components/range/success-color.html`
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<input type="range" min="0" max="100" value="40" class="range range-success" />
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Warning color
|
|
105
|
+
|
|
106
|
+
Source: `playground/components/range/warning-color.html`
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<input type="range" min="0" max="100" value="40" class="range range-warning" />
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### With steps and measure
|
|
113
|
+
|
|
114
|
+
Source: `playground/components/range/with-steps-and-measure.html`
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<div class="w-full max-w-xs">
|
|
118
|
+
<input type="range" min="0" max="100" value="25" class="range" step="25" />
|
|
119
|
+
<div class="flex justify-between px-2.5 mt-2 text-xs">
|
|
120
|
+
<span>|</span>
|
|
121
|
+
<span>|</span>
|
|
122
|
+
<span>|</span>
|
|
123
|
+
<span>|</span>
|
|
124
|
+
<span>|</span>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="flex justify-between px-2.5 mt-2 text-xs">
|
|
127
|
+
<span>1</span>
|
|
128
|
+
<span>2</span>
|
|
129
|
+
<span>3</span>
|
|
130
|
+
<span>4</span>
|
|
131
|
+
<span>5</span>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
```
|