@shlinkio/shlink-frontend-kit 0.8.2 → 0.8.4
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 +20 -2
- package/dist/index.js +129 -127
- package/dist/tailwind.d.ts +49 -19
- package/dist/tailwind.js +417 -305
- package/dist/tailwind.preset.css +12 -0
- package/dist/use-timeout-mQ792qNj.js +17 -0
- package/package.json +7 -6
package/dist/tailwind.preset.css
CHANGED
|
@@ -89,6 +89,18 @@
|
|
|
89
89
|
@layer base {
|
|
90
90
|
:root {
|
|
91
91
|
--header-height: 56px;
|
|
92
|
+
|
|
93
|
+
/* Chevron image for selects */
|
|
94
|
+
--chevron-down: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");
|
|
95
|
+
/* Tick image for checkboxes */
|
|
96
|
+
--tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/></svg>");
|
|
97
|
+
|
|
98
|
+
/* Circle images for toggle switches */
|
|
99
|
+
--circle-grey-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgba%280, 0, 0, 0.25%29'/></svg>");
|
|
100
|
+
--circle-grey-light: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgba%28255, 255, 255, 0.25%29'/></svg>");
|
|
101
|
+
--circle-white: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23fff'/></svg>");
|
|
102
|
+
--circle-light-blue: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%2386b7fe'/></svg>");
|
|
103
|
+
|
|
92
104
|
@apply tw:scheme-normal tw:dark:scheme-dark tw:scroll-auto;
|
|
93
105
|
}
|
|
94
106
|
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "vitest run",
|
|
31
31
|
"test:ci": "npm run test -- --coverage",
|
|
32
32
|
"lint": "eslint dev src test",
|
|
33
|
-
"lint:fix": "npm run lint
|
|
33
|
+
"lint:fix": "npm run lint -- --fix",
|
|
34
34
|
"types": "tsc",
|
|
35
35
|
"dev": "vite serve --host=0.0.0.0 --port 3001"
|
|
36
36
|
},
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@shlinkio/eslint-config-js-coding-standard": "~3.
|
|
56
|
+
"@shlinkio/eslint-config-js-coding-standard": "~3.5.0",
|
|
57
57
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
58
|
-
"@tailwindcss/vite": "^4.0.
|
|
58
|
+
"@tailwindcss/vite": "^4.0.17",
|
|
59
59
|
"@testing-library/jest-dom": "^6.6.3",
|
|
60
60
|
"@testing-library/react": "^16.2.0",
|
|
61
61
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -67,9 +67,10 @@
|
|
|
67
67
|
"axe-core": "^4.10.3",
|
|
68
68
|
"bootstrap": "5.2.3",
|
|
69
69
|
"eslint": "^9.23.0",
|
|
70
|
+
"eslint-plugin-import": "^2.31.0",
|
|
70
71
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
71
72
|
"eslint-plugin-react": "^7.37.4",
|
|
72
|
-
"eslint-plugin-react-compiler": "^19.0.0-beta-
|
|
73
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-aeaed83-20250323",
|
|
73
74
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
75
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
75
76
|
"history": "^5.3.0",
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"sass": "^1.86.0",
|
|
79
80
|
"typescript": "^5.8.2",
|
|
80
81
|
"typescript-eslint": "^8.27.0",
|
|
81
|
-
"vite": "^6.2.
|
|
82
|
+
"vite": "^6.2.3",
|
|
82
83
|
"vite-plugin-dts": "^4.5.3",
|
|
83
84
|
"vitest": "^3.0.2"
|
|
84
85
|
},
|
|
@@ -88,5 +89,5 @@
|
|
|
88
89
|
"not ie <= 11",
|
|
89
90
|
"not op_mini all"
|
|
90
91
|
],
|
|
91
|
-
"version": "0.8.
|
|
92
|
+
"version": "0.8.4"
|
|
92
93
|
}
|