loseta 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/registry/components/collapsible.css +57 -0
- package/registry/components/combobox.css +42 -0
- package/registry/components/command.css +20 -0
- package/registry/components/input-group.css +45 -0
- package/registry/components/input-otp.css +20 -0
- package/registry/components/scroll-area.css +16 -0
- package/registry/components/select.css +47 -0
- package/registry/components/slider.css +13 -0
- package/registry/examples/collapsible.html +22 -0
- package/registry/examples/combobox.html +28 -0
- package/registry/examples/command.html +44 -0
- package/registry/examples/input-group.html +14 -0
- package/registry/examples/input-otp.html +5 -0
- package/registry/examples/scroll-area.html +25 -0
- package/registry/examples/select.html +50 -0
- package/registry/examples/slider.html +9 -0
- package/registry/primitives/listbox.css +82 -0
- package/registry/registry.json +284 -1
- package/registry/styles/nova/collapsible.css +50 -0
- package/registry/styles/nova/combobox.css +59 -0
- package/registry/styles/nova/command.css +19 -0
- package/registry/styles/nova/input-group.css +86 -0
- package/registry/styles/nova/input-otp.css +51 -0
- package/registry/styles/nova/primitives/listbox.css +71 -0
- package/registry/styles/nova/scroll-area.css +30 -0
- package/registry/styles/nova/select.css +71 -0
- package/registry/styles/nova/slider.css +15 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Select */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.select {
|
|
4
|
+
> button {
|
|
5
|
+
height: 2rem;
|
|
6
|
+
border-style: solid;
|
|
7
|
+
border-width: 1px;
|
|
8
|
+
border-color: var(--input);
|
|
9
|
+
border-radius: var(--radius-lg);
|
|
10
|
+
background-color: light-dark(
|
|
11
|
+
transparent,
|
|
12
|
+
color-mix(in oklab, var(--input) 30%, transparent)
|
|
13
|
+
);
|
|
14
|
+
padding-inline: 0.5rem;
|
|
15
|
+
font-size: var(--text-sm);
|
|
16
|
+
line-height: var(--text-sm--line-height);
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
text-align: start;
|
|
19
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
20
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
transition-duration: 150ms;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: light-dark(
|
|
25
|
+
var(--muted),
|
|
26
|
+
color-mix(in oklab, var(--input) 50%, transparent)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
border-color: var(--ring);
|
|
32
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[aria-invalid='true'] {
|
|
36
|
+
border-color: light-dark(
|
|
37
|
+
var(--destructive),
|
|
38
|
+
color-mix(in oklab, var(--destructive) 50%, transparent)
|
|
39
|
+
);
|
|
40
|
+
box-shadow: 0 0 0 3px light-dark(
|
|
41
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
42
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> svg {
|
|
47
|
+
width: 1rem;
|
|
48
|
+
height: 1rem;
|
|
49
|
+
color: var(--muted-foreground);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-size='sm'] > button {
|
|
54
|
+
height: 1.75rem;
|
|
55
|
+
font-size: var(--text-xs);
|
|
56
|
+
line-height: var(--text-xs--line-height);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot='value'] {
|
|
60
|
+
flex: 1 1 auto;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
text-align: start;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-slot='value'][data-placeholder] {
|
|
68
|
+
color: var(--muted-foreground);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|