@urnetwork/elements 0.0.0-beta.1

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 (77) hide show
  1. package/README.md +30 -0
  2. package/dist/assets/styles.css +1 -0
  3. package/dist/components/back-button/back-button.d.ts +14 -0
  4. package/dist/components/back-button/back-button.styles.d.ts +1 -0
  5. package/dist/components/back-button/index.d.ts +1 -0
  6. package/dist/components/button/button.d.ts +23 -0
  7. package/dist/components/button/button.styles.d.ts +1 -0
  8. package/dist/components/button/index.d.ts +1 -0
  9. package/dist/components/icons/icon-back.d.ts +11 -0
  10. package/dist/components/icons/icon-back.styles.d.ts +1 -0
  11. package/dist/components/icons/icon-base.styles.d.ts +1 -0
  12. package/dist/components/icons/icon-connect-globe.d.ts +11 -0
  13. package/dist/components/icons/icon-connect-globe.styles.d.ts +1 -0
  14. package/dist/components/icons/icon-hamburger.d.ts +11 -0
  15. package/dist/components/icons/icon-hamburger.styles.d.ts +1 -0
  16. package/dist/components/icons/icon-network-instability.d.ts +12 -0
  17. package/dist/components/icons/icon-network-instability.styles.d.ts +1 -0
  18. package/dist/components/icons/icon-privacy.d.ts +12 -0
  19. package/dist/components/icons/icon-privacy.styles.d.ts +1 -0
  20. package/dist/components/icons/icon-spinner.d.ts +12 -0
  21. package/dist/components/icons/icon-spinner.styles.d.ts +1 -0
  22. package/dist/components/icons/icon-warning.d.ts +11 -0
  23. package/dist/components/icons/icon-warning.styles.d.ts +1 -0
  24. package/dist/components/icons/index.d.ts +6 -0
  25. package/dist/components/index.d.ts +9 -0
  26. package/dist/components/input/index.d.ts +1 -0
  27. package/dist/components/input/input.d.ts +29 -0
  28. package/dist/components/input/input.styles.d.ts +1 -0
  29. package/dist/components/location-list-item/index.d.ts +1 -0
  30. package/dist/components/location-list-item/location-list-item.d.ts +18 -0
  31. package/dist/components/location-list-item/location-list-item.styles.d.ts +1 -0
  32. package/dist/components/menu/index.d.ts +3 -0
  33. package/dist/components/menu/menu-button.d.ts +11 -0
  34. package/dist/components/menu/menu-button.styles.d.ts +1 -0
  35. package/dist/components/menu/menu-item.d.ts +13 -0
  36. package/dist/components/menu/menu-item.styles.d.ts +1 -0
  37. package/dist/components/menu/menu.d.ts +21 -0
  38. package/dist/components/menu/menu.styles.d.ts +1 -0
  39. package/dist/components/selected-location/index.d.ts +1 -0
  40. package/dist/components/selected-location/selected-location.d.ts +18 -0
  41. package/dist/components/selected-location/selected-location.styles.d.ts +1 -0
  42. package/dist/components/spinner/index.d.ts +1 -0
  43. package/dist/components/spinner/spinner.d.ts +14 -0
  44. package/dist/components/text/index.d.ts +1 -0
  45. package/dist/components/text/text.d.ts +19 -0
  46. package/dist/components/text/text.styles.d.ts +1 -0
  47. package/dist/components.js +23 -0
  48. package/dist/my-element.d.ts +26 -0
  49. package/dist/react/back-button/back-button.d.ts +15 -0
  50. package/dist/react/back-button/index.d.ts +2 -0
  51. package/dist/react/button/button.d.ts +19 -0
  52. package/dist/react/button/index.d.ts +2 -0
  53. package/dist/react/icons/icon-hamburger/icon-hamburger.d.ts +10 -0
  54. package/dist/react/icons/icon-hamburger/index.d.ts +2 -0
  55. package/dist/react/icons/icon-spinner/icon-spinner.d.ts +11 -0
  56. package/dist/react/icons/icon-spinner/index.d.ts +2 -0
  57. package/dist/react/icons/index.d.ts +4 -0
  58. package/dist/react/index.d.ts +18 -0
  59. package/dist/react/input/index.d.ts +2 -0
  60. package/dist/react/input/input.d.ts +31 -0
  61. package/dist/react/location-list-item/index.d.ts +2 -0
  62. package/dist/react/location-list-item/location-list-item.d.ts +18 -0
  63. package/dist/react/menu/index.d.ts +6 -0
  64. package/dist/react/menu/menu-button.d.ts +11 -0
  65. package/dist/react/menu/menu-item.d.ts +15 -0
  66. package/dist/react/menu/menu.d.ts +15 -0
  67. package/dist/react/selected-location/index.d.ts +2 -0
  68. package/dist/react/selected-location/selected-location.d.ts +18 -0
  69. package/dist/react/text/index.d.ts +2 -0
  70. package/dist/react/text/text.d.ts +16 -0
  71. package/dist/react.js +152 -0
  72. package/dist/selected-location-CzeT_ZqM.js +2489 -0
  73. package/dist/styles.d.ts +1 -0
  74. package/dist/styles.js +1 -0
  75. package/dist/utils/color-utils.d.ts +7 -0
  76. package/dist/vite.svg +1 -0
  77. package/package.json +59 -0
@@ -0,0 +1 @@
1
+
package/dist/styles.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ export declare const countryCodeColorHexes: Record<string, string>;
2
+ /**
3
+ * Get color hex for a given key (country code or location ID)
4
+ * If the key matches a country code, returns the mapped color
5
+ * Otherwise generates a color by mixing two colors from the map
6
+ */
7
+ export declare function getColorHex(key: string): string;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@urnetwork/elements",
3
+ "author": "URnetwork <support@ur.io> (https://ur.io)",
4
+ "license": "ISC",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/urnetwork/elements.git"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "description": "A collection of web components and React components for building URnetwork interfaces.",
13
+ "homepage": "https://ur.io",
14
+ "bugs": {
15
+ "url": "https://github.com/urnetwork/elements/issues"
16
+ },
17
+ "version": "0.0.0-beta.1",
18
+ "type": "module",
19
+ "exports": {
20
+ "./styles.css": "./dist/assets/styles.css",
21
+ "./components": {
22
+ "types": "./dist/components/index.d.ts",
23
+ "default": "./dist/components.js"
24
+ },
25
+ "./react": {
26
+ "types": "./dist/react/index.d.ts",
27
+ "default": "./dist/react.js"
28
+ }
29
+ },
30
+ "scripts": {
31
+ "dev": "vite",
32
+ "build": "vite build",
33
+ "build:demo": "vite build --mode demo",
34
+ "preview": "vite preview",
35
+ "prepublishOnly": "npm run build",
36
+ "release:patch": "npm version patch && npm publish",
37
+ "release:minor": "npm version minor && npm publish",
38
+ "release:major": "npm version major && npm publish"
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md"
43
+ ],
44
+ "devDependencies": {
45
+ "@lit/react": "^1.0.0",
46
+ "@types/node": "^20.0.0",
47
+ "@types/react": "^19.0.0",
48
+ "@types/react-dom": "^19.0.0",
49
+ "typescript": "^5.0.0",
50
+ "vite": "^5.0.0",
51
+ "vite-plugin-dts": "^3.0.0"
52
+ },
53
+ "peerDependencies": {
54
+ "@lit/react": "^1.0.0",
55
+ "react": "^19.0.0",
56
+ "react-dom": "^19.0.0",
57
+ "lit": "^3.0.0"
58
+ }
59
+ }