loseta 0.15.0 → 0.17.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/package.json +1 -1
- package/registry/components/alert-dialog.css +7 -0
- package/registry/components/alert.css +2 -0
- package/registry/components/avatar.css +11 -2
- package/registry/components/badge.css +4 -7
- package/registry/components/breadcrumb.css +9 -1
- package/registry/components/button-group.css +33 -18
- package/registry/components/button.css +6 -0
- package/registry/components/calendar.css +39 -0
- package/registry/components/card.css +5 -0
- package/registry/components/checkbox.css +17 -2
- package/registry/components/command.css +7 -0
- package/registry/components/context-menu.css +8 -0
- package/registry/components/dialog.css +24 -1
- package/registry/components/drawer.css +4 -0
- package/registry/components/empty.css +2 -0
- package/registry/components/field.css +8 -3
- package/registry/components/input-group.css +12 -1
- package/registry/components/input-otp.css +106 -7
- package/registry/components/input.css +5 -0
- package/registry/components/kbd.css +8 -0
- package/registry/components/native-select.css +6 -0
- package/registry/components/navigation-menu.css +18 -1
- package/registry/components/radio.css +19 -4
- package/registry/components/select.css +3 -0
- package/registry/components/sheet.css +10 -0
- package/registry/components/sidebar.css +68 -0
- package/registry/components/slider.css +1 -1
- package/registry/components/switch.css +14 -0
- package/registry/components/table.css +4 -4
- package/registry/components/textarea.css +6 -0
- package/registry/components/toggle-group.css +8 -0
- package/registry/components/tooltip.css +329 -150
- package/registry/examples/alert-dialog.html +133 -7
- package/registry/examples/alert.html +50 -3
- package/registry/examples/aspect-ratio.html +5 -0
- package/registry/examples/attachment.html +12 -0
- package/registry/examples/avatar.html +49 -4
- package/registry/examples/badge.html +40 -0
- package/registry/examples/breadcrumb.html +86 -6
- package/registry/examples/bubble.html +5 -0
- package/registry/examples/button-group.html +140 -12
- package/registry/examples/button.html +60 -15
- package/registry/examples/calendar.html +687 -51
- package/registry/examples/card.html +190 -4
- package/registry/examples/checkbox.html +107 -4
- package/registry/examples/code-block.html +5 -0
- package/registry/examples/combobox.html +13 -0
- package/registry/examples/command.html +322 -1
- package/registry/examples/context-menu.html +170 -1
- package/registry/examples/dialog.html +166 -5
- package/registry/examples/drawer.html +198 -10
- package/registry/examples/dropdown-menu.html +259 -2
- package/registry/examples/empty.html +107 -1
- package/registry/examples/field.html +232 -0
- package/registry/examples/input-group.html +101 -5
- package/registry/examples/input-otp.html +180 -3
- package/registry/examples/input.html +75 -4
- package/registry/examples/item.html +12 -0
- package/registry/examples/kbd.html +90 -2
- package/registry/examples/marker.html +6 -0
- package/registry/examples/menubar.html +338 -9
- package/registry/examples/message.html +16 -0
- package/registry/examples/native-select.html +83 -2
- package/registry/examples/navigation-menu.html +166 -17
- package/registry/examples/popover.html +153 -6
- package/registry/examples/progress.html +66 -3
- package/registry/examples/questionnaire.html +33 -0
- package/registry/examples/radio.html +121 -9
- package/registry/examples/resizable.html +11 -0
- package/registry/examples/scroll-area.html +9 -0
- package/registry/examples/select.html +199 -6
- package/registry/examples/separator.html +3 -0
- package/registry/examples/sheet.html +205 -7
- package/registry/examples/sidebar.html +377 -1
- package/registry/examples/slider.html +52 -5
- package/registry/examples/spinner.html +3 -0
- package/registry/examples/switch.html +68 -0
- package/registry/examples/table.html +192 -8
- package/registry/examples/textarea.html +33 -3
- package/registry/examples/toggle-group.html +72 -12
- package/registry/examples/toggle.html +34 -7
- package/registry/examples/tooltip.html +105 -3
- package/registry/examples/trace.html +13 -1
- package/registry/primitives/menu.css +25 -3
- package/registry/primitives/popover.css +38 -6
- package/registry/registry.json +149 -38
- package/registry/styles/luma/accordion.css +1 -1
- package/registry/styles/luma/alert-dialog.css +8 -0
- package/registry/styles/luma/alert.css +1 -17
- package/registry/styles/luma/avatar.css +44 -1
- package/registry/styles/luma/badge.css +28 -0
- package/registry/styles/luma/breadcrumb.css +2 -1
- package/registry/styles/luma/button-group.css +5 -17
- package/registry/styles/luma/button.css +8 -8
- package/registry/styles/luma/calendar.css +62 -0
- package/registry/styles/luma/card.css +9 -27
- package/registry/styles/luma/checkbox.css +6 -0
- package/registry/styles/luma/collapsible.css +1 -1
- package/registry/styles/luma/command.css +6 -0
- package/registry/styles/luma/drawer.css +8 -0
- package/registry/styles/luma/empty.css +2 -4
- package/registry/styles/luma/field.css +1 -1
- package/registry/styles/luma/input-group.css +14 -2
- package/registry/styles/luma/input-otp.css +81 -30
- package/registry/styles/luma/input.css +5 -0
- package/registry/styles/luma/kbd.css +1 -1
- package/registry/styles/luma/label.css +4 -0
- package/registry/styles/luma/menubar.css +1 -1
- package/registry/styles/luma/native-select.css +9 -2
- package/registry/styles/luma/navigation-menu.css +11 -0
- package/registry/styles/luma/primitives/listbox.css +8 -0
- package/registry/styles/luma/primitives/menu.css +8 -4
- package/registry/styles/luma/progress.css +26 -1
- package/registry/styles/luma/radio.css +3 -1
- package/registry/styles/luma/select.css +7 -2
- package/registry/styles/luma/sheet.css +20 -0
- package/registry/styles/luma/sidebar.css +114 -1
- package/registry/styles/luma/switch.css +39 -10
- package/registry/styles/luma/table.css +6 -2
- package/registry/styles/luma/textarea.css +5 -0
- package/registry/styles/luma/toggle-group.css +11 -0
- package/registry/styles/luma/tooltip.css +29 -16
- package/registry/styles/lyra/accordion.css +1 -1
- package/registry/styles/lyra/alert-dialog.css +8 -0
- package/registry/styles/lyra/alert.css +1 -17
- package/registry/styles/lyra/avatar.css +44 -1
- package/registry/styles/lyra/badge.css +28 -0
- package/registry/styles/lyra/breadcrumb.css +2 -1
- package/registry/styles/lyra/button-group.css +5 -17
- package/registry/styles/lyra/button.css +8 -8
- package/registry/styles/lyra/calendar.css +62 -0
- package/registry/styles/lyra/card.css +9 -27
- package/registry/styles/lyra/checkbox.css +6 -0
- package/registry/styles/lyra/collapsible.css +1 -1
- package/registry/styles/lyra/command.css +6 -0
- package/registry/styles/lyra/drawer.css +8 -0
- package/registry/styles/lyra/empty.css +2 -4
- package/registry/styles/lyra/field.css +1 -1
- package/registry/styles/lyra/input-group.css +15 -3
- package/registry/styles/lyra/input-otp.css +81 -30
- package/registry/styles/lyra/input.css +5 -0
- package/registry/styles/lyra/kbd.css +1 -1
- package/registry/styles/lyra/label.css +4 -0
- package/registry/styles/lyra/menubar.css +1 -1
- package/registry/styles/lyra/native-select.css +6 -1
- package/registry/styles/lyra/navigation-menu.css +11 -0
- package/registry/styles/lyra/primitives/listbox.css +8 -0
- package/registry/styles/lyra/primitives/menu.css +8 -4
- package/registry/styles/lyra/progress.css +26 -1
- package/registry/styles/lyra/radio.css +3 -1
- package/registry/styles/lyra/select.css +6 -1
- package/registry/styles/lyra/sheet.css +20 -0
- package/registry/styles/lyra/sidebar.css +114 -1
- package/registry/styles/lyra/switch.css +37 -8
- package/registry/styles/lyra/table.css +6 -2
- package/registry/styles/lyra/textarea.css +5 -1
- package/registry/styles/lyra/tooltip.css +29 -16
- package/registry/styles/maia/accordion.css +1 -1
- package/registry/styles/maia/alert-dialog.css +8 -0
- package/registry/styles/maia/alert.css +1 -17
- package/registry/styles/maia/avatar.css +44 -1
- package/registry/styles/maia/badge.css +29 -0
- package/registry/styles/maia/breadcrumb.css +2 -1
- package/registry/styles/maia/button-group.css +5 -17
- package/registry/styles/maia/button.css +8 -8
- package/registry/styles/maia/calendar.css +62 -0
- package/registry/styles/maia/card.css +9 -27
- package/registry/styles/maia/checkbox.css +6 -0
- package/registry/styles/maia/collapsible.css +1 -1
- package/registry/styles/maia/command.css +6 -0
- package/registry/styles/maia/drawer.css +8 -0
- package/registry/styles/maia/empty.css +2 -4
- package/registry/styles/maia/field.css +1 -1
- package/registry/styles/maia/input-group.css +14 -2
- package/registry/styles/maia/input-otp.css +81 -30
- package/registry/styles/maia/input.css +5 -0
- package/registry/styles/maia/kbd.css +1 -1
- package/registry/styles/maia/label.css +4 -0
- package/registry/styles/maia/menubar.css +1 -1
- package/registry/styles/maia/native-select.css +9 -2
- package/registry/styles/maia/navigation-menu.css +11 -0
- package/registry/styles/maia/primitives/listbox.css +8 -0
- package/registry/styles/maia/primitives/menu.css +8 -4
- package/registry/styles/maia/progress.css +26 -1
- package/registry/styles/maia/radio.css +3 -1
- package/registry/styles/maia/select.css +7 -2
- package/registry/styles/maia/sheet.css +20 -0
- package/registry/styles/maia/sidebar.css +114 -1
- package/registry/styles/maia/switch.css +37 -8
- package/registry/styles/maia/table.css +6 -2
- package/registry/styles/maia/textarea.css +5 -0
- package/registry/styles/maia/toggle-group.css +11 -0
- package/registry/styles/maia/tooltip.css +29 -16
- package/registry/styles/mira/accordion.css +1 -1
- package/registry/styles/mira/alert-dialog.css +8 -0
- package/registry/styles/mira/alert.css +1 -17
- package/registry/styles/mira/avatar.css +44 -1
- package/registry/styles/mira/badge.css +32 -0
- package/registry/styles/mira/breadcrumb.css +2 -1
- package/registry/styles/mira/button-group.css +5 -17
- package/registry/styles/mira/button.css +8 -8
- package/registry/styles/mira/calendar.css +62 -0
- package/registry/styles/mira/card.css +9 -27
- package/registry/styles/mira/checkbox.css +6 -0
- package/registry/styles/mira/collapsible.css +1 -1
- package/registry/styles/mira/command.css +6 -0
- package/registry/styles/mira/drawer.css +8 -0
- package/registry/styles/mira/empty.css +2 -4
- package/registry/styles/mira/field.css +1 -1
- package/registry/styles/mira/input-group.css +14 -2
- package/registry/styles/mira/input-otp.css +81 -30
- package/registry/styles/mira/input.css +7 -2
- package/registry/styles/mira/kbd.css +1 -1
- package/registry/styles/mira/label.css +4 -0
- package/registry/styles/mira/menubar.css +1 -1
- package/registry/styles/mira/native-select.css +7 -2
- package/registry/styles/mira/navigation-menu.css +11 -0
- package/registry/styles/mira/primitives/listbox.css +8 -0
- package/registry/styles/mira/primitives/menu.css +8 -4
- package/registry/styles/mira/progress.css +26 -1
- package/registry/styles/mira/radio.css +3 -1
- package/registry/styles/mira/select.css +7 -2
- package/registry/styles/mira/sheet.css +20 -0
- package/registry/styles/mira/sidebar.css +113 -0
- package/registry/styles/mira/switch.css +39 -10
- package/registry/styles/mira/table.css +7 -3
- package/registry/styles/mira/textarea.css +6 -2
- package/registry/styles/mira/toggle-group.css +11 -0
- package/registry/styles/mira/tooltip.css +29 -16
- package/registry/styles/nova/accordion.css +1 -1
- package/registry/styles/nova/alert-dialog.css +8 -0
- package/registry/styles/nova/alert.css +1 -17
- package/registry/styles/nova/avatar.css +44 -1
- package/registry/styles/nova/badge.css +28 -0
- package/registry/styles/nova/breadcrumb.css +2 -1
- package/registry/styles/nova/button-group.css +5 -17
- package/registry/styles/nova/button.css +8 -8
- package/registry/styles/nova/calendar.css +62 -0
- package/registry/styles/nova/card.css +9 -27
- package/registry/styles/nova/checkbox.css +6 -0
- package/registry/styles/nova/collapsible.css +1 -1
- package/registry/styles/nova/command.css +8 -0
- package/registry/styles/nova/drawer.css +8 -0
- package/registry/styles/nova/empty.css +2 -4
- package/registry/styles/nova/field.css +1 -1
- package/registry/styles/nova/input-group.css +15 -3
- package/registry/styles/nova/input-otp.css +81 -30
- package/registry/styles/nova/input.css +5 -0
- package/registry/styles/nova/kbd.css +1 -1
- package/registry/styles/nova/label.css +4 -0
- package/registry/styles/nova/menubar.css +1 -1
- package/registry/styles/nova/native-select.css +9 -2
- package/registry/styles/nova/navigation-menu.css +11 -0
- package/registry/styles/nova/primitives/listbox.css +8 -0
- package/registry/styles/nova/primitives/menu.css +8 -4
- package/registry/styles/nova/progress.css +26 -1
- package/registry/styles/nova/radio.css +3 -1
- package/registry/styles/nova/select.css +7 -2
- package/registry/styles/nova/sheet.css +20 -0
- package/registry/styles/nova/sidebar.css +114 -1
- package/registry/styles/nova/switch.css +37 -8
- package/registry/styles/nova/table.css +6 -2
- package/registry/styles/nova/textarea.css +5 -0
- package/registry/styles/nova/toggle.css +2 -0
- package/registry/styles/nova/tooltip.css +29 -16
- package/registry/styles/rhea/accordion.css +1 -1
- package/registry/styles/rhea/alert-dialog.css +8 -0
- package/registry/styles/rhea/alert.css +1 -17
- package/registry/styles/rhea/avatar.css +44 -1
- package/registry/styles/rhea/badge.css +28 -0
- package/registry/styles/rhea/breadcrumb.css +2 -1
- package/registry/styles/rhea/button-group.css +5 -17
- package/registry/styles/rhea/button.css +8 -8
- package/registry/styles/rhea/calendar.css +62 -0
- package/registry/styles/rhea/card.css +9 -27
- package/registry/styles/rhea/checkbox.css +6 -0
- package/registry/styles/rhea/collapsible.css +1 -1
- package/registry/styles/rhea/command.css +6 -0
- package/registry/styles/rhea/drawer.css +8 -0
- package/registry/styles/rhea/empty.css +2 -4
- package/registry/styles/rhea/field.css +1 -1
- package/registry/styles/rhea/input-group.css +15 -3
- package/registry/styles/rhea/input-otp.css +81 -30
- package/registry/styles/rhea/input.css +5 -0
- package/registry/styles/rhea/kbd.css +1 -1
- package/registry/styles/rhea/label.css +4 -0
- package/registry/styles/rhea/menubar.css +1 -1
- package/registry/styles/rhea/native-select.css +9 -2
- package/registry/styles/rhea/navigation-menu.css +11 -0
- package/registry/styles/rhea/primitives/listbox.css +8 -0
- package/registry/styles/rhea/primitives/menu.css +8 -4
- package/registry/styles/rhea/primitives/popover.css +1 -1
- package/registry/styles/rhea/progress.css +25 -0
- package/registry/styles/rhea/radio.css +3 -1
- package/registry/styles/rhea/select.css +7 -2
- package/registry/styles/rhea/sheet.css +20 -0
- package/registry/styles/rhea/sidebar.css +114 -1
- package/registry/styles/rhea/switch.css +39 -10
- package/registry/styles/rhea/table.css +6 -2
- package/registry/styles/rhea/textarea.css +5 -0
- package/registry/styles/rhea/toggle-group.css +11 -0
- package/registry/styles/rhea/tooltip.css +29 -16
- package/registry/styles/sera/accordion.css +1 -1
- package/registry/styles/sera/alert-dialog.css +8 -0
- package/registry/styles/sera/alert.css +1 -17
- package/registry/styles/sera/avatar.css +44 -1
- package/registry/styles/sera/badge.css +29 -1
- package/registry/styles/sera/breadcrumb.css +2 -1
- package/registry/styles/sera/button-group.css +5 -17
- package/registry/styles/sera/button.css +8 -8
- package/registry/styles/sera/calendar.css +66 -0
- package/registry/styles/sera/card.css +9 -27
- package/registry/styles/sera/checkbox.css +6 -0
- package/registry/styles/sera/collapsible.css +1 -1
- package/registry/styles/sera/command.css +6 -0
- package/registry/styles/sera/drawer.css +8 -0
- package/registry/styles/sera/empty.css +2 -4
- package/registry/styles/sera/field.css +1 -1
- package/registry/styles/sera/input-group.css +14 -2
- package/registry/styles/sera/input-otp.css +82 -31
- package/registry/styles/sera/input.css +5 -0
- package/registry/styles/sera/kbd.css +1 -1
- package/registry/styles/sera/label.css +4 -0
- package/registry/styles/sera/menubar.css +1 -1
- package/registry/styles/sera/native-select.css +9 -2
- package/registry/styles/sera/navigation-menu.css +11 -0
- package/registry/styles/sera/primitives/listbox.css +8 -0
- package/registry/styles/sera/primitives/menu.css +8 -4
- package/registry/styles/sera/progress.css +26 -1
- package/registry/styles/sera/radio.css +3 -1
- package/registry/styles/sera/select.css +7 -2
- package/registry/styles/sera/sheet.css +20 -0
- package/registry/styles/sera/sidebar.css +117 -0
- package/registry/styles/sera/switch.css +37 -8
- package/registry/styles/sera/table.css +6 -2
- package/registry/styles/sera/textarea.css +5 -0
- package/registry/styles/sera/toggle-group.css +10 -0
- package/registry/styles/sera/tooltip.css +29 -16
- package/registry/styles/vega/accordion.css +1 -1
- package/registry/styles/vega/alert-dialog.css +8 -0
- package/registry/styles/vega/alert.css +1 -17
- package/registry/styles/vega/avatar.css +44 -1
- package/registry/styles/vega/badge.css +28 -0
- package/registry/styles/vega/breadcrumb.css +2 -1
- package/registry/styles/vega/button-group.css +5 -17
- package/registry/styles/vega/button.css +8 -8
- package/registry/styles/vega/calendar.css +62 -0
- package/registry/styles/vega/card.css +9 -27
- package/registry/styles/vega/checkbox.css +6 -0
- package/registry/styles/vega/collapsible.css +1 -1
- package/registry/styles/vega/command.css +6 -0
- package/registry/styles/vega/drawer.css +8 -0
- package/registry/styles/vega/empty.css +2 -4
- package/registry/styles/vega/field.css +1 -1
- package/registry/styles/vega/input-group.css +14 -2
- package/registry/styles/vega/input-otp.css +81 -30
- package/registry/styles/vega/input.css +5 -0
- package/registry/styles/vega/kbd.css +1 -1
- package/registry/styles/vega/label.css +4 -0
- package/registry/styles/vega/menubar.css +1 -1
- package/registry/styles/vega/native-select.css +9 -2
- package/registry/styles/vega/navigation-menu.css +11 -0
- package/registry/styles/vega/primitives/listbox.css +8 -0
- package/registry/styles/vega/primitives/menu.css +8 -4
- package/registry/styles/vega/progress.css +26 -1
- package/registry/styles/vega/radio.css +3 -1
- package/registry/styles/vega/select.css +7 -2
- package/registry/styles/vega/sheet.css +20 -0
- package/registry/styles/vega/sidebar.css +114 -1
- package/registry/styles/vega/switch.css +37 -8
- package/registry/styles/vega/table.css +6 -2
- package/registry/styles/vega/textarea.css +5 -0
- package/registry/styles/vega/toggle-group.css +11 -0
- package/registry/styles/vega/tooltip.css +29 -16
|
@@ -1,13 +1,141 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
<div class="btn-group" role="group" aria-label="
|
|
3
|
-
<button class="btn" data-variant="outline">
|
|
4
|
-
<button class="btn" data-variant="outline">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<div class="btn-group" role="group" aria-label="
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div class="btn-group" role="group" aria-label="History">
|
|
3
|
+
<button type="button" class="btn" data-variant="outline">Undo</button>
|
|
4
|
+
<button type="button" class="btn" data-variant="outline">Redo</button>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<!-- Orientation -->
|
|
8
|
+
<div style="display: flex; align-items: flex-start; gap: 1rem">
|
|
9
|
+
<div class="btn-group" role="group" aria-label="Zoom">
|
|
10
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Zoom out"><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="M5 12h14"/></svg></button>
|
|
11
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Zoom in"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="btn-group" role="group" aria-label="Volume" data-orientation="vertical">
|
|
14
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Volume up"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
15
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Volume down"><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="M5 12h14"/></svg></button>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Sizes -->
|
|
20
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem">
|
|
21
|
+
<div class="btn-group" role="group" aria-label="Small actions">
|
|
22
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Small</button>
|
|
23
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Button</button>
|
|
24
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon-sm" aria-label="Add"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="btn-group" role="group" aria-label="Default actions">
|
|
27
|
+
<button type="button" class="btn" data-variant="outline">Default</button>
|
|
28
|
+
<button type="button" class="btn" data-variant="outline">Button</button>
|
|
29
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Add"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="btn-group" role="group" aria-label="Large actions">
|
|
32
|
+
<button type="button" class="btn" data-variant="outline" data-size="lg">Large</button>
|
|
33
|
+
<button type="button" class="btn" data-variant="outline" data-size="lg">Button</button>
|
|
34
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon-lg" aria-label="Add"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<!-- Text -->
|
|
39
|
+
<div class="btn-group" role="group" aria-label="Project URL">
|
|
40
|
+
<label class="label" for="demo-button-group-url">https://</label>
|
|
41
|
+
<input class="input" id="demo-button-group-url" type="text" placeholder="example.com">
|
|
42
|
+
<button type="button" class="btn" data-variant="outline">Copy</button>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Separator -->
|
|
46
|
+
<div class="btn-group" role="group" aria-label="Clipboard">
|
|
47
|
+
<button type="button" class="btn" data-variant="secondary">Copy</button>
|
|
48
|
+
<hr role="separator" aria-orientation="vertical">
|
|
49
|
+
<button type="button" class="btn" data-variant="secondary">Paste</button>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<!-- Split -->
|
|
53
|
+
<div class="btn-group" role="group" aria-label="New project">
|
|
54
|
+
<button type="button" class="btn" data-variant="secondary">New project</button>
|
|
55
|
+
<hr role="separator" aria-orientation="vertical">
|
|
56
|
+
<button type="button" class="btn" data-variant="secondary" data-size="icon" aria-label="New project options"><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="m6 9 6 6 6-6"/></svg></button>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<!-- Input -->
|
|
60
|
+
<div class="btn-group" role="group" aria-label="Search">
|
|
61
|
+
<input class="input" type="search" placeholder="Search components..." aria-label="Search components">
|
|
62
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Search"><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></button>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<!-- Dropdown menu -->
|
|
66
|
+
<div class="btn-group" role="group" aria-label="Conversation actions">
|
|
67
|
+
<button type="button" class="btn" data-variant="outline">Follow</button>
|
|
68
|
+
<div class="dropdown-menu">
|
|
69
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-haspopup="menu" aria-expanded="false" aria-label="More conversation actions"><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="m6 9 6 6 6-6"/></svg></button>
|
|
70
|
+
<div data-popover data-side="bottom" data-align="end" aria-hidden="true" style="width: 11rem">
|
|
71
|
+
<div role="menu">
|
|
72
|
+
<button type="button" role="menuitem">Mute conversation</button>
|
|
73
|
+
<button type="button" role="menuitem">Mark as read</button>
|
|
74
|
+
<button type="button" role="menuitem">Report conversation</button>
|
|
75
|
+
<div role="separator"></div>
|
|
76
|
+
<button type="button" role="menuitem" data-variant="destructive">Delete conversation</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<!-- Popover -->
|
|
83
|
+
<div class="btn-group" role="group" aria-label="Copilot">
|
|
84
|
+
<button type="button" class="btn" data-variant="outline"><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="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>Copilot</button>
|
|
85
|
+
<div class="popover">
|
|
86
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-expanded="false" aria-label="Start a new task"><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="m6 9 6 6 6-6"/></svg></button>
|
|
87
|
+
<div data-popover data-side="bottom" data-align="end" aria-hidden="true">
|
|
88
|
+
<header>
|
|
89
|
+
<h3 data-slot="title">Start a new task</h3>
|
|
90
|
+
<p data-slot="description">Describe your task in natural language.</p>
|
|
91
|
+
</header>
|
|
92
|
+
<div class="field">
|
|
93
|
+
<label class="label" for="demo-button-group-task">Task</label>
|
|
94
|
+
<textarea class="textarea" id="demo-button-group-task" placeholder="I need to..."></textarea>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<!-- Select -->
|
|
101
|
+
<div class="btn-group" role="group" aria-label="Send amount">
|
|
102
|
+
<div class="btn-group" role="group" aria-label="Amount">
|
|
103
|
+
<div class="select">
|
|
104
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-button-group-currency" aria-label="Currency">
|
|
105
|
+
<span data-slot="value">$</span>
|
|
106
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
107
|
+
</button>
|
|
108
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-button-group-currency">
|
|
109
|
+
<div role="listbox" aria-label="Currency">
|
|
110
|
+
<div role="option" aria-selected="true" aria-label="US Dollar">
|
|
111
|
+
<span data-slot="text">$</span>
|
|
112
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
113
|
+
</div>
|
|
114
|
+
<div role="option" aria-selected="false" aria-label="Euro">
|
|
115
|
+
<span data-slot="text">€</span>
|
|
116
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
117
|
+
</div>
|
|
118
|
+
<div role="option" aria-selected="false" aria-label="British Pound">
|
|
119
|
+
<span data-slot="text">£</span>
|
|
120
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<input class="input" type="text" inputmode="decimal" placeholder="10.00" aria-label="Amount">
|
|
126
|
+
</div>
|
|
127
|
+
<div class="btn-group" role="group" aria-label="Send">
|
|
128
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Send"><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="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></button>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<!-- Nested -->
|
|
133
|
+
<div class="btn-group" role="group" aria-label="Message composer">
|
|
134
|
+
<div class="btn-group" role="group" aria-label="Attachments">
|
|
135
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Add attachment"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="btn-group" role="group" aria-label="Message">
|
|
138
|
+
<input class="input" type="text" placeholder="Send a message..." aria-label="Message">
|
|
139
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Send message"><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="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></button>
|
|
140
|
+
</div>
|
|
13
141
|
</div>
|
|
@@ -1,21 +1,66 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<button type="button" class="btn">Button</button>
|
|
3
|
+
|
|
1
4
|
<!-- Variants -->
|
|
2
5
|
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
3
|
-
<button class="btn">Default</button>
|
|
4
|
-
<button class="btn" data-variant="secondary">Secondary</button>
|
|
5
|
-
<button class="btn" data-variant="outline">Outline</button>
|
|
6
|
-
<button class="btn" data-variant="ghost">Ghost</button>
|
|
7
|
-
<button class="btn" data-variant="link">Link</button>
|
|
8
|
-
<button class="btn" data-variant="destructive">Destructive</button>
|
|
6
|
+
<button type="button" class="btn">Default</button>
|
|
7
|
+
<button type="button" class="btn" data-variant="secondary">Secondary</button>
|
|
8
|
+
<button type="button" class="btn" data-variant="outline">Outline</button>
|
|
9
|
+
<button type="button" class="btn" data-variant="ghost">Ghost</button>
|
|
10
|
+
<button type="button" class="btn" data-variant="link">Link</button>
|
|
11
|
+
<button type="button" class="btn" data-variant="destructive">Destructive</button>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<!-- Sizes -->
|
|
15
|
+
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem">
|
|
16
|
+
<button type="button" class="btn" data-size="xs">Extra small</button>
|
|
17
|
+
<button type="button" class="btn" data-size="sm">Small</button>
|
|
18
|
+
<button type="button" class="btn">Default</button>
|
|
19
|
+
<button type="button" class="btn" data-size="lg">Large</button>
|
|
9
20
|
</div>
|
|
10
21
|
|
|
11
|
-
<!--
|
|
22
|
+
<!-- Icon buttons -->
|
|
12
23
|
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem">
|
|
13
|
-
<button class="btn" data-size="xs"
|
|
14
|
-
<button class="btn" data-size="sm"
|
|
15
|
-
<button class="btn"
|
|
16
|
-
<button class="btn" data-size="lg"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
<button type="button" class="btn" data-size="icon-xs" aria-label="Add"><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="M5 12h14"/><path d="M12 5v14"/></svg></button>
|
|
25
|
+
<button type="button" class="btn" data-size="icon-sm" aria-label="Search"><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></button>
|
|
26
|
+
<button type="button" class="btn" data-size="icon" aria-label="Next"><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="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></button>
|
|
27
|
+
<button type="button" class="btn" data-size="icon-lg" aria-label="More options"><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="m6 9 6 6 6-6"/></svg></button>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<!-- With icons -->
|
|
31
|
+
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem">
|
|
32
|
+
<button type="button" class="btn"><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"><line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></svg>New branch</button>
|
|
33
|
+
<button type="button" class="btn" data-variant="outline"><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"><circle cx="12" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><circle cx="18" cy="6" r="3"/><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"/><path d="M12 12v3"/></svg>Fork</button>
|
|
34
|
+
<button type="button" class="btn" data-variant="ghost">Continue<svg data-icon="inline-end" 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="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></button>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<!-- Rounded -->
|
|
38
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
39
|
+
<button type="button" class="btn" style="border-radius: var(--radius-full)">Get started</button>
|
|
40
|
+
<button type="button" class="btn" data-variant="outline" style="border-radius: var(--radius-full)">Documentation</button>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<!-- Loading -->
|
|
44
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
45
|
+
<button type="button" class="btn" aria-busy="true"><span class="spinner" data-icon="inline-start" aria-hidden="true"></span>Generating</button>
|
|
46
|
+
<button type="button" class="btn" data-variant="outline" aria-busy="true"><span class="spinner" data-icon="inline-start" aria-hidden="true"></span>Downloading</button>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- Disabled and invalid -->
|
|
50
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
51
|
+
<button type="button" class="btn" disabled>Disabled</button>
|
|
52
|
+
<button type="button" class="btn" data-variant="outline" disabled>Disabled</button>
|
|
53
|
+
<button type="button" class="btn" aria-invalid="true">Invalid</button>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<!-- As link -->
|
|
57
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
58
|
+
<a class="btn" href="#">Login</a>
|
|
59
|
+
<a class="btn" data-variant="outline" href="#">Read the docs</a>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<!-- Right-to-left -->
|
|
63
|
+
<div dir="rtl" style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
64
|
+
<button type="button" class="btn"><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"><line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></svg>New branch</button>
|
|
65
|
+
<button type="button" class="btn" data-variant="outline"><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"><circle cx="12" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><circle cx="18" cy="6" r="3"/><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"/><path d="M12 12v3"/></svg>Fork</button>
|
|
21
66
|
</div>
|