@atom-learning/components 6.0.0-beta.6 → 6.0.0-beta.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 +12 -2
- package/src/index.css +133 -0
package/package.json
CHANGED
|
@@ -4,11 +4,21 @@
|
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
|
-
"version": "6.0.0-beta.
|
|
7
|
+
"version": "6.0.0-beta.7",
|
|
8
8
|
"description": "",
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"src/index.css"
|
|
11
12
|
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./index.css": "./src/index.css"
|
|
21
|
+
},
|
|
12
22
|
"sideEffects": false,
|
|
13
23
|
"scripts": {
|
|
14
24
|
"dev": "NODE_ENV=development rollup -c -w",
|
package/src/index.css
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@import '../../node_modules/@atom-learning/theme/lib/theme-atom.css';
|
|
4
|
+
|
|
5
|
+
@source '../src/';
|
|
6
|
+
|
|
7
|
+
@theme {
|
|
8
|
+
--default-font-family: var(--font-body);
|
|
9
|
+
--easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
10
|
+
|
|
11
|
+
--bg-chevron: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20stroke%3D%22%23757575%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%20color%3D%22%23757575%22%3E%3Cpolyline%20points%3D%226%2010%2012%2016%2018%2010%22%2F%3E%3C%2Fsvg%3E);
|
|
12
|
+
|
|
13
|
+
--animate-accordion-open: accordion-open 300ms ease-out;
|
|
14
|
+
--animate-accordion-close: accordion-close 300ms ease-out;
|
|
15
|
+
|
|
16
|
+
@keyframes accordion-open {
|
|
17
|
+
from {
|
|
18
|
+
height: 0;
|
|
19
|
+
}
|
|
20
|
+
to {
|
|
21
|
+
height: var(--radix-accordion-content-height);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@keyframes accordion-close {
|
|
25
|
+
from {
|
|
26
|
+
height: var(--radix-accordion-content-height);
|
|
27
|
+
}
|
|
28
|
+
to {
|
|
29
|
+
height: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
--animate-fade-in: fade-in 550ms var(--easing);
|
|
34
|
+
--animate-fade-out: fade-out 550ms var(--easing);
|
|
35
|
+
|
|
36
|
+
@keyframes fade-in {
|
|
37
|
+
0% {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@keyframes fade-out {
|
|
45
|
+
0% {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
--animate-slide-direction-in: slide-direction-in 225ms ease-out;
|
|
54
|
+
--animate-slide-direction-out: slide-direction-out 125ms ease-out;
|
|
55
|
+
|
|
56
|
+
@keyframes slide-direction-in {
|
|
57
|
+
0% {
|
|
58
|
+
opacity: var(--slide-opacity-out, 1);
|
|
59
|
+
translate: var(--slide-direction-out-x, 0) var(--slide-direction-out-y, 0);
|
|
60
|
+
}
|
|
61
|
+
100% {
|
|
62
|
+
opacity: var(--slide-opacity-in, 1);
|
|
63
|
+
translate: var(--slide-direction-in-x, 0) var(--slide-direction-in-y, 0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@keyframes slide-direction-out {
|
|
67
|
+
0% {
|
|
68
|
+
opacity: var(--slide-opacity-in, 1);
|
|
69
|
+
translate: var(--slide-direction-in-x, 0) var(--slide-direction-in-y, 0);
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
opacity: var(--slide-opacity-out, 1);
|
|
73
|
+
translate: var(--slide-direction-out-x, 0) var(--slide-direction-out-y, 0);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
--animate-slide-in-center: slide-in-center 550ms var(--easing);
|
|
78
|
+
--animate-slide-out-center: slide-out-center 550ms var(--easing);
|
|
79
|
+
|
|
80
|
+
@keyframes slide-in-center {
|
|
81
|
+
0% {
|
|
82
|
+
translate: -50% 50vh;
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
translate: -50% -50%;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@keyframes slide-out-center {
|
|
89
|
+
0% {
|
|
90
|
+
translate: -50% -50%;
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
translate: -50% 50vh;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@utility animation-delay-* {
|
|
99
|
+
animation-delay: calc(--value(integer) * 1ms);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@utility animation-duration-* {
|
|
103
|
+
animation-duration: calc(--value(integer) * 1ms);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@utility capsize-* {
|
|
107
|
+
&::before {
|
|
108
|
+
content: '';
|
|
109
|
+
margin-bottom: calc(-1em * --value([number]));
|
|
110
|
+
display: table;
|
|
111
|
+
}
|
|
112
|
+
&::after {
|
|
113
|
+
content: '';
|
|
114
|
+
margin-top: calc(-1em * --value([number]));
|
|
115
|
+
display: table;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@utility capsize-before-* {
|
|
120
|
+
&::before {
|
|
121
|
+
content: '';
|
|
122
|
+
margin-bottom: calc(-1em * --value([number]));
|
|
123
|
+
display: table;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@utility capsize-after-* {
|
|
128
|
+
&::after {
|
|
129
|
+
content: '';
|
|
130
|
+
margin-top: calc(-1em * --value([number]));
|
|
131
|
+
display: table;
|
|
132
|
+
}
|
|
133
|
+
}
|