indicator-ui 1.1.116 → 1.1.118
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 +6389 -6357
- package/dist/indicator-ui.css +1 -1
- package/dist/types/src/ui/DropdownV2/ui/DropdownV2.d.ts +2 -4
- package/dist/types/src/ui/controlFlow/Switch/Switch.d.ts +17 -0
- package/dist/types/src/ui/controlFlow/Switch/context/ContextProvider.d.ts +7 -0
- package/dist/types/src/ui/controlFlow/Switch/context/config.d.ts +5 -0
- package/dist/types/src/ui/controlFlow/Switch/context/index.d.ts +2 -0
- package/dist/types/src/ui/controlFlow/Switch/context/useContextAdapter.d.ts +3 -0
- package/dist/types/src/ui/controlFlow/Switch/index.d.ts +1 -0
- package/dist/types/src/ui/controlFlow/ifElse/index.d.ts +23 -0
- package/dist/types/src/ui/controlFlow/index.d.ts +20 -0
- package/dist/types/src/ui/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/src/ui/DropdownV2/animations/check.d.ts +0 -10
- package/dist/types/src/ui/DropdownV2/animations/index.d.ts +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Merge } from '../../../types';
|
|
3
2
|
import { DropdownItemV2 } from './DropdownItemV2';
|
|
4
3
|
type ListItemType = React.ComponentProps<typeof DropdownItemV2>;
|
|
5
4
|
type ListType = ListItemType[];
|
|
6
|
-
|
|
5
|
+
export declare const DropdownV2: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "instanceRef" | "list"> & import('../../../types').InstanceRefAttributes<HTMLUListElement> & {
|
|
7
6
|
list?: ListType;
|
|
8
|
-
}
|
|
9
|
-
export declare const DropdownV2: React.ForwardRefExoticComponent<Omit<PropsType, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
7
|
+
} & React.RefAttributes<HTMLUListElement>>;
|
|
10
8
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type PropsType<T> = {
|
|
3
|
+
condition: T;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
type CasePropsType<T> = {
|
|
7
|
+
when: T;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type DefaultPropsType<T> = {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare function createSwitch<T>(): ((props: PropsType<T>) => React.ReactNode) & {
|
|
14
|
+
Case: (props: CasePropsType<T>) => React.ReactNode;
|
|
15
|
+
Default: (props: DefaultPropsType<T>) => React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ConditionProps = {
|
|
3
|
+
condition: any;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
type NotConditionProps = {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const If: (props: ConditionProps) => React.ReactNode;
|
|
10
|
+
declare const ElseIf: (props: ConditionProps) => React.ReactNode;
|
|
11
|
+
declare const Else: (props: NotConditionProps) => React.ReactNode;
|
|
12
|
+
type PropsType = {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
fallback?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
declare function _IfElse(props: PropsType): React.ReactNode;
|
|
17
|
+
type IfElseType = typeof _IfElse & {
|
|
18
|
+
If: typeof If;
|
|
19
|
+
ElseIf: typeof ElseIf;
|
|
20
|
+
Else: typeof Else;
|
|
21
|
+
};
|
|
22
|
+
export declare const IfElse: IfElseType;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createSwitch as _createSwitch } from './Switch';
|
|
2
|
+
export declare namespace ControlFlow {
|
|
3
|
+
const IfElse: ((props: {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
fallback?: React.ReactNode;
|
|
6
|
+
}) => import("react").ReactNode) & {
|
|
7
|
+
If: (props: {
|
|
8
|
+
condition: any;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}) => import("react").ReactNode;
|
|
11
|
+
ElseIf: (props: {
|
|
12
|
+
condition: any;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}) => import("react").ReactNode;
|
|
15
|
+
Else: (props: {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}) => import("react").ReactNode;
|
|
18
|
+
};
|
|
19
|
+
const createSwitch: typeof _createSwitch;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type PropsType = [
|
|
2
|
-
obj: HTMLElement | SVGElement,
|
|
3
|
-
timeline: gsap.core.Timeline
|
|
4
|
-
];
|
|
5
|
-
type FunReturnType = {
|
|
6
|
-
appear: () => gsap.core.Timeline;
|
|
7
|
-
disappear: () => gsap.core.Timeline;
|
|
8
|
-
};
|
|
9
|
-
export declare function CHECK_APPEARANCE_ANIM(...args: PropsType): FunReturnType;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './check';
|