@prom-ui/core 1.0.0-alpha.1 → 1.0.0-alpha.3
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/Avatar/package.json +1 -1
- package/Backdrop/package.json +1 -1
- package/Body/package.json +1 -1
- package/BodyProvider/package.json +1 -1
- package/Box/cjs/index.development.js +0 -1
- package/Box/cjs/index.development.v2.js +0 -1
- package/Box/index.d.ts +2 -3
- package/Box/package.json +1 -1
- package/Button/index.d.ts +2 -3
- package/Button/package.json +1 -1
- package/ButtonPageUp/index.d.ts +2 -2
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/Flex/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Icon/cjs/index.development.js +0 -1
- package/Icon/cjs/index.development.v2.js +0 -1
- package/Icon/index.d.ts +2 -3
- package/Icon/package.json +1 -1
- package/Image/cjs/index.development.js +3 -5
- package/Image/cjs/index.development.v2.js +3 -5
- package/Image/cjs/index.production.js +1 -1
- package/Image/cjs/index.production.v2.js +1 -1
- package/Image/index.d.ts +42 -2
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +2 -0
- package/ImageEmoji/cjs/index.development.v2.js +2 -0
- package/ImageEmoji/index.d.ts +6 -8
- package/ImageEmoji/package.json +1 -1
- package/Input/cjs/index.development.js +0 -1
- package/Input/cjs/index.development.v2.js +0 -1
- package/Input/index.d.ts +2 -3
- package/Input/package.json +1 -1
- package/InputField/cjs/index.development.js +0 -1
- package/InputField/cjs/index.development.v2.js +0 -1
- package/InputField/index.d.ts +3 -2
- package/InputField/package.json +1 -1
- package/KeyPress/package.json +1 -1
- package/Line/cjs/index.development.js +3 -5
- package/Line/cjs/index.development.v2.js +3 -5
- package/Line/cjs/index.production.js +1 -1
- package/Line/cjs/index.production.v2.js +1 -1
- package/Line/index.d.ts +13 -2
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +0 -1
- package/Link/cjs/index.development.v2.js +0 -1
- package/Link/index.d.ts +3 -4
- package/Link/package.json +1 -1
- package/List/package.json +1 -1
- package/Media/package.json +1 -1
- package/OutsideClick/package.json +1 -1
- package/Overlay/package.json +1 -1
- package/Picture/package.json +1 -1
- package/PortableOverlay/package.json +1 -1
- package/Portal/package.json +1 -1
- package/QRCode/package.json +1 -1
- package/Rating/package.json +1 -1
- package/SafeQuery/package.json +1 -1
- package/Scroll/cjs/index.development.js +4 -5
- package/Scroll/cjs/index.development.v2.js +4 -5
- package/Scroll/cjs/index.production.js +1 -1
- package/Scroll/cjs/index.production.v2.js +1 -1
- package/Scroll/index.d.ts +16 -13
- package/Scroll/package.json +1 -1
- package/ScrollControls/package.json +1 -1
- package/SideOverlay/package.json +1 -1
- package/SimpleSlider/package.json +1 -1
- package/Skeleton/cjs/index.development.js +6 -8
- package/Skeleton/cjs/index.development.v2.js +6 -8
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/cjs/style.development.css +1 -1
- package/Skeleton/cjs/style.development.v2.css +1 -1
- package/Skeleton/cjs/style.production.css +1 -1
- package/Skeleton/cjs/style.production.v2.css +1 -1
- package/Skeleton/index.d.ts +30 -9
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +22 -8
- package/Spinner/cjs/index.development.v2.js +22 -8
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/index.d.ts +21 -7
- package/Spinner/package.json +1 -1
- package/Text/cjs/index.development.js +0 -1
- package/Text/cjs/index.development.v2.js +0 -1
- package/Text/index.d.ts +2 -3
- package/Text/package.json +1 -1
- package/TextEmoji/index.d.ts +6 -4
- package/TextEmoji/package.json +1 -1
- package/Tooltip/package.json +1 -1
- package/Tumbler/package.json +1 -1
- package/base/types.d.ts +58 -0
- package/package.json +2 -2
- package/useDebounce/package.json +1 -1
- package/useIsMounted/package.json +1 -1
- package/useKeyPress/package.json +1 -1
- package/useMedia/package.json +1 -1
- package/useOutsideClick/package.json +1 -1
- package/usePortal/package.json +1 -1
- package/useScrollPosition/package.json +1 -1
- package/base/evokit.d.ts +0 -36
package/useKeyPress/package.json
CHANGED
package/useMedia/package.json
CHANGED
package/usePortal/package.json
CHANGED
package/base/evokit.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
// export type EvokitProps<P extends Record<string, string | number>> = {
|
|
4
|
-
// [K in keyof P]: P[K] | `${P[K]}` | P[K][] | `${P[K]}`[] | Partial<Record<`${P[K]}`, boolean>>;
|
|
5
|
-
// };
|
|
6
|
-
|
|
7
|
-
type EvokitMedia = 'small' | 'medium' | 'large' | 'wide' | 'huge';
|
|
8
|
-
export type EvokitMediaSufix<T extends string | number> = T | `${T}` | `${T}@${EvokitMedia}`;
|
|
9
|
-
export type EvokitProp<T extends string | number> = T | `${T}` | T[] | `${T}`[] | Partial<Record<`${T}`, boolean>>;
|
|
10
|
-
|
|
11
|
-
type AsProp<T extends React.ElementType, N extends string> = {
|
|
12
|
-
[Name in N as `${Name}-as`]?: T;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
type PolymorphicRef<T extends React.ElementType> = React.ComponentPropsWithRef<T>['ref'];
|
|
16
|
-
|
|
17
|
-
type PropsToOmit<T extends React.ElementType, N extends string, P> = keyof (AsProp<T, N> & P);
|
|
18
|
-
|
|
19
|
-
type PolymorphicComponentProp<T extends React.ElementType, N extends string, P = {}> = React.PropsWithChildren<
|
|
20
|
-
P & AsProp<T, N>
|
|
21
|
-
> &
|
|
22
|
-
Omit<React.ComponentPropsWithoutRef<T>, PropsToOmit<T, N, P>>;
|
|
23
|
-
|
|
24
|
-
type PolymorphicComponentPropWithRef<T extends React.ElementType, N extends string, P = {}> = PolymorphicComponentProp<
|
|
25
|
-
T,
|
|
26
|
-
N,
|
|
27
|
-
P
|
|
28
|
-
> & {
|
|
29
|
-
ref?: PolymorphicRef<T>;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type CreateBlock<Tag extends React.ElementType, Name extends string, Props = {}> = <
|
|
33
|
-
T extends React.ElementType = Tag
|
|
34
|
-
>(
|
|
35
|
-
props: PolymorphicComponentPropWithRef<T, Name, Props>
|
|
36
|
-
) => React.ReactElement | null;
|