@shlinkio/shlink-frontend-kit 0.3.0 → 0.4.1
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 -0
- package/dist/index.js +531 -547
- package/dist/index.umd.cjs +3 -7
- package/package.json +22 -20
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare const DropdownBtn: FC<DropdownBtnProps>;
|
|
|
25
25
|
|
|
26
26
|
export declare type DropdownBtnMenuProps = PropsWithChildren<{
|
|
27
27
|
minWidth?: number;
|
|
28
|
+
/** Accessible label for screen readers. Defaults to "Options" */
|
|
29
|
+
label?: string;
|
|
28
30
|
}>;
|
|
29
31
|
|
|
30
32
|
export declare type DropdownBtnProps = PropsWithChildren<Omit<DropdownToggleProps, 'caret' | 'size' | 'outline'> & {
|
|
@@ -37,6 +39,8 @@ export declare type DropdownBtnProps = PropsWithChildren<Omit<DropdownToggleProp
|
|
|
37
39
|
size?: 'sm' | 'md' | 'lg';
|
|
38
40
|
}>;
|
|
39
41
|
|
|
42
|
+
export declare const getSystemPreferredTheme: (_matchMedia?: ((query: string) => MediaQueryList) & typeof matchMedia) => Theme;
|
|
43
|
+
|
|
40
44
|
export declare const HIGHLIGHTED_COLOR = "#f77f28";
|
|
41
45
|
|
|
42
46
|
export declare const HIGHLIGHTED_COLOR_ALPHA = "rgba(247, 127, 40, 0.4)";
|
|
@@ -170,6 +174,8 @@ export declare const useElementRef: <T>() => MutableRefObject<T | null>;
|
|
|
170
174
|
|
|
171
175
|
export declare const useOrder: <T>(initialOrder: Order<T>) => [Order<T>, (orderField?: T | undefined, orderDir?: OrderDir) => void];
|
|
172
176
|
|
|
177
|
+
export declare const useParsedQuery: <T>() => T;
|
|
178
|
+
|
|
173
179
|
export declare const useTimeoutToggle: (initialValue?: boolean, delay?: number, setTimeout?: ((handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number) & typeof globalThis.setTimeout, clearTimeout?: ((id: number | undefined) => void) & typeof globalThis.clearTimeout) => [boolean, () => void];
|
|
174
180
|
|
|
175
181
|
export declare const useToggle: (initialValue?: boolean) => ToggleResult;
|