@shlinkio/shlink-frontend-kit 0.9.8 → 0.9.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.
@@ -10,7 +10,7 @@
10
10
  --color-lm-brand-dark: color-mix(in srgb, black 20%, var(--tw-color-lm-brand) 80%);
11
11
  --color-lm-primary: #ffffff;
12
12
  --color-lm-primary-alfa: rgb(var(--tw-color-lm-primary) / .5);
13
- --color-lm-secondary: #f5f6fe;
13
+ --color-lm-secondary: #eeeff8;
14
14
  --color-lm-text: #232323;
15
15
  --color-lm-border: rgb(0 0 0 / .125);
16
16
  --color-lm-table-border: #dee2e6;
@@ -51,7 +51,7 @@
51
51
  --breakpoint-md: 768px;
52
52
  --breakpoint-lg: 992px;
53
53
  --breakpoint-xl: 1200px;
54
- --breakpoint-2xl: 1400px;
54
+ --breakpoint-2xl: 1320px; /* 1400px according to bootstrap docs, but then the container is bigger than before */
55
55
  }
56
56
 
57
57
  /* Deprecated. TODO Remove with bootstrap support */
@@ -150,7 +150,7 @@
150
150
  }
151
151
 
152
152
  hr {
153
- @apply tw:my-3
153
+ @apply tw:my-3;
154
154
  }
155
155
 
156
156
  p {
@@ -160,6 +160,10 @@
160
160
  code {
161
161
  @apply tw:text-sm tw:text-pink-600 tw:dark:text-pink-500 tw:font-mono;
162
162
  }
163
+
164
+ input[type="search"]::-webkit-search-cancel-button {
165
+ @apply tw:cursor-pointer;
166
+ }
163
167
  }
164
168
 
165
169
  @utility focus-ring-base {
package/package.json CHANGED
@@ -58,17 +58,17 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@shlinkio/eslint-config-js-coding-standard": "~3.5.0",
61
- "@stylistic/eslint-plugin": "^4.4.0",
61
+ "@stylistic/eslint-plugin": "^4.4.1",
62
62
  "@tailwindcss/vite": "^4.1.8",
63
63
  "@testing-library/jest-dom": "^6.6.3",
64
64
  "@testing-library/react": "^16.3.0",
65
65
  "@testing-library/user-event": "^14.6.1",
66
66
  "@total-typescript/shoehorn": "^0.1.2",
67
67
  "@types/react": "^19.1.6",
68
- "@types/react-dom": "^19.1.5",
69
- "@vitejs/plugin-react": "^4.5.0",
70
- "@vitest/browser": "^3.1.4",
71
- "@vitest/coverage-v8": "^3.1.4",
68
+ "@types/react-dom": "^19.1.6",
69
+ "@vitejs/plugin-react": "^4.5.1",
70
+ "@vitest/browser": "^3.2.2",
71
+ "@vitest/coverage-v8": "^3.2.2",
72
72
  "axe-core": "^4.10.3",
73
73
  "bootstrap": "5.2.3",
74
74
  "eslint": "^9.28.0",
@@ -82,7 +82,7 @@
82
82
  "playwright": "^1.52.0",
83
83
  "sass": "^1.89.1",
84
84
  "typescript": "^5.8.3",
85
- "typescript-eslint": "^8.33.0",
85
+ "typescript-eslint": "^8.34.0",
86
86
  "vite": "^6.3.5",
87
87
  "vite-plugin-dts": "^4.5.4",
88
88
  "vitest": "^3.0.2"
@@ -93,5 +93,5 @@
93
93
  "not ie <= 11",
94
94
  "not op_mini all"
95
95
  ],
96
- "version": "0.9.8"
96
+ "version": "0.9.10"
97
97
  }
@@ -1,32 +0,0 @@
1
- import { useRef as T, useCallback as c, useEffect as m, useMemo as b, useState as f } from "react";
2
- function h(s, n = globalThis.setTimeout, o = globalThis.clearTimeout) {
3
- const t = T(null), e = c(() => {
4
- t.current && o(t.current);
5
- }, [o]), l = c((u, a) => {
6
- e(), t.current = n(() => {
7
- u(), t.current = null;
8
- }, a ?? s);
9
- }, [e, s, n]);
10
- return m(() => e, [e]), b(
11
- () => ({ setTimeout: l, clearCurrentTimeout: e }),
12
- [e, l]
13
- );
14
- }
15
- const F = 2e3, R = (s = {}, n, o = globalThis.setTimeout, t = globalThis.clearTimeout) => {
16
- const { initialValue: e = !1, delay: l = F } = typeof s == "boolean" ? {
17
- initialValue: s,
18
- delay: n
19
- } : s, { setTimeout: u } = h(l, o, t), [a, r] = f(e), i = T(e), g = c(() => {
20
- r(!i.current), u(() => r(i.current));
21
- }, [u]);
22
- return [a, g];
23
- };
24
- function k(s = !1, n = !1) {
25
- const [o, t] = f(s), e = c(() => t((a) => !a), []), l = c(() => t(!0), []), u = c(() => t(!1), []);
26
- return n ? { flag: o, toggle: e, setToTrue: l, setToFalse: u } : [o, e, l, u];
27
- }
28
- export {
29
- h as a,
30
- R as b,
31
- k as u
32
- };