loseta 0.15.0 → 0.16.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/button-group.css +33 -18
- package/registry/components/button.css +6 -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 +6 -0
- package/registry/components/input.css +5 -0
- package/registry/components/navigation-menu.css +18 -1
- package/registry/components/radio.css +19 -4
- 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 +106 -78
- 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 +3 -0
- 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/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 +74 -2
- package/registry/examples/input.html +75 -4
- package/registry/examples/item.html +12 -0
- package/registry/examples/marker.html +6 -0
- package/registry/examples/menubar.html +338 -9
- package/registry/examples/message.html +16 -0
- 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/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 +99 -2
- package/registry/examples/trace.html +13 -1
- package/registry/primitives/menu.css +10 -0
- package/registry/primitives/popover.css +38 -6
- package/registry/registry.json +116 -32
- 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/button-group.css +5 -17
- package/registry/styles/luma/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/lyra/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/maia/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/mira/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/nova/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/rhea/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/sera/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/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/button-group.css +5 -17
- package/registry/styles/vega/button.css +8 -8
- 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 +8 -0
- 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/navigation-menu.css +11 -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/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/package.json
CHANGED
|
@@ -76,6 +76,13 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
&:is([data-size='sm']) > * > header > figure,
|
|
80
|
+
> [data-size='sm'] > header > figure {
|
|
81
|
+
@media (width >= 40rem) {
|
|
82
|
+
grid-row: auto;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
79
86
|
&:is([data-size='sm']) > * > header:has(> figure) > :is(h2, p),
|
|
80
87
|
> [data-size='sm'] > header:has(> figure) > :is(h2, p) {
|
|
81
88
|
@media (width >= 40rem) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
flex-shrink: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
7
|
vertical-align: middle;
|
|
9
8
|
-webkit-user-select: none;
|
|
10
9
|
user-select: none;
|
|
@@ -47,8 +46,18 @@
|
|
|
47
46
|
display: flex;
|
|
48
47
|
align-items: center;
|
|
49
48
|
|
|
50
|
-
>
|
|
49
|
+
> :not(:last-child) {
|
|
51
50
|
margin-inline-end: -0.375rem;
|
|
52
51
|
}
|
|
52
|
+
|
|
53
|
+
> [data-slot='count'] {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
-webkit-user-select: none;
|
|
60
|
+
user-select: none;
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
63
|
}
|
|
@@ -6,15 +6,27 @@
|
|
|
6
6
|
width: fit-content;
|
|
7
7
|
align-items: stretch;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/* A panel can live inside a nested group, so every group in the chain is
|
|
10
|
+
lifted above sibling content while a popover is open. */
|
|
11
|
+
&:has([data-popover][aria-hidden='false']) {
|
|
10
12
|
position: relative;
|
|
11
13
|
z-index: 50;
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
|
|
14
16
|
> .input {
|
|
15
17
|
flex: 1;
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
/* A picker keeps its content width inside a group instead of filling it,
|
|
21
|
+
so neighbouring inputs and buttons get the available space. */
|
|
22
|
+
> .select {
|
|
23
|
+
width: auto;
|
|
24
|
+
|
|
25
|
+
> [role='combobox'] {
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
18
30
|
> *:focus-visible,
|
|
19
31
|
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
|
|
20
32
|
position: relative;
|
|
@@ -23,14 +35,14 @@
|
|
|
23
35
|
|
|
24
36
|
> hr[role='separator'] {
|
|
25
37
|
position: relative;
|
|
26
|
-
margin-inline: 0;
|
|
27
|
-
margin-block: 1px;
|
|
28
|
-
height: auto;
|
|
29
|
-
width: 1px;
|
|
30
38
|
flex-shrink: 0;
|
|
31
39
|
align-self: stretch;
|
|
40
|
+
inline-size: 1px;
|
|
41
|
+
block-size: auto;
|
|
42
|
+
margin-inline: 0;
|
|
43
|
+
margin-block: 1px;
|
|
32
44
|
border-style: solid;
|
|
33
|
-
border-width:
|
|
45
|
+
border-width: 0;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
&:not([data-orientation='vertical']) {
|
|
@@ -39,35 +51,38 @@
|
|
|
39
51
|
border-start-start-radius: 0;
|
|
40
52
|
border-end-start-radius: 0;
|
|
41
53
|
border-inline-start-style: solid;
|
|
42
|
-
border-inline-start-width:
|
|
54
|
+
border-inline-start-width: 0;
|
|
43
55
|
}
|
|
56
|
+
|
|
44
57
|
> *:not(:last-child),
|
|
45
58
|
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
46
59
|
border-start-end-radius: 0;
|
|
47
60
|
border-end-end-radius: 0;
|
|
48
61
|
}
|
|
49
|
-
}
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
&[data-orientation='vertical'] {
|
|
51
65
|
flex-direction: column;
|
|
52
66
|
|
|
53
67
|
> hr[role='separator'] {
|
|
68
|
+
block-size: 1px;
|
|
69
|
+
inline-size: auto;
|
|
54
70
|
margin-inline: 1px;
|
|
55
71
|
margin-block: 0;
|
|
56
|
-
height: 1px;
|
|
57
|
-
width: auto;
|
|
58
72
|
}
|
|
59
|
-
|
|
73
|
+
|
|
60
74
|
> *:not(:first-child),
|
|
61
75
|
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
62
|
-
border-
|
|
63
|
-
border-
|
|
64
|
-
border-
|
|
65
|
-
border-
|
|
76
|
+
border-start-start-radius: 0;
|
|
77
|
+
border-start-end-radius: 0;
|
|
78
|
+
border-block-start-style: solid;
|
|
79
|
+
border-block-start-width: 0;
|
|
66
80
|
}
|
|
81
|
+
|
|
67
82
|
> *:not(:last-child),
|
|
68
83
|
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
69
|
-
border-
|
|
70
|
-
border-
|
|
84
|
+
border-end-start-radius: 0;
|
|
85
|
+
border-end-end-radius: 0;
|
|
71
86
|
}
|
|
72
87
|
}
|
|
73
88
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
white-space: nowrap;
|
|
9
|
+
text-decoration-line: none;
|
|
9
10
|
transition-property: all;
|
|
10
11
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
11
12
|
transition-duration: 150ms;
|
|
@@ -13,6 +14,11 @@
|
|
|
13
14
|
-webkit-user-select: none;
|
|
14
15
|
user-select: none;
|
|
15
16
|
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
outline: 2px solid transparent;
|
|
19
|
+
outline-offset: 2px;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
&:disabled {
|
|
17
23
|
pointer-events: none;
|
|
18
24
|
opacity: 50%;
|
|
@@ -6,15 +6,30 @@
|
|
|
6
6
|
appearance: none;
|
|
7
7
|
outline-style: none;
|
|
8
8
|
|
|
9
|
+
@media (forced-colors: active) {
|
|
10
|
+
outline: 2px solid transparent;
|
|
11
|
+
outline-offset: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset-block: -0.25rem;
|
|
17
|
+
inset-inline: -0.25rem;
|
|
18
|
+
content: '';
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
&:disabled {
|
|
10
22
|
cursor: not-allowed;
|
|
11
23
|
opacity: 50%;
|
|
12
24
|
}
|
|
13
|
-
|
|
14
|
-
&:checked:after {
|
|
25
|
+
|
|
26
|
+
&:is(:checked, :indeterminate)::after {
|
|
15
27
|
display: block;
|
|
16
28
|
background-color: currentcolor;
|
|
17
29
|
content: '';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:checked:not(:indeterminate)::after {
|
|
18
33
|
mask-image: var(--check-icon);
|
|
19
34
|
mask-size: 0.875rem;
|
|
20
35
|
mask-position: center;
|
|
@@ -8,13 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
> [role='listbox'] {
|
|
10
10
|
max-height: 20rem;
|
|
11
|
+
overflow-x: hidden;
|
|
11
12
|
overflow-y: auto;
|
|
12
13
|
}
|
|
13
14
|
|
|
15
|
+
[role='listbox'] [role='separator'] {
|
|
16
|
+
border-style: solid;
|
|
17
|
+
border-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
[data-slot='shortcut'] {
|
|
15
21
|
margin-inline-start: auto;
|
|
16
22
|
flex-shrink: 0;
|
|
17
23
|
text-align: end;
|
|
24
|
+
direction: ltr;
|
|
18
25
|
}
|
|
19
26
|
}
|
|
20
27
|
}
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
top: var(--context-y, 0);
|
|
7
7
|
z-index: 50;
|
|
8
8
|
display: flex;
|
|
9
|
+
max-block-size: calc(100dvh - var(--context-y, 0px) - 0.5rem);
|
|
9
10
|
flex-direction: column;
|
|
11
|
+
overflow-x: hidden;
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
overscroll-behavior: contain;
|
|
10
14
|
outline-style: none;
|
|
11
15
|
|
|
12
16
|
@media (forced-colors: active) {
|
|
@@ -19,6 +23,10 @@
|
|
|
19
23
|
opacity: 0%;
|
|
20
24
|
}
|
|
21
25
|
|
|
26
|
+
&:has([role='none'] > [data-popover]) {
|
|
27
|
+
overflow: visible;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
23
31
|
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
24
32
|
background-color: var(--accent);
|
|
@@ -7,7 +7,24 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
> * > section {
|
|
10
|
-
|
|
10
|
+
min-height: 0;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> *:has(> header):has(> section):has(> footer) {
|
|
15
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
> *:has(> header):has(> section):not(:has(> footer)) {
|
|
19
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> *:has(> section):not(:has(> header)):has(> footer) {
|
|
23
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> *:has(> section):not(:has(> header)):not(:has(> footer)) {
|
|
27
|
+
grid-template-rows: minmax(0, 1fr);
|
|
11
28
|
}
|
|
12
29
|
|
|
13
30
|
> * > footer {
|
|
@@ -18,6 +35,12 @@
|
|
|
18
35
|
flex-direction: row;
|
|
19
36
|
justify-content: flex-end;
|
|
20
37
|
}
|
|
38
|
+
|
|
39
|
+
&[data-align='start'] {
|
|
40
|
+
@media (width >= 40rem) {
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
21
44
|
}
|
|
22
45
|
|
|
23
46
|
> * > :is(button, form[method='dialog']) {
|
|
@@ -9,15 +9,19 @@
|
|
|
9
9
|
|
|
10
10
|
> header {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex-shrink: 0;
|
|
12
13
|
flex-direction: column;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
> section {
|
|
17
|
+
min-height: 0;
|
|
16
18
|
overflow-y: auto;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
> footer {
|
|
20
22
|
display: flex;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
margin-block-start: auto;
|
|
21
25
|
align-items: center;
|
|
22
26
|
justify-content: flex-end;
|
|
23
27
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/* Field */
|
|
2
2
|
@layer loseta.components {
|
|
3
|
+
/* Field sets are layout roots: fill the form column so responsive fields
|
|
4
|
+
measure their group container instead of shrink-wrapping in flex parents. */
|
|
3
5
|
.fieldset {
|
|
4
6
|
display: flex;
|
|
7
|
+
width: 100%;
|
|
5
8
|
flex-direction: column;
|
|
6
9
|
}
|
|
7
10
|
|
|
8
|
-
.
|
|
9
|
-
|
|
11
|
+
/* Field-owned groups stack their rows. Component roots that happen to use
|
|
12
|
+
role="group" (input, button and toggle groups) keep their own layout. */
|
|
13
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field, .input-group, .btn-group, .toggle-group),
|
|
14
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field, .input-group, .btn-group, .toggle-group) {
|
|
10
15
|
container-type: inline-size;
|
|
11
16
|
container-name: field-group;
|
|
12
17
|
display: flex;
|
|
@@ -148,7 +153,7 @@
|
|
|
148
153
|
position: relative;
|
|
149
154
|
}
|
|
150
155
|
|
|
151
|
-
.field-separator > hr
|
|
156
|
+
.field-separator > hr {
|
|
152
157
|
position: absolute;
|
|
153
158
|
inset-inline: 0;
|
|
154
159
|
top: 50%;
|
|
@@ -11,11 +11,21 @@
|
|
|
11
11
|
align-items: stretch;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/* Addons come after the control in the DOM so the control keeps its tab
|
|
15
|
+
order; data-align moves them into place visually. Custom controls opt
|
|
16
|
+
into the group geometry with data-slot="input-group-control". */
|
|
17
|
+
> :is(input, textarea, [data-slot='input-group-control']) {
|
|
15
18
|
flex: 1 1 auto;
|
|
16
19
|
width: auto;
|
|
17
20
|
min-width: 0;
|
|
18
21
|
height: auto;
|
|
22
|
+
resize: none;
|
|
23
|
+
outline-style: none;
|
|
24
|
+
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
outline: 2px solid transparent;
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
> [data-slot='addon'] {
|
|
@@ -25,6 +35,7 @@
|
|
|
25
35
|
justify-content: center;
|
|
26
36
|
gap: 0.25rem;
|
|
27
37
|
|
|
38
|
+
&:not([data-align]),
|
|
28
39
|
&[data-align='inline-start'],
|
|
29
40
|
&[data-align='block-start'] {
|
|
30
41
|
order: -1;
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
.input-otp {
|
|
4
4
|
display: block;
|
|
5
5
|
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
6
7
|
outline-style: none;
|
|
7
8
|
text-align: center;
|
|
8
9
|
font-variant-numeric: tabular-nums;
|
|
9
10
|
|
|
11
|
+
@media (forced-colors: active) {
|
|
12
|
+
outline: 2px solid transparent;
|
|
13
|
+
outline-offset: 2px;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
&::placeholder {
|
|
11
17
|
color: var(--muted-foreground);
|
|
12
18
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:is(a, button) {
|
|
17
|
+
> ul > li > :is(a, button) {
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: center;
|
|
@@ -27,9 +27,26 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
> ul > li > button > svg:last-child {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
transition-property: rotate;
|
|
34
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
35
|
+
transition-duration: 150ms;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> ul > li > button[aria-expanded='true'] > svg:last-child {
|
|
39
|
+
rotate: 180deg;
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
[data-slot='title'],
|
|
31
43
|
[data-slot='description'] {
|
|
32
44
|
display: block;
|
|
33
45
|
}
|
|
46
|
+
|
|
47
|
+
[data-popover] [data-slot='icon'] {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
}
|
|
34
51
|
}
|
|
35
52
|
}
|
|
@@ -8,18 +8,33 @@
|
|
|
8
8
|
border-width: 1px;
|
|
9
9
|
outline-style: none;
|
|
10
10
|
|
|
11
|
+
@media (forced-colors: active) {
|
|
12
|
+
outline: 2px solid transparent;
|
|
13
|
+
outline-offset: 2px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: calc(-0.25rem - 1px);
|
|
19
|
+
content: '';
|
|
20
|
+
}
|
|
21
|
+
|
|
11
22
|
&:disabled {
|
|
12
23
|
cursor: not-allowed;
|
|
13
24
|
opacity: 50%;
|
|
14
25
|
}
|
|
15
26
|
|
|
16
|
-
&:checked
|
|
27
|
+
&:checked::before {
|
|
17
28
|
position: absolute;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
translate: -50% -50%;
|
|
29
|
+
inset: 0;
|
|
30
|
+
margin: auto;
|
|
21
31
|
border-radius: var(--radius-full);
|
|
32
|
+
background-color: currentcolor;
|
|
22
33
|
content: '';
|
|
34
|
+
|
|
35
|
+
@media (forced-colors: active) {
|
|
36
|
+
background-color: CanvasText;
|
|
37
|
+
}
|
|
23
38
|
}
|
|
24
39
|
}
|
|
25
40
|
}
|
|
@@ -4,18 +4,28 @@
|
|
|
4
4
|
> * {
|
|
5
5
|
> header {
|
|
6
6
|
display: flex;
|
|
7
|
+
flex-shrink: 0;
|
|
7
8
|
flex-direction: column;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
> section {
|
|
12
|
+
min-height: 0;
|
|
11
13
|
overflow-y: auto;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
> footer {
|
|
15
17
|
display: flex;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
margin-block-start: auto;
|
|
16
20
|
align-items: center;
|
|
17
21
|
justify-content: flex-end;
|
|
18
22
|
}
|
|
23
|
+
|
|
24
|
+
> :is(button, form[method='dialog']) {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset-inline-end: 1rem;
|
|
27
|
+
inset-block-start: 1rem;
|
|
28
|
+
}
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
31
|
}
|
|
@@ -10,30 +10,98 @@
|
|
|
10
10
|
> footer {
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
|
+
gap: 0.5rem;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
> section {
|
|
17
|
+
display: flex;
|
|
18
|
+
min-height: 0;
|
|
16
19
|
flex: 1 1 auto;
|
|
20
|
+
flex-direction: column;
|
|
17
21
|
overflow-y: auto;
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
[data-slot='brand'] {
|
|
25
|
+
display: flex;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
text-decoration-line: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot='brand'] > svg {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
20
37
|
nav ul {
|
|
21
38
|
margin: 0;
|
|
39
|
+
display: flex;
|
|
22
40
|
list-style-type: none;
|
|
41
|
+
flex-direction: column;
|
|
23
42
|
padding: 0;
|
|
24
43
|
}
|
|
25
44
|
|
|
45
|
+
nav li {
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
|
|
26
49
|
nav a {
|
|
27
50
|
display: flex;
|
|
28
51
|
width: 100%;
|
|
52
|
+
min-width: 0;
|
|
29
53
|
align-items: center;
|
|
30
54
|
gap: 0.5rem;
|
|
31
55
|
outline-style: none;
|
|
56
|
+
text-decoration-line: none;
|
|
32
57
|
|
|
33
58
|
@media (forced-colors: active) {
|
|
34
59
|
outline: 2px solid transparent;
|
|
35
60
|
outline-offset: 2px;
|
|
36
61
|
}
|
|
37
62
|
}
|
|
63
|
+
|
|
64
|
+
nav a > svg {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
nav > header {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.5rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:is([data-slot='group-action'], [data-slot='menu-action']) {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
outline-style: none;
|
|
81
|
+
|
|
82
|
+
@media (forced-colors: active) {
|
|
83
|
+
outline: 2px solid transparent;
|
|
84
|
+
outline-offset: 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
> svg {
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:is([data-slot='menu-action'], [data-slot='menu-badge']) {
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset-block-start: 50%;
|
|
95
|
+
translate: 0 -50%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot='menu-badge'] {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
-webkit-user-select: none;
|
|
104
|
+
user-select: none;
|
|
105
|
+
}
|
|
38
106
|
}
|
|
39
107
|
}
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
/* Switch */
|
|
2
2
|
@layer loseta.components {
|
|
3
3
|
.switch {
|
|
4
|
+
position: relative;
|
|
4
5
|
display: inline-flex;
|
|
5
6
|
flex-shrink: 0;
|
|
6
7
|
appearance: none;
|
|
7
8
|
align-items: center;
|
|
9
|
+
cursor: pointer;
|
|
8
10
|
transition-property: all;
|
|
9
11
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
10
12
|
transition-duration: 150ms;
|
|
11
13
|
outline-style: none;
|
|
12
14
|
|
|
15
|
+
@media (forced-colors: active) {
|
|
16
|
+
outline: 2px solid transparent;
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::after {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset-block: -0.5rem;
|
|
23
|
+
inset-inline: -0.75rem;
|
|
24
|
+
content: '';
|
|
25
|
+
}
|
|
26
|
+
|
|
13
27
|
&:disabled {
|
|
14
28
|
cursor: not-allowed;
|
|
15
29
|
opacity: 50%;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
font-weight: 500;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
|
|
51
|
-
&:has([role='checkbox']) {
|
|
51
|
+
&:has(:is([role='checkbox'], input[type='checkbox'])) {
|
|
52
52
|
padding-inline-end: 0;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
> [role='checkbox'] {
|
|
55
|
+
> :is([role='checkbox'], input[type='checkbox']) {
|
|
56
56
|
translate: 0 2px;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
vertical-align: middle;
|
|
62
62
|
white-space: nowrap;
|
|
63
63
|
|
|
64
|
-
&:has([role='checkbox']) {
|
|
64
|
+
&:has(:is([role='checkbox'], input[type='checkbox'])) {
|
|
65
65
|
padding-inline-end: 0;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
> [role='checkbox'] {
|
|
68
|
+
> :is([role='checkbox'], input[type='checkbox']) {
|
|
69
69
|
translate: 0 2px;
|
|
70
70
|
}
|
|
71
71
|
}
|