asta-ui 0.6.0 → 0.6.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.
- package/dist/base/candlestick.js +1 -1
- package/dist/base/price-chart.js +1 -1
- package/dist/base/trade-ticket.js +1 -1
- package/dist/base.js +3 -3
- package/dist/candlestick.js +1 -1
- package/dist/{chunk-Z6IAITZJ.js → chunk-5VQV2I7C.js} +2 -2
- package/dist/{chunk-JIVLBHHE.js → chunk-OFPZUTBI.js} +1 -1
- package/dist/{chunk-7MGB7FVD.js → chunk-RTAHGY6P.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/price-chart.js +1 -1
- package/dist/trade-ticket.js +1 -1
- package/package.json +1 -1
package/dist/base/candlestick.js
CHANGED
package/dist/base/price-chart.js
CHANGED
package/dist/base.js
CHANGED
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
} from "./chunk-CNY76NHF.js";
|
|
140
140
|
import {
|
|
141
141
|
TradeTicket
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-5VQV2I7C.js";
|
|
143
143
|
import {
|
|
144
144
|
CardCheckout
|
|
145
145
|
} from "./chunk-UEOEWP7L.js";
|
|
@@ -154,10 +154,10 @@ import {
|
|
|
154
154
|
} from "./chunk-F5I6EK7F.js";
|
|
155
155
|
import {
|
|
156
156
|
PriceChart
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-OFPZUTBI.js";
|
|
158
158
|
import {
|
|
159
159
|
Candlestick
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-RTAHGY6P.js";
|
|
161
161
|
import {
|
|
162
162
|
SplitFlap
|
|
163
163
|
} from "./chunk-2Z5Z4YYZ.js";
|
package/dist/candlestick.js
CHANGED
|
@@ -109,7 +109,7 @@ function TradeTicket() {
|
|
|
109
109
|
/* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
110
110
|
/* @__PURE__ */ jsxs("div", { className: "text-[clamp(2.2rem,7vw,3.4rem)] font-medium leading-none tracking-[-0.045em] text-ink tabular-nums", children: [
|
|
111
111
|
amount.toFixed(3),
|
|
112
|
-
/* @__PURE__ */ jsx("span", { className: "ml-2 text-[0.42em] font-normal tracking-normal text-mute", children: "
|
|
112
|
+
/* @__PURE__ */ jsx("span", { className: "ml-2 text-[0.42em] font-normal tracking-normal text-mute", children: "ASTA" })
|
|
113
113
|
] }),
|
|
114
114
|
/* @__PURE__ */ jsxs("p", { className: "mt-2 font-mono text-[12px] tabular-nums text-mute", children: [
|
|
115
115
|
"\u2248 $",
|
|
@@ -192,7 +192,7 @@ function TradeTicket() {
|
|
|
192
192
|
children: [
|
|
193
193
|
/* @__PURE__ */ jsxs("span", { className: `absolute flex items-center gap-2 transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "idle" ? "translate-y-0 opacity-100" : "-translate-y-4 opacity-0"}`, children: [
|
|
194
194
|
/* @__PURE__ */ jsx("span", { className: "capitalize", children: side }),
|
|
195
|
-
"
|
|
195
|
+
" ASTA"
|
|
196
196
|
] }),
|
|
197
197
|
/* @__PURE__ */ jsx("span", { className: `absolute transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "sending" ? "scale-100 opacity-100" : "scale-50 opacity-0"}`, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-5 w-5 animate-spin", fill: "none", "aria-hidden": true, children: [
|
|
198
198
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".3", strokeWidth: "2" }),
|
|
@@ -177,7 +177,7 @@ function PriceChart() {
|
|
|
177
177
|
};
|
|
178
178
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex h-full w-full flex-col p-5 sm:p-6", children: [
|
|
179
179
|
/* @__PURE__ */ jsxs("div", { className: "relative z-10", children: [
|
|
180
|
-
/* @__PURE__ */ jsx("p", { className: "font-mono text-[11px] uppercase tracking-[0.12em] text-mute", children: "
|
|
180
|
+
/* @__PURE__ */ jsx("p", { className: "font-mono text-[11px] uppercase tracking-[0.12em] text-mute", children: "ASTA / USD" }),
|
|
181
181
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-3", children: [
|
|
182
182
|
/* @__PURE__ */ jsx("span", { className: "text-[clamp(1.9rem,5.5vw,3rem)] font-medium leading-none tracking-[-0.04em] text-ink", children: /* @__PURE__ */ jsx(Roll, { text: price.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }) }),
|
|
183
183
|
/* @__PURE__ */ jsxs(
|
|
@@ -199,7 +199,7 @@ function Candlestick() {
|
|
|
199
199
|
S.current.hx = -1;
|
|
200
200
|
setOhlc(null);
|
|
201
201
|
},
|
|
202
|
-
children: /* @__PURE__ */ jsx("canvas", { ref: canvas, className: "block", "aria-label": "Live candlestick chart for
|
|
202
|
+
children: /* @__PURE__ */ jsx("canvas", { ref: canvas, className: "block", "aria-label": "Live candlestick chart for ASTA / USD", role: "img" })
|
|
203
203
|
}
|
|
204
204
|
),
|
|
205
205
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-5 top-5 font-mono text-[11px] tabular-nums sm:left-6", children: ohlc ? /* @__PURE__ */ jsxs("span", { className: "text-mute", children: [
|
|
@@ -212,7 +212,7 @@ function Candlestick() {
|
|
|
212
212
|
" C",
|
|
213
213
|
" ",
|
|
214
214
|
/* @__PURE__ */ jsx("span", { style: { color: ohlc.c >= ohlc.o ? "var(--brand)" : "var(--ink-2)" }, children: f(ohlc.c) })
|
|
215
|
-
] }) : /* @__PURE__ */ jsx("span", { className: "uppercase tracking-[0.12em] text-mute", children: "
|
|
215
|
+
] }) : /* @__PURE__ */ jsx("span", { className: "uppercase tracking-[0.12em] text-mute", children: "ASTA / USD \xB7 1m" }) })
|
|
216
216
|
] });
|
|
217
217
|
}
|
|
218
218
|
|
package/dist/index.js
CHANGED
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
} from "./chunk-CNY76NHF.js";
|
|
140
140
|
import {
|
|
141
141
|
TradeTicket
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-5VQV2I7C.js";
|
|
143
143
|
import {
|
|
144
144
|
CardCheckout
|
|
145
145
|
} from "./chunk-UEOEWP7L.js";
|
|
@@ -154,10 +154,10 @@ import {
|
|
|
154
154
|
} from "./chunk-F5I6EK7F.js";
|
|
155
155
|
import {
|
|
156
156
|
PriceChart
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-OFPZUTBI.js";
|
|
158
158
|
import {
|
|
159
159
|
Candlestick
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-RTAHGY6P.js";
|
|
161
161
|
import {
|
|
162
162
|
SplitFlap
|
|
163
163
|
} from "./chunk-2Z5Z4YYZ.js";
|
package/dist/price-chart.js
CHANGED
package/dist/trade-ticket.js
CHANGED
package/package.json
CHANGED