@purpurds/theme 6.5.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 (39) hide show
  1. package/.eslintrc.js +15 -0
  2. package/.lintstagedrc.js +1 -0
  3. package/.rush/temp/ci_build/@purpurds/theme/a52036ac753c6f91f9aeb047c582b14ac3cec75a.untar.log +10 -0
  4. package/.rush/temp/operation/ci_build/all.log +18 -0
  5. package/.rush/temp/operation/ci_build/state.json +3 -0
  6. package/.rush/temp/operation/test_unit/all.log +8 -0
  7. package/.rush/temp/operation/test_unit/error.log +2 -0
  8. package/.rush/temp/operation/test_unit/state.json +3 -0
  9. package/.rush/temp/shrinkwrap-deps.json +1032 -0
  10. package/config/rush-project.json +24 -0
  11. package/dist/LICENSE.txt +15 -0
  12. package/dist/ThemeProvider.d.ts +25 -0
  13. package/dist/ThemeProvider.d.ts.map +1 -0
  14. package/dist/telia-theme.d.ts +47 -0
  15. package/dist/telia-theme.d.ts.map +1 -0
  16. package/dist/theme-props.d.ts +162 -0
  17. package/dist/theme-props.d.ts.map +1 -0
  18. package/dist/theme.cjs.js +2 -0
  19. package/dist/theme.cjs.js.map +1 -0
  20. package/dist/theme.d.ts +5 -0
  21. package/dist/theme.d.ts.map +1 -0
  22. package/dist/theme.es.js +156 -0
  23. package/dist/theme.es.js.map +1 -0
  24. package/dist/types.d.ts +13 -0
  25. package/dist/types.d.ts.map +1 -0
  26. package/dist/useColorScheme.d.ts +4 -0
  27. package/dist/useColorScheme.d.ts.map +1 -0
  28. package/package.json +73 -0
  29. package/scripts/generate-types.mts +81 -0
  30. package/src/ThemeProvider.tsx +103 -0
  31. package/src/telia-theme.ts +75 -0
  32. package/src/theme-props.ts +161 -0
  33. package/src/theme.ts +4 -0
  34. package/src/types.ts +15 -0
  35. package/src/useColorScheme.tsx +7 -0
  36. package/tsconfig.json +7 -0
  37. package/tsconfig.types.json +9 -0
  38. package/types.d.ts +365 -0
  39. package/vite.config.mts +5 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,15 @@
1
+ require("@rushstack/eslint-patch/modern-module-resolution");
2
+
3
+ module.exports = {
4
+ extends: ["./node_modules/@telia/react-rig/.eslintrc.js"],
5
+ rules: {
6
+ curly: "error",
7
+ },
8
+ overrides: [
9
+ {
10
+ // We enable eslint-plugin-testing-library rules or preset only for matching testing files!
11
+ files: ["**/__tests__/**/*.[jt]s?(x)"],
12
+ extends: ["plugin:testing-library/react"],
13
+ },
14
+ ],
15
+ };
@@ -0,0 +1 @@
1
+ module.exports = require("@telia/react-rig/.lintstagedrc.json");
@@ -0,0 +1,10 @@
1
+ Start time: Tue Apr 15 2025 13:38:04 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/theme/a52036ac753c6f91f9aeb047c582b14ac3cec75a"
3
+
4
+ ======= BEGIN PROCESS INPUT ======
5
+
6
+ ======== END PROCESS INPUT =======
7
+ ======= BEGIN PROCESS OUTPUT =======
8
+ ======== END PROCESS OUTPUT ========
9
+
10
+ Exited with code "0"
@@ -0,0 +1,18 @@
1
+ Invoking: rushx build
2
+ Found configuration in /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/rush.json
3
+
4
+ Rush Multi-Project Build Tool 5.110.1 - Node.js 20.12.2 (LTS)
5
+ > "vite build"
6
+
7
+ vite v6.2.1 building for production...
8
+ transforming...
9
+ ✓ 14 modules transformed.
10
+ rendering chunks...
11
+
12
+ [vite:dts] Start generate declaration files...
13
+ computing gzip size...
14
+ dist/theme.cjs.js 4.71 kB │ gzip: 1.72 kB │ map: 35.01 kB
15
+ [vite:dts] Declaration files built in 2953ms.
16
+
17
+ dist/theme.es.js 5.74 kB │ gzip: 1.91 kB │ map: 35.41 kB
18
+ ✓ built in 3.31s
@@ -0,0 +1,3 @@
1
+ {
2
+ "nonCachedDurationMs": 5609.716313999999
3
+ }
@@ -0,0 +1,8 @@
1
+ Invoking: vitest run --passWithNoTests
2
+
3
+ RUN v2.1.2 /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/libraries/theme
4
+
5
+ include: **/*.{test,spec}.?(c|m)[jt]s?(x)
6
+ exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
7
+ No test files found, exiting with code 0
8
+
@@ -0,0 +1,2 @@
1
+ include: **/*.{test,spec}.?(c|m)[jt]s?(x)
2
+ exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
@@ -0,0 +1,3 @@
1
+ {
2
+ "nonCachedDurationMs": 1593.0701399999998
3
+ }