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
|
@@ -29,6 +29,40 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
> header > [data-slot='caption'] {
|
|
33
|
+
gap: 0.25rem;
|
|
34
|
+
font-size: var(--text-sm);
|
|
35
|
+
line-height: var(--text-sm--line-height);
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> header [data-slot='dropdown'] > select {
|
|
40
|
+
height: 2rem;
|
|
41
|
+
padding-inline: 0.375rem 1.25rem;
|
|
42
|
+
border-radius: var(--radius-md);
|
|
43
|
+
color: var(--foreground);
|
|
44
|
+
font-size: var(--text-sm);
|
|
45
|
+
line-height: var(--text-sm--line-height);
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
transition-property: color, background-color, box-shadow;
|
|
48
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
49
|
+
transition-duration: 150ms;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
background-color: var(--muted);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:focus-visible {
|
|
56
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
> header [data-slot='dropdown'] > svg {
|
|
61
|
+
width: 0.75rem;
|
|
62
|
+
height: 0.75rem;
|
|
63
|
+
color: var(--muted-foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
32
66
|
[data-slot='title'] {
|
|
33
67
|
font-size: var(--text-sm);
|
|
34
68
|
line-height: var(--text-sm--line-height);
|
|
@@ -71,6 +105,34 @@
|
|
|
71
105
|
color: var(--primary-foreground);
|
|
72
106
|
}
|
|
73
107
|
|
|
108
|
+
table[aria-multiselectable='true'] td[aria-selected='true'] {
|
|
109
|
+
border-radius: var(--radius-md);
|
|
110
|
+
background-color: var(--muted);
|
|
111
|
+
color: var(--foreground);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
table[aria-multiselectable='true']
|
|
115
|
+
td[aria-selected='true']
|
|
116
|
+
+ td[aria-selected='true'] {
|
|
117
|
+
border-start-start-radius: 0;
|
|
118
|
+
border-end-start-radius: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
table[aria-multiselectable='true']
|
|
122
|
+
td[aria-selected='true']:has(+ td[aria-selected='true']) {
|
|
123
|
+
border-start-end-radius: 0;
|
|
124
|
+
border-end-end-radius: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
table[aria-multiselectable='true'] td[aria-selected='true'] > button {
|
|
128
|
+
background-color: transparent;
|
|
129
|
+
color: inherit;
|
|
130
|
+
|
|
131
|
+
&:hover {
|
|
132
|
+
background-color: color-mix(in oklab, var(--foreground) 6%, transparent);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
74
136
|
td > button[aria-current='date'] {
|
|
75
137
|
box-shadow: inset 0 0 0 1px var(--ring);
|
|
76
138
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* Card */
|
|
2
2
|
@layer loseta.style {
|
|
3
3
|
.card {
|
|
4
|
+
--card-spacing: 1.5rem;
|
|
5
|
+
|
|
4
6
|
overflow: hidden;
|
|
5
7
|
border-radius: var(--radius-xl);
|
|
6
8
|
background-color: var(--card);
|
|
@@ -21,15 +23,11 @@
|
|
|
21
23
|
border-bottom-left-radius: var(--radius-xl);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
gap: 1.5rem;
|
|
27
|
-
padding-block: 1.5rem;
|
|
28
|
-
}
|
|
26
|
+
gap: var(--card-spacing);
|
|
27
|
+
padding-block: var(--card-spacing);
|
|
29
28
|
|
|
30
29
|
&[data-size='sm'] {
|
|
31
|
-
|
|
32
|
-
padding-block: 1rem;
|
|
30
|
+
--card-spacing: 1rem;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
&:is(:not([data-size]), [data-size]):has(> footer) {
|
|
@@ -44,21 +42,13 @@
|
|
|
44
42
|
gap: 0.25rem;
|
|
45
43
|
border-top-left-radius: var(--radius-xl);
|
|
46
44
|
border-top-right-radius: var(--radius-xl);
|
|
47
|
-
padding-inline:
|
|
45
|
+
padding-inline: var(--card-spacing);
|
|
48
46
|
|
|
49
47
|
&[data-separator='bottom'] {
|
|
50
48
|
border-bottom-style: solid;
|
|
51
49
|
border-bottom-width: 1px;
|
|
52
50
|
border-bottom-color: var(--border);
|
|
53
|
-
padding-bottom:
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&[data-size='sm'] > header {
|
|
58
|
-
padding-inline: 1rem;
|
|
59
|
-
|
|
60
|
-
&[data-separator='bottom'] {
|
|
61
|
-
padding-bottom: 1rem;
|
|
51
|
+
padding-bottom: var(--card-spacing);
|
|
62
52
|
}
|
|
63
53
|
}
|
|
64
54
|
|
|
@@ -80,21 +70,13 @@
|
|
|
80
70
|
}
|
|
81
71
|
|
|
82
72
|
> section {
|
|
83
|
-
padding-inline:
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&[data-size='sm'] > section {
|
|
87
|
-
padding-inline: 1rem;
|
|
73
|
+
padding-inline: var(--card-spacing);
|
|
88
74
|
}
|
|
89
75
|
|
|
90
76
|
> footer {
|
|
91
77
|
border-bottom-right-radius: var(--radius-xl);
|
|
92
78
|
border-bottom-left-radius: var(--radius-xl);
|
|
93
|
-
padding:
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&[data-size='sm'] > footer {
|
|
97
|
-
padding: 1rem;
|
|
79
|
+
padding: var(--card-spacing);
|
|
98
80
|
}
|
|
99
81
|
}
|
|
100
82
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
&::details-content {
|
|
39
39
|
opacity: 0%;
|
|
40
|
-
transition-property: block-size, opacity;
|
|
40
|
+
transition-property: block-size, content-visibility, opacity;
|
|
41
41
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
42
42
|
transition-duration: 150ms;
|
|
43
43
|
transition-behavior: allow-discrete;
|
|
@@ -5,20 +5,18 @@
|
|
|
5
5
|
border-radius: var(--radius-xl);
|
|
6
6
|
border-style: dashed;
|
|
7
7
|
border-color: var(--border);
|
|
8
|
+
border-width: 1px;
|
|
8
9
|
padding: 1.5rem;
|
|
9
10
|
|
|
10
11
|
> header {
|
|
11
12
|
gap: 0.5rem;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
figure {
|
|
15
|
-
margin-bottom: 0.5rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
15
|
figure:has(> svg:only-child) {
|
|
19
16
|
display: flex;
|
|
20
17
|
width: 2rem;
|
|
21
18
|
height: 2rem;
|
|
19
|
+
margin-block-end: 0.5rem;
|
|
22
20
|
flex-shrink: 0;
|
|
23
21
|
align-items: center;
|
|
24
22
|
justify-content: center;
|
|
@@ -16,11 +16,22 @@
|
|
|
16
16
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
17
17
|
transition-duration: 150ms;
|
|
18
18
|
|
|
19
|
-
&:focus-
|
|
19
|
+
&:has(> :is(input, textarea, [data-slot='input-group-control']):focus-visible) {
|
|
20
20
|
border-color: var(--ring);
|
|
21
21
|
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
&:has(> :is(input, textarea, [data-slot='input-group-control']):disabled) {
|
|
25
|
+
background-color: light-dark(
|
|
26
|
+
color-mix(in oklab, var(--input) 50%, transparent),
|
|
27
|
+
color-mix(in oklab, var(--input) 80%, transparent)
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
> [data-slot='addon'] {
|
|
31
|
+
opacity: 50%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
24
35
|
&:has([aria-invalid='true']) {
|
|
25
36
|
border-color: light-dark(
|
|
26
37
|
var(--destructive),
|
|
@@ -37,7 +48,8 @@
|
|
|
37
48
|
padding-block: 0.5rem;
|
|
38
49
|
}
|
|
39
50
|
|
|
40
|
-
> :is(input, textarea) {
|
|
51
|
+
> :is(input, textarea, [data-slot='input-group-control']) {
|
|
52
|
+
height: auto;
|
|
41
53
|
border-width: 0;
|
|
42
54
|
border-radius: 0;
|
|
43
55
|
background-color: transparent;
|
|
@@ -1,51 +1,102 @@
|
|
|
1
1
|
/* Input OTP */
|
|
2
2
|
@layer loseta.style {
|
|
3
3
|
.input-otp {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
border-color: var(--input);
|
|
4
|
+
--otp-cell-size: 2.75rem;
|
|
5
|
+
--otp-gap: 0.5rem;
|
|
6
|
+
|
|
8
7
|
border-radius: var(--radius-md);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
color-mix(in oklab, var(--input) 30%, transparent)
|
|
12
|
-
);
|
|
13
|
-
padding-inline: 0.5rem;
|
|
8
|
+
font-family:
|
|
9
|
+
var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace);
|
|
14
10
|
font-size: var(--text-lg);
|
|
15
|
-
line-height: var(--text-lg--line-height);
|
|
16
|
-
letter-spacing: 0.5em;
|
|
17
|
-
transition-property: color, background-color, border-color, box-shadow;
|
|
18
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
19
|
-
transition-duration: 150ms;
|
|
20
11
|
|
|
21
|
-
|
|
12
|
+
> [data-slot='cell'] {
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
border-color: var(--input);
|
|
16
|
+
border-radius: var(--radius-md);
|
|
17
|
+
background-color: light-dark(
|
|
18
|
+
transparent,
|
|
19
|
+
color-mix(in oklab, var(--input) 30%, transparent)
|
|
20
|
+
);
|
|
21
|
+
transition-property: border-color;
|
|
22
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
23
|
+
transition-duration: 150ms;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> [data-slot='entry']::after {
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-width: 1px;
|
|
22
29
|
border-color: var(--ring);
|
|
30
|
+
border-radius: var(--radius-md);
|
|
23
31
|
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
32
|
+
transition-property: border-color, box-shadow;
|
|
33
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
transition-duration: 150ms;
|
|
24
35
|
}
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color
|
|
34
|
-
|
|
37
|
+
> [data-slot='entry'] > input::selection {
|
|
38
|
+
background-color: color-mix(in oklab, var(--primary) 35%, transparent);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* A complete code has no next cell, so the focus ring covers the row. */
|
|
42
|
+
&:has(> [data-slot='entry'] > input:valid:focus-visible) {
|
|
43
|
+
> [data-slot='cell'] {
|
|
44
|
+
border-color: var(--ring);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:has(> [data-slot='entry'] > input[aria-invalid='true']) {
|
|
49
|
+
> [data-slot='cell'],
|
|
50
|
+
> [data-slot='entry']::after {
|
|
51
|
+
border-color: light-dark(
|
|
52
|
+
var(--destructive),
|
|
53
|
+
color-mix(in oklab, var(--destructive) 50%, transparent)
|
|
54
|
+
);
|
|
55
|
+
box-shadow: 0 0 0 3px light-dark(
|
|
56
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
57
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:has(> [data-slot='entry'] > input[aria-invalid='true']:valid:focus-visible) {
|
|
63
|
+
> [data-slot='cell'] {
|
|
64
|
+
box-shadow: 0 0 0 3px light-dark(
|
|
65
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
66
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
35
69
|
}
|
|
36
70
|
|
|
37
71
|
&[data-size='sm'] {
|
|
38
|
-
|
|
72
|
+
--otp-cell-size: 2.25rem;
|
|
73
|
+
--otp-gap: 0.375rem;
|
|
74
|
+
|
|
39
75
|
font-size: var(--text-base);
|
|
40
|
-
line-height: var(--text-base--line-height);
|
|
41
|
-
letter-spacing: 0.35em;
|
|
42
76
|
}
|
|
43
77
|
|
|
44
78
|
&[data-size='lg'] {
|
|
45
|
-
|
|
79
|
+
--otp-cell-size: 3.25rem;
|
|
80
|
+
--otp-gap: 0.625rem;
|
|
81
|
+
|
|
46
82
|
font-size: var(--text-xl);
|
|
47
|
-
|
|
48
|
-
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[data-spacing='joined'] {
|
|
86
|
+
> [data-slot='cell']:not(:first-child) {
|
|
87
|
+
border-start-start-radius: 0;
|
|
88
|
+
border-end-start-radius: 0;
|
|
89
|
+
border-inline-start-width: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
> [data-slot='cell']:not(:has(+ [data-slot='entry'])) {
|
|
93
|
+
border-start-end-radius: 0;
|
|
94
|
+
border-end-end-radius: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
> [data-slot='entry']::after {
|
|
98
|
+
border-radius: 0;
|
|
99
|
+
}
|
|
49
100
|
}
|
|
50
101
|
}
|
|
51
102
|
}
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
20
20
|
transition-duration: 150ms;
|
|
21
21
|
|
|
22
|
+
&::selection {
|
|
23
|
+
background-color: var(--primary);
|
|
24
|
+
color: var(--primary-foreground);
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
&::file-selector-button {
|
|
23
28
|
height: 1.75rem;
|
|
24
29
|
font-size: var(--text-sm);
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
padding-block: 0.25rem;
|
|
15
15
|
padding-inline-start: 0.625rem;
|
|
16
16
|
padding-inline-end: 2rem;
|
|
17
|
-
font-size: var(--text-
|
|
18
|
-
line-height:
|
|
17
|
+
font-size: var(--text-base);
|
|
18
|
+
line-height: 1.5;
|
|
19
19
|
box-shadow: var(--shadow-xs);
|
|
20
20
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
21
21
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -60,12 +60,19 @@
|
|
|
60
60
|
|
|
61
61
|
&[data-size='sm'] {
|
|
62
62
|
height: 2rem;
|
|
63
|
+
font-size: var(--text-sm);
|
|
64
|
+
line-height: var(--text-sm--line-height);
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
background-image: var(--chevron-down-icon);
|
|
66
68
|
background-size: 1rem;
|
|
67
69
|
background-position: center right 0.625rem;
|
|
68
70
|
background-repeat: no-repeat;
|
|
71
|
+
|
|
72
|
+
@media (width >= 48rem) {
|
|
73
|
+
font-size: var(--text-sm);
|
|
74
|
+
line-height: var(--text-sm--line-height);
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
.native-select:dir(rtl) {
|
|
@@ -59,6 +59,17 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
[data-popover] a:has(> [data-slot='icon']) {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: 0.5rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-popover] [data-slot='icon'] > svg {
|
|
69
|
+
width: 1rem;
|
|
70
|
+
height: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
[data-slot='title'] {
|
|
63
74
|
font-size: var(--text-sm);
|
|
64
75
|
line-height: var(--text-sm--line-height);
|
|
@@ -43,6 +43,14 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
& [role='separator'] {
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
block-size: 1px;
|
|
49
|
+
margin-block: 0.25rem;
|
|
50
|
+
margin-inline: -0.25rem;
|
|
51
|
+
background-color: var(--border);
|
|
52
|
+
}
|
|
53
|
+
|
|
46
54
|
& [data-slot='indicator'] {
|
|
47
55
|
position: absolute;
|
|
48
56
|
inset-inline-end: 0.5rem;
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
transition-duration: 100ms;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
[data-popover]:has(> [role='menu']):has([role='none'] > [data-popover]) {
|
|
17
|
+
overflow: visible;
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
[role='menu'] {
|
|
17
21
|
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
18
22
|
gap: 0.5rem;
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
font-size: var(--text-sm);
|
|
23
27
|
line-height: var(--text-sm--line-height);
|
|
24
28
|
|
|
25
|
-
&:focus-visible {
|
|
29
|
+
&:is(:focus-visible, [aria-expanded='true']) {
|
|
26
30
|
background-color: var(--accent);
|
|
27
31
|
color: var(--accent-foreground);
|
|
28
32
|
}
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-highlighted] {
|
|
40
|
+
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is([data-highlighted], [aria-expanded='true']) {
|
|
37
41
|
background-color: var(--accent);
|
|
38
42
|
color: var(--accent-foreground);
|
|
39
43
|
}
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
color: var(--destructive);
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive']:is(:focus-visible, [data-highlighted]) {
|
|
49
|
+
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive']:is(:focus-visible, [data-highlighted], [aria-expanded='true']) {
|
|
46
50
|
background-color: light-dark(
|
|
47
51
|
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
48
52
|
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
@@ -97,7 +101,7 @@
|
|
|
97
101
|
color: var(--muted-foreground);
|
|
98
102
|
}
|
|
99
103
|
|
|
100
|
-
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, [data-highlighted]) :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
|
|
104
|
+
& :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, [data-highlighted], [aria-expanded='true']) :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
|
|
101
105
|
color: var(--accent-foreground);
|
|
102
106
|
}
|
|
103
107
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Progress */
|
|
2
2
|
@layer loseta.style {
|
|
3
3
|
.progress {
|
|
4
|
-
block-size: 0.
|
|
4
|
+
block-size: 0.375rem;
|
|
5
5
|
border-radius: var(--radius-full);
|
|
6
6
|
background-color: color-mix(in oklab, var(--primary) 20%, transparent);
|
|
7
7
|
|
|
@@ -48,11 +48,36 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
&:dir(rtl):indeterminate {
|
|
52
|
+
animation-direction: reverse;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
@media (prefers-reduced-motion: reduce) {
|
|
52
56
|
&:indeterminate {
|
|
53
57
|
animation-duration: 3s;
|
|
54
58
|
}
|
|
55
59
|
}
|
|
60
|
+
|
|
61
|
+
/* Keep the system-color track and sweep visible in forced-colors mode. */
|
|
62
|
+
@media (forced-colors: active) {
|
|
63
|
+
forced-color-adjust: none;
|
|
64
|
+
outline: 1px solid CanvasText;
|
|
65
|
+
background-color: Canvas;
|
|
66
|
+
|
|
67
|
+
&::-webkit-progress-value,
|
|
68
|
+
&::-moz-progress-bar {
|
|
69
|
+
background-color: Highlight;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:indeterminate {
|
|
73
|
+
background-image: linear-gradient(
|
|
74
|
+
90deg,
|
|
75
|
+
transparent,
|
|
76
|
+
Highlight,
|
|
77
|
+
transparent
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
56
81
|
}
|
|
57
82
|
|
|
58
83
|
@keyframes loseta-progress-indeterminate {
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
transparent,
|
|
11
11
|
color-mix(in oklab, var(--input) 30%, transparent)
|
|
12
12
|
);
|
|
13
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
14
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
15
|
+
transition-duration: 150ms;
|
|
13
16
|
|
|
14
17
|
&:checked {
|
|
15
18
|
border-color: var(--primary);
|
|
@@ -41,6 +44,5 @@
|
|
|
41
44
|
.radio:checked::before {
|
|
42
45
|
width: 0.5rem;
|
|
43
46
|
height: 0.5rem;
|
|
44
|
-
background-color: var(--primary-foreground);
|
|
45
47
|
}
|
|
46
48
|
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
color-mix(in oklab, var(--input) 30%, transparent)
|
|
13
13
|
);
|
|
14
14
|
padding-inline: 0.625rem;
|
|
15
|
-
font-size: var(--text-
|
|
16
|
-
line-height:
|
|
15
|
+
font-size: var(--text-base);
|
|
16
|
+
line-height: 1.5;
|
|
17
17
|
font-weight: 400;
|
|
18
18
|
text-align: start;
|
|
19
19
|
transition-property: color, background-color, border-color, box-shadow;
|
|
@@ -48,6 +48,11 @@
|
|
|
48
48
|
height: 1rem;
|
|
49
49
|
color: var(--muted-foreground);
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
@media (width >= 48rem) {
|
|
53
|
+
font-size: var(--text-sm);
|
|
54
|
+
line-height: var(--text-sm--line-height);
|
|
55
|
+
}
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
&[data-size='sm'] > button {
|