@shlinkio/shlink-frontend-kit 0.7.0 → 0.7.2
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 +6 -6
- package/dist/index.js +1 -1
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { CardProps } from 'reactstrap';
|
|
|
2
2
|
import { ChangeEvent } from 'react';
|
|
3
3
|
import { DropdownToggleProps } from 'reactstrap/types/lib/DropdownToggle';
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
-
import { JSX
|
|
6
|
-
import { MutableRefObject } from 'react';
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
7
6
|
import { PropsWithChildren } from 'react';
|
|
8
7
|
import { ReactNode } from 'react';
|
|
8
|
+
import { RefObject } from 'react';
|
|
9
9
|
|
|
10
10
|
declare type BooleanControlProps = PropsWithChildren<{
|
|
11
11
|
checked?: boolean;
|
|
@@ -104,7 +104,7 @@ export declare type Order<Fields> = {
|
|
|
104
104
|
|
|
105
105
|
export declare type OrderDir = 'ASC' | 'DESC' | undefined;
|
|
106
106
|
|
|
107
|
-
export declare function OrderingDropdown<T extends string = string>({ items, order, onChange, isButton, right, prefixed }: OrderingDropdownProps<T>):
|
|
107
|
+
export declare function OrderingDropdown<T extends string = string>({ items, order, onChange, isButton, right, prefixed }: OrderingDropdownProps<T>): JSX.Element;
|
|
108
108
|
|
|
109
109
|
export declare type OrderingDropdownProps<T extends string = string> = {
|
|
110
110
|
items: Record<T, string>;
|
|
@@ -139,7 +139,7 @@ export declare type ResultType = 'success' | 'error' | 'warning';
|
|
|
139
139
|
|
|
140
140
|
export declare const RowDropdownBtn: FC<DropdownBtnMenuProps>;
|
|
141
141
|
|
|
142
|
-
export declare const SearchField: ({ onChange, className, large, noBorder, initialValue, setTimeout_ }: SearchFieldProps) =>
|
|
142
|
+
export declare const SearchField: ({ onChange, className, large, noBorder, initialValue, setTimeout_ }: SearchFieldProps) => JSX.Element;
|
|
143
143
|
|
|
144
144
|
declare type SearchFieldProps = {
|
|
145
145
|
onChange: (value: string) => void;
|
|
@@ -150,7 +150,7 @@ declare type SearchFieldProps = {
|
|
|
150
150
|
setTimeout_?: typeof setTimeout;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
export declare const SimpleCard: ({ title, children, bodyClassName, ...rest }: SimpleCardProps) =>
|
|
153
|
+
export declare const SimpleCard: ({ title, children, bodyClassName, ...rest }: SimpleCardProps) => JSX.Element;
|
|
154
154
|
|
|
155
155
|
export declare type SimpleCardProps = Omit<CardProps, 'title'> & {
|
|
156
156
|
title?: ReactNode;
|
|
@@ -177,7 +177,7 @@ declare type ToggleResult = [boolean, () => void, () => void, () => void];
|
|
|
177
177
|
|
|
178
178
|
export declare const ToggleSwitch: FC<BooleanControlProps>;
|
|
179
179
|
|
|
180
|
-
export declare const useElementRef: <T>() =>
|
|
180
|
+
export declare const useElementRef: <T>() => RefObject<T | null>;
|
|
181
181
|
|
|
182
182
|
export declare const useOrder: <T>(initialOrder: Order<T>) => [Order<T>, (orderField?: T, orderDir?: OrderDir) => void];
|
|
183
183
|
|
package/dist/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const k = () => {
|
|
|
131
131
|
const [e, t] = b(r), n = f(() => t((l) => !l), []), o = f(() => t(!0), []), c = f(() => t(!1), []);
|
|
132
132
|
return [e, n, o, c];
|
|
133
133
|
}, ge = (r = !1, e = 2e3, t = window.setTimeout, n = window.clearTimeout) => {
|
|
134
|
-
const [o, c] = b(r), l = _(r), a = _(), i = f(() => {
|
|
134
|
+
const [o, c] = b(r), l = _(r), a = _(void 0), i = f(() => {
|
|
135
135
|
c(!l.current), a.current && n(a.current), a.current = t(() => c(l.current), e);
|
|
136
136
|
}, [n, e, t]);
|
|
137
137
|
return [o, i];
|
package/package.json
CHANGED
|
@@ -29,41 +29,41 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
|
31
31
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
|
32
|
-
"@fortawesome/react-fontawesome": "^0.2.
|
|
33
|
-
"react": "^18.
|
|
34
|
-
"react-dom": "^18.
|
|
32
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
33
|
+
"react": "^18.3 || ^19.0",
|
|
34
|
+
"react-dom": "^18.3 || ^19.0",
|
|
35
35
|
"react-router": "^7.0.2",
|
|
36
36
|
"reactstrap": "^9.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@shlinkio/eslint-config-js-coding-standard": "~3.2.1",
|
|
40
40
|
"@shlinkio/stylelint-config-css-coding-standard": "~1.1.1",
|
|
41
|
-
"@stylistic/eslint-plugin": "^2.
|
|
41
|
+
"@stylistic/eslint-plugin": "^2.13.0",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
|
-
"@testing-library/react": "^16.0
|
|
44
|
-
"@testing-library/user-event": "^14.
|
|
43
|
+
"@testing-library/react": "^16.2.0",
|
|
44
|
+
"@testing-library/user-event": "^14.6.1",
|
|
45
45
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
46
|
-
"@types/react": "^
|
|
47
|
-
"@types/react-dom": "^
|
|
46
|
+
"@types/react": "^19.0.8",
|
|
47
|
+
"@types/react-dom": "^19.0.3",
|
|
48
48
|
"@vitejs/plugin-react": "^4.3.4",
|
|
49
|
-
"@vitest/coverage-v8": "^
|
|
49
|
+
"@vitest/coverage-v8": "^3.0.4",
|
|
50
50
|
"axe-core": "^4.10.2",
|
|
51
51
|
"bootstrap": "5.2.3",
|
|
52
|
-
"eslint": "^9.
|
|
52
|
+
"eslint": "^9.19.0",
|
|
53
53
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
54
|
-
"eslint-plugin-react": "^7.37.
|
|
55
|
-
"eslint-plugin-react-hooks": "^5.
|
|
54
|
+
"eslint-plugin-react": "^7.37.4",
|
|
55
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
56
56
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
57
57
|
"history": "^5.3.0",
|
|
58
|
-
"jsdom": "^
|
|
58
|
+
"jsdom": "^26.0.0",
|
|
59
59
|
"resize-observer-polyfill": "^1.5.1",
|
|
60
|
-
"sass": "^1.
|
|
60
|
+
"sass": "^1.83.4",
|
|
61
61
|
"stylelint": "^15.11.0",
|
|
62
|
-
"typescript": "^5.7.
|
|
63
|
-
"typescript-eslint": "^8.
|
|
64
|
-
"vite": "^6.0.
|
|
65
|
-
"vite-plugin-dts": "^4.
|
|
66
|
-
"vitest": "^
|
|
62
|
+
"typescript": "^5.7.3",
|
|
63
|
+
"typescript-eslint": "^8.21.0",
|
|
64
|
+
"vite": "^6.0.11",
|
|
65
|
+
"vite-plugin-dts": "^4.5.0",
|
|
66
|
+
"vitest": "^3.0.2"
|
|
67
67
|
},
|
|
68
68
|
"browserslist": [
|
|
69
69
|
">0.2%",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"not ie <= 11",
|
|
72
72
|
"not op_mini all"
|
|
73
73
|
],
|
|
74
|
-
"version": "0.7.
|
|
74
|
+
"version": "0.7.2"
|
|
75
75
|
}
|