@fea-ui/styles 0.0.2 → 0.0.4

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.
Files changed (47) hide show
  1. package/package.json +22 -20
  2. package/src/components/accordion.css +25 -25
  3. package/src/components/alert-dialog.css +25 -25
  4. package/src/components/alert.css +14 -14
  5. package/src/components/autocomplete.css +24 -24
  6. package/src/components/avatar.css +6 -6
  7. package/src/components/button-group.css +8 -8
  8. package/src/components/button.css +33 -33
  9. package/src/components/card.css +8 -8
  10. package/src/components/checkbox-group.css +1 -1
  11. package/src/components/checkbox.css +19 -19
  12. package/src/components/chip.css +10 -10
  13. package/src/components/collapsible.css +20 -20
  14. package/src/components/combobox.css +25 -25
  15. package/src/components/container.css +1 -1
  16. package/src/components/context-menu.css +14 -14
  17. package/src/components/dialog.css +25 -25
  18. package/src/components/drawer.css +41 -41
  19. package/src/components/field.css +3 -3
  20. package/src/components/fieldset.css +3 -3
  21. package/src/components/form.css +1 -1
  22. package/src/components/input.css +18 -18
  23. package/src/components/label.css +3 -3
  24. package/src/components/link.css +8 -8
  25. package/src/components/list.css +1 -1
  26. package/src/components/menu.css +26 -26
  27. package/src/components/meter.css +18 -18
  28. package/src/components/navbar.css +11 -11
  29. package/src/components/navigation-menu.css +22 -22
  30. package/src/components/number-field.css +23 -23
  31. package/src/components/popover.css +27 -27
  32. package/src/components/preview-card.css +8 -8
  33. package/src/components/progress.css +18 -18
  34. package/src/components/radio.css +18 -18
  35. package/src/components/scroll-area.css +1 -1
  36. package/src/components/select.css +36 -36
  37. package/src/components/separator.css +3 -3
  38. package/src/components/sidebar.css +28 -28
  39. package/src/components/slider.css +11 -11
  40. package/src/components/spinner.css +8 -8
  41. package/src/components/switch.css +19 -19
  42. package/src/components/table.css +10 -10
  43. package/src/components/tabs.css +26 -26
  44. package/src/components/text.css +1 -1
  45. package/src/components/toggle-button.css +4 -4
  46. package/src/components/tooltip.css +26 -26
  47. package/src/styles.css +96 -96
@@ -1,72 +1,72 @@
1
1
  /** Base Styling */
2
2
  .meter {
3
- @apply grid grid-cols-2 items-center gap-1;
3
+ @apply grid grid-cols-2 items-center gap-1;
4
4
  }
5
5
 
6
6
  .meter__label {
7
- @apply font-medium;
7
+ @apply font-medium;
8
8
  }
9
9
 
10
10
  .meter__value {
11
- @apply col-start-2 m-0 text-right text-sm leading-5;
11
+ @apply col-start-2 m-0 text-right text-sm leading-5;
12
12
  }
13
13
 
14
14
  .meter__track {
15
- @apply col-span-2 block w-48 overflow-hidden rounded shadow-inner;
15
+ @apply col-span-2 block w-48 overflow-hidden rounded shadow-inner;
16
16
  }
17
17
 
18
18
  .meter__indicator {
19
- @apply block rounded;
19
+ @apply block rounded;
20
20
 
21
- @apply transition-[width] motion-reduce:transition-none;
21
+ @apply transition-[width] motion-reduce:transition-none;
22
22
  }
23
23
 
24
24
  /** Variants */
25
25
  .meter--primary .meter__track {
26
- @apply bg-primary/10;
26
+ @apply bg-primary/10;
27
27
  }
28
28
 
29
29
  .meter--primary .meter__indicator {
30
- @apply bg-primary;
30
+ @apply bg-primary;
31
31
  }
32
32
 
33
33
  .meter--secondary .meter__track {
34
- @apply bg-secondary/10;
34
+ @apply bg-secondary/10;
35
35
  }
36
36
 
37
37
  .meter--secondary .meter__indicator {
38
- @apply bg-secondary;
38
+ @apply bg-secondary;
39
39
  }
40
40
 
41
41
  .meter--success .meter__track {
42
- @apply bg-success/10;
42
+ @apply bg-success/10;
43
43
  }
44
44
 
45
45
  .meter--success .meter__indicator {
46
- @apply bg-success;
46
+ @apply bg-success;
47
47
  }
48
48
 
49
49
  .meter--danger .meter__track {
50
- @apply bg-danger/10;
50
+ @apply bg-danger/10;
51
51
  }
52
52
 
53
53
  .meter--danger .meter__indicator {
54
- @apply bg-danger;
54
+ @apply bg-danger;
55
55
  }
56
56
 
57
57
  /** Sizes */
58
58
  .meter--sm .meter__track {
59
- @apply h-2;
59
+ @apply h-2;
60
60
  }
61
61
 
62
62
  .meter--sm .meter__label {
63
- @apply text-sm;
63
+ @apply text-sm;
64
64
  }
65
65
 
66
66
  .meter--md .meter__track {
67
- @apply h-3;
67
+ @apply h-3;
68
68
  }
69
69
 
70
70
  .meter--lg .meter__track {
71
- @apply h-4;
71
+ @apply h-4;
72
72
  }
@@ -1,36 +1,36 @@
1
1
  /** Base Styling */
2
2
  .navbar {
3
- @apply bg-surface/50 border-border relative z-50 flex h-(--navbar-height) w-full items-center justify-between border-b px-4 py-2;
3
+ @apply bg-surface/50 border-border relative z-50 flex h-(--navbar-height) w-full items-center justify-between border-b px-4 py-2;
4
4
  }
5
5
 
6
6
  .navbar__container {
7
- @apply mx-auto flex w-full max-w-7xl items-center justify-between;
7
+ @apply mx-auto flex w-full max-w-7xl items-center justify-between;
8
8
  }
9
9
 
10
10
  .navbar__content {
11
- @apply flex items-center gap-2;
11
+ @apply flex items-center gap-2;
12
12
  }
13
13
 
14
14
  .navbar__toggle {
15
- @apply md:hidden;
15
+ @apply md:hidden;
16
16
 
17
- svg {
18
- @apply size-5 me-2;
19
- }
17
+ svg {
18
+ @apply me-2 size-5;
19
+ }
20
20
  }
21
21
 
22
22
  .navbar__list {
23
- @apply flex items-center gap-4;
23
+ @apply flex items-center gap-4;
24
24
  }
25
25
 
26
26
  .navbar__list-item {
27
- @apply list-none;
27
+ @apply list-none;
28
28
  }
29
29
 
30
30
  .navbar__menu {
31
- @apply flex flex-col gap-1;
31
+ @apply flex flex-col gap-1;
32
32
  }
33
33
 
34
34
  .navbar__menu-item {
35
- @apply w-full list-none px-4 py-2;
35
+ @apply w-full list-none px-4 py-2;
36
36
  }
@@ -1,45 +1,45 @@
1
1
  .navigation-menu {
2
- @apply min-w-max;
2
+ @apply min-w-max;
3
3
  }
4
4
 
5
5
  .navigation-menu__list {
6
- @apply flex items-center gap-4;
6
+ @apply flex items-center gap-4;
7
7
  }
8
8
 
9
9
  .navigation-menu__trigger {
10
- @apply cursor-pointer;
10
+ @apply cursor-pointer;
11
11
 
12
- @apply text-muted-foreground hover-safe:text-primary;
13
- @apply flex items-center justify-center gap-1;
12
+ @apply text-muted-foreground hover-safe:text-primary;
13
+ @apply flex items-center justify-center gap-1;
14
14
  }
15
15
 
16
16
  .navigation-menu__icon {
17
- @apply transition-transform motion-reduce:transition-none;
17
+ @apply transition-transform motion-reduce:transition-none;
18
18
 
19
- &[data-popup-open] {
20
- @apply rotate-180;
21
- }
19
+ &[data-popup-open] {
20
+ @apply rotate-180;
21
+ }
22
22
 
23
- & svg {
24
- @apply size-4;
25
- }
23
+ & svg {
24
+ @apply size-4;
25
+ }
26
26
  }
27
27
 
28
28
  .navigation-menu__popup {
29
- @apply bg-surface text-surface-foreground rounded border p-6 shadow;
29
+ @apply bg-surface text-surface-foreground rounded border p-6 shadow;
30
30
 
31
- @apply w-fit max-w-[calc(100vw-1rem)];
31
+ @apply w-fit max-w-[calc(100vw-1rem)];
32
32
 
33
- @apply transition-[scale,opacity] motion-reduce:transition-none;
33
+ @apply transition-[scale,opacity] motion-reduce:transition-none;
34
34
 
35
- &[data-starting-style],
36
- &[data-ending-style] {
37
- @apply scale-95 opacity-0;
38
- }
35
+ &[data-starting-style],
36
+ &[data-ending-style] {
37
+ @apply scale-95 opacity-0;
38
+ }
39
39
  }
40
40
 
41
41
  .navigation-menu__arrow {
42
- clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
43
- @apply bg-surface;
44
- @apply size-4 z-50 -top-3 relative;
42
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
43
+ @apply bg-surface;
44
+ @apply relative -top-3 z-50 size-4;
45
45
  }
@@ -1,46 +1,46 @@
1
1
  .number-field {
2
- @apply flex flex-col gap-1 items-start;
2
+ @apply flex flex-col items-start gap-1;
3
3
  }
4
4
 
5
5
  .number-field__scrub-area {
6
- cursor: ew-resize;
7
- @apply select-none font-bold;
6
+ cursor: ew-resize;
7
+ @apply font-bold select-none;
8
8
  }
9
9
 
10
10
  .number-field__scrub-area-cursor {
11
- filter: drop-shadow(0 1px 1px var(--color-primary));
11
+ filter: drop-shadow(0 1px 1px var(--color-primary));
12
12
  }
13
13
 
14
14
  .number-field__group {
15
- @apply flex;
15
+ @apply flex;
16
16
  }
17
17
 
18
18
  .number-field__input {
19
- @apply bg-input text-input-foreground hover-safe:bg-input/80 shadow border-y;
20
- @apply px-3 py-2 h-10 w-fit;
19
+ @apply bg-input text-input-foreground hover-safe:bg-input/80 border-y shadow;
20
+ @apply h-10 w-fit px-3 py-2;
21
21
 
22
- &:focus-visible {
23
- @apply status-focused;
24
- }
22
+ &:focus-visible {
23
+ @apply status-focused;
24
+ }
25
25
  }
26
26
 
27
27
  .number-field__increment,
28
28
  .number-field__decrement {
29
- @apply cursor-pointer;
29
+ @apply cursor-pointer;
30
30
 
31
- @apply bg-secondary text-secondary-foreground hover-safe:bg-secondary/80 border shadow;
32
- @apply flex items-center justify-center;
33
- @apply p-2 size-10;
31
+ @apply bg-secondary text-secondary-foreground hover-safe:bg-secondary/80 border shadow;
32
+ @apply flex items-center justify-center;
33
+ @apply size-10 p-2;
34
34
 
35
- &:first-of-type {
36
- @apply rounded-l;
37
- }
35
+ &:first-of-type {
36
+ @apply rounded-l;
37
+ }
38
38
 
39
- &:last-of-type {
40
- @apply rounded-r;
41
- }
39
+ &:last-of-type {
40
+ @apply rounded-r;
41
+ }
42
42
 
43
- &:focus-visible {
44
- @apply status-focused;
45
- }
43
+ &:focus-visible {
44
+ @apply status-focused;
45
+ }
46
46
  }
@@ -1,51 +1,51 @@
1
1
  .popover__positioner {
2
- width: var(--positioner-width);
3
- max-width: var(--available-width);
4
- height: var(--positioner-height);
2
+ width: var(--positioner-width);
3
+ max-width: var(--available-width);
4
+ height: var(--positioner-height);
5
5
  }
6
6
 
7
7
  .popover__popup {
8
- @apply px-3 py-2 rounded relative;
8
+ @apply relative rounded px-3 py-2;
9
9
 
10
- @apply bg-overlay text-overlay-foreground shadow;
10
+ @apply bg-overlay text-overlay-foreground shadow;
11
11
 
12
- @apply transition-[transform,scale] motion-reduce:transition-none;
12
+ @apply transition-[transform,scale] motion-reduce:transition-none;
13
13
 
14
- &[data-starting-style],
15
- &[data-ending-style] {
16
- @apply opacity-0 scale-90;
17
- }
14
+ &[data-starting-style],
15
+ &[data-ending-style] {
16
+ @apply scale-90 opacity-0;
17
+ }
18
18
  }
19
19
 
20
20
  .popover__arrow {
21
- clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
22
- @apply size-4 bg-overlay absolute z-50 border-border;
21
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
22
+ @apply bg-overlay border-border absolute z-50 size-4;
23
23
 
24
- &[data-side="top"] {
25
- @apply -bottom-2 rotate-180;
26
- }
24
+ &[data-side="top"] {
25
+ @apply -bottom-2 rotate-180;
26
+ }
27
27
 
28
- &[data-side="right"] {
29
- @apply -start-3 rotate-90;
30
- }
28
+ &[data-side="right"] {
29
+ @apply -start-3 rotate-90;
30
+ }
31
31
 
32
- &[data-side="bottom"] {
33
- @apply -top-2;
34
- }
32
+ &[data-side="bottom"] {
33
+ @apply -top-2;
34
+ }
35
35
 
36
- &[data-side="left"] {
37
- @apply -end-3 -rotate-90;
38
- }
36
+ &[data-side="left"] {
37
+ @apply -end-3 -rotate-90;
38
+ }
39
39
  }
40
40
 
41
41
  .popover__title {
42
- @apply font-medium;
42
+ @apply font-medium;
43
43
  }
44
44
 
45
45
  .popover__description {
46
- @apply text-sm text-muted-foreground;
46
+ @apply text-muted-foreground text-sm;
47
47
  }
48
48
 
49
49
  .popover__close {
50
- @apply absolute top-0 end-0 m-1;
50
+ @apply absolute end-0 top-0 m-1;
51
51
  }
@@ -1,16 +1,16 @@
1
1
  .preview-card__positioner {
2
- @apply outline-0;
2
+ @apply outline-0;
3
3
  }
4
4
 
5
5
  .preview-card__popup {
6
- @apply bg-surface text-surface-foreground rounded border shadow;
6
+ @apply bg-surface text-surface-foreground rounded border shadow;
7
7
 
8
- @apply px-3 py-2;
8
+ @apply px-3 py-2;
9
9
 
10
- @apply transition-[transform,scale,opacity] motion-reduce:transition-none;
10
+ @apply transition-[transform,scale,opacity] motion-reduce:transition-none;
11
11
 
12
- &[data-starting-style],
13
- &[data-ending-style] {
14
- @apply opacity-0 scale-90;
15
- }
12
+ &[data-starting-style],
13
+ &[data-ending-style] {
14
+ @apply scale-90 opacity-0;
15
+ }
16
16
  }
@@ -1,72 +1,72 @@
1
1
  /** Base Styling */
2
2
  .progress {
3
- @apply grid grid-cols-2 items-center gap-1;
3
+ @apply grid grid-cols-2 items-center gap-1;
4
4
  }
5
5
 
6
6
  .progress__label {
7
- @apply font-medium;
7
+ @apply font-medium;
8
8
  }
9
9
 
10
10
  .progress__value {
11
- @apply col-start-2 m-0 text-right text-sm leading-5;
11
+ @apply col-start-2 m-0 text-right text-sm leading-5;
12
12
  }
13
13
 
14
14
  .progress__track {
15
- @apply col-span-2 block w-48 overflow-hidden rounded shadow-inner;
15
+ @apply col-span-2 block w-48 overflow-hidden rounded shadow-inner;
16
16
  }
17
17
 
18
18
  .progress__indicator {
19
- @apply block rounded;
19
+ @apply block rounded;
20
20
 
21
- @apply transition-[width] motion-reduce:transition-none;
21
+ @apply transition-[width] motion-reduce:transition-none;
22
22
  }
23
23
 
24
24
  /** Variants */
25
25
  .progress--primary .progress__track {
26
- @apply bg-primary/10;
26
+ @apply bg-primary/10;
27
27
  }
28
28
 
29
29
  .progress--primary .progress__indicator {
30
- @apply bg-primary;
30
+ @apply bg-primary;
31
31
  }
32
32
 
33
33
  .progress--secondary .progress__track {
34
- @apply bg-secondary/10;
34
+ @apply bg-secondary/10;
35
35
  }
36
36
 
37
37
  .progress--secondary .progress__indicator {
38
- @apply bg-secondary;
38
+ @apply bg-secondary;
39
39
  }
40
40
 
41
41
  .progress--success .progress__track {
42
- @apply bg-success/10;
42
+ @apply bg-success/10;
43
43
  }
44
44
 
45
45
  .progress--success .progress__indicator {
46
- @apply bg-success;
46
+ @apply bg-success;
47
47
  }
48
48
 
49
49
  .progress--danger .progress__track {
50
- @apply bg-danger/10;
50
+ @apply bg-danger/10;
51
51
  }
52
52
 
53
53
  .progress--danger .progress__indicator {
54
- @apply bg-danger;
54
+ @apply bg-danger;
55
55
  }
56
56
 
57
57
  /** Sizes */
58
58
  .progress--sm .progress__track {
59
- @apply h-2;
59
+ @apply h-2;
60
60
  }
61
61
 
62
62
  .progress--sm .progress__label {
63
- @apply text-sm;
63
+ @apply text-sm;
64
64
  }
65
65
 
66
66
  .progress--md .progress__track {
67
- @apply h-3;
67
+ @apply h-3;
68
68
  }
69
69
 
70
70
  .progress--lg .progress__track {
71
- @apply h-4;
71
+ @apply h-4;
72
72
  }
@@ -1,31 +1,31 @@
1
1
  .radio__group {
2
- @apply flex flex-col gap-4;
2
+ @apply flex flex-col gap-4;
3
3
  }
4
4
 
5
5
  .radio {
6
- @apply flex size-5 items-center justify-center rounded-full;
6
+ @apply flex size-5 items-center justify-center rounded-full;
7
7
 
8
- &[data-unchecked] {
9
- @apply border-border bg-secondary;
10
- }
8
+ &[data-unchecked] {
9
+ @apply border-border bg-secondary;
10
+ }
11
11
 
12
- &[data-checked] {
13
- @apply border-primary bg-primary;
14
- }
12
+ &[data-checked] {
13
+ @apply border-primary bg-primary;
14
+ }
15
15
 
16
- &:focus-visible {
17
- @apply status-focused;
18
- }
16
+ &:focus-visible {
17
+ @apply status-focused;
18
+ }
19
19
  }
20
20
 
21
21
  .radio__indicator {
22
- @apply flex items-center justify-center;
22
+ @apply flex items-center justify-center;
23
23
 
24
- &[data-unchecked] {
25
- @apply hidden;
26
- }
24
+ &[data-unchecked] {
25
+ @apply hidden;
26
+ }
27
27
 
28
- &::before {
29
- @apply block size-2 rounded-full bg-background content-[''];
30
- }
28
+ &::before {
29
+ @apply bg-background block size-2 rounded-full content-[''];
30
+ }
31
31
  }
@@ -1,3 +1,3 @@
1
1
  .scroll-area {
2
- @apply relative overflow-auto;
2
+ @apply relative overflow-auto;
3
3
  }
@@ -1,82 +1,82 @@
1
1
  .select__trigger {
2
- @apply cursor-pointer;
3
- @apply bg-input text-input-foreground hover-safe:bg-input/80;
4
- @apply border border-border rounded;
2
+ @apply cursor-pointer;
3
+ @apply bg-input text-input-foreground hover-safe:bg-input/80;
4
+ @apply border-border rounded border;
5
5
 
6
- @apply flex items-center justify-between gap-2;
7
- @apply h-10 px-3 py-2 w-fit min-w-56;
6
+ @apply flex items-center justify-between gap-2;
7
+ @apply h-10 w-fit min-w-56 px-3 py-2;
8
8
 
9
- &:focus-visible {
10
- @apply status-focused;
11
- }
9
+ &:focus-visible {
10
+ @apply status-focused;
11
+ }
12
12
  }
13
13
 
14
14
  .select__icon {
15
- @apply flex;
15
+ @apply flex;
16
16
 
17
- & svg {
18
- @apply size-4 text-muted-foreground;
19
- }
17
+ & svg {
18
+ @apply text-muted-foreground size-4;
19
+ }
20
20
  }
21
21
 
22
22
  .select__positioner {
23
- @apply outline-none z-10 select-none;
23
+ @apply z-10 outline-none select-none;
24
24
  }
25
25
 
26
26
  .select__popup {
27
- min-width: var(--anchor-width);
28
- transform-origin: var(--transform-origin);
27
+ min-width: var(--anchor-width);
28
+ transform-origin: var(--transform-origin);
29
29
 
30
- @apply bg-surface text-surface-foreground rounded border-border shadow;
30
+ @apply bg-surface text-surface-foreground border-border rounded shadow;
31
31
 
32
- @apply fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 px-3 py-3;
32
+ @apply fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 px-3 py-3;
33
33
 
34
- @apply transition-[scale,opacity] motion-reduce:transition-none;
34
+ @apply transition-[scale,opacity] motion-reduce:transition-none;
35
35
 
36
- &[data-starting-style],
37
- &[data-ending-style] {
38
- @apply scale-95 opacity-0;
39
- }
36
+ &[data-starting-style],
37
+ &[data-ending-style] {
38
+ @apply scale-95 opacity-0;
39
+ }
40
40
  }
41
41
 
42
42
  .select__list {
43
- @apply overflow-y-auto scroll-pb-6 max-h-56;
43
+ @apply max-h-56 scroll-pb-6 overflow-y-auto;
44
44
  }
45
45
 
46
46
  .select__item {
47
- @apply flex items-center gap-2 outline-0;
48
- @apply cursor-pointer select-none;
47
+ @apply flex items-center gap-2 outline-0;
48
+ @apply cursor-pointer select-none;
49
49
 
50
- @apply px-2 py-1 rounded;
51
- @apply hover-safe:bg-primary hover-safe:text-primary-foreground;
50
+ @apply rounded px-2 py-1;
51
+ @apply hover-safe:bg-primary hover-safe:text-primary-foreground;
52
52
  }
53
53
 
54
54
  .select__item-indicator {
55
- & svg {
56
- @apply size-4 block;
57
- }
55
+ & svg {
56
+ @apply block size-4;
57
+ }
58
58
  }
59
59
 
60
60
  .select__value {
61
- @apply flex-1 text-left overflow-hidden text-ellipsis whitespace-nowrap;
61
+ @apply flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap;
62
62
  }
63
63
 
64
64
  .select__group {
65
- @apply overflow-hidden;
65
+ @apply overflow-hidden;
66
66
  }
67
67
 
68
68
  .select__group-label {
69
- @apply px-2 py-1 text-sm font-medium text-muted-foreground;
69
+ @apply text-muted-foreground px-2 py-1 text-sm font-medium;
70
70
  }
71
71
 
72
72
  .autocomplete__separator {
73
- @apply h-px bg-border my-2;
73
+ @apply bg-border my-2 h-px;
74
74
  }
75
75
 
76
76
  .select__backdrop {
77
- @apply fixed inset-0 z-0;
77
+ @apply fixed inset-0 z-0;
78
78
  }
79
79
 
80
80
  .select__arrow {
81
- @apply hidden;
81
+ @apply hidden;
82
82
  }
@@ -1,12 +1,12 @@
1
1
  /** Base Styling */
2
2
  .separator {
3
- @apply border;
3
+ @apply border;
4
4
  }
5
5
 
6
6
  .separator--horizontal {
7
- @apply my-2 h-px w-full;
7
+ @apply my-2 h-px w-full;
8
8
  }
9
9
 
10
10
  .separator--vertical {
11
- @apply mx-2 h-full w-px;
11
+ @apply mx-2 h-full w-px;
12
12
  }