loseta 0.16.0 → 0.18.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.
- package/README.md +33 -8
- package/dist/commands/add.d.ts +8 -0
- package/dist/commands/add.js +60 -15
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/imports.d.ts +4 -0
- package/dist/imports.js +30 -2
- package/dist/imports.js.map +1 -1
- package/dist/install.d.ts +23 -3
- package/dist/install.js +84 -5
- package/dist/install.js.map +1 -1
- package/dist/style-switch.js +2 -1
- package/dist/style-switch.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/ui.js +4 -1
- package/dist/ui.js.map +1 -1
- package/package.json +4 -3
- package/registry/behaviors/code-block.js +106 -0
- package/registry/behaviors/combobox.js +237 -0
- package/registry/behaviors/command.js +105 -0
- package/registry/behaviors/core.js +302 -0
- package/registry/behaviors/dialog.js +97 -0
- package/registry/behaviors/listbox.js +135 -0
- package/registry/behaviors/menu.js +586 -0
- package/registry/behaviors/popover.js +127 -0
- package/registry/behaviors/select.js +196 -0
- package/registry/behaviors/tabs.js +95 -0
- package/registry/behaviors/toast.js +137 -0
- package/registry/components/badge.css +4 -7
- package/registry/components/breadcrumb.css +9 -1
- package/registry/components/calendar.css +39 -0
- package/registry/components/card.css +5 -0
- package/registry/components/code-block.css +19 -0
- package/registry/components/input-otp.css +103 -10
- package/registry/components/kbd.css +8 -0
- package/registry/components/native-select.css +6 -0
- package/registry/components/select.css +3 -0
- package/registry/components/tooltip.css +295 -144
- package/registry/examples/alert-dialog.html +21 -21
- package/registry/examples/badge.html +37 -0
- package/registry/examples/breadcrumb.html +86 -6
- package/registry/examples/button-group.html +3 -3
- package/registry/examples/calendar.html +687 -51
- package/registry/examples/card.html +190 -4
- package/registry/examples/code-block.html +10 -4
- package/registry/examples/combobox.html +2 -0
- package/registry/examples/command.html +17 -17
- package/registry/examples/context-menu.html +18 -18
- package/registry/examples/dialog.html +15 -15
- package/registry/examples/drawer.html +22 -22
- package/registry/examples/input-otp.html +116 -11
- package/registry/examples/kbd.html +90 -2
- package/registry/examples/native-select.html +83 -2
- package/registry/examples/select.html +206 -6
- package/registry/examples/sheet.html +23 -23
- package/registry/examples/sidebar.html +11 -11
- package/registry/examples/toast.html +11 -0
- package/registry/examples/tooltip.html +75 -70
- package/registry/primitives/dialog-shell.css +5 -0
- package/registry/primitives/menu.css +15 -3
- package/registry/registry.json +231 -9
- package/registry/schema.json +17 -0
- package/registry/styles/luma/badge.css +28 -0
- package/registry/styles/luma/breadcrumb.css +2 -1
- package/registry/styles/luma/calendar.css +62 -0
- package/registry/styles/luma/card.css +9 -27
- package/registry/styles/luma/input-otp.css +79 -36
- package/registry/styles/luma/native-select.css +9 -2
- package/registry/styles/luma/primitives/listbox.css +8 -0
- package/registry/styles/luma/select.css +7 -2
- package/registry/styles/luma/tooltip.css +29 -16
- package/registry/styles/lyra/badge.css +28 -0
- package/registry/styles/lyra/breadcrumb.css +2 -1
- package/registry/styles/lyra/calendar.css +62 -0
- package/registry/styles/lyra/card.css +9 -27
- package/registry/styles/lyra/input-otp.css +79 -36
- package/registry/styles/lyra/native-select.css +6 -1
- package/registry/styles/lyra/primitives/listbox.css +8 -0
- package/registry/styles/lyra/select.css +6 -1
- package/registry/styles/lyra/tooltip.css +29 -16
- package/registry/styles/maia/badge.css +29 -0
- package/registry/styles/maia/breadcrumb.css +2 -1
- package/registry/styles/maia/calendar.css +62 -0
- package/registry/styles/maia/card.css +9 -27
- package/registry/styles/maia/input-otp.css +79 -36
- package/registry/styles/maia/native-select.css +9 -2
- package/registry/styles/maia/primitives/listbox.css +8 -0
- package/registry/styles/maia/select.css +7 -2
- package/registry/styles/maia/tooltip.css +29 -16
- package/registry/styles/mira/badge.css +32 -0
- package/registry/styles/mira/breadcrumb.css +2 -1
- package/registry/styles/mira/calendar.css +62 -0
- package/registry/styles/mira/card.css +9 -27
- package/registry/styles/mira/input-otp.css +79 -36
- package/registry/styles/mira/native-select.css +7 -2
- package/registry/styles/mira/primitives/listbox.css +8 -0
- package/registry/styles/mira/select.css +7 -2
- package/registry/styles/mira/tooltip.css +29 -16
- package/registry/styles/nova/badge.css +28 -0
- package/registry/styles/nova/breadcrumb.css +2 -1
- package/registry/styles/nova/calendar.css +62 -0
- package/registry/styles/nova/card.css +9 -27
- package/registry/styles/nova/input-otp.css +79 -36
- package/registry/styles/nova/native-select.css +9 -2
- package/registry/styles/nova/primitives/listbox.css +8 -0
- package/registry/styles/nova/select.css +7 -2
- package/registry/styles/nova/tooltip.css +29 -16
- package/registry/styles/rhea/badge.css +28 -0
- package/registry/styles/rhea/breadcrumb.css +2 -1
- package/registry/styles/rhea/calendar.css +62 -0
- package/registry/styles/rhea/card.css +9 -27
- package/registry/styles/rhea/input-otp.css +79 -36
- package/registry/styles/rhea/native-select.css +9 -2
- package/registry/styles/rhea/primitives/listbox.css +8 -0
- package/registry/styles/rhea/select.css +7 -2
- package/registry/styles/rhea/tooltip.css +29 -16
- package/registry/styles/sera/badge.css +29 -1
- package/registry/styles/sera/breadcrumb.css +2 -1
- package/registry/styles/sera/calendar.css +66 -0
- package/registry/styles/sera/card.css +9 -27
- package/registry/styles/sera/input-otp.css +80 -37
- package/registry/styles/sera/native-select.css +9 -2
- package/registry/styles/sera/primitives/listbox.css +8 -0
- package/registry/styles/sera/select.css +7 -2
- package/registry/styles/sera/tooltip.css +29 -16
- package/registry/styles/vega/badge.css +28 -0
- package/registry/styles/vega/breadcrumb.css +2 -1
- package/registry/styles/vega/calendar.css +62 -0
- package/registry/styles/vega/card.css +9 -27
- package/registry/styles/vega/input-otp.css +79 -36
- package/registry/styles/vega/native-select.css +9 -2
- package/registry/styles/vega/primitives/listbox.css +8 -0
- package/registry/styles/vega/select.css +7 -2
- package/registry/styles/vega/tooltip.css +29 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<button type="button" class="btn">Open dialog</button>
|
|
2
|
+
<button type="button" class="btn" data-open-dialog="demo-dialog-default">Open dialog</button>
|
|
3
3
|
|
|
4
4
|
<dialog class="dialog" id="demo-dialog-default" aria-labelledby="dialog-default-title" aria-describedby="dialog-default-description">
|
|
5
5
|
<div>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
</p>
|
|
11
11
|
</header>
|
|
12
12
|
<footer>
|
|
13
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
14
|
-
<button type="button" class="btn">Continue</button>
|
|
13
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
14
|
+
<button type="button" class="btn" data-close-dialog>Continue</button>
|
|
15
15
|
</footer>
|
|
16
16
|
<form method="dialog">
|
|
17
17
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</dialog>
|
|
21
21
|
|
|
22
22
|
<!-- Edit profile -->
|
|
23
|
-
<button type="button" class="btn">Open profile dialog</button>
|
|
23
|
+
<button type="button" class="btn" data-open-dialog="demo-dialog">Open profile dialog</button>
|
|
24
24
|
|
|
25
25
|
<dialog class="dialog" id="demo-dialog" aria-labelledby="dialog-title" aria-describedby="dialog-description">
|
|
26
26
|
<div>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
</section>
|
|
45
45
|
<footer>
|
|
46
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
47
|
-
<button type="button" class="btn">Save changes</button>
|
|
46
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
47
|
+
<button type="button" class="btn" data-close-dialog>Save changes</button>
|
|
48
48
|
</footer>
|
|
49
49
|
<form method="dialog">
|
|
50
50
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</dialog>
|
|
54
54
|
|
|
55
55
|
<!-- Custom close button -->
|
|
56
|
-
<button type="button" class="btn" data-variant="outline">
|
|
56
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-dialog-close-button">
|
|
57
57
|
Open share dialog
|
|
58
58
|
</button>
|
|
59
59
|
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
</section>
|
|
74
74
|
<footer data-align="start">
|
|
75
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
75
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
76
76
|
</footer>
|
|
77
77
|
</div>
|
|
78
78
|
</dialog>
|
|
79
79
|
|
|
80
80
|
<!-- No close button -->
|
|
81
|
-
<button type="button" class="btn" data-variant="outline">
|
|
81
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-dialog-no-close">
|
|
82
82
|
Open dialog without close
|
|
83
83
|
</button>
|
|
84
84
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
</dialog>
|
|
95
95
|
|
|
96
96
|
<!-- Scrollable content -->
|
|
97
|
-
<button type="button" class="btn" data-variant="outline">
|
|
97
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-dialog-scrollable">
|
|
98
98
|
Open scrollable dialog
|
|
99
99
|
</button>
|
|
100
100
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</dialog>
|
|
124
124
|
|
|
125
125
|
<!-- Sticky footer -->
|
|
126
|
-
<button type="button" class="btn" data-variant="outline">
|
|
126
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-dialog-sticky-footer">
|
|
127
127
|
Open sticky footer dialog
|
|
128
128
|
</button>
|
|
129
129
|
|
|
@@ -146,14 +146,14 @@
|
|
|
146
146
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
147
147
|
</section>
|
|
148
148
|
<footer>
|
|
149
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
149
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
150
150
|
</footer>
|
|
151
151
|
</div>
|
|
152
152
|
</dialog>
|
|
153
153
|
|
|
154
154
|
<!-- Right-to-left -->
|
|
155
155
|
<div dir="rtl" lang="ar" style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
156
|
-
<button type="button" class="btn">فتح الحوار</button>
|
|
156
|
+
<button type="button" class="btn" data-open-dialog="demo-dialog-rtl">فتح الحوار</button>
|
|
157
157
|
|
|
158
158
|
<dialog class="dialog" id="demo-dialog-rtl" aria-labelledby="dialog-rtl-title" aria-describedby="dialog-rtl-description">
|
|
159
159
|
<div>
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
</section>
|
|
178
178
|
<footer>
|
|
179
|
-
<button type="button" class="btn" data-variant="outline">إلغاء</button>
|
|
180
|
-
<button type="button" class="btn">حفظ التغييرات</button>
|
|
179
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>إلغاء</button>
|
|
180
|
+
<button type="button" class="btn" data-close-dialog>حفظ التغييرات</button>
|
|
181
181
|
</footer>
|
|
182
182
|
<form method="dialog">
|
|
183
183
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="إغلاق"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<button type="button" class="btn" data-variant="outline">
|
|
2
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-default">
|
|
3
3
|
Open drawer
|
|
4
4
|
</button>
|
|
5
5
|
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
</section>
|
|
25
25
|
<footer>
|
|
26
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
27
|
-
<button type="button" class="btn">Save changes</button>
|
|
26
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
27
|
+
<button type="button" class="btn" data-close-dialog>Save changes</button>
|
|
28
28
|
</footer>
|
|
29
29
|
</div>
|
|
30
30
|
</dialog>
|
|
31
31
|
|
|
32
32
|
<!-- Large -->
|
|
33
|
-
<button type="button" class="btn" data-variant="outline">
|
|
33
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-large">
|
|
34
34
|
Open large drawer
|
|
35
35
|
</button>
|
|
36
36
|
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
</section>
|
|
50
50
|
<footer>
|
|
51
|
-
<button type="button" class="btn" data-variant="outline">Reset</button>
|
|
52
|
-
<button type="button" class="btn">Apply</button>
|
|
51
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Reset</button>
|
|
52
|
+
<button type="button" class="btn" data-close-dialog>Apply</button>
|
|
53
53
|
</footer>
|
|
54
54
|
</div>
|
|
55
55
|
</dialog>
|
|
56
56
|
|
|
57
57
|
<!-- Small -->
|
|
58
|
-
<button type="button" class="btn" data-variant="outline">
|
|
58
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-small">
|
|
59
59
|
Open small drawer
|
|
60
60
|
</button>
|
|
61
61
|
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
<p>The small size keeps a short confirmation within reach.</p>
|
|
71
71
|
</section>
|
|
72
72
|
<footer>
|
|
73
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
74
|
-
<button type="button" class="btn">Confirm</button>
|
|
73
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
74
|
+
<button type="button" class="btn" data-close-dialog>Confirm</button>
|
|
75
75
|
</footer>
|
|
76
76
|
</div>
|
|
77
77
|
</dialog>
|
|
78
78
|
|
|
79
79
|
<!-- Top -->
|
|
80
|
-
<button type="button" class="btn" data-variant="outline">
|
|
80
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-top">
|
|
81
81
|
Open top drawer
|
|
82
82
|
</button>
|
|
83
83
|
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
<p>Use a top drawer for a short announcement or a wide filter bar.</p>
|
|
92
92
|
</section>
|
|
93
93
|
<footer>
|
|
94
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
94
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
95
95
|
</footer>
|
|
96
96
|
<span data-slot="handle" aria-hidden="true"></span>
|
|
97
97
|
</div>
|
|
98
98
|
</dialog>
|
|
99
99
|
|
|
100
100
|
<!-- Scrollable content -->
|
|
101
|
-
<button type="button" class="btn" data-variant="outline">
|
|
101
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-scrollable">
|
|
102
102
|
Open scrollable drawer
|
|
103
103
|
</button>
|
|
104
104
|
|
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
145
145
|
</section>
|
|
146
146
|
<footer>
|
|
147
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
147
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
148
148
|
</footer>
|
|
149
149
|
</div>
|
|
150
150
|
</dialog>
|
|
151
151
|
|
|
152
152
|
<!-- Nested -->
|
|
153
|
-
<button type="button" class="btn" data-variant="outline">
|
|
153
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-nested">
|
|
154
154
|
Open drawer
|
|
155
155
|
</button>
|
|
156
156
|
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
<p>The parent drawer stays mounted behind the nested drawer.</p>
|
|
166
166
|
</section>
|
|
167
167
|
<footer>
|
|
168
|
-
<button type="button" class="btn" data-variant="outline">Open nested drawer</button>
|
|
169
|
-
<button type="button" class="btn">Close</button>
|
|
168
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-nested-child">Open nested drawer</button>
|
|
169
|
+
<button type="button" class="btn" data-close-dialog>Close</button>
|
|
170
170
|
</footer>
|
|
171
171
|
<dialog class="drawer" id="demo-drawer-nested-child" data-side="block-end" aria-labelledby="drawer-nested-child-title" aria-describedby="drawer-nested-child-description">
|
|
172
172
|
<div>
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
<p>Close this drawer to return to the parent.</p>
|
|
180
180
|
</section>
|
|
181
181
|
<footer>
|
|
182
|
-
<button type="button" class="btn">Close</button>
|
|
182
|
+
<button type="button" class="btn" data-close-dialog>Close</button>
|
|
183
183
|
</footer>
|
|
184
184
|
</div>
|
|
185
185
|
</dialog>
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
</dialog>
|
|
188
188
|
|
|
189
189
|
<!-- Without handle -->
|
|
190
|
-
<button type="button" class="btn" data-variant="outline">
|
|
190
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-no-handle">
|
|
191
191
|
Open drawer without handle
|
|
192
192
|
</button>
|
|
193
193
|
|
|
@@ -201,14 +201,14 @@
|
|
|
201
201
|
<p>Use the footer actions or Escape to dismiss the drawer.</p>
|
|
202
202
|
</section>
|
|
203
203
|
<footer>
|
|
204
|
-
<button type="button" class="btn">Close</button>
|
|
204
|
+
<button type="button" class="btn" data-close-dialog>Close</button>
|
|
205
205
|
</footer>
|
|
206
206
|
</div>
|
|
207
207
|
</dialog>
|
|
208
208
|
|
|
209
209
|
<!-- Right-to-left -->
|
|
210
210
|
<div dir="rtl" lang="ar">
|
|
211
|
-
<button type="button" class="btn" data-variant="outline">
|
|
211
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-drawer-rtl">
|
|
212
212
|
فتح الدرج
|
|
213
213
|
</button>
|
|
214
214
|
|
|
@@ -226,8 +226,8 @@
|
|
|
226
226
|
</div>
|
|
227
227
|
</section>
|
|
228
228
|
<footer>
|
|
229
|
-
<button type="button" class="btn" data-variant="outline">إلغاء</button>
|
|
230
|
-
<button type="button" class="btn">حفظ التغييرات</button>
|
|
229
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>إلغاء</button>
|
|
230
|
+
<button type="button" class="btn" data-close-dialog>حفظ التغييرات</button>
|
|
231
231
|
</footer>
|
|
232
232
|
</div>
|
|
233
233
|
</dialog>
|
|
@@ -1,47 +1,132 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<
|
|
2
|
+
<label class="input-otp">
|
|
3
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
4
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
5
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
6
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
7
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
8
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
9
|
+
<span data-slot="entry">
|
|
10
|
+
<input id="demo-input-otp" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" required aria-label="One-time code">
|
|
11
|
+
</span>
|
|
12
|
+
</label>
|
|
13
|
+
|
|
14
|
+
<!-- Joined -->
|
|
15
|
+
<label class="input-otp" data-spacing="joined">
|
|
16
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
17
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
18
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
19
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
20
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
21
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
22
|
+
<span data-slot="entry">
|
|
23
|
+
<input id="demo-input-otp-joined" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" value="123456" required aria-label="One-time code">
|
|
24
|
+
</span>
|
|
25
|
+
</label>
|
|
3
26
|
|
|
4
27
|
<!-- Sizes -->
|
|
5
28
|
<div style="display: flex; flex-direction: column; gap: 1rem; max-width: 24rem">
|
|
6
29
|
<div class="field">
|
|
7
30
|
<label class="label" for="demo-input-otp-sm">Small</label>
|
|
8
|
-
<
|
|
31
|
+
<label class="input-otp" data-size="sm">
|
|
32
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
33
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
34
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
35
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
36
|
+
<span data-slot="entry">
|
|
37
|
+
<input id="demo-input-otp-sm" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="4" pattern="[0-9]{4}" required>
|
|
38
|
+
</span>
|
|
39
|
+
</label>
|
|
9
40
|
</div>
|
|
10
41
|
<div class="field">
|
|
11
42
|
<label class="label" for="demo-input-otp-default">Default</label>
|
|
12
|
-
<
|
|
43
|
+
<label class="input-otp">
|
|
44
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
45
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
46
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
47
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
48
|
+
<span data-slot="entry">
|
|
49
|
+
<input id="demo-input-otp-default" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="4" pattern="[0-9]{4}" required>
|
|
50
|
+
</span>
|
|
51
|
+
</label>
|
|
13
52
|
</div>
|
|
14
53
|
<div class="field">
|
|
15
54
|
<label class="label" for="demo-input-otp-lg">Large</label>
|
|
16
|
-
<
|
|
55
|
+
<label class="input-otp" data-size="lg">
|
|
56
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
57
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
58
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
59
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
60
|
+
<span data-slot="entry">
|
|
61
|
+
<input id="demo-input-otp-lg" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="4" pattern="[0-9]{4}" required>
|
|
62
|
+
</span>
|
|
63
|
+
</label>
|
|
17
64
|
</div>
|
|
18
65
|
</div>
|
|
19
66
|
|
|
20
67
|
<!-- Four digits -->
|
|
21
68
|
<div class="field" style="max-width: 20rem">
|
|
22
69
|
<label class="label" for="demo-input-otp-four-digits">Four-digit code</label>
|
|
23
|
-
<
|
|
70
|
+
<label class="input-otp">
|
|
71
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
72
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
73
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
74
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
75
|
+
<span data-slot="entry">
|
|
76
|
+
<input id="demo-input-otp-four-digits" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="4" pattern="[0-9]{4}" required aria-describedby="demo-input-otp-four-digits-hint">
|
|
77
|
+
</span>
|
|
78
|
+
</label>
|
|
24
79
|
<p id="demo-input-otp-four-digits-hint">Enter the 4-digit code we sent to your email.</p>
|
|
25
80
|
</div>
|
|
26
81
|
|
|
27
82
|
<!-- Alphanumeric -->
|
|
28
|
-
<div class="field" style="max-width:
|
|
83
|
+
<div class="field" style="max-width: 24rem">
|
|
29
84
|
<label class="label" for="demo-input-otp-alphanumeric">Backup code</label>
|
|
30
|
-
<
|
|
85
|
+
<label class="input-otp">
|
|
86
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
87
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
88
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
89
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
90
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
91
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
92
|
+
<span data-slot="entry">
|
|
93
|
+
<input id="demo-input-otp-alphanumeric" type="text" autocomplete="one-time-code" autocapitalize="characters" spellcheck="false" maxlength="6" pattern="[A-Za-z0-9]{6}" required aria-describedby="demo-input-otp-alphanumeric-hint">
|
|
94
|
+
</span>
|
|
95
|
+
</label>
|
|
31
96
|
<p id="demo-input-otp-alphanumeric-hint">Use letters and numbers without spaces.</p>
|
|
32
97
|
</div>
|
|
33
98
|
|
|
34
99
|
<!-- Disabled -->
|
|
35
100
|
<div class="field" style="max-width: 24rem">
|
|
36
101
|
<label class="label" for="demo-input-otp-disabled">One-time code</label>
|
|
37
|
-
<
|
|
102
|
+
<label class="input-otp">
|
|
103
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
104
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
105
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
106
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
107
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
108
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
109
|
+
<span data-slot="entry">
|
|
110
|
+
<input id="demo-input-otp-disabled" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" value="123456" required disabled>
|
|
111
|
+
</span>
|
|
112
|
+
</label>
|
|
38
113
|
<p>Code entry is unavailable right now.</p>
|
|
39
114
|
</div>
|
|
40
115
|
|
|
41
116
|
<!-- Invalid -->
|
|
42
117
|
<div class="field" style="max-width: 24rem">
|
|
43
118
|
<label class="label" for="demo-input-otp-invalid">One-time code</label>
|
|
44
|
-
<
|
|
119
|
+
<label class="input-otp">
|
|
120
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
121
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
122
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
123
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
124
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
125
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
126
|
+
<span data-slot="entry">
|
|
127
|
+
<input id="demo-input-otp-invalid" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" value="000000" required aria-invalid="true" aria-describedby="demo-input-otp-invalid-error">
|
|
128
|
+
</span>
|
|
129
|
+
</label>
|
|
45
130
|
<p id="demo-input-otp-invalid-error" role="alert">That code is incorrect. Check your email and try again.</p>
|
|
46
131
|
</div>
|
|
47
132
|
|
|
@@ -57,7 +142,17 @@
|
|
|
57
142
|
<label class="label" for="demo-input-otp-verification">Verification code</label>
|
|
58
143
|
<button type="button" class="btn" data-variant="outline" data-size="xs"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-icon="inline-start"><path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/><path d="M16 16h5v5"/></svg>Resend code</button>
|
|
59
144
|
</div>
|
|
60
|
-
<
|
|
145
|
+
<label class="input-otp">
|
|
146
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
147
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
148
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
149
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
150
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
151
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
152
|
+
<span data-slot="entry">
|
|
153
|
+
<input id="demo-input-otp-verification" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" required aria-describedby="demo-input-otp-verification-hint">
|
|
154
|
+
</span>
|
|
155
|
+
</label>
|
|
61
156
|
<p id="demo-input-otp-verification-hint">The code expires 10 minutes after it is sent.</p>
|
|
62
157
|
</div>
|
|
63
158
|
</section>
|
|
@@ -72,6 +167,16 @@
|
|
|
72
167
|
<!-- Right-to-left -->
|
|
73
168
|
<div class="field" dir="rtl" lang="ar" style="max-width: 24rem">
|
|
74
169
|
<label class="label" for="demo-input-otp-rtl">رمز التحقق</label>
|
|
75
|
-
<
|
|
170
|
+
<label class="input-otp">
|
|
171
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
172
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
173
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
174
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
175
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
176
|
+
<span data-slot="cell" aria-hidden="true"></span>
|
|
177
|
+
<span data-slot="entry">
|
|
178
|
+
<input id="demo-input-otp-rtl" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]{6}" value="123456" required aria-describedby="demo-input-otp-rtl-hint">
|
|
179
|
+
</span>
|
|
180
|
+
</label>
|
|
76
181
|
<p id="demo-input-otp-rtl-hint">أدخل الرمز المكوّن من ستة أرقام الذي أرسلناه إلى بريدك الإلكتروني.</p>
|
|
77
182
|
</div>
|
|
@@ -1,6 +1,94 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
+
<div style="display: flex; flex-direction: column; align-items: center; gap: 0.75rem">
|
|
3
|
+
<span class="kbd-group">
|
|
4
|
+
<kbd class="kbd">⌘</kbd>
|
|
5
|
+
<kbd class="kbd">⇧</kbd>
|
|
6
|
+
<kbd class="kbd">⌥</kbd>
|
|
7
|
+
<kbd class="kbd">⌃</kbd>
|
|
8
|
+
</span>
|
|
9
|
+
<span class="kbd-group">
|
|
10
|
+
<kbd class="kbd">Ctrl</kbd>
|
|
11
|
+
<span aria-hidden="true">+</span>
|
|
12
|
+
<kbd class="kbd">B</kbd>
|
|
13
|
+
</span>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<!-- Shortcut hint -->
|
|
2
17
|
<div style="display: flex; align-items: center; gap: 0.5rem">
|
|
3
|
-
<span class="kbd"
|
|
4
|
-
|
|
18
|
+
<span class="kbd-group">
|
|
19
|
+
<kbd class="kbd">⌘</kbd>
|
|
20
|
+
<kbd class="kbd">K</kbd>
|
|
21
|
+
</span>
|
|
5
22
|
<span>Open command menu</span>
|
|
6
23
|
</div>
|
|
24
|
+
|
|
25
|
+
<!-- Group -->
|
|
26
|
+
<p style="margin: 0; text-align: center">
|
|
27
|
+
Use
|
|
28
|
+
<span class="kbd-group">
|
|
29
|
+
<kbd class="kbd">Ctrl</kbd>
|
|
30
|
+
<kbd class="kbd">B</kbd>
|
|
31
|
+
</span>
|
|
32
|
+
or
|
|
33
|
+
<span class="kbd-group">
|
|
34
|
+
<kbd class="kbd">Ctrl</kbd>
|
|
35
|
+
<kbd class="kbd">K</kbd>
|
|
36
|
+
</span>
|
|
37
|
+
to open the command palette
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<!-- In a button -->
|
|
41
|
+
<button type="button" class="btn" data-variant="outline" aria-keyshortcuts="Enter">
|
|
42
|
+
Accept
|
|
43
|
+
<kbd class="kbd" data-icon="inline-end" aria-hidden="true">⏎</kbd>
|
|
44
|
+
</button>
|
|
45
|
+
|
|
46
|
+
<!-- In a tooltip -->
|
|
47
|
+
<span class="tooltip" id="demo-kbd-tooltip">
|
|
48
|
+
<button type="button" class="btn" data-variant="outline" aria-keyshortcuts="S" aria-describedby="demo-kbd-tooltip-description">
|
|
49
|
+
Save
|
|
50
|
+
</button>
|
|
51
|
+
<span data-slot="content" role="tooltip" id="demo-kbd-tooltip-description">Save changes <kbd class="kbd">S</kbd></span>
|
|
52
|
+
</span>
|
|
53
|
+
|
|
54
|
+
<!-- In an input group -->
|
|
55
|
+
<div style="width: 100%; max-width: 22rem">
|
|
56
|
+
<div class="input-group" role="group" aria-label="Search">
|
|
57
|
+
<input class="input" id="demo-kbd-search" type="search" placeholder="Search documentation..." aria-label="Search documentation">
|
|
58
|
+
<span data-slot="addon" data-align="inline-start" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
|
|
59
|
+
<span data-slot="addon" data-align="inline-end">
|
|
60
|
+
<span class="kbd-group">
|
|
61
|
+
<kbd class="kbd">⌘</kbd>
|
|
62
|
+
<kbd class="kbd">K</kbd>
|
|
63
|
+
</span>
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<!-- In a menu -->
|
|
69
|
+
<div class="dropdown-menu" style="width: 14rem">
|
|
70
|
+
<button type="button" class="btn" data-variant="outline" aria-haspopup="menu" aria-expanded="false">
|
|
71
|
+
Open menu
|
|
72
|
+
</button>
|
|
73
|
+
<div data-popover data-side="bottom" aria-hidden="true">
|
|
74
|
+
<div role="menu">
|
|
75
|
+
<button type="button" role="menuitem">Command palette <span class="kbd-group"><kbd class="kbd">⌘</kbd><kbd class="kbd">K</kbd></span></button>
|
|
76
|
+
<button type="button" role="menuitem">Save <kbd class="kbd">S</kbd></button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<!-- Right-to-left -->
|
|
82
|
+
<div dir="rtl" lang="ar" style="display: flex; flex-direction: column; align-items: center; gap: 0.75rem">
|
|
83
|
+
<span class="kbd-group">
|
|
84
|
+
<kbd class="kbd">⌘</kbd>
|
|
85
|
+
<kbd class="kbd">⇧</kbd>
|
|
86
|
+
<kbd class="kbd">⌥</kbd>
|
|
87
|
+
<kbd class="kbd">⌃</kbd>
|
|
88
|
+
</span>
|
|
89
|
+
<span class="kbd-group">
|
|
90
|
+
<kbd class="kbd">Ctrl</kbd>
|
|
91
|
+
<span aria-hidden="true">+</span>
|
|
92
|
+
<kbd class="kbd">B</kbd>
|
|
93
|
+
</span>
|
|
94
|
+
</div>
|
|
@@ -1,10 +1,91 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
2
|
<div class="field">
|
|
3
|
-
<label class="label" for="demo-select">Framework</label>
|
|
4
|
-
<select class="native-select" id="demo-select">
|
|
3
|
+
<label class="label" for="demo-native-select-default">Framework</label>
|
|
4
|
+
<select class="native-select" id="demo-native-select-default">
|
|
5
|
+
<option value="" selected disabled>Select a framework</option>
|
|
5
6
|
<option>Next.js</option>
|
|
6
7
|
<option>Astro</option>
|
|
7
8
|
<option>SvelteKit</option>
|
|
8
9
|
<option>Nuxt</option>
|
|
9
10
|
</select>
|
|
10
11
|
</div>
|
|
12
|
+
|
|
13
|
+
<!-- Sizes -->
|
|
14
|
+
<div style="display: flex; flex-direction: column; gap: 1rem; max-width: 20rem">
|
|
15
|
+
<div class="field">
|
|
16
|
+
<label class="label" for="demo-native-select-size-sm">Small</label>
|
|
17
|
+
<select class="native-select" data-size="sm" id="demo-native-select-size-sm">
|
|
18
|
+
<option>Next.js</option>
|
|
19
|
+
<option>Astro</option>
|
|
20
|
+
<option>SvelteKit</option>
|
|
21
|
+
</select>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="field">
|
|
24
|
+
<label class="label" for="demo-native-select-size-default">Default</label>
|
|
25
|
+
<select class="native-select" id="demo-native-select-size-default">
|
|
26
|
+
<option>Next.js</option>
|
|
27
|
+
<option>Astro</option>
|
|
28
|
+
<option>SvelteKit</option>
|
|
29
|
+
</select>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<!-- Disabled -->
|
|
34
|
+
<div class="field" style="max-width: 20rem">
|
|
35
|
+
<label class="label" for="demo-native-select-disabled">Framework</label>
|
|
36
|
+
<select class="native-select" id="demo-native-select-disabled" disabled>
|
|
37
|
+
<option>Next.js</option>
|
|
38
|
+
<option>Astro</option>
|
|
39
|
+
<option>SvelteKit</option>
|
|
40
|
+
</select>
|
|
41
|
+
<p>This field is currently disabled.</p>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<!-- Invalid -->
|
|
45
|
+
<div class="field" style="max-width: 20rem">
|
|
46
|
+
<label class="label" for="demo-native-select-invalid">Framework</label>
|
|
47
|
+
<select class="native-select" id="demo-native-select-invalid" aria-invalid="true" aria-describedby="demo-native-select-invalid-error">
|
|
48
|
+
<option value="" selected disabled>Select a framework</option>
|
|
49
|
+
<option>Next.js</option>
|
|
50
|
+
<option>Astro</option>
|
|
51
|
+
<option>SvelteKit</option>
|
|
52
|
+
</select>
|
|
53
|
+
<p id="demo-native-select-invalid-error" role="alert">Please select a framework.</p>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<!-- Groups -->
|
|
57
|
+
<div class="field" style="max-width: 20rem">
|
|
58
|
+
<label class="label" for="demo-native-select-groups">Department</label>
|
|
59
|
+
<select class="native-select" id="demo-native-select-groups">
|
|
60
|
+
<option value="" selected disabled>Select department</option>
|
|
61
|
+
<optgroup label="Engineering">
|
|
62
|
+
<option>Frontend</option>
|
|
63
|
+
<option>Backend</option>
|
|
64
|
+
<option>DevOps</option>
|
|
65
|
+
</optgroup>
|
|
66
|
+
<optgroup label="Sales">
|
|
67
|
+
<option>Sales Rep</option>
|
|
68
|
+
<option>Account Manager</option>
|
|
69
|
+
<option>Sales Director</option>
|
|
70
|
+
</optgroup>
|
|
71
|
+
<optgroup label="Operations">
|
|
72
|
+
<option>Customer Support</option>
|
|
73
|
+
<option>Product Manager</option>
|
|
74
|
+
<option>Operations Manager</option>
|
|
75
|
+
</optgroup>
|
|
76
|
+
</select>
|
|
77
|
+
<p>Departments are grouped by their parent team.</p>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<!-- Right-to-left -->
|
|
81
|
+
<div class="field" dir="rtl" lang="ar" style="max-width: 20rem">
|
|
82
|
+
<label class="label" for="demo-native-select-rtl">الحالة</label>
|
|
83
|
+
<select class="native-select" id="demo-native-select-rtl" dir="rtl">
|
|
84
|
+
<option value="" selected disabled>اختر الحالة</option>
|
|
85
|
+
<option>قيد الانتظار</option>
|
|
86
|
+
<option>قيد التنفيذ</option>
|
|
87
|
+
<option>منجز</option>
|
|
88
|
+
<option>ملغي</option>
|
|
89
|
+
</select>
|
|
90
|
+
<p>يعرض هذا الحقل حالة المهمة الحالية.</p>
|
|
91
|
+
</div>
|