@shlinkio/shlink-frontend-kit 0.2.1 → 0.4.0
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 +395 -387
- package/dist/index.umd.cjs +4 -4
- package/package.json +13 -11
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'> & {
|
|
@@ -158,6 +160,8 @@ export declare const stringToOrder: <T>(order: string) => Order<T>;
|
|
|
158
160
|
|
|
159
161
|
export declare type Theme = 'dark' | 'light';
|
|
160
162
|
|
|
163
|
+
export declare type TimeoutToggle = typeof useTimeoutToggle;
|
|
164
|
+
|
|
161
165
|
declare type ToggleResult = [boolean, () => void, () => void, () => void];
|
|
162
166
|
|
|
163
167
|
export declare const ToggleSwitch: FC<BooleanControlProps>;
|
|
@@ -168,6 +172,8 @@ export declare const useElementRef: <T>() => MutableRefObject<T | null>;
|
|
|
168
172
|
|
|
169
173
|
export declare const useOrder: <T>(initialOrder: Order<T>) => [Order<T>, (orderField?: T | undefined, orderDir?: OrderDir) => void];
|
|
170
174
|
|
|
175
|
+
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];
|
|
176
|
+
|
|
171
177
|
export declare const useToggle: (initialValue?: boolean) => ToggleResult;
|
|
172
178
|
|
|
173
179
|
export { }
|