@clickhouse/click-ui 0.0.108 → 0.0.110
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import { ComponentProps, ElementType, ReactNode } from "react";
|
|
2
2
|
import { Orientation } from '../../components';
|
|
3
3
|
type AlignItemsOptions = "start" | "center" | "end" | "stretch";
|
|
4
4
|
type GapOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
@@ -26,5 +26,6 @@ export interface ContainerProps<T extends ElementType = "div"> {
|
|
|
26
26
|
minHeight?: string;
|
|
27
27
|
overflow?: string;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
type ContainerPolymorphicComponent = <T extends ElementType = "div">(props: Omit<ComponentProps<T>, keyof T> & ContainerProps<T>) => ReactNode;
|
|
30
|
+
export declare const Container: ContainerPolymorphicComponent;
|
|
30
31
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import { ComponentProps, ElementType, ReactNode } from "react";
|
|
2
2
|
export interface EllipsisContentProps<T extends ElementType = "div"> {
|
|
3
3
|
component?: T;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
type EllipsisPolymorphicComponent = <T extends ElementType = "div">(props: Omit<ComponentProps<T>, keyof T> & EllipsisContentProps<T>) => ReactNode;
|
|
6
|
+
export declare const EllipsisContent: EllipsisPolymorphicComponent;
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import { ComponentProps, ElementType, ReactEventHandler, ReactNode } from "react";
|
|
2
2
|
import { IconName } from '../../components';
|
|
3
3
|
type TextSize = "xs" | "sm" | "md" | "lg";
|
|
4
4
|
type TextWeight = "normal" | "medium" | "semibold" | "bold";
|
|
@@ -10,5 +10,6 @@ export interface LinkProps<T extends ElementType = "a"> {
|
|
|
10
10
|
icon?: IconName;
|
|
11
11
|
component?: T;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type LinkPolymorphicComponent = <T extends ElementType = "a">(props: Omit<ComponentProps<T>, keyof T> & LinkProps<T>) => ReactNode;
|
|
14
|
+
export declare const Link: LinkPolymorphicComponent;
|
|
14
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import { ComponentProps, ElementType, ReactNode } from "react";
|
|
2
2
|
export type TextAlignment = "left" | "center" | "right";
|
|
3
3
|
export type TextColor = "default" | "muted";
|
|
4
4
|
export type TextSize = "xs" | "sm" | "md" | "lg";
|
|
@@ -12,8 +12,6 @@ export interface TextProps<T extends ElementType = "p"> {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
component?: T;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
15
|
+
type TextPolymorphicComponent = <T extends ElementType = "p">(props: Omit<ComponentProps<T>, keyof T> & TextProps<T>) => ReactNode;
|
|
16
|
+
declare const Text: TextPolymorphicComponent;
|
|
19
17
|
export { Text };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickhouse/click-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"description": "Official ClickHouse design system react library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@tokens-studio/sd-transforms": "^0.10.3",
|
|
85
85
|
"@types/jest": "^29.5.2",
|
|
86
86
|
"@types/lodash-es": "^4.17.7",
|
|
87
|
-
"@types/react": "^18.
|
|
88
|
-
"@types/react-dom": "^18.
|
|
87
|
+
"@types/react": "^18.2.53",
|
|
88
|
+
"@types/react-dom": "^18.2.18",
|
|
89
89
|
"@types/react-syntax-highlighter": "^15.5.7",
|
|
90
90
|
"@types/react-window": "^1.8.8",
|
|
91
91
|
"@types/sortablejs": "^1.15.2",
|