@shlinkio/shlink-frontend-kit 0.8.4 → 0.8.5
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.d.ts +17 -1
- package/dist/index.js +164 -161
- package/dist/tailwind.d.ts +7 -1
- package/dist/tailwind.js +203 -196
- package/dist/tailwind.preset.css +13 -0
- package/dist/use-timeout-BbfWTbuj.js +17 -0
- package/package.json +1 -1
- package/dist/use-timeout-mQ792qNj.js +0 -17
package/dist/tailwind.preset.css
CHANGED
|
@@ -157,6 +157,19 @@
|
|
|
157
157
|
@apply tw:focus-ring-base tw:focus-visible:ring-danger/50;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
@utility scroll-thin {
|
|
161
|
+
/* Standard. New browsers */
|
|
162
|
+
scrollbar-width: thin;
|
|
163
|
+
|
|
164
|
+
/* Fallbacks */
|
|
165
|
+
&::-webkit-scrollbar {
|
|
166
|
+
width: 6px;
|
|
167
|
+
}
|
|
168
|
+
&::-webkit-scrollbar-thumb {
|
|
169
|
+
border-radius: .5rem;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
160
173
|
@custom-variant highlight {
|
|
161
174
|
&:hover,
|
|
162
175
|
&:focus {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useRef as l, useCallback as s, useEffect as m, useMemo as f } from "react";
|
|
2
|
+
function a(u, r = globalThis.setTimeout, o = globalThis.clearTimeout) {
|
|
3
|
+
const t = l(null), e = s(() => {
|
|
4
|
+
t.current && o(t.current);
|
|
5
|
+
}, [o]), n = s((c, i) => {
|
|
6
|
+
e(), t.current = r(() => {
|
|
7
|
+
c(), t.current = null;
|
|
8
|
+
}, i ?? u);
|
|
9
|
+
}, [e, u, r]);
|
|
10
|
+
return m(() => e, [e]), f(
|
|
11
|
+
() => ({ setTimeout: n, clearCurrentTimeout: e }),
|
|
12
|
+
[e, n]
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as u
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useRef as c, useCallback as s, useEffect as b, useMemo as m } from "react";
|
|
2
|
-
function a(u, o = globalThis.setTimeout.bind(globalThis), r = globalThis.clearTimeout.bind(globalThis)) {
|
|
3
|
-
const t = c(null), e = s(() => {
|
|
4
|
-
t.current && r(t.current);
|
|
5
|
-
}, [r]), n = s((i, l) => {
|
|
6
|
-
e(), t.current = o(() => {
|
|
7
|
-
i(), t.current = null;
|
|
8
|
-
}, l ?? u);
|
|
9
|
-
}, [e, u, o]);
|
|
10
|
-
return b(() => e, [e]), m(
|
|
11
|
-
() => ({ setTimeout: n, clearCurrentTimeout: e }),
|
|
12
|
-
[e, n]
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
a as u
|
|
17
|
-
};
|