@clickhouse/click-ui 0.0.25 → 0.0.28
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/click-ui.es.js +10191 -6191
- package/dist/click-ui.umd.js +193 -161
- package/dist/components/Accordion/Accordion.d.ts +3 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/CardPrimary/CardPrimary.d.ts +1 -1
- package/dist/components/CardSecondary/CardSecondary.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +5 -2
- package/dist/components/CodeBlock/CodeBlock.d.ts +12 -0
- package/dist/components/CodeBlock/InlineCodeBlock.d.ts +2 -0
- package/dist/components/CodeBlock/useColorStyle.d.ts +115 -0
- package/dist/components/GenericMenu.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +6 -484
- package/dist/components/Icon/IconCommon.d.ts +14 -1
- package/dist/components/Icon/types.d.ts +16 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/Input/InputWrapper.d.ts +4 -2
- package/dist/components/Input/NumberField.d.ts +3 -1
- package/dist/components/Input/PasswordField.d.ts +3 -1
- package/dist/components/Input/SearchField.d.ts +3 -1
- package/dist/components/Input/TextField.d.ts +3 -1
- package/dist/components/Logos/Logo.d.ts +7 -485
- package/dist/components/Switch/Switch.d.ts +5 -2
- package/dist/components/Table/Table.d.ts +2 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/commonElement.d.ts +295 -286
- package/dist/components/icons/ArrowDirections.d.ts +3 -0
- package/dist/components/icons/DotsTriangle.d.ts +3 -0
- package/dist/components/icons/Download.d.ts +3 -0
- package/dist/components/icons/DownloadInCircle.d.ts +3 -0
- package/dist/components/icons/Flags/index.d.ts +21 -4
- package/dist/components/icons/FolderClosed.d.ts +3 -0
- package/dist/components/icons/FolderOpen.d.ts +3 -0
- package/dist/components/icons/Key.d.ts +3 -0
- package/dist/components/icons/Keys.d.ts +3 -0
- package/dist/components/icons/Loading.d.ts +2 -0
- package/dist/components/icons/LoadingAnimated.d.ts +2 -0
- package/dist/components/icons/Payments/index.d.ts +13 -4
- package/dist/components/icons/Query.d.ts +3 -0
- package/dist/components/icons/ShareArrow.d.ts +3 -0
- package/dist/components/icons/Waves.d.ts +3 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/types.d.ts +1 -2
- package/package.json +6 -3
- package/dist/components/icons/Folder.d.ts +0 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
3
|
-
import {
|
|
4
|
+
import { IconSize } from '../../components/Icon/types';
|
|
5
|
+
import { IconName } from '../../components';
|
|
4
6
|
type Size = "sm" | "md" | "lg";
|
|
5
7
|
export interface AccordionProps extends SizeProp, Omit<RadixAccordion.AccordionSingleProps, "type" | "collapsible"> {
|
|
6
8
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { IconName } from '../../components';
|
|
2
|
+
import React from "react";
|
|
3
3
|
type ButtonType = "primary" | "secondary" | "danger";
|
|
4
4
|
type Alignment = "center" | "left";
|
|
5
5
|
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconName } from '../../components
|
|
1
|
+
import { IconName } from '../../components';
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
4
4
|
export interface CardSecondaryProps {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
2
|
+
import { ReactNode } from "react";
|
|
2
3
|
export interface CheckboxProps extends RadixCheckbox.CheckboxProps {
|
|
3
|
-
label?:
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
orientation?: "vertical" | "horizontal";
|
|
6
|
+
dir?: "start" | "end";
|
|
4
7
|
}
|
|
5
|
-
export declare const Checkbox: ({ id, label, ...delegated }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Checkbox: ({ id, label, disabled, orientation, dir, ...delegated }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export type CodeThemeType = "light" | "dark";
|
|
3
|
+
interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
language?: string;
|
|
5
|
+
children: string;
|
|
6
|
+
theme?: CodeThemeType;
|
|
7
|
+
showLineNumbers?: boolean;
|
|
8
|
+
showWrapButton?: boolean;
|
|
9
|
+
wrapLines?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeBlock: ({ children, language, theme, showLineNumbers, showWrapButton, wrapLines, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { CodeThemeType } from "./CodeBlock";
|
|
2
|
+
declare const useColorStyle: (defaultTheme?: CodeThemeType) => {
|
|
3
|
+
hljs: {
|
|
4
|
+
display: string;
|
|
5
|
+
overflowX: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
color: string;
|
|
8
|
+
background: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
font: string;
|
|
11
|
+
};
|
|
12
|
+
"hljs-comment": {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
"hljs-keyword": {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
"hljs-selector-tag": {
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
"hljs-meta-keyword": {
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
"hljs-doctag": {
|
|
25
|
+
color: string;
|
|
26
|
+
};
|
|
27
|
+
"hljs-section": {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
"hljs-selector-class": {
|
|
31
|
+
color: string;
|
|
32
|
+
};
|
|
33
|
+
"hljs-meta": {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
"hljs-selector-pseudo": {
|
|
37
|
+
color: string;
|
|
38
|
+
};
|
|
39
|
+
"hljs-attr": {
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
"hljs-attribute": {
|
|
43
|
+
color: string;
|
|
44
|
+
};
|
|
45
|
+
"hljs-name": {
|
|
46
|
+
color: string;
|
|
47
|
+
};
|
|
48
|
+
"hljs-type": {
|
|
49
|
+
color: string;
|
|
50
|
+
};
|
|
51
|
+
"hljs-number": {
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
"hljs-selector-id": {
|
|
55
|
+
color: string;
|
|
56
|
+
};
|
|
57
|
+
"hljs-quote": {
|
|
58
|
+
color: string;
|
|
59
|
+
};
|
|
60
|
+
"hljs-template-tag": {
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
"hljs-built_in": {
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
"hljs-title": {
|
|
67
|
+
color: string;
|
|
68
|
+
};
|
|
69
|
+
"hljs-literal": {
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
72
|
+
"hljs-string": {
|
|
73
|
+
color: string;
|
|
74
|
+
};
|
|
75
|
+
"hljs-regexp": {
|
|
76
|
+
color: string;
|
|
77
|
+
};
|
|
78
|
+
"hljs-symbol": {
|
|
79
|
+
color: string;
|
|
80
|
+
};
|
|
81
|
+
"hljs-variable": {
|
|
82
|
+
color: string;
|
|
83
|
+
};
|
|
84
|
+
"hljs-template-variable": {
|
|
85
|
+
color: string;
|
|
86
|
+
};
|
|
87
|
+
"hljs-link": {
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
90
|
+
"hljs-selector-attr": {
|
|
91
|
+
color: string;
|
|
92
|
+
};
|
|
93
|
+
"hljs-meta-string": {
|
|
94
|
+
color: string;
|
|
95
|
+
};
|
|
96
|
+
"hljs-bullet": {
|
|
97
|
+
color: string;
|
|
98
|
+
};
|
|
99
|
+
"hljs-code": {
|
|
100
|
+
color: string;
|
|
101
|
+
};
|
|
102
|
+
"hljs-deletion": {
|
|
103
|
+
color: string;
|
|
104
|
+
};
|
|
105
|
+
"hljs-addition": {
|
|
106
|
+
color: string;
|
|
107
|
+
};
|
|
108
|
+
"hljs-emphasis": {
|
|
109
|
+
fontStyle: string;
|
|
110
|
+
};
|
|
111
|
+
"hljs-strong": {
|
|
112
|
+
fontWeight: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export default useColorStyle;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GenericMenuPanel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
4
|
$type: "popover" | "dropdown-menu" | "context-menu";
|
|
4
5
|
$showArrow?: boolean | undefined;
|
|
@@ -8,6 +9,7 @@ export declare const GenericPopoverMenuPanel: import("styled-components").IStyle
|
|
|
8
9
|
$showArrow?: boolean | undefined;
|
|
9
10
|
}>>;
|
|
10
11
|
export declare const Arrow: import("styled-components").IStyledComponent<"web", {
|
|
12
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
11
13
|
className?: string | undefined;
|
|
12
14
|
color?: string | undefined;
|
|
13
15
|
height?: string | number | undefined;
|