@fea-ui/styles 0.1.0-alpha.6 → 0.1.0-alpha.7
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/src/components/alert-dialog.css +1 -1
- package/src/components/button.css +12 -6
- package/src/components/checkbox.css +1 -1
- package/src/components/dialog.css +1 -1
- package/src/components/drawer.css +1 -1
- package/src/components/index.css +1 -0
- package/src/components/input.css +1 -1
- package/src/components/meter.css +1 -1
- package/src/components/popover.css +54 -0
package/package.json
CHANGED
|
@@ -6,12 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
@apply w-fit px-4 py-4;
|
|
8
8
|
|
|
9
|
-
@apply transition-
|
|
9
|
+
@apply transition-[scale] motion-reduce:transition-none;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@apply brightness-90;
|
|
14
|
-
}
|
|
11
|
+
&:hover:not([data-disabled]) {
|
|
12
|
+
@apply brightness-90;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
&:active {
|
|
@@ -33,6 +31,10 @@
|
|
|
33
31
|
|
|
34
32
|
.button--sm {
|
|
35
33
|
@apply h-8 text-sm;
|
|
34
|
+
|
|
35
|
+
svg {
|
|
36
|
+
@apply size-4;
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
.button--md {
|
|
@@ -60,7 +62,11 @@
|
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
.button--ghost {
|
|
63
|
-
@apply
|
|
65
|
+
@apply border-0 bg-transparent text-foreground;
|
|
66
|
+
|
|
67
|
+
&:hover:not([data-disabled]) {
|
|
68
|
+
@apply bg-secondary/10;
|
|
69
|
+
}
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
.button--icon-only {
|
package/src/components/index.css
CHANGED
package/src/components/input.css
CHANGED
package/src/components/meter.css
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.popover__trigger {
|
|
2
|
+
@apply transition-[scale] motion-reduce:transition-none;
|
|
3
|
+
|
|
4
|
+
&[data-popup-open] {
|
|
5
|
+
@apply scale-95;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.popover__positioner {
|
|
10
|
+
width: var(--positioner-width);
|
|
11
|
+
max-width: var(--available-width);
|
|
12
|
+
height: var(--positioner-width);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.popover__popup {
|
|
16
|
+
@apply box-border p-3 rounded;
|
|
17
|
+
|
|
18
|
+
@apply bg-popover text-popover-foreground shadow;
|
|
19
|
+
|
|
20
|
+
@apply transition-[transform,scale] motion-reduce:transition-none;
|
|
21
|
+
|
|
22
|
+
&[data-starting-style],
|
|
23
|
+
&[data-ending-style] {
|
|
24
|
+
@apply opacity-0 scale-90;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.popover__arrow {
|
|
29
|
+
@apply flex text-popover size-6;
|
|
30
|
+
|
|
31
|
+
&[data-side="top"] {
|
|
32
|
+
@apply -bottom-3 rotate-180;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-side="right"] {
|
|
36
|
+
@apply -start-3 rotate-90;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-side="bottom"] {
|
|
40
|
+
@apply -top-3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-side="left"] {
|
|
44
|
+
@apply -end-3 -rotate-90;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.popover__title {
|
|
49
|
+
@apply text-lg font-medium;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.popover__description {
|
|
53
|
+
@apply text-sm text-muted-foreground;
|
|
54
|
+
}
|