@cronos-labs/ui 0.2.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 (63) hide show
  1. package/dist/FilterPillGroup/index.d.ts +1 -0
  2. package/dist/FilterPillGroup/index.js +1 -0
  3. package/dist/FilterPillGroup/styles.d.ts +8 -0
  4. package/dist/FilterPillGroup/styles.js +36 -0
  5. package/dist/Footer/index.d.ts +34 -0
  6. package/dist/Footer/index.js +48 -0
  7. package/dist/Footer/styles.d.ts +97 -0
  8. package/dist/Footer/styles.js +326 -0
  9. package/dist/Header/NavDropdown.d.ts +17 -0
  10. package/dist/Header/NavDropdown.js +39 -0
  11. package/dist/Header/helper.d.ts +1 -0
  12. package/dist/Header/helper.js +1 -0
  13. package/dist/Header/index.d.ts +46 -0
  14. package/dist/Header/index.js +162 -0
  15. package/dist/Header/styles.d.ts +158 -0
  16. package/dist/Header/styles.js +770 -0
  17. package/dist/LocaleSelector/index.d.ts +9 -0
  18. package/dist/LocaleSelector/index.js +62 -0
  19. package/dist/LocaleSelector/styles.d.ts +33 -0
  20. package/dist/LocaleSelector/styles.js +156 -0
  21. package/dist/SearchField/index.d.ts +14 -0
  22. package/dist/SearchField/index.js +6 -0
  23. package/dist/SearchField/styles.d.ts +20 -0
  24. package/dist/SearchField/styles.js +85 -0
  25. package/dist/SectionAnchorNav/index.d.ts +11 -0
  26. package/dist/SectionAnchorNav/index.js +41 -0
  27. package/dist/SectionAnchorNav/styles.d.ts +22 -0
  28. package/dist/SectionAnchorNav/styles.js +74 -0
  29. package/dist/Seo/index.d.ts +18 -0
  30. package/dist/Seo/index.js +53 -0
  31. package/dist/Seo/types.d.ts +4 -0
  32. package/dist/Seo/types.js +1 -0
  33. package/dist/config/eslintConfig.d.ts +6 -0
  34. package/dist/config/eslintConfig.js +31 -0
  35. package/dist/config/prettierConfig.d.ts +8 -0
  36. package/dist/config/prettierConfig.js +8 -0
  37. package/dist/format.d.ts +3 -0
  38. package/dist/format.js +9 -0
  39. package/dist/index.d.ts +21 -0
  40. package/dist/index.js +18 -0
  41. package/dist/locale/config.d.ts +5 -0
  42. package/dist/locale/config.js +103 -0
  43. package/dist/locale/hooks.d.ts +3 -0
  44. package/dist/locale/hooks.js +36 -0
  45. package/dist/locale/localePreference.d.ts +7 -0
  46. package/dist/locale/localePreference.js +21 -0
  47. package/dist/locale/localization.d.ts +11 -0
  48. package/dist/locale/localization.js +12 -0
  49. package/dist/locale/routes.d.ts +5 -0
  50. package/dist/locale/routes.js +32 -0
  51. package/dist/locale/types.d.ts +25 -0
  52. package/dist/locale/types.js +1 -0
  53. package/dist/navigationContent.d.ts +59 -0
  54. package/dist/navigationContent.js +552 -0
  55. package/dist/scrollToSectionHeading.d.ts +1 -0
  56. package/dist/scrollToSectionHeading.js +12 -0
  57. package/dist/tokens.d.ts +252 -0
  58. package/dist/tokens.js +253 -0
  59. package/dist/typography.d.ts +11 -0
  60. package/dist/typography.js +106 -0
  61. package/eslint-config.js +1 -0
  62. package/package.json +98 -0
  63. package/prettier-config.js +1 -0
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@cronos-labs/ui",
3
+ "version": "0.2.0",
4
+ "description": "Shared Header, Footer, Seo, locale and theme primitives for Cronos web properties.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./eslint-config": "./eslint-config.js",
16
+ "./prettier-config": "./prettier-config.js",
17
+ "./*": {
18
+ "types": "./dist/*.d.ts",
19
+ "default": "./dist/*.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "eslint-config.js",
25
+ "prettier-config.js"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "scripts": {
31
+ "build": "tsc -p tsconfig.build.json && node scripts/fixEsmExtensions.mjs",
32
+ "typecheck": "tsc --noEmit",
33
+ "lint": "eslint .",
34
+ "lint:fix": "eslint . --fix",
35
+ "format": "prettier --write .",
36
+ "format:check": "prettier --check .",
37
+ "test": "vitest run",
38
+ "prepack": "npm run build"
39
+ },
40
+ "peerDependencies": {
41
+ "@eslint/js": "^9.22.0",
42
+ "eslint": "^9.39.4",
43
+ "eslint-config-prettier": "^10.1.1",
44
+ "eslint-plugin-react-hooks": "^5.2.0",
45
+ "eslint-plugin-react-refresh": "^0.4.19",
46
+ "globals": "^16.0.0",
47
+ "react": "^19.1.0",
48
+ "react-dom": "^19.1.0",
49
+ "react-router-dom": "^7.1.5",
50
+ "styled-components": "^6.1.15",
51
+ "typescript-eslint": "^8.26.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "@eslint/js": {
55
+ "optional": true
56
+ },
57
+ "eslint": {
58
+ "optional": true
59
+ },
60
+ "eslint-config-prettier": {
61
+ "optional": true
62
+ },
63
+ "eslint-plugin-react-hooks": {
64
+ "optional": true
65
+ },
66
+ "eslint-plugin-react-refresh": {
67
+ "optional": true
68
+ },
69
+ "globals": {
70
+ "optional": true
71
+ },
72
+ "typescript-eslint": {
73
+ "optional": true
74
+ }
75
+ },
76
+ "devDependencies": {
77
+ "@eslint/js": "^9.22.0",
78
+ "@testing-library/dom": "^10.4.1",
79
+ "@testing-library/jest-dom": "^6.6.3",
80
+ "@testing-library/react": "^16.2.0",
81
+ "@types/node": "^22.20.1",
82
+ "@types/react": "^19.1.0",
83
+ "@types/react-dom": "^19.1.2",
84
+ "@vitejs/plugin-react": "^4.3.4",
85
+ "eslint": "^9.39.4",
86
+ "eslint-config-prettier": "^10.1.1",
87
+ "eslint-plugin-react-hooks": "^5.2.0",
88
+ "eslint-plugin-react-refresh": "^0.4.19",
89
+ "globals": "^16.0.0",
90
+ "jsdom": "^26.0.0",
91
+ "prettier": "^3.9.6",
92
+ "react-router-dom": "^7.1.5",
93
+ "typescript": "^5.8.2",
94
+ "typescript-eslint": "^8.26.0",
95
+ "vite": "^6.2.1",
96
+ "vitest": "^3.0.8"
97
+ }
98
+ }
@@ -0,0 +1 @@
1
+ export { prettierConfig as default } from './dist/config/prettierConfig.js';