indicator-ui 1.1.114 → 1.1.116
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.cjs +7 -7
- package/dist/index.js +3930 -3874
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/slotPattern/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/slotPattern/hooks/useSlot.d.ts +5 -0
- package/dist/types/src/hooks/slotPattern/hooks/useSlotsManager.d.ts +5 -0
- package/dist/types/src/hooks/slotPattern/index.d.ts +2 -0
- package/dist/types/src/hooks/slotPattern/types/index.d.ts +11 -0
- package/dist/types/src/ui/DrawerV2/DrawerV2/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/DrawerV2/DrawerV2/hooks/useDrawerV2.d.ts +12 -0
- package/dist/types/src/ui/DrawerV2/DrawerV2/index.d.ts +1 -0
- package/dist/types/src/ui/DrawerV2/DrawerV2/ui/DrawerV2.d.ts +6 -0
- package/dist/types/src/ui/DrawerV2/DrawerV2/ui/index.d.ts +1 -0
- package/dist/types/src/ui/DrawerV2/index.d.ts +1 -0
- package/dist/types/src/ui/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SlotsPattern } from '../types';
|
|
2
|
+
import { useSlotsManager } from './useSlotsManager';
|
|
3
|
+
type SlotsManagerReturn<Config extends SlotsPattern.BaseConfig> = ReturnType<typeof useSlotsManager<Config>>;
|
|
4
|
+
export declare function useSlot<Config extends SlotsPattern.BaseConfig>(context: SlotsManagerReturn<Config>['context'], slot: keyof Config): SlotsPattern.Content;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare namespace SlotsPattern {
|
|
3
|
+
type BaseConfig = Record<string, React.ComponentType<any>>;
|
|
4
|
+
type Content = {
|
|
5
|
+
first: React.ReactElement | undefined;
|
|
6
|
+
all: React.ReactElement[];
|
|
7
|
+
};
|
|
8
|
+
type ResolvedSlots<T extends BaseConfig> = {
|
|
9
|
+
[K in keyof T]?: Content;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useDrawerV2';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, ElementType } from 'react';
|
|
2
|
+
import { PolyPropsWithInstanceRef } from '../../../../types';
|
|
3
|
+
type PropsType<T extends ElementType> = PolyPropsWithInstanceRef<T, React.ComponentRef<T>, {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function useDrawerV2<T extends ElementType>(props: PropsType<T>): {
|
|
8
|
+
Component: React.ElementType;
|
|
9
|
+
wrapperRef: React.RefObject<Element | null>;
|
|
10
|
+
otherProps: Omit<PropsType<T>, "as" | "instanceRef" | "className" | "isOpen">;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useDrawerV2 } from '../hooks';
|
|
2
|
+
import { default as React, ElementType } from 'react';
|
|
3
|
+
type PropsType<T extends ElementType> = Parameters<typeof useDrawerV2<T>>[number];
|
|
4
|
+
export declare function DrawerV2(props: PropsType<'div'>): React.JSX.Element;
|
|
5
|
+
export declare function DrawerV2<T extends ElementType>(props: PropsType<T>): React.JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DrawerV2';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DrawerV2';
|
|
@@ -28,6 +28,7 @@ export * from './Dropdown';
|
|
|
28
28
|
export * from './Breadcrumbs';
|
|
29
29
|
export * from './ConditionalFallback';
|
|
30
30
|
export * from './Drawer';
|
|
31
|
+
export * from './DrawerV2';
|
|
31
32
|
export * from './formFields';
|
|
32
33
|
export * from './DropdownV2';
|
|
33
34
|
export * from './MediaViewerV2';
|