@fea-ui/styles 0.1.0-alpha.6 → 0.1.0-alpha.8
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 +3 -0
- package/src/components/input.css +1 -1
- package/src/components/meter.css +1 -1
- package/src/components/navbar.css +1 -1
- package/src/components/popover.css +54 -0
- package/src/components/progress.css +72 -0
- package/src/components/radio.css +31 -0
- package/src/components/table.css +31 -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
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** Base Styling */
|
|
2
|
+
.progress {
|
|
3
|
+
@apply grid grid-cols-2 items-center gap-1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.progress__label {
|
|
7
|
+
@apply font-medium;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.progress__value {
|
|
11
|
+
@apply col-start-2 m-0 text-right text-sm leading-5;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.progress__track {
|
|
15
|
+
@apply col-span-2 block w-48 overflow-hidden rounded shadow-inner;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.progress__indicator {
|
|
19
|
+
@apply block rounded;
|
|
20
|
+
|
|
21
|
+
@apply transition-[width] motion-reduce:transition-none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Variants */
|
|
25
|
+
.progress--primary .progress__track {
|
|
26
|
+
@apply bg-primary/10;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.progress--primary .progress__indicator {
|
|
30
|
+
@apply bg-primary;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.progress--secondary .progress__track {
|
|
34
|
+
@apply bg-secondary/10;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.progress--secondary .progress__indicator {
|
|
38
|
+
@apply bg-secondary;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.progress--success .progress__track {
|
|
42
|
+
@apply bg-success/10;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.progress--success .progress__indicator {
|
|
46
|
+
@apply bg-success;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.progress--danger .progress__track {
|
|
50
|
+
@apply bg-danger/10;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.progress--danger .progress__indicator {
|
|
54
|
+
@apply bg-danger;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Sizes */
|
|
58
|
+
.progress--sm .progress__track {
|
|
59
|
+
@apply h-2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.progress--sm .progress__label {
|
|
63
|
+
@apply text-sm;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.progress--md .progress__track {
|
|
67
|
+
@apply h-3;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.progress--lg .progress__track {
|
|
71
|
+
@apply h-4;
|
|
72
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.radio__group {
|
|
2
|
+
@apply flex flex-col gap-4;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.radio {
|
|
6
|
+
@apply box-border flex size-5 items-center justify-center rounded-full;
|
|
7
|
+
|
|
8
|
+
&[data-unchecked] {
|
|
9
|
+
@apply border-border bg-secondary;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-checked] {
|
|
13
|
+
@apply border-primary bg-primary;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:focus-visible {
|
|
17
|
+
@apply status-focused;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.radio__indicator {
|
|
22
|
+
@apply flex items-center justify-center;
|
|
23
|
+
|
|
24
|
+
&[data-unchecked] {
|
|
25
|
+
@apply hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
@apply block size-2 rounded-full bg-background content-[''];
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/components/table.css
CHANGED
|
@@ -1 +1,32 @@
|
|
|
1
1
|
/** Base Styling */
|
|
2
|
+
.table {
|
|
3
|
+
@apply w-full border-collapse bg-card;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.table__thead {
|
|
7
|
+
@apply bg-secondary text-secondary-foreground;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.table__th {
|
|
11
|
+
@apply border-border px-4 py-2 text-left font-medium;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.table__tbody {
|
|
15
|
+
@apply divide-y divide-border;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.table__tr {
|
|
19
|
+
@apply cursor-pointer;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
@apply bg-secondary/50;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.table__td {
|
|
27
|
+
@apply border-border px-4 py-2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.table__caption {
|
|
31
|
+
@apply mt-2 text-sm text-secondary-foreground;
|
|
32
|
+
}
|