@vitus-labs/elements 0.65.0 → 0.67.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/LICENSE +1 -1
- package/lib/analysis/vitus-labs-elements.browser.js.html +5095 -4901
- package/lib/analysis/vitus-labs-elements.js.html +5095 -4901
- package/lib/analysis/vitus-labs-elements.module.js.html +5095 -4901
- package/lib/analysis/vitus-labs-elements.native.js.html +5095 -4901
- package/lib/index.d.ts +251 -186
- package/lib/types/Element/component.d.ts +1 -0
- package/lib/types/Element/component.d.ts.map +1 -0
- package/lib/types/Element/constants.d.ts +1 -0
- package/lib/types/Element/constants.d.ts.map +1 -0
- package/lib/types/Element/index.d.ts +1 -0
- package/lib/types/Element/index.d.ts.map +1 -0
- package/lib/types/Element/types.d.ts +3 -2
- package/lib/types/Element/types.d.ts.map +1 -0
- package/lib/types/Element/utils.d.ts +2 -1
- package/lib/types/Element/utils.d.ts.map +1 -0
- package/lib/types/Element/withEqualSizeBeforeAfter.d.ts +2 -1
- package/lib/types/Element/withEqualSizeBeforeAfter.d.ts.map +1 -0
- package/lib/types/List/component.d.ts +2 -1
- package/lib/types/List/component.d.ts.map +1 -0
- package/lib/types/List/index.d.ts +1 -0
- package/lib/types/List/index.d.ts.map +1 -0
- package/lib/types/List/withActiveState.d.ts +3 -2
- package/lib/types/List/withActiveState.d.ts.map +1 -0
- package/lib/types/Overlay/component.d.ts +7 -6
- package/lib/types/Overlay/component.d.ts.map +1 -0
- package/lib/types/Overlay/context.d.ts +4 -3
- package/lib/types/Overlay/context.d.ts.map +1 -0
- package/lib/types/Overlay/index.d.ts +1 -0
- package/lib/types/Overlay/index.d.ts.map +1 -0
- package/lib/types/Overlay/useOverlay.backup.d.ts +6 -5
- package/lib/types/Overlay/useOverlay.backup.d.ts.map +1 -0
- package/lib/types/Overlay/useOverlay.d.ts +7 -6
- package/lib/types/Overlay/useOverlay.d.ts.map +1 -0
- package/lib/types/Portal/component.d.ts +2 -1
- package/lib/types/Portal/component.d.ts.map +1 -0
- package/lib/types/Portal/index.d.ts +1 -0
- package/lib/types/Portal/index.d.ts.map +1 -0
- package/lib/types/Text/component.d.ts +2 -1
- package/lib/types/Text/component.d.ts.map +1 -0
- package/lib/types/Text/index.d.ts +1 -0
- package/lib/types/Text/index.d.ts.map +1 -0
- package/lib/types/Text/styled.d.ts +1 -0
- package/lib/types/Text/styled.d.ts.map +1 -0
- package/lib/types/Util/component.d.ts +2 -1
- package/lib/types/Util/component.d.ts.map +1 -0
- package/lib/types/Util/index.d.ts +1 -0
- package/lib/types/Util/index.d.ts.map +1 -0
- package/lib/types/constants.d.ts +1 -0
- package/lib/types/constants.d.ts.map +1 -0
- package/lib/types/helpers/Content/component.d.ts +2 -1
- package/lib/types/helpers/Content/component.d.ts.map +1 -0
- package/lib/types/helpers/Content/index.d.ts +1 -0
- package/lib/types/helpers/Content/index.d.ts.map +1 -0
- package/lib/types/helpers/Content/styled.d.ts +1 -0
- package/lib/types/helpers/Content/styled.d.ts.map +1 -0
- package/lib/types/helpers/Iterator/component.d.ts +2 -1
- package/lib/types/helpers/Iterator/component.d.ts.map +1 -0
- package/lib/types/helpers/Iterator/index.d.ts +1 -0
- package/lib/types/helpers/Iterator/index.d.ts.map +1 -0
- package/lib/types/helpers/Iterator/types.d.ts +9 -8
- package/lib/types/helpers/Iterator/types.d.ts.map +1 -0
- package/lib/types/helpers/Wrapper/component.d.ts +2 -1
- package/lib/types/helpers/Wrapper/component.d.ts.map +1 -0
- package/lib/types/helpers/Wrapper/constants.d.ts +1 -0
- package/lib/types/helpers/Wrapper/constants.d.ts.map +1 -0
- package/lib/types/helpers/Wrapper/index.d.ts +1 -0
- package/lib/types/helpers/Wrapper/index.d.ts.map +1 -0
- package/lib/types/helpers/Wrapper/styled.d.ts +1 -0
- package/lib/types/helpers/Wrapper/styled.d.ts.map +1 -0
- package/lib/types/helpers/Wrapper/utils.d.ts +2 -1
- package/lib/types/helpers/Wrapper/utils.d.ts.map +1 -0
- package/lib/types/helpers/index.d.ts +1 -0
- package/lib/types/helpers/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/types.d.ts +27 -26
- package/lib/types/types.d.ts.map +1 -0
- package/lib/vitus-labs-elements.browser.js +128 -106
- package/lib/vitus-labs-elements.browser.js.map +1 -1
- package/lib/vitus-labs-elements.js +143 -127
- package/lib/vitus-labs-elements.js.map +1 -1
- package/lib/vitus-labs-elements.module.js +127 -105
- package/lib/vitus-labs-elements.module.js.map +1 -1
- package/lib/vitus-labs-elements.native.js +127 -105
- package/lib/vitus-labs-elements.native.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { VLComponent, Content } from "../types";
|
|
3
3
|
import { UseOverlayProps } from './useOverlay';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
type Align = 'bottom' | 'top' | 'left' | 'bottom' | 'right';
|
|
5
|
+
type AlignX = 'left' | 'center' | 'right';
|
|
6
|
+
type AlignY = 'bottom' | 'top' | 'center';
|
|
7
|
+
type TriggerRenderer = (props: Partial<{
|
|
8
8
|
active: boolean;
|
|
9
9
|
showContent: () => void;
|
|
10
10
|
hideContent: () => void;
|
|
11
11
|
}>) => ReactNode;
|
|
12
|
-
|
|
12
|
+
type ContentRenderer = (props: Partial<{
|
|
13
13
|
active: boolean;
|
|
14
14
|
showContent: () => void;
|
|
15
15
|
hideContent: () => void;
|
|
@@ -17,7 +17,7 @@ declare type ContentRenderer = (props: Partial<{
|
|
|
17
17
|
alignX: AlignX;
|
|
18
18
|
alignY: AlignY;
|
|
19
19
|
}>) => ReactNode;
|
|
20
|
-
export
|
|
20
|
+
export type Props = {
|
|
21
21
|
children: Content | TriggerRenderer;
|
|
22
22
|
trigger: Content | ContentRenderer;
|
|
23
23
|
DOMLocation?: HTMLElement;
|
|
@@ -26,3 +26,4 @@ export declare type Props = {
|
|
|
26
26
|
} & UseOverlayProps;
|
|
27
27
|
declare const Component: VLComponent<Props>;
|
|
28
28
|
export default Component;
|
|
29
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Overlay/component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAW,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAe;AACnD,OAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE1D,KAAK,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC3D,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AACzC,KAAK,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEzC,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAC,KACC,SAAS,CAAA;AAEd,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,KACC,SAAS,CAAA;AAEd,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,OAAO,GAAG,eAAe,CAAA;IACnC,OAAO,EAAE,OAAO,GAAG,eAAe,CAAA;IAClC,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,eAAe,CAAA;AAEnB,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CAuDjC,CAAA;AAQD,eAAe,SAAS,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type Context = {
|
|
3
3
|
blocked: boolean;
|
|
4
4
|
setBlocked: () => void;
|
|
5
5
|
setUnblocked: () => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const useOverlayContext: () => Context;
|
|
8
|
-
declare const
|
|
8
|
+
declare const Component: FC<Context & {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}>;
|
|
11
|
-
export default
|
|
11
|
+
export default Component;
|
|
12
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/Overlay/context.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAA6B,SAAS,EAAW,MAAM,OAAO,CAAA;AAEhF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAMD,eAAO,MAAM,iBAAiB,eAA4B,CAAA;AAE1D,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,OAAO,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAgBpD,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,eAAe,MAAM,WAAW,CAAA;AAEvC,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,CAAA;AAEtC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,CAAA;AAEtC,eAAe,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
type Align = 'bottom' | 'top' | 'left' | 'bottom' | 'right';
|
|
2
|
+
type AlignX = 'left' | 'center' | 'right';
|
|
3
|
+
type AlignY = 'bottom' | 'top' | 'center';
|
|
4
|
+
export type UseOverlayProps = {
|
|
5
5
|
isOpen?: boolean;
|
|
6
6
|
openOn?: 'click' | 'hover' | 'manual';
|
|
7
7
|
closeOn?: 'click' | 'clickOnTrigger' | 'clickOutsideContent' | 'hover' | 'manual';
|
|
@@ -25,7 +25,7 @@ declare const _default: ({ isOpen, openOn, closeOn, type, position, align, align
|
|
|
25
25
|
active: boolean;
|
|
26
26
|
align: Align;
|
|
27
27
|
alignX: "center" | "left" | "right";
|
|
28
|
-
alignY: "center" | "
|
|
28
|
+
alignY: "center" | "bottom" | "top";
|
|
29
29
|
showContent: () => void;
|
|
30
30
|
hideContent: () => void;
|
|
31
31
|
blocked: boolean;
|
|
@@ -33,3 +33,4 @@ declare const _default: ({ isOpen, openOn, closeOn, type, position, align, align
|
|
|
33
33
|
setUnblocked: () => void;
|
|
34
34
|
};
|
|
35
35
|
export default _default;
|
|
36
|
+
//# sourceMappingURL=useOverlay.backup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOverlay.backup.d.ts","sourceRoot":"","sources":["../../../src/Overlay/useOverlay.backup.tsx"],"names":[],"mappings":"AAqBA,KAAK,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC3D,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AACzC,KAAK,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,OAAO,CAAC,EACJ,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,OAAO,GACP,QAAQ,CAAA;IACZ,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACnD,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;IACvD,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oBAAoB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;4LAmBE,eAAe;;;;;;;;;;;;;AAjBlB,wBA6eC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
type Align = 'bottom' | 'top' | 'left' | 'bottom' | 'right';
|
|
2
|
+
type AlignX = 'left' | 'center' | 'right';
|
|
3
|
+
type AlignY = 'bottom' | 'top' | 'center';
|
|
4
|
+
export type UseOverlayProps = {
|
|
5
5
|
isOpen?: boolean;
|
|
6
6
|
openOn?: 'click' | 'hover' | 'manual';
|
|
7
7
|
closeOn?: 'click' | 'clickOnTrigger' | 'clickOutsideContent' | 'hover' | 'manual';
|
|
@@ -19,7 +19,7 @@ export declare type UseOverlayProps = {
|
|
|
19
19
|
onOpen?: () => void;
|
|
20
20
|
onClose?: () => void;
|
|
21
21
|
};
|
|
22
|
-
declare const
|
|
22
|
+
declare const useOverlay: ({ isOpen, openOn, closeOn, type, position, align, alignX, alignY, offsetX, offsetY, throttleDelay, parentContainer, closeOnEsc, disabled, onOpen, onClose, }: UseOverlayProps) => {
|
|
23
23
|
triggerRef: import("react").MutableRefObject<HTMLElement | undefined>;
|
|
24
24
|
contentRef: (node: HTMLElement) => void;
|
|
25
25
|
active: boolean;
|
|
@@ -39,4 +39,5 @@ declare const _default: ({ isOpen, openOn, closeOn, type, position, align, align
|
|
|
39
39
|
children: import("react").ReactNode;
|
|
40
40
|
}>;
|
|
41
41
|
};
|
|
42
|
-
export default
|
|
42
|
+
export default useOverlay;
|
|
43
|
+
//# sourceMappingURL=useOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../../src/Overlay/useOverlay.tsx"],"names":[],"mappings":"AAaA,KAAK,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC3D,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AACzC,KAAK,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,OAAO,CAAC,EACJ,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,OAAO,GACP,QAAQ,CAAA;IACZ,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACnD,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;IACvD,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,UAAU,iKAiBb,eAAe;;uBAqb8B,WAAW;;;;;;;;;;;;;;;;;CAqB1D,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { VLComponent } from "../types";
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
DOMLocation?: HTMLElement;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
tag?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const Component: VLComponent<Props>;
|
|
9
9
|
export default Component;
|
|
10
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Portal/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,MAAM,KAAK,GAAG;IAClB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CAwBjC,CAAA;AAQD,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { HTMLTagsText } from '@vitus-labs/core';
|
|
3
3
|
import type { VLForwardedComponent, ExtendCss } from "../types";
|
|
4
|
-
export
|
|
4
|
+
export type Props = Partial<{
|
|
5
5
|
paragraph: boolean;
|
|
6
6
|
label: ReactNode;
|
|
7
7
|
children: ReactNode;
|
|
@@ -12,3 +12,4 @@ declare const component: VLForwardedComponent<Props> & {
|
|
|
12
12
|
isText?: true;
|
|
13
13
|
};
|
|
14
14
|
export default component;
|
|
15
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Text/component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAwC,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,iBAAe;AAG9D,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,EAAE,YAAY,CAAA;IACjB,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC,CAAA;AAIF,QAAA,MAAM,SAAS,EAAE,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC7C,MAAM,CAAC,EAAE,IAAI,CAAA;CAoBd,CAAA;AASD,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
declare const _default: import("styled-components").StyledComponent<"object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meter" | "nav" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "svg" | import("react").ComponentType<{}>, any, {}, never>;
|
|
2
2
|
export default _default;
|
|
3
|
+
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../src/Text/styled.ts"],"names":[],"mappings":";AAQA,wBAWC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { VLComponent } from "../types";
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string | string[];
|
|
6
6
|
style?: Record<string, unknown>;
|
|
7
7
|
};
|
|
8
8
|
declare const Component: VLComponent<Props>;
|
|
9
9
|
export default Component;
|
|
10
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Util/component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CACM,CAAA;AAQxC,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Util/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
|
package/lib/types/constants.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,wBAAkC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import type { StyledComponentPropsWithRef } from 'styled-components';
|
|
3
3
|
import type { Direction, AlignX, AlignY, ResponsiveBooltype, Responsive, ExtendCss } from "../../types";
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
parentDirection: Direction;
|
|
6
6
|
gap: Responsive;
|
|
7
7
|
contentType: 'before' | 'content' | 'after';
|
|
@@ -15,3 +15,4 @@ declare type Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const _default: React.NamedExoticComponent<Partial<Props>>;
|
|
17
17
|
export default _default;
|
|
18
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,SAAS,EACV,oBAAe;AAGhB,KAAK,KAAK,GAAG;IACX,eAAe,EAAE,SAAS,CAAA;IAC1B,GAAG,EAAE,UAAU,CAAA;IACf,WAAW,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;IAC3C,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,EAAE,2BAA2B,CAAC,GAAG,CAAC,CAAA;IACrC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,kBAAkB,CAAA;IAC7B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;;AAyCD,wBAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/styled.ts"],"names":[],"mappings":";AAwEA,wBAeC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import type { Props } from './types';
|
|
3
3
|
declare const RESERVED_PROPS: readonly ["children", "component", "wrapComponent", "data", "itemKey", "valueName", "itemProps", "wrapProps"];
|
|
4
|
-
|
|
4
|
+
type Static = {
|
|
5
5
|
isIterator: true;
|
|
6
6
|
RESERVED_PROPS: typeof RESERVED_PROPS;
|
|
7
7
|
};
|
|
8
8
|
declare const Component: FC<Props> & Static;
|
|
9
9
|
export default Component;
|
|
10
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,EAAE,EAAmC,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,KAAK,EAA2C,MAAM,SAAS,CAAA;AAE7E,QAAA,MAAM,cAAc,+GASV,CAAA;AA6BV,KAAK,MAAM,GAAG;IACZ,UAAU,EAAE,IAAI,CAAA;IAChB,cAAc,EAAE,OAAO,cAAc,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,MAmN5B,CAAA;AAKD,eAAe,SAAS,CAAA"}
|
|
@@ -2,3 +2,4 @@ import component from './component';
|
|
|
2
2
|
import type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType } from './types';
|
|
3
3
|
export type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType };
|
|
4
4
|
export default component;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,CAAA;AAE7E,eAAe,SAAS,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { ComponentType, ForwardRefExoticComponent, ReactNode } from 'react';
|
|
2
2
|
import { HTMLTags } from '@vitus-labs/core';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type MaybeNull = undefined | null;
|
|
4
|
+
export type TObj = Record<string, unknown>;
|
|
5
|
+
export type SimpleValue = string | number;
|
|
6
|
+
export type ObjectValue = Partial<{
|
|
7
7
|
id: SimpleValue;
|
|
8
8
|
key: SimpleValue;
|
|
9
9
|
itemId: SimpleValue;
|
|
10
10
|
component: ElementType;
|
|
11
11
|
}> & Record<string, unknown>;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type ElementType<T extends Record<string, unknown> = any> = ComponentType<T> | ForwardRefExoticComponent<T> | HTMLTags;
|
|
13
|
+
export type ExtendedProps = {
|
|
14
14
|
index: number;
|
|
15
15
|
first: boolean;
|
|
16
16
|
last: boolean;
|
|
@@ -18,8 +18,8 @@ export declare type ExtendedProps = {
|
|
|
18
18
|
even: boolean;
|
|
19
19
|
position: number;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | ObjectValue, extendedProps: ExtendedProps) => TObj);
|
|
22
|
+
export type Props = Partial<{
|
|
23
23
|
children: ReactNode;
|
|
24
24
|
data: Array<SimpleValue | ObjectValue | MaybeNull>;
|
|
25
25
|
component: ElementType;
|
|
@@ -29,3 +29,4 @@ export declare type Props = Partial<{
|
|
|
29
29
|
wrapProps?: PropsCallback;
|
|
30
30
|
itemKey?: keyof ObjectValue | ((item: SimpleValue | Omit<ObjectValue, 'component'>, index: number) => SimpleValue);
|
|
31
31
|
}>;
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAC1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AACzC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAChC,EAAE,EAAE,WAAW,CAAA;IACf,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE,WAAW,CAAA;CACvB,CAAC,GACA,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEzB,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,IAC3D,aAAa,CAAC,CAAC,CAAC,GAChB,yBAAyB,CAAC,CAAC,CAAC,GAC5B,QAAQ,CAAA;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,OAAO,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GACrB,IAAI,GACJ,CAAC,CACC,SAAS,EACL,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAC3B,WAAW,EACf,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC,CAAA;AAEd,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,EAAE,KAAK,CAAC,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC,CAAA;IAClD,SAAS,EAAE,WAAW,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,WAAW,CAAA;IAC1B,SAAS,EAAE,aAAa,CAAA;IACxB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,OAAO,CAAC,EACJ,MAAM,WAAW,GACjB,CAAC,CACC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,EAClD,KAAK,EAAE,MAAM,KACV,WAAW,CAAC,CAAA;CACtB,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import type { StyledComponentPropsWithRef } from 'styled-components';
|
|
3
3
|
import type { Direction, AlignX, AlignY, ResponsiveBooltype, ExtendCss } from "../../types";
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
tag: StyledComponentPropsWithRef<any>;
|
|
7
7
|
block: ResponsiveBooltype;
|
|
@@ -15,3 +15,4 @@ declare type Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const component: React.ForwardRefExoticComponent<Partial<Props> & React.RefAttributes<unknown>>;
|
|
17
17
|
export default component;
|
|
18
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,kBAAkB,EAClB,SAAS,EACV,oBAAe;AAMhB,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,EAAE,2BAA2B,CAAC,GAAG,CAAC,CAAA;IACrC,KAAK,EAAE,kBAAkB,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,kBAAkB,CAAA;IAC7B,SAAS,EAAE,SAAS,CAAA;IACpB,uBAAuB,EAAE,GAAG,CAAA;CAC7B,CAAA;AAED,QAAA,MAAM,SAAS,gFAgFd,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;CAIpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/styled.ts"],"names":[],"mappings":";AAkDA,wBAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/utils.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;AAC9C,eAAO,MAAM,cAAc,EAAE,cAG5B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ import type { Props as IteratorProps, PropsCallback, ObjectValue, ExtendedProps,
|
|
|
9
9
|
import type { AlignX, AlignY, Content, Direction, ResponsiveBooltype, Responsive, ExtendCss, InnerRef } from "./types";
|
|
10
10
|
export type { ElementProps, ListProps, OverlayProps, UseOverlayProps, PortalProps, TextProps, UtilProps, IteratorProps, AlignX, AlignY, Content, Direction, ResponsiveBooltype, Responsive, ExtendCss, InnerRef, PropsCallback, ObjectValue, ExtendedProps, ElementType, };
|
|
11
11
|
export { Element, withEqualSizeBeforeAfter, withActiveState, List, Overlay, useOverlay, OverlayProvider, Portal, Text, Util, Provider, };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,OAAO,EAAE,EACd,KAAK,IAAI,YAAY,EACrB,wBAAwB,EACzB,kBAAiB;AAClB,OAAO,IAAI,EAAE,EAAE,KAAK,IAAI,SAAS,EAAE,eAAe,EAAE,eAAc;AAClE,OAAO,OAAO,EAAE,EACd,KAAK,IAAI,YAAY,EACrB,UAAU,EACV,eAAe,EACf,eAAe,EAChB,kBAAiB;AAClB,OAAO,MAAM,EAAE,EAAE,KAAK,IAAI,WAAW,EAAE,iBAAgB;AACvD,OAAO,IAAI,EAAE,EAAE,KAAK,IAAI,SAAS,EAAE,eAAc;AACjD,OAAO,IAAI,EAAE,EAAE,KAAK,IAAI,SAAS,EAAE,eAAc;AACjD,OAAO,KAAK,EACV,KAAK,IAAI,aAAa,EACtB,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACZ,2BAA0B;AAC3B,OAAO,KAAK,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,QAAQ,EACT,gBAAe;AAEhB,YAAY,EACV,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,SAAS,EACT,SAAS,EACT,aAAa,EAEb,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,QAAQ,EAER,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,GACZ,CAAA;AAED,OAAO,EACL,OAAO,EACP,wBAAwB,EACxB,eAAe,EACf,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,EACf,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,CAAA"}
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import type { ComponentType, FC, ForwardedRef, PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import { MakeItResponsive } from '@vitus-labs/unistyle';
|
|
3
3
|
import { config, render, BreakpointKeys } from '@vitus-labs/core';
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export type ResponsiveStylesCallback = Parameters<MakeItResponsive>[0]['styles'];
|
|
5
|
+
type ExtractNullableKeys<T> = {
|
|
6
6
|
[P in keyof T as T[P] extends null | never | undefined ? never : P]: T[P];
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type Id<T> = T extends infer U ? {
|
|
9
9
|
[K in keyof U]: U[K];
|
|
10
10
|
} : never;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
11
|
+
type SpreadTwo<L, R> = Id<Pick<L, Exclude<keyof L, keyof R>> & R>;
|
|
12
|
+
type Spread<A extends readonly [...any]> = A extends [infer L, ...infer R] ? SpreadTwo<L, Spread<R>> : unknown;
|
|
13
|
+
export type MergeTypes<A extends readonly [...any]> = ExtractNullableKeys<Spread<A>>;
|
|
14
|
+
export type SimpleHoc<P extends Record<string, unknown>> = <T extends ComponentType<any>>(WrappedComponent: T) => FC<MergeTypes<[P, ExtractProps<T>]>>;
|
|
15
|
+
export type InnerRef = ForwardedRef<any>;
|
|
16
|
+
export type CssCallback = (css: typeof config.css) => ReturnType<typeof css>;
|
|
17
|
+
export type Css = CssCallback | string | ReturnType<typeof config.css>;
|
|
18
|
+
export type isEmpty = null | undefined;
|
|
19
|
+
export type Content = Parameters<typeof render>['0'];
|
|
20
|
+
export type ContentAlignX = 'left' | 'center' | 'right' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
|
|
21
|
+
export type ContentAlignY = 'top' | 'center' | 'bottom' | 'spaceBetween' | 'spaceAround' | 'block' | isEmpty;
|
|
22
|
+
export type ContentDirection = 'inline' | 'rows' | 'reverseInline' | 'reverseRows' | isEmpty;
|
|
23
|
+
export type Ref = HTMLElement;
|
|
24
|
+
export type AlignY = ContentAlignY | ContentAlignY[] | Partial<Record<BreakpointKeys, ContentAlignY>>;
|
|
25
|
+
export type AlignX = ContentAlignX | ContentAlignX[] | Partial<Record<BreakpointKeys, ContentAlignX>>;
|
|
26
|
+
export type Direction = ContentDirection | ContentDirection[] | Partial<Record<BreakpointKeys, ContentDirection>>;
|
|
27
|
+
export type ResponsiveBooltype = boolean | Array<boolean> | Partial<Record<BreakpointKeys, boolean>>;
|
|
28
|
+
export type Responsive = number | Array<string | number> | Partial<Record<BreakpointKeys, number | string>>;
|
|
29
|
+
export type ExtendCss = Css | Array<Css> | Partial<Record<BreakpointKeys, Css>>;
|
|
30
|
+
export type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
|
|
31
|
+
export type VLForwardedComponent<P = Record<string, unknown>> = ForwardRefRenderFunction<any, P> & VLStatic;
|
|
32
|
+
export type VLComponent<P = Record<string, unknown>> = FC<P> & VLStatic;
|
|
33
33
|
interface ForwardRefRenderFunction<T, P = Record<string, unknown>> {
|
|
34
34
|
(props: PropsWithChildren<P & {
|
|
35
35
|
ref?: ForwardedRef<T>;
|
|
36
36
|
}>, ref: ForwardedRef<T>): ReactElement | null;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type VLStatic = {
|
|
39
39
|
/**
|
|
40
40
|
* React displayName
|
|
41
41
|
*/
|
|
@@ -50,3 +50,4 @@ export declare type VLStatic = {
|
|
|
50
50
|
VITUS_LABS__COMPONENT?: `@vitus-labs/${string}`;
|
|
51
51
|
};
|
|
52
52
|
export {};
|
|
53
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,EAAE,EACF,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACb,MAAM,OAAO,CAAA;AACd,OAA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