@nexxtmove/ui 0.1.0 → 0.1.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/index.js +9 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,10 +10,10 @@ const P = /* @__PURE__ */ v({
|
|
|
10
10
|
const t = T("up"), l = u(() => String(e.value).split("")), i = u(() => `duration-${e.duration}`);
|
|
11
11
|
return N(
|
|
12
12
|
() => e.value,
|
|
13
|
-
(c,
|
|
14
|
-
t.value = c >
|
|
13
|
+
(c, x) => {
|
|
14
|
+
t.value = c > x ? "up" : "down";
|
|
15
15
|
}
|
|
16
|
-
), (c,
|
|
16
|
+
), (c, x) => (a(), g(S, {
|
|
17
17
|
tag: "div",
|
|
18
18
|
class: "relative flex shrink-0 items-center tabular-nums",
|
|
19
19
|
"aria-label": e.value,
|
|
@@ -24,7 +24,7 @@ const P = /* @__PURE__ */ v({
|
|
|
24
24
|
"move-class": "transition-all duration-500 ease-in-out"
|
|
25
25
|
}, {
|
|
26
26
|
default: d(() => [
|
|
27
|
-
(a(!0), s(p, null, B(l.value, (
|
|
27
|
+
(a(!0), s(p, null, B(l.value, (b, h) => (a(), s("div", {
|
|
28
28
|
key: h,
|
|
29
29
|
class: "relative inline-flex h-[1.5em] w-[1ch] items-center justify-center overflow-hidden",
|
|
30
30
|
"aria-hidden": "true"
|
|
@@ -37,9 +37,9 @@ const P = /* @__PURE__ */ v({
|
|
|
37
37
|
}, {
|
|
38
38
|
default: d(() => [
|
|
39
39
|
(a(), s("span", {
|
|
40
|
-
key:
|
|
40
|
+
key: b,
|
|
41
41
|
class: "flex h-full w-full items-center justify-center"
|
|
42
|
-
}, m(
|
|
42
|
+
}, m(b), 1))
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1032, ["enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
|
|
@@ -167,7 +167,7 @@ const P = /* @__PURE__ */ v({
|
|
|
167
167
|
}
|
|
168
168
|
}), F = { class: "@container" }, R = { class: "flex flex-col @md:gap-2" }, q = { class: "flex items-center justify-between gap-2" }, G = ["aria-label", "aria-valuenow", "aria-valuetext"], J = {
|
|
169
169
|
key: 0,
|
|
170
|
-
class: "flex items-center tabular-nums @md:hidden",
|
|
170
|
+
class: "flex items-center text-sm tabular-nums @md:hidden",
|
|
171
171
|
"aria-hidden": "true"
|
|
172
172
|
}, K = {
|
|
173
173
|
key: 0,
|
|
@@ -188,7 +188,7 @@ const P = /* @__PURE__ */ v({
|
|
|
188
188
|
e.stepTitles && e.stepTitles.length !== e.steps && console.warn(
|
|
189
189
|
`[NexxtProgressBar] The "stepTitles" array length (${e.stepTitles.length}) must match the "steps" prop (${e.steps}).`
|
|
190
190
|
);
|
|
191
|
-
}), (
|
|
191
|
+
}), (x, b) => (a(), s("div", F, [
|
|
192
192
|
r("div", R, [
|
|
193
193
|
r("div", q, [
|
|
194
194
|
r("div", {
|
|
@@ -214,7 +214,7 @@ const P = /* @__PURE__ */ v({
|
|
|
214
214
|
c.value ? (a(), s("ol", K, [
|
|
215
215
|
(a(!0), s(p, null, B(e.stepTitles, (h, $) => (a(), s("li", {
|
|
216
216
|
key: h,
|
|
217
|
-
class: n(["transition-colors duration-500 @max-md:hidden", $ === t.value ? "font-medium text-sapphire-500 @max-md:inline" : ""]),
|
|
217
|
+
class: n(["transition-colors duration-500 @max-md:hidden @min-md:text-sm", $ === t.value ? "font-medium text-sapphire-500 @max-md:inline" : ""]),
|
|
218
218
|
"aria-current": $ === t.value ? "step" : void 0
|
|
219
219
|
}, m(h), 11, O))), 128))
|
|
220
220
|
])) : o("", !0)
|