arekui 1.0.0 → 2.0.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/LICENSE +21 -21
  3. package/README.md +26 -198
  4. package/arekui.css +5930 -3279
  5. package/arekui.d.ts +328 -328
  6. package/arekui.js +817 -450
  7. package/assets/img/grunge-wall-texture-freepick-kues1.webp +0 -0
  8. package/assets/img/logo.png +0 -0
  9. package/dist/css/arekui.base.min.css +1 -0
  10. package/dist/css/arekui.broadsheet.min.css +1 -0
  11. package/dist/css/arekui.brutalist.min.css +1 -0
  12. package/dist/css/arekui.default.min.css +1 -0
  13. package/dist/css/arekui.full.min.css +1 -0
  14. package/dist/css/arekui.min.css +1 -0
  15. package/dist/css/arekui.neo.min.css +1 -0
  16. package/dist/css/arekui.pixel.min.css +1 -0
  17. package/dist/js/arekui.min.js +2 -0
  18. package/package.json +64 -57
  19. package/scripts/build-css.js +95 -0
  20. package/scripts/build-custom.js +287 -318
  21. package/scripts/build-js.js +68 -0
  22. package/scripts/clean.js +13 -0
  23. package/scripts/dev.js +97 -0
  24. package/scripts/imports.js +18 -0
  25. package/scripts/split.js +256 -0
  26. package/src/arekui.base.css +63 -0
  27. package/src/arekui.broadsheet.css +6 -0
  28. package/src/arekui.brutalist.css +8 -0
  29. package/src/arekui.core.css +64 -0
  30. package/src/arekui.css +22 -5
  31. package/src/arekui.default.css +6 -0
  32. package/src/arekui.neo.css +8 -0
  33. package/src/arekui.pixel.css +8 -0
  34. package/src/base/brutalist-overrides.css +254 -0
  35. package/src/base/neo-overrides.css +330 -315
  36. package/src/base/pixel-overrides.css +336 -0
  37. package/src/base/reset.css +179 -65
  38. package/src/base/theme-brutalist.css +111 -0
  39. package/src/base/theme-default.css +184 -0
  40. package/src/base/theme-neo.css +108 -0
  41. package/src/base/theme-pixel.css +111 -0
  42. package/src/base/tokens.css +59 -302
  43. package/src/components/accordion.css +32 -33
  44. package/src/components/alert.css +24 -25
  45. package/src/components/badge.css +31 -32
  46. package/src/components/breadcrumb.css +31 -32
  47. package/src/components/broadsheet.css +264 -0
  48. package/src/components/button.css +102 -101
  49. package/src/components/card.css +22 -23
  50. package/src/components/carousel.css +49 -13
  51. package/src/components/chat.css +77 -76
  52. package/src/components/description-list.css +34 -0
  53. package/src/components/docs.css +252 -0
  54. package/src/components/empty.css +36 -0
  55. package/src/components/file-upload.css +49 -50
  56. package/src/components/footer.css +40 -25
  57. package/src/components/forms.css +67 -68
  58. package/src/components/heading.css +27 -0
  59. package/src/components/hero.css +20 -21
  60. package/src/components/join.css +12 -13
  61. package/src/components/kbd.css +15 -0
  62. package/src/components/link.css +22 -23
  63. package/src/components/loading.css +109 -0
  64. package/src/components/menu.css +104 -54
  65. package/src/components/misc.css +94 -55
  66. package/src/components/modal.css +30 -31
  67. package/src/components/navbar.css +166 -36
  68. package/src/components/pagination.css +50 -45
  69. package/src/components/popover.css +68 -69
  70. package/src/components/progress.css +17 -18
  71. package/src/components/prose.css +78 -78
  72. package/src/components/rating.css +35 -36
  73. package/src/components/scroll-top.css +34 -34
  74. package/src/components/segmented.css +44 -0
  75. package/src/components/sidebar.css +377 -0
  76. package/src/components/skeleton.css +52 -52
  77. package/src/components/spinner.css +36 -0
  78. package/src/components/swap.css +43 -43
  79. package/src/components/table.css +20 -21
  80. package/src/components/tabs.css +22 -23
  81. package/src/components/tag.css +99 -99
  82. package/src/components/textured.css +52 -32
  83. package/src/components/timeline.css +32 -33
  84. package/src/components/toast.css +132 -132
  85. package/src/components/tooltip.css +22 -23
  86. package/src/utilities/borders.css +150 -150
  87. package/src/utilities/brutalist-utilities.css +49 -0
  88. package/src/utilities/colors.css +79 -71
  89. package/src/utilities/hover.css +31 -31
  90. package/src/utilities/layout.css +98 -98
  91. package/src/utilities/neo-utilities.css +86 -93
  92. package/src/utilities/pixel-utilities.css +88 -0
  93. package/src/utilities/responsive.css +131 -126
  94. package/src/utilities/sizing.css +98 -89
  95. package/src/utilities/spacing.css +132 -129
  96. package/src/utilities/typography.css +95 -92
  97. package/dist/arekui.min.css +0 -1
  98. package/dist/arekui.min.js +0 -2
  99. package/src/components/drawer.css +0 -53
@@ -1,101 +1,101 @@
1
1
  /* TAG / CHIP */
2
- .ar-tag {
3
- display: inline-flex;
4
- align-items: center;
5
- gap: var(--ar-s-1);
6
- padding: 0.25rem 0.75rem;
7
- border-radius: var(--ar-radius-pill);
8
- background: var(--ar-base-200);
9
- color: var(--ar-base-content);
10
- font-size: 0.8125rem;
11
- font-weight: 500;
12
- line-height: 1.4;
13
- white-space: nowrap;
14
- }
15
- .ar-tag-primary {
16
- background: var(--ar-primary);
17
- color: var(--ar-primary-content);
18
- }
19
- .ar-tag-secondary {
20
- background: var(--ar-secondary);
21
- color: var(--ar-secondary-content);
22
- }
23
- .ar-tag-accent {
24
- background: var(--ar-accent);
25
- color: var(--ar-accent-content);
26
- }
27
- .ar-tag-neutral {
28
- background: var(--ar-neutral);
29
- color: var(--ar-neutral-content);
30
- }
31
- .ar-tag-info {
32
- background: var(--ar-info);
33
- color: var(--ar-info-content);
34
- }
35
- .ar-tag-success {
36
- background: var(--ar-success);
37
- color: var(--ar-success-content);
38
- }
39
- .ar-tag-warning {
40
- background: var(--ar-warning);
41
- color: var(--ar-warning-content);
42
- }
43
- .ar-tag-error {
44
- background: var(--ar-error);
45
- color: var(--ar-error-content);
46
- }
47
- .ar-tag-outline {
48
- background: transparent;
49
- border: var(--ar-border-width) solid currentColor;
50
- }
51
- .ar-tag-outline.ar-tag-primary {
52
- color: var(--ar-primary);
53
- }
54
- .ar-tag-outline.ar-tag-secondary {
55
- color: var(--ar-secondary);
56
- }
57
- .ar-tag-outline.ar-tag-accent {
58
- color: var(--ar-accent);
59
- }
60
- .ar-tag-outline.ar-tag-neutral {
61
- color: var(--ar-neutral);
62
- }
63
- .ar-tag-outline.ar-tag-info {
64
- color: var(--ar-info);
65
- }
66
- .ar-tag-outline.ar-tag-success {
67
- color: var(--ar-success);
68
- }
69
- .ar-tag-outline.ar-tag-warning {
70
- color: var(--ar-warning);
71
- }
72
- .ar-tag-outline.ar-tag-error {
73
- color: var(--ar-error);
74
- }
75
- .ar-tag-lg {
76
- padding: 0.375rem 1rem;
77
- font-size: 0.875rem;
78
- }
79
- .ar-tag-sm {
80
- padding: 0.125rem 0.5rem;
81
- font-size: 0.75rem;
82
- }
83
- .ar-tag-close {
84
- display: inline-flex;
85
- align-items: center;
86
- justify-content: center;
87
- width: 1rem;
88
- height: 1rem;
89
- border-radius: var(--ar-radius-pill);
90
- background: transparent;
91
- border: 0;
92
- color: inherit;
93
- opacity: 0.6;
94
- cursor: pointer;
95
- padding: 0;
96
- font-size: 0.875rem;
97
- line-height: 1;
98
- }
99
- .ar-tag-close:hover {
100
- opacity: 1;
2
+ .ar-tag {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: var(--ar-s-1);
6
+ padding: 0.25rem 0.75rem;
7
+ border-radius: var(--ar-radius-pill);
8
+ background: var(--ar-base-200);
9
+ color: var(--ar-base-content);
10
+ font-size: 0.8125rem;
11
+ font-weight: 500;
12
+ line-height: 1.4;
13
+ white-space: nowrap;
14
+ }
15
+ .ar-tag-primary {
16
+ background: var(--ar-primary);
17
+ color: var(--ar-primary-content);
18
+ }
19
+ .ar-tag-secondary {
20
+ background: var(--ar-secondary);
21
+ color: var(--ar-secondary-content);
22
+ }
23
+ .ar-tag-accent {
24
+ background: var(--ar-accent);
25
+ color: var(--ar-accent-content);
26
+ }
27
+ .ar-tag-neutral {
28
+ background: var(--ar-neutral);
29
+ color: var(--ar-neutral-content);
30
+ }
31
+ .ar-tag-info {
32
+ background: var(--ar-info);
33
+ color: var(--ar-info-content);
34
+ }
35
+ .ar-tag-success {
36
+ background: var(--ar-success);
37
+ color: var(--ar-success-content);
38
+ }
39
+ .ar-tag-warning {
40
+ background: var(--ar-warning);
41
+ color: var(--ar-warning-content);
42
+ }
43
+ .ar-tag-error {
44
+ background: var(--ar-error);
45
+ color: var(--ar-error-content);
46
+ }
47
+ .ar-tag-outline {
48
+ background: transparent;
49
+ border: var(--ar-border-width) solid currentColor;
50
+ }
51
+ .ar-tag-outline.ar-tag-primary {
52
+ color: var(--ar-primary-text);
53
+ }
54
+ .ar-tag-outline.ar-tag-secondary {
55
+ color: var(--ar-secondary-text);
56
+ }
57
+ .ar-tag-outline.ar-tag-accent {
58
+ color: var(--ar-accent-text);
59
+ }
60
+ .ar-tag-outline.ar-tag-neutral {
61
+ color: var(--ar-neutral-text);
62
+ }
63
+ .ar-tag-outline.ar-tag-info {
64
+ color: var(--ar-info-text);
65
+ }
66
+ .ar-tag-outline.ar-tag-success {
67
+ color: var(--ar-success-text);
68
+ }
69
+ .ar-tag-outline.ar-tag-warning {
70
+ color: var(--ar-warning-text);
71
+ }
72
+ .ar-tag-outline.ar-tag-error {
73
+ color: var(--ar-error-text);
74
+ }
75
+ .ar-tag-lg {
76
+ padding: 0.375rem 1rem;
77
+ font-size: 0.875rem;
78
+ }
79
+ .ar-tag-sm {
80
+ padding: 0.125rem 0.5rem;
81
+ font-size: 0.75rem;
82
+ }
83
+ .ar-tag-close {
84
+ display: inline-flex;
85
+ align-items: center;
86
+ justify-content: center;
87
+ width: 1rem;
88
+ height: 1rem;
89
+ border-radius: var(--ar-radius-pill);
90
+ background: transparent;
91
+ border: 0;
92
+ color: inherit;
93
+ opacity: 0.6;
94
+ cursor: pointer;
95
+ padding: 0;
96
+ font-size: 0.875rem;
97
+ line-height: 1;
98
+ }
99
+ .ar-tag-close:hover {
100
+ opacity: 1;
101
101
  }
@@ -1,34 +1,54 @@
1
1
  /* TEXTURED TEXT & ANIMATION */
2
- .ar-bg-img {
3
- color: transparent;
4
- background-image: var(--ar-texture);
5
- background-size: cover;
6
- -webkit-background-clip: text;
7
- background-clip: text;
8
- -webkit-text-fill-color: var(--ar-bg-img-fill, transparent);
9
- }
10
- .ar-bounce {
11
- animation: ar-bounce 1s infinite;
12
- }
13
- @keyframes ar-bounce {
14
- 0%,
15
- 100% {
16
- transform: translateY(0);
17
- }
18
- 50% {
19
- transform: translateY(-0.25rem);
20
- }
21
- }
22
- .ar-animate-fade-in {
23
- animation: ar-fade-in 0.4s ease-out forwards;
24
- }
25
- @keyframes ar-fade-in {
26
- from {
27
- opacity: 0;
28
- transform: translateY(1.25rem);
29
- }
30
- to {
31
- opacity: 1;
32
- transform: translateY(0);
33
- }
2
+ .ar-bg-img {
3
+ color: transparent;
4
+
5
+ background-color: var(--ar-base-content, #171717);
6
+ background-image: var(--ar-texture);
7
+ background-size: cover;
8
+ -webkit-background-clip: text;
9
+ background-clip: text;
10
+ -webkit-text-fill-color: var(--ar-bg-img-fill, transparent);
11
+ }
12
+ .ar-bounce {
13
+ animation: ar-bounce 1s infinite;
14
+ }
15
+ @keyframes ar-bounce {
16
+ 0%,
17
+ 100% {
18
+ transform: translateY(0);
19
+ }
20
+ 50% {
21
+ transform: translateY(-0.25rem);
22
+ }
23
+ }
24
+ .ar-animate-fade-in {
25
+ animation: ar-fade-in 0.4s ease-out var(--ar-delay, 0s) backwards;
26
+ }
27
+ @keyframes ar-fade-in {
28
+ from {
29
+ opacity: 0;
30
+ transform: translateY(1.25rem);
31
+ }
32
+ to {
33
+ opacity: 1;
34
+ transform: translateY(0);
35
+ }
36
+ }
37
+ .ar-reveal {
38
+ opacity: 0;
39
+ transform: translateY(1.25rem);
40
+ transition: opacity 0.6s ease-out var(--ar-delay, 0s), transform 0.6s ease-out var(--ar-delay, 0s);
41
+ }
42
+ .ar-reveal.ar-reveal-in {
43
+ opacity: 1;
44
+ transform: none;
45
+ }
46
+ @media (prefers-reduced-motion: reduce) {
47
+ .ar-reveal,
48
+ .ar-animate-fade-in {
49
+ opacity: 1;
50
+ transform: none;
51
+ transition: none;
52
+ animation: none;
53
+ }
34
54
  }
@@ -1,34 +1,33 @@
1
- /* TIMELINE */
2
- .ar-timeline {
3
- display: flex;
4
- flex-direction: column;
5
- gap: var(--ar-s-4);
6
- padding-left: 0;
7
- list-style: none;
8
- }
9
- .ar-timeline-item {
10
- position: relative;
11
- padding-left: var(--ar-s-8);
12
- }
13
- .ar-timeline-item::before {
14
- content: "";
15
- position: absolute;
16
- left: 0.375rem;
17
- top: 0.25rem;
18
- width: 0.75rem;
19
- height: 0.75rem;
20
- border-radius: var(--ar-radius-pill);
21
- background: var(--ar-primary);
22
- }
23
- .ar-timeline-item::after {
24
- content: "";
25
- position: absolute;
26
- left: 0.65625rem;
27
- top: 1.25rem;
28
- bottom: -1.5rem;
29
- width: 2px;
30
- background: var(--ar-base-300);
31
- }
32
- .ar-timeline-item:last-child::after {
33
- display: none;
1
+ .ar-timeline {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--ar-s-4);
5
+ padding-left: 0;
6
+ list-style: none;
7
+ }
8
+ .ar-timeline-item {
9
+ position: relative;
10
+ padding-left: var(--ar-s-8);
11
+ }
12
+ .ar-timeline-item::before {
13
+ content: "";
14
+ position: absolute;
15
+ left: 0.375rem;
16
+ top: 0.25rem;
17
+ width: 0.75rem;
18
+ height: 0.75rem;
19
+ border-radius: var(--ar-radius-pill);
20
+ background: var(--ar-primary);
21
+ }
22
+ .ar-timeline-item::after {
23
+ content: "";
24
+ position: absolute;
25
+ left: 0.65625rem;
26
+ top: 1.25rem;
27
+ bottom: -1.5rem;
28
+ width: 2px;
29
+ background: var(--ar-base-300);
30
+ }
31
+ .ar-timeline-item:last-child::after {
32
+ display: none;
34
33
  }
@@ -1,134 +1,134 @@
1
1
  /* TOAST / SNACKBAR */
2
- .ar-toast-container {
3
- position: fixed;
4
- z-index: 100;
5
- display: flex;
6
- flex-direction: column;
7
- gap: var(--ar-s-2);
8
- pointer-events: none;
9
- }
10
- .ar-toast-container[data-ar-toast-position="top-left"] {
11
- top: var(--ar-s-4);
12
- left: var(--ar-s-4);
13
- }
14
- .ar-toast-container[data-ar-toast-position="top-center"] {
15
- top: var(--ar-s-4);
16
- left: 50%;
17
- transform: translateX(-50%);
18
- }
19
- .ar-toast-container[data-ar-toast-position="top-right"] {
20
- top: var(--ar-s-4);
21
- right: var(--ar-s-4);
22
- }
23
- .ar-toast-container[data-ar-toast-position="bottom-left"] {
24
- bottom: var(--ar-s-4);
25
- left: var(--ar-s-4);
26
- }
27
- .ar-toast-container[data-ar-toast-position="bottom-center"] {
28
- bottom: var(--ar-s-4);
29
- left: 50%;
30
- transform: translateX(-50%);
31
- }
32
- .ar-toast-container[data-ar-toast-position="bottom-right"] {
33
- bottom: var(--ar-s-4);
34
- right: var(--ar-s-4);
35
- }
36
- .ar-toast {
37
- display: flex;
38
- align-items: center;
39
- gap: var(--ar-s-3);
40
- min-width: 18rem;
41
- max-width: 24rem;
42
- padding: var(--ar-s-3) var(--ar-s-4);
43
- border-radius: var(--ar-radius-box);
44
- background: var(--ar-base-100);
45
- color: var(--ar-base-content);
46
- box-shadow: var(--ar-shadow-lg);
47
- border: var(--ar-border-width) solid var(--ar-base-300);
48
- pointer-events: auto;
49
- opacity: 0;
50
- transform: translateY(-0.5rem);
51
- animation: ar-toast-in 0.3s ease-out forwards;
52
- }
53
- .ar-toast-container[data-ar-toast-position="bottom-left"] .ar-toast,
54
- .ar-toast-container[data-ar-toast-position="bottom-center"] .ar-toast,
55
- .ar-toast-container[data-ar-toast-position="bottom-right"] .ar-toast {
56
- transform: translateY(0.5rem);
57
- }
58
- .ar-toast.ar-toast-out {
59
- animation: ar-toast-out 0.2s ease-in forwards;
60
- }
61
- .ar-toast-info {
62
- background: var(--ar-info);
63
- color: var(--ar-info-content);
64
- border-color: var(--ar-info);
65
- }
66
- .ar-toast-success {
67
- background: var(--ar-success);
68
- color: var(--ar-success-content);
69
- border-color: var(--ar-success);
70
- }
71
- .ar-toast-warning {
72
- background: var(--ar-warning);
73
- color: var(--ar-warning-content);
74
- border-color: var(--ar-warning);
75
- }
76
- .ar-toast-error {
77
- background: var(--ar-error);
78
- color: var(--ar-error-content);
79
- border-color: var(--ar-error);
80
- }
81
- .ar-toast-icon {
82
- flex-shrink: 0;
83
- width: 1.25rem;
84
- height: 1.25rem;
85
- }
86
- .ar-toast-message {
87
- flex: 1;
88
- font-size: 0.875rem;
89
- line-height: 1.4;
90
- }
91
- .ar-toast-close {
92
- flex-shrink: 0;
93
- background: transparent;
94
- border: 0;
95
- color: inherit;
96
- opacity: 0.6;
97
- cursor: pointer;
98
- padding: 0;
99
- font-size: 1.125rem;
100
- line-height: 1;
101
- }
102
- .ar-toast-close:hover {
103
- opacity: 1;
104
- }
105
- .ar-toast-progress {
106
- position: absolute;
107
- bottom: 0;
108
- left: 0;
109
- height: 3px;
110
- background: currentColor;
111
- opacity: 0.4;
112
- border-radius: 0 0 var(--ar-radius-box) var(--ar-radius-box);
113
- animation: ar-toast-progress linear forwards;
114
- }
115
- @keyframes ar-toast-in {
116
- to {
117
- opacity: 1;
118
- transform: translateY(0);
119
- }
120
- }
121
- @keyframes ar-toast-out {
122
- to {
123
- opacity: 0;
124
- transform: translateY(-0.5rem);
125
- }
126
- }
127
- @keyframes ar-toast-progress {
128
- from {
129
- width: 100%;
130
- }
131
- to {
132
- width: 0%;
133
- }
2
+ .ar-toast-container {
3
+ position: fixed;
4
+ z-index: 100;
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: var(--ar-s-2);
8
+ pointer-events: none;
9
+ }
10
+ .ar-toast-container[data-ar-toast-position="top-left"] {
11
+ top: var(--ar-s-4);
12
+ left: var(--ar-s-4);
13
+ }
14
+ .ar-toast-container[data-ar-toast-position="top-center"] {
15
+ top: var(--ar-s-4);
16
+ left: 50%;
17
+ transform: translateX(-50%);
18
+ }
19
+ .ar-toast-container[data-ar-toast-position="top-right"] {
20
+ top: var(--ar-s-4);
21
+ right: var(--ar-s-4);
22
+ }
23
+ .ar-toast-container[data-ar-toast-position="bottom-left"] {
24
+ bottom: var(--ar-s-4);
25
+ left: var(--ar-s-4);
26
+ }
27
+ .ar-toast-container[data-ar-toast-position="bottom-center"] {
28
+ bottom: var(--ar-s-4);
29
+ left: 50%;
30
+ transform: translateX(-50%);
31
+ }
32
+ .ar-toast-container[data-ar-toast-position="bottom-right"] {
33
+ bottom: var(--ar-s-4);
34
+ right: var(--ar-s-4);
35
+ }
36
+ .ar-toast {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: var(--ar-s-3);
40
+ min-width: 18rem;
41
+ max-width: 24rem;
42
+ padding: var(--ar-s-3) var(--ar-s-4);
43
+ border-radius: var(--ar-radius-box);
44
+ background: var(--ar-base-100);
45
+ color: var(--ar-base-content);
46
+ box-shadow: var(--ar-shadow-lg);
47
+ border: var(--ar-border-width) solid var(--ar-base-300);
48
+ pointer-events: auto;
49
+ opacity: 0;
50
+ transform: translateY(-0.5rem);
51
+ animation: ar-toast-in 0.3s ease-out forwards;
52
+ }
53
+ .ar-toast-container[data-ar-toast-position="bottom-left"] .ar-toast,
54
+ .ar-toast-container[data-ar-toast-position="bottom-center"] .ar-toast,
55
+ .ar-toast-container[data-ar-toast-position="bottom-right"] .ar-toast {
56
+ transform: translateY(0.5rem);
57
+ }
58
+ .ar-toast.ar-toast-out {
59
+ animation: ar-toast-out 0.2s ease-in forwards;
60
+ }
61
+ .ar-toast-info {
62
+ background: var(--ar-info);
63
+ color: var(--ar-info-content);
64
+ border-color: var(--ar-info);
65
+ }
66
+ .ar-toast-success {
67
+ background: var(--ar-success);
68
+ color: var(--ar-success-content);
69
+ border-color: var(--ar-success);
70
+ }
71
+ .ar-toast-warning {
72
+ background: var(--ar-warning);
73
+ color: var(--ar-warning-content);
74
+ border-color: var(--ar-warning);
75
+ }
76
+ .ar-toast-error {
77
+ background: var(--ar-error);
78
+ color: var(--ar-error-content);
79
+ border-color: var(--ar-error);
80
+ }
81
+ .ar-toast-icon {
82
+ flex-shrink: 0;
83
+ width: 1.25rem;
84
+ height: 1.25rem;
85
+ }
86
+ .ar-toast-message {
87
+ flex: 1;
88
+ font-size: 0.875rem;
89
+ line-height: 1.4;
90
+ }
91
+ .ar-toast-close {
92
+ flex-shrink: 0;
93
+ background: transparent;
94
+ border: 0;
95
+ color: inherit;
96
+ opacity: 0.6;
97
+ cursor: pointer;
98
+ padding: 0;
99
+ font-size: 1.125rem;
100
+ line-height: 1;
101
+ }
102
+ .ar-toast-close:hover {
103
+ opacity: 1;
104
+ }
105
+ .ar-toast-progress {
106
+ position: absolute;
107
+ bottom: 0;
108
+ left: 0;
109
+ height: 3px;
110
+ background: currentColor;
111
+ opacity: 0.4;
112
+ border-radius: 0 0 var(--ar-radius-box) var(--ar-radius-box);
113
+ animation: ar-toast-progress linear forwards;
114
+ }
115
+ @keyframes ar-toast-in {
116
+ to {
117
+ opacity: 1;
118
+ transform: translateY(0);
119
+ }
120
+ }
121
+ @keyframes ar-toast-out {
122
+ to {
123
+ opacity: 0;
124
+ transform: translateY(-0.5rem);
125
+ }
126
+ }
127
+ @keyframes ar-toast-progress {
128
+ from {
129
+ width: 100%;
130
+ }
131
+ to {
132
+ width: 0%;
133
+ }
134
134
  }
@@ -1,24 +1,23 @@
1
- /* TOOLTIP */
2
- .ar-tooltip {
3
- position: relative;
4
- }
5
- .ar-tooltip[data-tip]::after {
6
- content: attr(data-tip);
7
- position: absolute;
8
- z-index: 30;
9
- bottom: calc(100% + 0.5rem);
10
- left: 50%;
11
- transform: translateX(-50%);
12
- padding: 0.25rem 0.625rem;
13
- border-radius: var(--ar-radius-field);
14
- background: var(--ar-neutral);
15
- color: var(--ar-neutral-content);
16
- font-size: 0.75rem;
17
- white-space: nowrap;
18
- opacity: 0;
19
- pointer-events: none;
20
- transition: opacity 0.2s;
21
- }
22
- .ar-tooltip:hover[data-tip]::after {
23
- opacity: 1;
1
+ .ar-tooltip {
2
+ position: relative;
3
+ }
4
+ .ar-tooltip[data-tip]::after {
5
+ content: attr(data-tip);
6
+ position: absolute;
7
+ z-index: 30;
8
+ bottom: calc(100% + 0.5rem);
9
+ left: 50%;
10
+ transform: translateX(-50%);
11
+ padding: 0.25rem 0.625rem;
12
+ border-radius: var(--ar-radius-field);
13
+ background: var(--ar-neutral);
14
+ color: var(--ar-neutral-content);
15
+ font-size: 0.75rem;
16
+ white-space: nowrap;
17
+ opacity: 0;
18
+ pointer-events: none;
19
+ transition: opacity 0.2s;
20
+ }
21
+ .ar-tooltip:hover[data-tip]::after {
22
+ opacity: 1;
24
23
  }