@shlinkio/shlink-frontend-kit 0.8.4 → 0.8.6

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.
@@ -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,24 @@
1
+ import { useRef as c, useCallback as u, useEffect as f, useMemo as g, useState as i } from "react";
2
+ const m = () => c(null);
3
+ function b(o, n = globalThis.setTimeout, t = globalThis.clearTimeout) {
4
+ const s = c(null), e = u(() => {
5
+ s.current && t(s.current);
6
+ }, [t]), l = u((r, a) => {
7
+ e(), s.current = n(() => {
8
+ r(), s.current = null;
9
+ }, a ?? o);
10
+ }, [e, o, n]);
11
+ return f(() => e, [e]), g(
12
+ () => ({ setTimeout: l, clearCurrentTimeout: e }),
13
+ [e, l]
14
+ );
15
+ }
16
+ const F = (o = !1) => {
17
+ const [n, t] = i(o), s = u(() => t((r) => !r), []), e = u(() => t(!0), []), l = u(() => t(!1), []);
18
+ return [n, s, e, l];
19
+ };
20
+ export {
21
+ F as a,
22
+ m as b,
23
+ b as u
24
+ };
package/package.json CHANGED
@@ -55,31 +55,31 @@
55
55
  "devDependencies": {
56
56
  "@shlinkio/eslint-config-js-coding-standard": "~3.5.0",
57
57
  "@stylistic/eslint-plugin": "^4.2.0",
58
- "@tailwindcss/vite": "^4.0.17",
58
+ "@tailwindcss/vite": "^4.1.3",
59
59
  "@testing-library/jest-dom": "^6.6.3",
60
- "@testing-library/react": "^16.2.0",
60
+ "@testing-library/react": "^16.3.0",
61
61
  "@testing-library/user-event": "^14.6.1",
62
62
  "@total-typescript/shoehorn": "^0.1.2",
63
- "@types/react": "^19.0.12",
64
- "@types/react-dom": "^19.0.4",
63
+ "@types/react": "^19.1.0",
64
+ "@types/react-dom": "^19.1.1",
65
65
  "@vitejs/plugin-react": "^4.3.4",
66
- "@vitest/coverage-v8": "^3.0.9",
66
+ "@vitest/coverage-v8": "^3.1.1",
67
67
  "axe-core": "^4.10.3",
68
68
  "bootstrap": "5.2.3",
69
- "eslint": "^9.23.0",
69
+ "eslint": "^9.24.0",
70
70
  "eslint-plugin-import": "^2.31.0",
71
71
  "eslint-plugin-jsx-a11y": "^6.10.2",
72
- "eslint-plugin-react": "^7.37.4",
73
- "eslint-plugin-react-compiler": "^19.0.0-beta-aeaed83-20250323",
72
+ "eslint-plugin-react": "^7.37.5",
73
+ "eslint-plugin-react-compiler": "^19.0.0-beta-e993439-20250328",
74
74
  "eslint-plugin-react-hooks": "^5.2.0",
75
75
  "eslint-plugin-simple-import-sort": "^12.1.1",
76
76
  "history": "^5.3.0",
77
77
  "jsdom": "^26.0.0",
78
78
  "resize-observer-polyfill": "^1.5.1",
79
- "sass": "^1.86.0",
80
- "typescript": "^5.8.2",
81
- "typescript-eslint": "^8.27.0",
82
- "vite": "^6.2.3",
79
+ "sass": "^1.86.3",
80
+ "typescript": "^5.8.3",
81
+ "typescript-eslint": "^8.29.0",
82
+ "vite": "^6.2.5",
83
83
  "vite-plugin-dts": "^4.5.3",
84
84
  "vitest": "^3.0.2"
85
85
  },
@@ -89,5 +89,5 @@
89
89
  "not ie <= 11",
90
90
  "not op_mini all"
91
91
  ],
92
- "version": "0.8.4"
92
+ "version": "0.8.6"
93
93
  }
@@ -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
- };