@atom-learning/components 6.4.0 → 6.4.2

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 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.0",
7
+ "version": "6.4.2",
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"
@@ -42,13 +44,13 @@
42
44
  "prepublishOnly": "run-s clean build:responsive-variant-classes build:lib build:types build:proptypes",
43
45
  "clean": "del ./dist/",
44
46
  "format": "oxfmt 'src/**/*.{js,ts,tsx}' --write",
45
- "lint": "eslint 'src/**/*.{js,ts,tsx}' --fix",
47
+ "lint": "oxlint --fix src/",
46
48
  "test": "vitest run",
47
49
  "test:watch": "vitest",
48
50
  "test:ci": "vitest run --reporter=verbose",
49
51
  "test:coverage": "vitest run --coverage",
50
52
  "validate": "run-p 'validate:**'",
51
- "validate:linting": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
53
+ "validate:linting": "oxlint src/ --quiet",
52
54
  "validate:size": "yarn build:lib && size-limit",
53
55
  "validate:types": "tsc --noEmit",
54
56
  "precommit": "lint-staged"
@@ -97,12 +99,9 @@
97
99
  "@types/prop-types": "^15",
98
100
  "@types/react": "17.0.80",
99
101
  "@types/react-dom": "^17.0.11",
100
- "@typescript-eslint/eslint-plugin": "^5.62.0",
101
- "@typescript-eslint/parser": "^5.62.0",
102
102
  "@vitejs/plugin-react": "^5.1.4",
103
103
  "@vitest/browser-playwright": "^4.0.18",
104
104
  "@vitest/coverage-v8": "^4.0.18",
105
- "@vitest/eslint-plugin": "^1.6.9",
106
105
  "@vitest/ui": "^4.0.18",
107
106
  "alias-hq": "^5.3.0",
108
107
  "axe-core": "^4.11.1",
@@ -110,18 +109,11 @@
110
109
  "chokidar": "^3.5.1",
111
110
  "del-cli": "^3.0.1",
112
111
  "esbuild": "^0.25.12",
113
- "eslint": "^8.57.0",
114
- "eslint-config-prettier": "^7.2.0",
115
- "eslint-import-resolver-typescript": "^2.3.0",
116
- "eslint-plugin-import": "^2.22.1",
117
- "eslint-plugin-jsx-a11y": "^6.4.1",
118
- "eslint-plugin-react": "^7.22.0",
119
- "eslint-plugin-react-hooks": "^4.2.0",
120
- "eslint-plugin-simple-import-sort": "^7.0.0",
121
112
  "husky": "^4.3.8",
122
113
  "lint-staged": "^10.5.3",
123
114
  "npm-run-all": "^4.1.5",
124
115
  "oxfmt": "^0.39.0",
116
+ "oxlint": "^1.55.0",
125
117
  "playwright": "^1.58.2",
126
118
  "pretty-format": "^30.2.0",
127
119
  "prompts": "^2.4.0",
@@ -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
+ }