@urnetwork/elements 0.0.1-beta.1 → 0.0.1-beta.3

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/README.md CHANGED
@@ -25,6 +25,7 @@ https://pangrampangram.com/products/neue-montreal
25
25
 
26
26
  - Make sure everything is committed and pushed to the main branch.
27
27
  - If you're not already, login to npm with `npm login`.
28
+ - `npm run build` to build the package.
28
29
  - Run `npm pack --dry-run` to see what will be included in the package.
29
30
  - If everything looks good, run `npm run release:patch` to publish the package. There are also `release:beta`, `release:minor`, and `release:major` scripts available for versioning.
30
31
  - Tag it on Github after publishing like `git tag vx.y.z` and `git push --tags`.
@@ -1,4 +1,4 @@
1
- import { B as s, a as t, b as o, c as e, I, d as c, e as T, f as i, g as r, h as u, i as S, j as B, L as N, M as m, k as b, l, S as p, m as A, T as L, n as M } from "./selected-location-CzeT_ZqM.js";
1
+ import { B as s, a as t, b as o, c as e, I, d as c, e as T, f as i, g as r, h as u, i as S, j as B, L as N, M as m, k as b, l, S as p, m as A, T as L, n as M } from "./selected-location-B7xjq7zE.js";
2
2
  export {
3
3
  s as BUTTON_TYPES,
4
4
  t as BUTTON_VARIANTS,
@@ -0,0 +1,11 @@
1
+ import { IconNetworkInstability as UrIconNetworkInstabilityElement } from '../../../components/icons/icon-network-instability';
2
+ import * as React from "react";
3
+ export declare const IconNetworkInstability: import('@lit/react').ReactWebComponent<UrIconNetworkInstabilityElement, {}>;
4
+ export interface IconNetworkInstabilityProps {
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ iconTitle?: string;
8
+ }
9
+ export declare const UrIconNetworkInstability: React.ForwardRefExoticComponent<IconNetworkInstabilityProps & React.RefAttributes<UrIconNetworkInstabilityElement>>;
10
+ export { UrIconNetworkInstabilityElement };
11
+ export default UrIconNetworkInstability;
@@ -0,0 +1,2 @@
1
+ export * from './icon-network-instability';
2
+ export { default } from './icon-network-instability';
@@ -1,4 +1,6 @@
1
1
  export * from './icon-spinner';
2
2
  export * from './icon-hamburger';
3
+ export * from './icon-network-instability';
3
4
  export { default as UrIconSpinner } from './icon-spinner';
4
5
  export { default as UrIconHamburger } from './icon-hamburger';
6
+ export { default as UrIconNetworkInstability } from './icon-network-instability';
@@ -11,8 +11,3 @@ export { default as UrText } from './text';
11
11
  export { default as UrBackButton } from './back-button';
12
12
  export { default as UrLocationListItem } from './location-list-item';
13
13
  export { default as UrSelectedLocation } from './selected-location';
14
- export { default as UrIconSpinner } from './icons/icon-spinner';
15
- export { default as UrIconHamburger } from './icons/icon-hamburger';
16
- export { default as UrMenu } from './menu/menu';
17
- export { default as UrMenuButton } from './menu/menu-button';
18
- export { default as UrMenuItem } from './menu/menu-item';
package/dist/react.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import * as e from "react";
3
3
  import { createComponent as a } from "@lit/react";
4
- import { c as u, j as m, n as l, b as i, h as U, e as p, M as I, k as d, l as f, S as N, L as B } from "./selected-location-CzeT_ZqM.js";
5
- import { B as D, a as F, I as G, T as J } from "./selected-location-CzeT_ZqM.js";
4
+ import { c as u, j as m, n as l, b as i, h as I, e as U, f as p, M as N, k as d, l as f, S as k, L as B } from "./selected-location-B7xjq7zE.js";
5
+ import { B as J, a as K, I as Q, T as W } from "./selected-location-B7xjq7zE.js";
6
6
  const g = a({
7
7
  tagName: "ur-button",
8
8
  elementClass: u,
@@ -14,7 +14,7 @@ const g = a({
14
14
  (t, n) => /* @__PURE__ */ r(g, { ref: n, ...t })
15
15
  );
16
16
  C.displayName = "UrButton";
17
- const M = a({
17
+ const b = a({
18
18
  tagName: "ur-input",
19
19
  elementClass: m,
20
20
  react: e,
@@ -22,11 +22,11 @@ const M = a({
22
22
  onInput: "ur-input",
23
23
  onChange: "ur-change"
24
24
  }
25
- }), k = e.forwardRef(
25
+ }), w = e.forwardRef(
26
26
  (t, n) => {
27
27
  const { onInput: o, onChange: s, ...c } = t;
28
28
  return /* @__PURE__ */ r(
29
- M,
29
+ b,
30
30
  {
31
31
  ref: n,
32
32
  ...c,
@@ -36,117 +36,126 @@ const M = a({
36
36
  );
37
37
  }
38
38
  );
39
- k.displayName = "UrInput";
40
- const T = a({
39
+ w.displayName = "UrInput";
40
+ const y = a({
41
41
  tagName: "ur-text",
42
42
  elementClass: l,
43
43
  react: e
44
- }), S = e.forwardRef(
45
- (t, n) => /* @__PURE__ */ r(T, { ref: n, ...t })
44
+ }), M = e.forwardRef(
45
+ (t, n) => /* @__PURE__ */ r(y, { ref: n, ...t })
46
46
  );
47
- S.displayName = "UrText";
48
- const L = a({
47
+ M.displayName = "UrText";
48
+ const T = a({
49
49
  tagName: "ur-back-button",
50
50
  elementClass: i,
51
51
  react: e,
52
52
  events: {
53
53
  onClick: "click"
54
54
  }
55
- }), R = e.forwardRef((t, n) => /* @__PURE__ */ r(L, { ref: n, ...t }));
55
+ }), R = e.forwardRef((t, n) => /* @__PURE__ */ r(T, { ref: n, ...t }));
56
56
  R.displayName = "UrBackButton";
57
- const E = a({
57
+ const S = a({
58
58
  tagName: "ur-icon-spinner",
59
- elementClass: U,
59
+ elementClass: I,
60
60
  react: e
61
- }), b = e.forwardRef((t, n) => /* @__PURE__ */ r(E, { ref: n, ...t }));
62
- b.displayName = "UrIconSpinner";
63
- const w = a({
61
+ }), E = e.forwardRef((t, n) => /* @__PURE__ */ r(S, { ref: n, ...t }));
62
+ E.displayName = "UrIconSpinner";
63
+ const L = a({
64
64
  tagName: "ur-icon-hamburger",
65
+ elementClass: U,
66
+ react: e
67
+ }), $ = e.forwardRef((t, n) => /* @__PURE__ */ r(L, { ref: n, ...t }));
68
+ $.displayName = "UrIconHamburger";
69
+ const x = a({
70
+ tagName: "ur-icon-network-instability",
65
71
  elementClass: p,
66
72
  react: e
67
- }), y = e.forwardRef((t, n) => /* @__PURE__ */ r(w, { ref: n, ...t }));
68
- y.displayName = "UrIconHamburger";
69
- const $ = a({
73
+ }), v = e.forwardRef((t, n) => /* @__PURE__ */ r(x, { ref: n, ...t }));
74
+ v.displayName = "UrIconNetworkInstability";
75
+ const h = a({
70
76
  tagName: "ur-menu",
71
- elementClass: I,
77
+ elementClass: N,
72
78
  react: e,
73
79
  events: {
74
80
  onUrMenuClose: "ur-menu-close"
75
81
  }
76
- }), x = e.forwardRef(
77
- (t, n) => /* @__PURE__ */ r($, { ref: n, ...t })
82
+ }), H = e.forwardRef(
83
+ (t, n) => /* @__PURE__ */ r(h, { ref: n, ...t })
78
84
  );
79
- x.displayName = "UrMenu";
80
- const v = a({
85
+ H.displayName = "UrMenu";
86
+ const A = a({
81
87
  tagName: "ur-menu-button",
82
88
  elementClass: d,
83
89
  react: e,
84
90
  events: {}
85
- }), h = e.forwardRef((t, n) => /* @__PURE__ */ r(v, { ref: n, ...t, slot: "button" }));
86
- h.displayName = "UrMenuButton";
87
- const H = a({
91
+ }), _ = e.forwardRef((t, n) => /* @__PURE__ */ r(A, { ref: n, ...t, slot: "button" }));
92
+ _.displayName = "UrMenuButton";
93
+ const P = a({
88
94
  tagName: "ur-menu-item",
89
95
  elementClass: f,
90
96
  react: e,
91
97
  events: {
92
98
  onMenuItemClick: "ur-menu-item-click"
93
99
  }
94
- }), A = e.forwardRef(
95
- (t, n) => /* @__PURE__ */ r(H, { ref: n, ...t })
100
+ }), j = e.forwardRef(
101
+ (t, n) => /* @__PURE__ */ r(P, { ref: n, ...t })
96
102
  );
97
- A.displayName = "UrMenuItem";
98
- const _ = a({
103
+ j.displayName = "UrMenuItem";
104
+ const O = a({
99
105
  tagName: "ur-selected-location",
100
- elementClass: N,
106
+ elementClass: k,
101
107
  react: e,
102
108
  events: {
103
109
  onClick: "click"
104
110
  }
105
- }), P = e.forwardRef((t, n) => /* @__PURE__ */ r(_, { ref: n, ...t }));
106
- P.displayName = "UrSelectedLocation";
107
- const j = a({
111
+ }), V = e.forwardRef((t, n) => /* @__PURE__ */ r(O, { ref: n, ...t }));
112
+ V.displayName = "UrSelectedLocation";
113
+ const Y = a({
108
114
  tagName: "ur-location-list-item",
109
115
  elementClass: B,
110
116
  react: e,
111
117
  events: {
112
118
  onClick: "click"
113
119
  }
114
- }), O = e.forwardRef((t, n) => /* @__PURE__ */ r(j, { ref: n, ...t }));
115
- O.displayName = "UrLocationListItem";
120
+ }), X = e.forwardRef((t, n) => /* @__PURE__ */ r(Y, { ref: n, ...t }));
121
+ X.displayName = "UrLocationListItem";
116
122
  export {
117
- D as BUTTON_TYPES,
118
- F as BUTTON_VARIANTS,
119
- L as BackButton,
123
+ J as BUTTON_TYPES,
124
+ K as BUTTON_VARIANTS,
125
+ T as BackButton,
120
126
  g as Button,
121
- G as INPUT_TYPES,
122
- w as IconHamburger,
123
- E as IconSpinner,
124
- M as Input,
125
- $ as Menu,
126
- v as MenuButton,
127
- H as MenuItem,
128
- _ as SelectedLocation,
129
- J as TEXT_VARIANTS,
130
- T as Text,
127
+ Q as INPUT_TYPES,
128
+ L as IconHamburger,
129
+ x as IconNetworkInstability,
130
+ S as IconSpinner,
131
+ b as Input,
132
+ h as Menu,
133
+ A as MenuButton,
134
+ P as MenuItem,
135
+ O as SelectedLocation,
136
+ W as TEXT_VARIANTS,
137
+ y as Text,
131
138
  R as UrBackButton,
132
139
  i as UrBackButtonElement,
133
140
  C as UrButton,
134
141
  u as UrButtonElement,
135
- y as UrIconHamburger,
136
- p as UrIconHamburgerElement,
137
- b as UrIconSpinner,
138
- U as UrIconSpinnerElement,
139
- k as UrInput,
142
+ $ as UrIconHamburger,
143
+ U as UrIconHamburgerElement,
144
+ v as UrIconNetworkInstability,
145
+ p as UrIconNetworkInstabilityElement,
146
+ E as UrIconSpinner,
147
+ I as UrIconSpinnerElement,
148
+ w as UrInput,
140
149
  m as UrInputElement,
141
- O as UrLocationListItem,
142
- x as UrMenu,
143
- h as UrMenuButton,
150
+ X as UrLocationListItem,
151
+ H as UrMenu,
152
+ _ as UrMenuButton,
144
153
  d as UrMenuButtonElement,
145
- I as UrMenuElement,
146
- A as UrMenuItem,
154
+ N as UrMenuElement,
155
+ j as UrMenuItem,
147
156
  f as UrMenuItemElement,
148
- P as UrSelectedLocation,
149
- N as UrSelectedLocationElement,
150
- S as UrText,
157
+ V as UrSelectedLocation,
158
+ k as UrSelectedLocationElement,
159
+ M as UrText,
151
160
  l as UrTextElement
152
161
  };
@@ -1275,6 +1275,7 @@ const qt = c`
1275
1275
  align-items: center;
1276
1276
  justify-content: space-between;
1277
1277
  width: 100%;
1278
+ min-height: 3.6rem;
1278
1279
  box-sizing: border-box;
1279
1280
  padding: var(--ur-space-sm) var(--ur-space-md);
1280
1281
  cursor: pointer;
@@ -1821,10 +1822,12 @@ let g = class extends p {
1821
1822
 
1822
1823
  <div class="location-text-content">
1823
1824
  <ur-text variant="body">${this.name}</ur-text>
1824
- <ur-text variant="small" color="var(--ur-color-gray)">
1825
- ${this.formatNumber(this.providerCount)}
1826
- provider${this.providerCount === 1 ? "" : "s"}
1827
- </ur-text>
1825
+ ${this.providerCount > 0 ? h`
1826
+ <ur-text variant="small" color="var(--ur-color-gray)">
1827
+ ${this.formatNumber(this.providerCount)}
1828
+ provider${this.providerCount === 1 ? "" : "s"}
1829
+ </ur-text>
1830
+ ` : null}
1828
1831
  </div>
1829
1832
  </div>
1830
1833
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@urnetwork/elements",
3
3
  "author": "URnetwork <support@ur.io> (https://ur.io)",
4
4
  "license": "ISC",
5
- "version": "0.0.1-beta.1",
5
+ "version": "0.0.1-beta.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/urnetwork/elements.git"