rbro-tat-uds 1.5.9 → 1.5.10
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.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +13 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -4124,7 +4124,7 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4124
4124
|
`, Q6 = E.div`
|
4125
4125
|
flex: 1;
|
4126
4126
|
height: 100%;
|
4127
|
-
cursor: pointer;
|
4127
|
+
cursor: ${({ $disabled: e }) => e ? "default" : "pointer"};
|
4128
4128
|
display: flex;
|
4129
4129
|
align-items: center;
|
4130
4130
|
justify-content: center;
|
@@ -4135,7 +4135,7 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4135
4135
|
flex: 1;
|
4136
4136
|
border-radius: 2px;
|
4137
4137
|
background: ${t.gray_60};
|
4138
|
-
cursor: pointer;
|
4138
|
+
cursor: ${({ $disabled: e }) => e ? "default" : "pointer"};
|
4139
4139
|
position: relative;
|
4140
4140
|
outline: none;
|
4141
4141
|
|
@@ -4143,7 +4143,7 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4143
4143
|
position: absolute;
|
4144
4144
|
left: 0;
|
4145
4145
|
height: 100%;
|
4146
|
-
background-color: ${t.info_700};
|
4146
|
+
background-color: ${({ $disabled: e }) => e ? t.gray_300 : t.info_700};
|
4147
4147
|
border-radius: inherit;
|
4148
4148
|
|
4149
4149
|
& > span {
|
@@ -4214,7 +4214,7 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4214
4214
|
},
|
4215
4215
|
[y, L]
|
4216
4216
|
), V = (_) => {
|
4217
|
-
L(_), m(!0);
|
4217
|
+
C || (L(_), m(!0));
|
4218
4218
|
}, D = (_) => {
|
4219
4219
|
m(!0), L(_);
|
4220
4220
|
}, w = _1(
|
@@ -4225,11 +4225,14 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4225
4225
|
), M = _1(() => {
|
4226
4226
|
i && i(o), m(!1);
|
4227
4227
|
}, [o, i]);
|
4228
|
-
return g1(() =>
|
4229
|
-
|
4230
|
-
|
4231
|
-
|
4232
|
-
|
4228
|
+
return g1(() => {
|
4229
|
+
if (!C)
|
4230
|
+
return y && (window.addEventListener("mousemove", S), window.addEventListener("mouseup", A), window.addEventListener("touchmove", w, {
|
4231
|
+
passive: !0
|
4232
|
+
}), window.addEventListener("touchend", M)), () => {
|
4233
|
+
window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", A), window.removeEventListener("touchmove", w), window.removeEventListener("touchend", M);
|
4234
|
+
};
|
4235
|
+
}, [y, S, A, M, w]), /* @__PURE__ */ r.jsxs(
|
4233
4236
|
K6,
|
4234
4237
|
{
|
4235
4238
|
$height: u,
|
@@ -4274,7 +4277,7 @@ const z6 = [14, 16, 18, 20, 24], W6 = [200, 300, 400, 500, 700, 800], B6 = E.div
|
|
4274
4277
|
"span",
|
4275
4278
|
{
|
4276
4279
|
style: {
|
4277
|
-
cursor: y ? "grabbing" : "grab",
|
4280
|
+
cursor: C ? "default" : y ? "grabbing" : "grab",
|
4278
4281
|
right: `${(o - a) / (s - a) * 100 * 0.32 - 32}px`
|
4279
4282
|
}
|
4280
4283
|
}
|