@aurodesignsystem/auro-library 3.0.4 → 3.0.6
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/CHANGELOG.md +14 -0
- package/package.json +2 -1
- package/scripts/build/postCss.mjs +20 -17
- package/scripts/runtime/floatingUI.mjs +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.6](https://github.com/AlaskaAirlines/auro-library/compare/v3.0.5...v3.0.6) (2025-01-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* postCSS reference path ([6d33791](https://github.com/AlaskaAirlines/auro-library/commit/6d33791e9f1b74c5052ffcaadc456a798c1ece4d))
|
|
9
|
+
|
|
10
|
+
## [3.0.5](https://github.com/AlaskaAirlines/auro-library/compare/v3.0.4...v3.0.5) (2024-12-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* force focus state to dropdown.trigger as `document.activeElement` stays in body even with clicking [#99](https://github.com/AlaskaAirlines/auro-library/issues/99) ([5bfec7a](https://github.com/AlaskaAirlines/auro-library/commit/5bfec7a004c48b4f9612193eb4a64057b81e57cc))
|
|
16
|
+
|
|
3
17
|
## [3.0.4](https://github.com/AlaskaAirlines/auro-library/compare/v3.0.3...v3.0.4) (2024-12-27)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem/auro-library",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "This repository holds shared scripts, utilities, and workflows utilized across repositories along the Auro Design System.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"handlebars": "^4.7.8",
|
|
81
81
|
"markdown-magic": "^2.6.1",
|
|
82
|
+
"@floating-ui/dom": "^1.6.11",
|
|
82
83
|
"npm-run-all": "^4.1.5"
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/* eslint-disable brace-style, eqeqeq, object-property-newline, arrow-parens, array-element-newline, object-shorthand, dot-location, no-use-before-define, prefer-template, consistent-return, no-underscore-dangle, prefer-arrow-callback */
|
|
2
|
+
|
|
1
3
|
import autoprefixer from 'autoprefixer';
|
|
2
4
|
import postcss from 'postcss';
|
|
3
5
|
import comments from 'postcss-discard-comments';
|
|
4
6
|
import path from 'path';
|
|
5
7
|
import fs from 'fs';
|
|
8
|
+
import process from 'process';
|
|
6
9
|
|
|
7
|
-
const __dirname =
|
|
8
|
-
const directoryPath = path.join(__dirname, '
|
|
10
|
+
const __dirname = process.cwd();
|
|
11
|
+
const directoryPath = path.join(__dirname, '/src');
|
|
9
12
|
|
|
10
13
|
/**
|
|
11
14
|
* Default postCSS run
|
|
@@ -13,11 +16,11 @@ const directoryPath = path.join(__dirname, '../src');
|
|
|
13
16
|
* through the standardProcessor() function.
|
|
14
17
|
*/
|
|
15
18
|
fs.readdir(directoryPath, function (err, files) {
|
|
16
|
-
//handling error
|
|
19
|
+
// handling error
|
|
17
20
|
if (err) {
|
|
18
|
-
return console.log('Unable to scan directory: ' + err);
|
|
21
|
+
return console.log('Unable to scan directory: ' + err); // eslint-disable-line no-console
|
|
19
22
|
}
|
|
20
|
-
//listing all files using forEach
|
|
23
|
+
// listing all files using forEach
|
|
21
24
|
files.forEach(function (file) {
|
|
22
25
|
if (file.includes(".css")) {
|
|
23
26
|
standardProcessor(file);
|
|
@@ -28,19 +31,19 @@ fs.readdir(directoryPath, function (err, files) {
|
|
|
28
31
|
/**
|
|
29
32
|
* The standardProcessor function applies tokens for fallback selectors
|
|
30
33
|
* and completes a post cleanup.
|
|
31
|
-
* @param {string} file
|
|
34
|
+
* @param {string} file - The file to process.
|
|
32
35
|
*/
|
|
33
36
|
function standardProcessor(file) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
fs.readFile(`src/${file}`, (err, css) => {
|
|
38
|
+
postcss([autoprefixer, comments])
|
|
39
|
+
.use(comments({
|
|
40
|
+
remove: function(comment) { return comment[0] == "@"; }
|
|
41
|
+
}))
|
|
42
|
+
.process(css, { from: `src/${file}`, to: `src/${file}` })
|
|
43
|
+
.then(result => {
|
|
44
|
+
fs.writeFile(`src/${file}`, result.css, () => true);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -60,4 +63,4 @@ function standardProcessor(file) {
|
|
|
60
63
|
// fs.writeFile('src/style.map', result.map, () => true)
|
|
61
64
|
// }
|
|
62
65
|
// })
|
|
63
|
-
// });
|
|
66
|
+
// });
|