skillgrid 0.0.36-dev-40511-42085-40506-alert-placeholder-modal-fix.1221738 → 0.0.36-dev-43185-badge.1226757
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/components/Alert/Alert.type.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -12
- package/dist/components/Dialog/Dialog.type.d.ts +12 -36
- package/dist/components/Dialog/lib/index.d.ts +0 -1
- package/dist/components/Dialog/lib/use-dialog.d.ts +9 -17
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.type.d.ts +11 -24
- package/dist/components/Placeholder/Placeholder.type.d.ts +5 -8
- package/dist/components/Snackbar/Provider/SnackbarProvider.d.ts +9 -0
- package/dist/components/Snackbar/Provider/SnackbarProvider.type.d.ts +69 -0
- package/dist/components/Snackbar/Provider/index.d.ts +2 -0
- package/dist/components/Snackbar/Snackbar.d.ts +2 -0
- package/dist/components/Snackbar/Snackbar.type.d.ts +74 -0
- package/dist/components/Snackbar/assets/close.d.ts +1 -0
- package/dist/components/Snackbar/assets/error.d.ts +3 -0
- package/dist/components/Snackbar/assets/index.d.ts +4 -0
- package/dist/components/Snackbar/assets/info.d.ts +3 -0
- package/dist/components/Snackbar/assets/success.d.ts +3 -0
- package/dist/components/Snackbar/index.d.ts +2 -0
- package/dist/components/Snackbar/lib/constants.d.ts +6 -0
- package/dist/components/Snackbar/lib/index.d.ts +4 -0
- package/dist/components/Snackbar/lib/snackbarReducer/index.d.ts +1 -0
- package/dist/components/Snackbar/lib/snackbarReducer/snackbarReducer.d.ts +2 -0
- package/dist/components/Snackbar/lib/useSnackbar.d.ts +3 -0
- package/dist/components/Snackbar/lib/useSwipe.d.ts +52 -0
- package/dist/components/Tabs/Tabs.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +2071 -2279
- package/package.json +1 -1
- package/dist/components/Dialog/lib/use-dialog-draggable.d.ts +0 -42
- package/dist/components/Modal/assets/CrossIcon.d.ts +0 -2
- package/dist/components/Modal/assets/LeftChevronIcon.d.ts +0 -2
- package/dist/components/Modal/assets/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '../Dialog.type';
|
|
2
|
-
import { CSSProperties, HTMLProps } from 'react';
|
|
3
|
-
type UseDialogDraggableOptions = Pick<DialogProps, 'placement' | 'open' | 'disableEscapeKey' | 'onOpenChange' | 'closeOnDrag'>;
|
|
4
|
-
/**
|
|
5
|
-
* Хук для управления диалогом с возможностью закрытия через 'смахивание' (drag-to-close).
|
|
6
|
-
* Оборачивает `useDialog` и добавляет обработчики событий указателя (`PointerEvents`)
|
|
7
|
-
* для отслеживания перетаскивания и закрытия диалога при превышении порога.
|
|
8
|
-
*
|
|
9
|
-
* @param {UseDialogDraggableOptions} options - Опции для конфигурации хука.
|
|
10
|
-
* @returns Возвращает объект с данными и пропсами, аналогичный `useDialog`,
|
|
11
|
-
* но с модифицированными `transitionStyles` и `getFloatingProps` для поддержки перетаскивания.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useDialogDraggable({ open, onOpenChange, placement, disableEscapeKey, closeOnDrag, }: UseDialogDraggableOptions): {
|
|
14
|
-
isMounted: boolean;
|
|
15
|
-
context: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
placement: import('@floating-ui/utils').Placement;
|
|
19
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
20
|
-
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
21
|
-
isPositioned: boolean;
|
|
22
|
-
update: () => void;
|
|
23
|
-
floatingStyles: React.CSSProperties;
|
|
24
|
-
open: boolean;
|
|
25
|
-
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
26
|
-
events: import('@floating-ui/react').FloatingEvents;
|
|
27
|
-
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
28
|
-
nodeId: string | undefined;
|
|
29
|
-
floatingId: string | undefined;
|
|
30
|
-
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
31
|
-
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
32
|
-
};
|
|
33
|
-
refs: {
|
|
34
|
-
reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
35
|
-
floating: React.MutableRefObject<HTMLElement | null>;
|
|
36
|
-
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
37
|
-
setFloating: (node: HTMLElement | null) => void;
|
|
38
|
-
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
39
|
-
transitionStyles: CSSProperties;
|
|
40
|
-
getFloatingProps: (userProps: HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
41
|
-
};
|
|
42
|
-
export {};
|