@clickhouse/click-ui 0.0.228 → 0.0.230
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.bundled.es.js +47 -19
- package/dist/click-ui.bundled.es.js.map +1 -1
- package/dist/click-ui.bundled.umd.js +47 -19
- package/dist/click-ui.bundled.umd.js.map +1 -1
- package/dist/click-ui.es.js +47 -19
- package/dist/click-ui.es.js.map +1 -1
- package/dist/click-ui.umd.js +47 -19
- package/dist/click-ui.umd.js.map +1 -1
- package/dist/components/DateDetails/DateDetails.d.ts +5 -1
- package/dist/components/Dialog/Dialog.d.ts +4 -3
- package/dist/components/GridContainer/GridContainer.d.ts +6 -4
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/common.d.ts +2 -2
- package/dist/components/Logos/Cloudflare.d.ts +4 -0
- package/dist/components/Logos/Databricks.d.ts +4 -0
- package/dist/components/Logos/MariaDB.d.ts +4 -0
- package/dist/components/Logos/types.d.ts +1 -1
- package/dist/components/Typography/Text/Text.d.ts +1 -2
- package/dist/components/commonTypes.d.ts +2 -0
- package/dist/components/types.d.ts +1 -1
- package/dist/styles/variables.dark.json.d.ts +1 -1
- package/dist/styles/variables.json.d.ts +1 -1
- package/dist/styles/variables.light.json.d.ts +1 -1
- package/package.json +9 -14
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { TextSize, TextWeight } from '../commonTypes';
|
|
2
|
+
|
|
1
3
|
export type ArrowPosition = "top" | "right" | "left" | "bottom";
|
|
2
4
|
export interface DateDetailsProps {
|
|
3
5
|
date: Date;
|
|
4
6
|
side?: ArrowPosition;
|
|
7
|
+
size?: TextSize;
|
|
5
8
|
systemTimeZone?: string;
|
|
9
|
+
weight?: TextWeight;
|
|
6
10
|
}
|
|
7
|
-
export declare const DateDetails: ({ date, side, systemTimeZone }: DateDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const DateDetails: ({ date, side, size, systemTimeZone, weight, }: DateDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ import * as RadixDialog from "@radix-ui/react-dialog";
|
|
|
5
5
|
export declare const Dialog: {
|
|
6
6
|
({ children, ...props }: RadixDialog.DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Trigger: {
|
|
8
|
-
({ children, ...props }: RadixDialog.DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
({ children, asChild, ...props }: RadixDialog.DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
Close: {
|
|
@@ -13,16 +13,17 @@ export declare const Dialog: {
|
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
Content: {
|
|
16
|
-
({ title, children, showClose, onClose, forceMount, container, showOverlay, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
({ title, children, showClose, onClose, forceMount, container, showOverlay, reducePadding, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export interface DialogContentProps extends RadixDialog.DialogContentProps {
|
|
21
|
-
title
|
|
21
|
+
title?: string;
|
|
22
22
|
showClose?: boolean;
|
|
23
23
|
forceMount?: true;
|
|
24
24
|
container?: HTMLElement | null;
|
|
25
25
|
children: ReactNode;
|
|
26
26
|
onClose?: () => void;
|
|
27
27
|
showOverlay?: boolean;
|
|
28
|
+
reducePadding?: boolean;
|
|
28
29
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ElementType, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export type FlowOptions = "row" | "column" | "row-dense" | "column-dense";
|
|
4
4
|
type GapOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "unset";
|
|
5
5
|
type ItemsOptions = "start" | "center" | "end" | "stretch";
|
|
6
6
|
type ContentOptions = "center" | "space-between" | "space-around" | "space-evenly" | "start" | "stretch" | "end" | "left" | "right";
|
|
7
|
-
export interface GridContainerProps extends
|
|
7
|
+
export interface GridContainerProps<T extends ElementType = "div"> {
|
|
8
|
+
component?: T;
|
|
8
9
|
alignItems?: ItemsOptions;
|
|
9
10
|
alignContent?: ContentOptions;
|
|
10
11
|
children?: React.ReactNode;
|
|
@@ -30,5 +31,6 @@ export interface GridContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
30
31
|
minWidth?: string;
|
|
31
32
|
overflow?: string;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
export
|
|
34
|
+
type GridContainerPolymorphicComponent = <T extends ElementType = "div">(props: Omit<ComponentProps<T>, keyof T> & GridContainerProps<T>) => ReactNode;
|
|
35
|
+
export declare const GridContainer: GridContainerPolymorphicComponent;
|
|
36
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ElementType, ReactEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '..';
|
|
3
|
-
import { TextSize, TextWeight } from '
|
|
3
|
+
import { TextSize, TextWeight } from '../commonTypes';
|
|
4
4
|
|
|
5
5
|
export interface LinkProps<T extends ElementType = "a"> {
|
|
6
6
|
size?: TextSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type LogoName = "clickhouse" | "airbyte" | "aws-s3" | "aws-athena" | "aws-kinesis" | "aws-redshift" | "aws-msk" | "kafka" | "digital_ocean" | "feature_database" | "feature_hexagon" | "fivetran" | "confluent" | "hex" | "tableau" | "grafana" | "superset" | "metabase" | "microsoft" | "aws" | "gcp" | "gcs" | "azure" | "azure-blob-storage" | "azure-event-hub" | "dbeaver" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "prequel" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "redpanda" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg" | "upstash" | "warpstream";
|
|
1
|
+
export type LogoName = "clickhouse" | "airbyte" | "aws-s3" | "aws-athena" | "aws-kinesis" | "aws-redshift" | "aws-msk" | "kafka" | "digital_ocean" | "feature_database" | "feature_hexagon" | "fivetran" | "confluent" | "hex" | "tableau" | "grafana" | "superset" | "metabase" | "microsoft" | "aws" | "gcp" | "gcs" | "azure" | "azure-blob-storage" | "azure-event-hub" | "dbeaver" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "prequel" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "redpanda" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg" | "upstash" | "warpstream" | "cloudflare" | "databricks" | "mariadb";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ComponentProps, ElementType, ReactNode } from 'react';
|
|
2
|
+
import { TextSize, TextWeight } from '../../commonTypes';
|
|
2
3
|
|
|
3
4
|
export type TextAlignment = "left" | "center" | "right";
|
|
4
5
|
export type TextColor = "default" | "muted" | "danger" | "disabled";
|
|
5
|
-
export type TextSize = "xs" | "sm" | "md" | "lg";
|
|
6
|
-
export type TextWeight = "normal" | "medium" | "semibold" | "bold" | "mono";
|
|
7
6
|
export interface TextProps<T extends ElementType = "p"> {
|
|
8
7
|
children: ReactNode;
|
|
9
8
|
align?: TextAlignment;
|
|
@@ -47,7 +47,7 @@ export type { VerticalStepperProps, VerticalStepProps, } from './VerticalStepper
|
|
|
47
47
|
export type { CardHorizontalProps } from './CardHorizontal/CardHorizontal';
|
|
48
48
|
export type { CardPromotionProps } from './CardPromotion/CardPromotion';
|
|
49
49
|
export type { ProgressBarProps } from './ProgressBar/ProgressBar';
|
|
50
|
-
export type { GridProps, CellProps, SelectedRegion, SelectionFocus, SelectionAction, GridContextMenuItemProps, Rectangle, } from './Grid/types';
|
|
50
|
+
export type { GridProps, CellProps, SelectedRegion, SelectionFocus, SelectionPos, SelectionAction, GridContextMenuItemProps, Rectangle, } from './Grid/types';
|
|
51
51
|
export type { StyledLinkProps } from './Link/common';
|
|
52
52
|
export type States = "default" | "active" | "disabled" | "error" | "hover";
|
|
53
53
|
export type HorizontalDirection = "start" | "end";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickhouse/click-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.230",
|
|
4
4
|
"description": "Official ClickHouse design system react library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,16 +77,10 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@radix-ui/react-switch": "^1.0.2",
|
|
80
|
-
"@storybook/addon-a11y": "^
|
|
81
|
-
"@storybook/addon-
|
|
82
|
-
"@storybook/addon-
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/blocks": "^7.0.18",
|
|
85
|
-
"@storybook/manager-api": "^7.0.23",
|
|
86
|
-
"@storybook/react": "^7.0.18",
|
|
87
|
-
"@storybook/react-vite": "^7.0.18",
|
|
88
|
-
"@storybook/testing-library": "^0.1.0",
|
|
89
|
-
"@storybook/theming": "^7.0.23",
|
|
80
|
+
"@storybook/addon-a11y": "^9.0.18",
|
|
81
|
+
"@storybook/addon-docs": "^9.0.18",
|
|
82
|
+
"@storybook/addon-links": "^9.0.18",
|
|
83
|
+
"@storybook/react-vite": "^9.0.18",
|
|
90
84
|
"@testing-library/dom": "^10.1.0",
|
|
91
85
|
"@testing-library/jest-dom": "^6.4.5",
|
|
92
86
|
"@testing-library/react": "^15.0.7",
|
|
@@ -108,11 +102,12 @@
|
|
|
108
102
|
"eslint-plugin-prefer-arrow-functions": "^3.3.2",
|
|
109
103
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
110
104
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
111
|
-
"eslint-plugin-storybook": "^0.
|
|
105
|
+
"eslint-plugin-storybook": "^9.0.18",
|
|
112
106
|
"jsdom": "^24.0.0",
|
|
107
|
+
"prettier": "^3.6.2",
|
|
113
108
|
"prop-types": "^15.8.1",
|
|
114
|
-
"storybook": "^
|
|
115
|
-
"storybook-addon-pseudo-states": "^
|
|
109
|
+
"storybook": "^9.0.18",
|
|
110
|
+
"storybook-addon-pseudo-states": "^9.0.18",
|
|
116
111
|
"styled-components": "^6.1.11",
|
|
117
112
|
"stylis": "^4.3.0",
|
|
118
113
|
"ts-node": "^10.9.1",
|