wispcss 0.0.1 → 1.0.4
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/CHANGELOG.md +74 -0
- package/LICENSE +49 -0
- package/README.md +386 -0
- package/README.zh-CN.md +385 -0
- package/dist/wispcss.css +45823 -0
- package/dist/wispcss.min.css +2 -0
- package/examples/add-h2-ids.cjs +284 -0
- package/examples/demo-actions.html +188 -0
- package/examples/demo-alarm.html +219 -0
- package/examples/demo-animation.html +399 -0
- package/examples/demo-aura.html +195 -0
- package/examples/demo-avatar.html +279 -0
- package/examples/demo-background.html +284 -0
- package/examples/demo-badge.html +398 -0
- package/examples/demo-blob.html +307 -0
- package/examples/demo-blockquote.html +190 -0
- package/examples/demo-bookmark.html +243 -0
- package/examples/demo-breadcrumb.html +179 -0
- package/examples/demo-btns.html +349 -0
- package/examples/demo-bubble.html +215 -0
- package/examples/demo-buoy.html +187 -0
- package/examples/demo-button-icon.html +231 -0
- package/examples/demo-button-link.html +177 -0
- package/examples/demo-button.html +361 -0
- package/examples/demo-callout.html +601 -0
- package/examples/demo-check.html +323 -0
- package/examples/demo-code.html +212 -0
- package/examples/demo-color.html +545 -0
- package/examples/demo-comment.html +510 -0
- package/examples/demo-deform.html +229 -0
- package/examples/demo-dialog.html +932 -0
- package/examples/demo-divider.html +208 -0
- package/examples/demo-drawer.html +623 -0
- package/examples/demo-dropmenu.html +382 -0
- package/examples/demo-droppanel.html +354 -0
- package/examples/demo-ellipsis.html +145 -0
- package/examples/demo-emphasis.html +146 -0
- package/examples/demo-empty.html +112 -0
- package/examples/demo-entry.html +219 -0
- package/examples/demo-field.html +359 -0
- package/examples/demo-file.html +206 -0
- package/examples/demo-flag.html +225 -0
- package/examples/demo-form.html +201 -0
- package/examples/demo-gilt.html +170 -0
- package/examples/demo-heading.html +93 -0
- package/examples/demo-icon.html +164 -0
- package/examples/demo-input.html +300 -0
- package/examples/demo-kbd.html +202 -0
- package/examples/demo-lamp.html +248 -0
- package/examples/demo-link.html +142 -0
- package/examples/demo-normalize.html +366 -0
- package/examples/demo-otp.html +277 -0
- package/examples/demo-pagination.html +562 -0
- package/examples/demo-position.html +205 -0
- package/examples/demo-poster.html +384 -0
- package/examples/demo-pre - /345/211/257/346/234/254.html" +169 -0
- package/examples/demo-pre.html +205 -0
- package/examples/demo-preset.html +344 -0
- package/examples/demo-progress.html +303 -0
- package/examples/demo-range.html +211 -0
- package/examples/demo-rank.html +270 -0
- package/examples/demo-rating.html +251 -0
- package/examples/demo-reset.html +105 -0
- package/examples/demo-segment.html +436 -0
- package/examples/demo-select.html +332 -0
- package/examples/demo-shadow.html +152 -0
- package/examples/demo-shell.html +377 -0
- package/examples/demo-shimmer.html +217 -0
- package/examples/demo-size.html +149 -0
- package/examples/demo-skeleton.html +143 -0
- package/examples/demo-sketch.html +213 -0
- package/examples/demo-spacer.html +150 -0
- package/examples/demo-spinner.html +220 -0
- package/examples/demo-stats.html +165 -0
- package/examples/demo-status.html +212 -0
- package/examples/demo-step.html +240 -0
- package/examples/demo-styles.css +14 -0
- package/examples/demo-summary.html +128 -0
- package/examples/demo-swatch.html +253 -0
- package/examples/demo-switch.html +223 -0
- package/examples/demo-table.html +339 -0
- package/examples/demo-tag.html +318 -0
- package/examples/demo-text.html +91 -0
- package/examples/demo-theme.html +167 -0
- package/examples/demo-tools.html +152 -0
- package/examples/demo-transition.html +169 -0
- package/examples/demo-tree.html +929 -0
- package/examples/demo-underline.html +76 -0
- package/examples/demo-utils.js +131 -0
- package/examples/demo-validate.html +120 -0
- package/examples/index.html +149 -0
- package/package.json +72 -8
- package/script-gen-color.js +148 -0
- package/script-mini.js +78 -0
- package/script-prefix.js +398 -0
- package/skill.md +575 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<link id="wispcss-css" rel="stylesheet" href="../dist/wispcss.css">
|
|
8
|
+
<link rel="stylesheet" href="./demo-styles.css">
|
|
9
|
+
<title>Field - WispCSS Demo</title>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Field Component</h1>
|
|
14
|
+
<p>Form field container that accommodates all form field types. Supports vertical/horizontal layout, full-width, borderless mode, dynamic sizing, and slots for label, content, control, note, and help.</p>
|
|
15
|
+
|
|
16
|
+
<h2>Notes</h2>
|
|
17
|
+
<div class="section">
|
|
18
|
+
<ul>
|
|
19
|
+
<li>Base structure: <code>.field > [data-role="label"] + [data-role="content"] > [data-role="control"] + [data-role="note"] + [data-role="help"]</code>.</li>
|
|
20
|
+
<li>Layouts: <code>.field</code> (vertical), <code>.field-h</code> (horizontal), <code>.field-v</code> (vertical alias).</li>
|
|
21
|
+
<li>Width modes: <code>.field-full</code> (100%), <code>.field-scale</code> (1x input width), <code>.field-scale-*</code> (Nx input width), <code>.field-ratio</code> (1x input height), <code>.field-ratio-*</code> (Nx input height).</li>
|
|
22
|
+
<li>Use <code>.field-borderless</code> to remove input borders for embedding in custom containers. Compatible with <code>.shell</code>.</li>
|
|
23
|
+
</ul>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<h2 id="basic">Basic usage</h2>
|
|
27
|
+
<div class="section">
|
|
28
|
+
<div>
|
|
29
|
+
<h3>Default (vertical)</h3>
|
|
30
|
+
<section class="field">
|
|
31
|
+
<div data-role="label">Name:</div>
|
|
32
|
+
<div data-role="content">
|
|
33
|
+
<div data-role="control">
|
|
34
|
+
<input type="text" data-role="input">
|
|
35
|
+
</div>
|
|
36
|
+
<div data-role="note">note</div>
|
|
37
|
+
</div>
|
|
38
|
+
<span data-role="help">Forgot?</span>
|
|
39
|
+
</section>
|
|
40
|
+
</div>
|
|
41
|
+
<div>
|
|
42
|
+
<h3>With help text</h3>
|
|
43
|
+
<section class="field">
|
|
44
|
+
<div data-role="label">Password:</div>
|
|
45
|
+
<div data-role="content">
|
|
46
|
+
<div data-role="control">
|
|
47
|
+
<input type="password" data-role="input">
|
|
48
|
+
</div>
|
|
49
|
+
<div data-role="note">At least 8 characters, letters and numbers</div>
|
|
50
|
+
</div>
|
|
51
|
+
<span data-role="help">Forgot?</span>
|
|
52
|
+
</section>
|
|
53
|
+
</div>
|
|
54
|
+
<div>
|
|
55
|
+
<h3>With note</h3>
|
|
56
|
+
<section class="field">
|
|
57
|
+
<div data-role="label">Email:</div>
|
|
58
|
+
<div data-role="content">
|
|
59
|
+
<div data-role="control">
|
|
60
|
+
<input type="email" data-role="input" placeholder="your@email.com">
|
|
61
|
+
</div>
|
|
62
|
+
<div data-role="note">We will not share your email</div>
|
|
63
|
+
</div>
|
|
64
|
+
</section>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<h2 id="layout">Layouts</h2>
|
|
69
|
+
<div class="section">
|
|
70
|
+
<div>
|
|
71
|
+
<h3>Vertical (.field / .field-v)</h3>
|
|
72
|
+
<section class="field">
|
|
73
|
+
<div data-role="label">Username:</div>
|
|
74
|
+
<div data-role="content">
|
|
75
|
+
<div data-role="control">
|
|
76
|
+
<input type="text" data-role="input" placeholder="Enter username">
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</section>
|
|
80
|
+
</div>
|
|
81
|
+
<div>
|
|
82
|
+
<h3>Horizontal (.field-h)</h3>
|
|
83
|
+
<section class="field-h">
|
|
84
|
+
<div data-role="label">Username:</div>
|
|
85
|
+
<div data-role="content">
|
|
86
|
+
<div data-role="control">
|
|
87
|
+
<input type="text" data-role="input" placeholder="Enter username">
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</section>
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
<h3>Horizontal + full width (.field-h .field-full)</h3>
|
|
94
|
+
<section class="field-h field-full">
|
|
95
|
+
<div data-role="label">Username:</div>
|
|
96
|
+
<div data-role="content">
|
|
97
|
+
<div data-role="control">
|
|
98
|
+
<input type="text" data-role="input" placeholder="Enter username">
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</section>
|
|
102
|
+
</div>
|
|
103
|
+
<div>
|
|
104
|
+
<h3>Horizontal + full + help</h3>
|
|
105
|
+
<section class="field-h field-full">
|
|
106
|
+
<div data-role="label">Password:</div>
|
|
107
|
+
<div data-role="content">
|
|
108
|
+
<div data-role="control">
|
|
109
|
+
<input type="password" data-role="input" placeholder="Enter password">
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<span data-role="help">Forgot?</span>
|
|
113
|
+
</section>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<h2 id="dynamic-width">Dynamic width</h2>
|
|
118
|
+
<div class="section">
|
|
119
|
+
<div>
|
|
120
|
+
<h3>.field-scale (1x input width)</h3>
|
|
121
|
+
<section class="field-h field-scale">
|
|
122
|
+
<div data-role="label">Name:</div>
|
|
123
|
+
<div data-role="content">
|
|
124
|
+
<div data-role="control">
|
|
125
|
+
<input type="text" data-role="input" placeholder="Enter name">
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</section>
|
|
129
|
+
</div>
|
|
130
|
+
<div>
|
|
131
|
+
<h3>.field-scale-2 (2x input width)</h3>
|
|
132
|
+
<section class="field-h field-scale-2">
|
|
133
|
+
<div data-role="label">Address:</div>
|
|
134
|
+
<div data-role="content">
|
|
135
|
+
<div data-role="control">
|
|
136
|
+
<input type="text" data-role="input" placeholder="Enter address">
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</section>
|
|
140
|
+
</div>
|
|
141
|
+
<div>
|
|
142
|
+
<h3>.field-scale-3 (3x input width)</h3>
|
|
143
|
+
<section class="field-h field-scale-3">
|
|
144
|
+
<div data-role="label">Description:</div>
|
|
145
|
+
<div data-role="content">
|
|
146
|
+
<div data-role="control">
|
|
147
|
+
<input type="text" data-role="input" placeholder="Enter description">
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</section>
|
|
151
|
+
</div>
|
|
152
|
+
<div>
|
|
153
|
+
<h3>.field-ratio (1x input height)</h3>
|
|
154
|
+
<section class="field-h field-ratio">
|
|
155
|
+
<div data-role="content">
|
|
156
|
+
<div data-role="control">
|
|
157
|
+
<input type="text" data-role="input" value="1">
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</section>
|
|
161
|
+
</div>
|
|
162
|
+
<div>
|
|
163
|
+
<h3>.field-ratio-3 (3x input height)</h3>
|
|
164
|
+
<section class="field-h field-ratio-3">
|
|
165
|
+
<div data-role="label">Code:</div>
|
|
166
|
+
<div data-role="content">
|
|
167
|
+
<div data-role="control">
|
|
168
|
+
<input type="text" data-role="input" placeholder="Verification code">
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</section>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<h2 id="borderless">Borderless mode</h2>
|
|
176
|
+
<div class="section">
|
|
177
|
+
<div>
|
|
178
|
+
<h3>Vertical borderless</h3>
|
|
179
|
+
<div class="border rounded-md w-70">
|
|
180
|
+
<section class="field field-borderless">
|
|
181
|
+
<div data-role="label">Name:</div>
|
|
182
|
+
<div data-role="content">
|
|
183
|
+
<div data-role="control">
|
|
184
|
+
<input type="text" data-role="input" placeholder="Borderless input">
|
|
185
|
+
</div>
|
|
186
|
+
<div data-role="note">Borderless inside custom container</div>
|
|
187
|
+
</div>
|
|
188
|
+
</section>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
<div>
|
|
192
|
+
<h3>Horizontal borderless + full</h3>
|
|
193
|
+
<div class="border rounded-md">
|
|
194
|
+
<section class="field-h field-full field-borderless">
|
|
195
|
+
<div data-role="label">Name:</div>
|
|
196
|
+
<div data-role="content">
|
|
197
|
+
<div data-role="control">
|
|
198
|
+
<input type="text" data-role="input" placeholder="Borderless horizontal">
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</section>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
<div>
|
|
205
|
+
<h3>Borderless + shell</h3>
|
|
206
|
+
<div class="border rounded-md w-full">
|
|
207
|
+
<section class="field-h field-full field-borderless">
|
|
208
|
+
<div data-role="label">Search:</div>
|
|
209
|
+
<div data-role="content">
|
|
210
|
+
<div data-role="control">
|
|
211
|
+
<section class="shell">
|
|
212
|
+
<input placeholder="Search...">
|
|
213
|
+
<kbd>CTRL+K</kbd>
|
|
214
|
+
</section>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</section>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<h2 id="with-shell">With shell (room layout)</h2>
|
|
223
|
+
<div class="section">
|
|
224
|
+
<div>
|
|
225
|
+
<h3>Vertical field</h3>
|
|
226
|
+
<section class="field field-full">
|
|
227
|
+
<div data-role="label">Room Type</div>
|
|
228
|
+
<div data-role="content">
|
|
229
|
+
<div data-role="control" class="gap-2">
|
|
230
|
+
<div class="flex-fluid">
|
|
231
|
+
<section class="shell">
|
|
232
|
+
<input placeholder="Enter..."> Rooms
|
|
233
|
+
</section>
|
|
234
|
+
</div>
|
|
235
|
+
<div class="flex-fluid">
|
|
236
|
+
<section class="shell">
|
|
237
|
+
<input placeholder="Enter..."> Halls
|
|
238
|
+
</section>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="flex-fluid">
|
|
241
|
+
<section class="shell">
|
|
242
|
+
<input placeholder="Enter..."> Baths
|
|
243
|
+
</section>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
<div data-role="note">Form note</div>
|
|
247
|
+
</div>
|
|
248
|
+
<span data-role="help"><span class="text-error">Required</span></span>
|
|
249
|
+
</section>
|
|
250
|
+
</div>
|
|
251
|
+
<div>
|
|
252
|
+
<h3>Borderless room layout</h3>
|
|
253
|
+
<div class="border rounded-xl inline-flex">
|
|
254
|
+
<section class="field field-borderless">
|
|
255
|
+
<div data-role="label">Room Type</div>
|
|
256
|
+
<div data-role="content">
|
|
257
|
+
<div data-role="control" class="gap-2">
|
|
258
|
+
<div class="flex-fluid">
|
|
259
|
+
<section class="shell">
|
|
260
|
+
<input placeholder="Enter..."> Rooms
|
|
261
|
+
</section>
|
|
262
|
+
</div>
|
|
263
|
+
<div class="flex-fluid">
|
|
264
|
+
<section class="shell">
|
|
265
|
+
<input placeholder="Enter..."> Halls
|
|
266
|
+
</section>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="flex-fluid">
|
|
269
|
+
<section class="shell">
|
|
270
|
+
<input placeholder="Enter..."> Baths
|
|
271
|
+
</section>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
<div data-role="note">Form note</div>
|
|
275
|
+
</div>
|
|
276
|
+
<span data-role="help"><span class="text-error">Required</span></span>
|
|
277
|
+
</section>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<h2 id="use-cases">Use cases</h2>
|
|
283
|
+
<div class="section">
|
|
284
|
+
<div>
|
|
285
|
+
<h3>Login form (vertical)</h3>
|
|
286
|
+
<section class="field field-full">
|
|
287
|
+
<div data-role="label">Email:</div>
|
|
288
|
+
<div data-role="content">
|
|
289
|
+
<div data-role="control">
|
|
290
|
+
<input type="email" data-role="input" placeholder="your@email.com">
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</section>
|
|
294
|
+
<section class="field field-full">
|
|
295
|
+
<div data-role="label">Password:</div>
|
|
296
|
+
<div data-role="content">
|
|
297
|
+
<div data-role="control">
|
|
298
|
+
<input type="password" data-role="input" placeholder="Enter password">
|
|
299
|
+
</div>
|
|
300
|
+
<div data-role="note">At least 8 characters</div>
|
|
301
|
+
</div>
|
|
302
|
+
<span data-role="help">Forgot?</span>
|
|
303
|
+
</section>
|
|
304
|
+
</div>
|
|
305
|
+
<div>
|
|
306
|
+
<h3>Login form (horizontal)</h3>
|
|
307
|
+
<section class="field-h field-full">
|
|
308
|
+
<div data-role="label">Email:</div>
|
|
309
|
+
<div data-role="content">
|
|
310
|
+
<div data-role="control">
|
|
311
|
+
<input type="email" data-role="input" placeholder="your@email.com">
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
</section>
|
|
315
|
+
<section class="field-h field-full">
|
|
316
|
+
<div data-role="label">Password:</div>
|
|
317
|
+
<div data-role="content">
|
|
318
|
+
<div data-role="control">
|
|
319
|
+
<input type="password" data-role="input" placeholder="Enter password">
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
<span data-role="help">Forgot?</span>
|
|
323
|
+
</section>
|
|
324
|
+
</div>
|
|
325
|
+
<div>
|
|
326
|
+
<h3>Registration form</h3>
|
|
327
|
+
<section class="field field-full">
|
|
328
|
+
<div data-role="label">Username:</div>
|
|
329
|
+
<div data-role="content">
|
|
330
|
+
<div data-role="control">
|
|
331
|
+
<input type="text" data-role="input" placeholder="Enter username">
|
|
332
|
+
</div>
|
|
333
|
+
<div data-role="note">3-20 characters, starts with a letter</div>
|
|
334
|
+
</div>
|
|
335
|
+
</section>
|
|
336
|
+
<section class="field field-full">
|
|
337
|
+
<div data-role="label">Email:</div>
|
|
338
|
+
<div data-role="content">
|
|
339
|
+
<div data-role="control">
|
|
340
|
+
<input type="email" data-role="input" placeholder="your@email.com">
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</section>
|
|
344
|
+
<section class="field field-full">
|
|
345
|
+
<div data-role="label">Password:</div>
|
|
346
|
+
<div data-role="content">
|
|
347
|
+
<div data-role="control">
|
|
348
|
+
<input type="password" data-role="input" placeholder="Enter password">
|
|
349
|
+
</div>
|
|
350
|
+
<div data-role="note">At least 8 characters, letters and numbers</div>
|
|
351
|
+
</div>
|
|
352
|
+
</section>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
<script src="./demo-utils.js"></script>
|
|
357
|
+
</body>
|
|
358
|
+
|
|
359
|
+
</html>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<link id="wispcss-css" rel="stylesheet" href="../dist/wispcss.css">
|
|
8
|
+
<link rel="stylesheet" href="./demo-styles.css">
|
|
9
|
+
<title>File - WispCSS Demo</title>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<h1>File Component</h1>
|
|
14
|
+
<p><code>input[type=file]</code> styling. Same input utility classes apply — supports variants, theme colors, sizes, radius, and width.</p>
|
|
15
|
+
|
|
16
|
+
<h2>Notes</h2>
|
|
17
|
+
<div class="section">
|
|
18
|
+
<ul>
|
|
19
|
+
<li><code>input[type=file]</code> uses the same utility classes as <code>input[type=text]</code> — all variants, colors, sizes, radius, and width utilities work identically.</li>
|
|
20
|
+
<li>Prefer combined utilities like <code>input-subtle-primary</code> over separate <code>input-subtle input-primary</code> — smaller CSS output.</li>
|
|
21
|
+
<li>Disabled state is built-in: just add <code>disabled</code> attribute.</li>
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<h2 id="variants">Variants</h2>
|
|
26
|
+
<div class="section">
|
|
27
|
+
<div>
|
|
28
|
+
<h3>Default</h3>
|
|
29
|
+
<input type="file">
|
|
30
|
+
<input type="file" disabled>
|
|
31
|
+
</div>
|
|
32
|
+
<div>
|
|
33
|
+
<h3>.input-subtle</h3>
|
|
34
|
+
<input type="file" class="input-subtle">
|
|
35
|
+
<input type="file" class="input-subtle" disabled>
|
|
36
|
+
</div>
|
|
37
|
+
<div>
|
|
38
|
+
<h3>.input-ghost</h3>
|
|
39
|
+
<input type="file" class="input-ghost">
|
|
40
|
+
<input type="file" class="input-ghost" disabled>
|
|
41
|
+
</div>
|
|
42
|
+
<div>
|
|
43
|
+
<h3>.input-underline</h3>
|
|
44
|
+
<input type="file" class="input-underline">
|
|
45
|
+
<input type="file" class="input-underline" disabled>
|
|
46
|
+
</div>
|
|
47
|
+
<div>
|
|
48
|
+
<h3>.input-outline</h3>
|
|
49
|
+
<input type="file" class="input-outline">
|
|
50
|
+
<input type="file" class="input-outline" disabled>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<h2 id="theme-colors">Theme colors</h2>
|
|
55
|
+
<div class="section">
|
|
56
|
+
<div>
|
|
57
|
+
<h3>Primary</h3>
|
|
58
|
+
<input type="file" class="input-primary">
|
|
59
|
+
<input type="file" class="input-subtle-primary">
|
|
60
|
+
<input type="file" class="input-muted-primary">
|
|
61
|
+
<input type="file" class="input-ghost-primary">
|
|
62
|
+
<input type="file" class="input-underline-primary">
|
|
63
|
+
<input type="file" class="input-outline-primary">
|
|
64
|
+
</div>
|
|
65
|
+
<div>
|
|
66
|
+
<h3>Secondary</h3>
|
|
67
|
+
<input type="file" class="input-secondary">
|
|
68
|
+
<input type="file" class="input-subtle-secondary">
|
|
69
|
+
<input type="file" class="input-muted-secondary">
|
|
70
|
+
<input type="file" class="input-ghost-secondary">
|
|
71
|
+
<input type="file" class="input-underline-secondary">
|
|
72
|
+
<input type="file" class="input-outline-secondary">
|
|
73
|
+
</div>
|
|
74
|
+
<div>
|
|
75
|
+
<h3>Tertiary</h3>
|
|
76
|
+
<input type="file" class="input-tertiary">
|
|
77
|
+
<input type="file" class="input-subtle-tertiary">
|
|
78
|
+
<input type="file" class="input-muted-tertiary">
|
|
79
|
+
<input type="file" class="input-ghost-tertiary">
|
|
80
|
+
<input type="file" class="input-underline-tertiary">
|
|
81
|
+
<input type="file" class="input-outline-tertiary">
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<h2 id="status-colors">Status colors</h2>
|
|
86
|
+
<div class="section">
|
|
87
|
+
<div>
|
|
88
|
+
<h3>Success</h3>
|
|
89
|
+
<input type="file" class="input-success">
|
|
90
|
+
<input type="file" class="input-subtle-success">
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
<h3>Error</h3>
|
|
94
|
+
<input type="file" class="input-error">
|
|
95
|
+
<input type="file" class="input-subtle-error">
|
|
96
|
+
</div>
|
|
97
|
+
<div>
|
|
98
|
+
<h3>Info</h3>
|
|
99
|
+
<input type="file" class="input-info">
|
|
100
|
+
<input type="file" class="input-subtle-info">
|
|
101
|
+
</div>
|
|
102
|
+
<div>
|
|
103
|
+
<h3>Warning</h3>
|
|
104
|
+
<input type="file" class="input-warning">
|
|
105
|
+
<input type="file" class="input-subtle-warning">
|
|
106
|
+
</div>
|
|
107
|
+
<div>
|
|
108
|
+
<h3>Caution</h3>
|
|
109
|
+
<input type="file" class="input-caution">
|
|
110
|
+
<input type="file" class="input-subtle-caution">
|
|
111
|
+
</div>
|
|
112
|
+
<div>
|
|
113
|
+
<h3>Highlight</h3>
|
|
114
|
+
<input type="file" class="input-highlight">
|
|
115
|
+
<input type="file" class="input-subtle-highlight">
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<h2 id="custom-colors">Custom colors</h2>
|
|
120
|
+
<div class="section">
|
|
121
|
+
<p>Multiple color formats are supported:</p>
|
|
122
|
+
<ul>
|
|
123
|
+
<li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
|
|
124
|
+
<li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
|
|
125
|
+
<li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
|
|
126
|
+
<li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
|
|
127
|
+
</ul>
|
|
128
|
+
<div>
|
|
129
|
+
<input type="file" class="input-teal-500">
|
|
130
|
+
<input type="file" class="input-fuchsia-800">
|
|
131
|
+
<input type="file" class="input-subtle-teal-500">
|
|
132
|
+
<input type="file" class="input-ghost-teal-500">
|
|
133
|
+
<input type="file" class="input-underline-teal-500">
|
|
134
|
+
<input type="file" class="input-outline-teal-500">
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<h2 id="sizes">Sizes</h2>
|
|
139
|
+
<div class="section">
|
|
140
|
+
<div>
|
|
141
|
+
<h3>Small (input-4 ~ input-7)</h3>
|
|
142
|
+
<input type="file" class="input-4">
|
|
143
|
+
<input type="file" class="input-5">
|
|
144
|
+
<input type="file" class="input-6">
|
|
145
|
+
<input type="file" class="input-7">
|
|
146
|
+
</div>
|
|
147
|
+
<div>
|
|
148
|
+
<h3>Medium (input-8 ~ input-10)</h3>
|
|
149
|
+
<input type="file" class="input-8">
|
|
150
|
+
<input type="file" class="input-9">
|
|
151
|
+
<input type="file" class="input-10">
|
|
152
|
+
</div>
|
|
153
|
+
<div>
|
|
154
|
+
<h3>Large (input-11 ~ input-15)</h3>
|
|
155
|
+
<input type="file" class="input-11">
|
|
156
|
+
<input type="file" class="input-12">
|
|
157
|
+
<input type="file" class="input-13">
|
|
158
|
+
<input type="file" class="input-14">
|
|
159
|
+
<input type="file" class="input-15">
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<h2 id="radius">Radius</h2>
|
|
164
|
+
<div class="section">
|
|
165
|
+
<div>
|
|
166
|
+
<h3>.input-pill</h3>
|
|
167
|
+
<input type="file" class="input-pill">
|
|
168
|
+
<input type="file" class="input-primary input-pill">
|
|
169
|
+
</div>
|
|
170
|
+
<div>
|
|
171
|
+
<h3>.input-rounded</h3>
|
|
172
|
+
<input type="file" class="input-rounded">
|
|
173
|
+
<input type="file" class="input-secondary input-rounded">
|
|
174
|
+
</div>
|
|
175
|
+
<div>
|
|
176
|
+
<h3>.input-fluid</h3>
|
|
177
|
+
<input type="file" class="input-fluid">
|
|
178
|
+
<input type="file" class="input-tertiary input-fluid">
|
|
179
|
+
</div>
|
|
180
|
+
<div>
|
|
181
|
+
<h3>.input-square</h3>
|
|
182
|
+
<input type="file" class="input-square">
|
|
183
|
+
<input type="file" class="input-primary input-square">
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<h2 id="width">Width</h2>
|
|
188
|
+
<div class="section">
|
|
189
|
+
<div>
|
|
190
|
+
<h3>.input-scale</h3>
|
|
191
|
+
<input type="file" class="input-scale">
|
|
192
|
+
</div>
|
|
193
|
+
<div>
|
|
194
|
+
<h3>.input-scale-2</h3>
|
|
195
|
+
<input type="file" class="input-scale-2">
|
|
196
|
+
</div>
|
|
197
|
+
<div>
|
|
198
|
+
<h3>.input-full</h3>
|
|
199
|
+
<input type="file" class="input-full">
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<script src="./demo-utils.js"></script>
|
|
204
|
+
</body>
|
|
205
|
+
|
|
206
|
+
</html>
|