@base-framework/ui 1.0.98 → 1.0.100
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/atoms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-
|
|
1
|
+
import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-qwYWgQDH.js";
|
|
2
2
|
import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
3
3
|
import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-nzivW9Dr.js";
|
|
4
4
|
import { V as W, a as w } from "./veil-D4dRxILB.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-
|
|
1
|
+
import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-qwYWgQDH.js";
|
|
2
2
|
import { B as g, I as T, L as c } from "./buttons-CVEwmPAi.js";
|
|
3
3
|
import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-nzivW9Dr.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
@@ -135,12 +135,13 @@ const a = {
|
|
|
135
135
|
return l({ class: "relative w-full h-4 flex items-center" }, [
|
|
136
136
|
// Track
|
|
137
137
|
l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
|
|
138
|
-
x(({ state: t }) =>
|
|
138
|
+
x(({ state: t }) => [
|
|
139
139
|
// Filled Track
|
|
140
|
-
|
|
140
|
+
l({
|
|
141
141
|
class: "absolute h-2 bg-primary rounded-full",
|
|
142
|
-
style:
|
|
143
|
-
}),
|
|
142
|
+
style: "width: [[filledPercentage]]%"
|
|
143
|
+
}),
|
|
144
|
+
// Thumb
|
|
144
145
|
l({
|
|
145
146
|
class: `
|
|
146
147
|
absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
|
|
@@ -148,8 +149,9 @@ const a = {
|
|
|
148
149
|
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|
149
150
|
disabled:pointer-events-none disabled:opacity-50 transform -translate-x-1/2
|
|
150
151
|
`.trim(),
|
|
151
|
-
style:
|
|
152
|
-
}),
|
|
152
|
+
style: "left: [[filledPercentage]]%"
|
|
153
|
+
}),
|
|
154
|
+
// Hidden Range Input
|
|
153
155
|
C({
|
|
154
156
|
type: "range",
|
|
155
157
|
min: ["[[min]]", t],
|
|
@@ -167,8 +169,8 @@ const a = {
|
|
|
167
169
|
const r = Number(e.target.value);
|
|
168
170
|
this.state.value = r, this.state.filledPercentage = this.getFillPercentage(r), typeof this.change == "function" && this.change(r);
|
|
169
171
|
}
|
|
170
|
-
})
|
|
171
|
-
)
|
|
172
|
+
})
|
|
173
|
+
])
|
|
172
174
|
]);
|
|
173
175
|
}
|
|
174
176
|
}
|
package/package.json
CHANGED