@atom-learning/components 6.4.0 → 6.4.1
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 +3 -1
- package/src/animation.css +109 -0
- package/src/utilities.css +87 -0
package/package.json
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
|
-
"version": "6.4.
|
|
7
|
+
"version": "6.4.1",
|
|
8
8
|
"description": "",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"src/index.css",
|
|
12
|
+
"src/animation.css",
|
|
13
|
+
"src/utilities.css",
|
|
12
14
|
"src/responsive-variant-classes.css",
|
|
13
15
|
"scripts/vite-plugin-tailwind-responsive-variant-classes.mjs",
|
|
14
16
|
"scripts/generate-responsive-variant-classes.mjs"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Animations
|
|
6
|
+
*/
|
|
7
|
+
--animate-accordion-open: accordion-open 300ms ease-out;
|
|
8
|
+
--animate-accordion-close: accordion-close 300ms ease-out;
|
|
9
|
+
|
|
10
|
+
@keyframes accordion-open {
|
|
11
|
+
from {
|
|
12
|
+
height: 0;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
height: var(--radix-accordion-content-height);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
@keyframes accordion-close {
|
|
19
|
+
from {
|
|
20
|
+
height: var(--radix-accordion-content-height);
|
|
21
|
+
}
|
|
22
|
+
to {
|
|
23
|
+
height: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
--animate-fade-in: fade-in 550ms var(--easing);
|
|
28
|
+
--animate-fade-out: fade-out 550ms var(--easing);
|
|
29
|
+
|
|
30
|
+
@keyframes fade-in {
|
|
31
|
+
0% {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@keyframes fade-out {
|
|
39
|
+
0% {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
}
|
|
42
|
+
100% {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
--animate-slide-direction-in: slide-direction-in 225ms ease-out;
|
|
48
|
+
--animate-slide-direction-out: slide-direction-out 125ms ease-out;
|
|
49
|
+
|
|
50
|
+
@keyframes slide-direction-in {
|
|
51
|
+
0% {
|
|
52
|
+
opacity: var(--slide-opacity-out, 1);
|
|
53
|
+
translate: var(--slide-direction-out-x, 0) var(--slide-direction-out-y, 0);
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
opacity: var(--slide-opacity-in, 1);
|
|
57
|
+
translate: var(--slide-direction-in-x, 0) var(--slide-direction-in-y, 0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@keyframes slide-direction-out {
|
|
61
|
+
0% {
|
|
62
|
+
opacity: var(--slide-opacity-in, 1);
|
|
63
|
+
translate: var(--slide-direction-in-x, 0) var(--slide-direction-in-y, 0);
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
opacity: var(--slide-opacity-out, 1);
|
|
67
|
+
translate: var(--slide-direction-out-x, 0) var(--slide-direction-out-y, 0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
--animate-slide-in-center: slide-in-center 550ms var(--easing);
|
|
72
|
+
--animate-slide-out-center: slide-out-center 550ms var(--easing);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* `transform: translate()` is required for `floating-ui` to
|
|
76
|
+
* correctly position elements within the Dialog component.
|
|
77
|
+
*/
|
|
78
|
+
@keyframes slide-in-center {
|
|
79
|
+
0% {
|
|
80
|
+
transform: translate(-50%, 50vh);
|
|
81
|
+
}
|
|
82
|
+
100% {
|
|
83
|
+
transform: translate(-50%, -50%);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@keyframes slide-out-center {
|
|
87
|
+
0% {
|
|
88
|
+
transform: translate(-50%, -50%);
|
|
89
|
+
}
|
|
90
|
+
100% {
|
|
91
|
+
transform: translate(-50%, 50vh);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
--animate-shimmer: shimmer 2000ms ease-in-out 500ms infinite;
|
|
96
|
+
|
|
97
|
+
@keyframes shimmer {
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 1
|
|
100
|
+
}
|
|
101
|
+
50% {
|
|
102
|
+
opacity: 0.4
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 1
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@utility animation-delay-* {
|
|
2
|
+
animation-delay: calc(--value(integer) * 1ms);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animation-duration-* {
|
|
6
|
+
animation-duration: calc(--value(integer) * 1ms);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility capsize-* {
|
|
10
|
+
&::before {
|
|
11
|
+
content: '';
|
|
12
|
+
margin-bottom: calc(-1em * --value([number]));
|
|
13
|
+
display: table;
|
|
14
|
+
}
|
|
15
|
+
&::after {
|
|
16
|
+
content: '';
|
|
17
|
+
margin-top: calc(-1em * --value([number]));
|
|
18
|
+
display: table;
|
|
19
|
+
}
|
|
20
|
+
& > & {
|
|
21
|
+
display: inline;
|
|
22
|
+
&::before,
|
|
23
|
+
&::after {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@utility capsize-before-* {
|
|
30
|
+
&::before {
|
|
31
|
+
content: '';
|
|
32
|
+
margin-bottom: calc(-1em * --value([number]));
|
|
33
|
+
display: table;
|
|
34
|
+
}
|
|
35
|
+
& > &::before {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@utility capsize-after-* {
|
|
41
|
+
&::after {
|
|
42
|
+
content: '';
|
|
43
|
+
margin-top: calc(-1em * --value([number]));
|
|
44
|
+
display: table;
|
|
45
|
+
}
|
|
46
|
+
& > &::after {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@utility capsize-none {
|
|
52
|
+
&::before,
|
|
53
|
+
&::after {
|
|
54
|
+
display: none !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Font Feature Settings for Inter
|
|
60
|
+
*/
|
|
61
|
+
@utility readability-features {
|
|
62
|
+
font-feature-settings: var(--readability-features);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@utility readability-number-features {
|
|
66
|
+
font-feature-settings: var(--readability-number-features);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@utility grid-areas-* {
|
|
70
|
+
grid-template-areas: --value([*]);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@utility grid-in-* {
|
|
74
|
+
grid-area: --value([*]);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@custom-variant supports-color-mix {
|
|
78
|
+
@supports (background-color: color-mix(in hsl, white 50%, transparent)) {
|
|
79
|
+
@slot;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@custom-variant supports-svh {
|
|
84
|
+
@supports (height: 100svh) {
|
|
85
|
+
@slot;
|
|
86
|
+
}
|
|
87
|
+
}
|