@clickhouse/click-ui 0.0.32 → 0.0.34

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,12 +1,13 @@
1
1
  import * as RightMenu from "@radix-ui/react-context-menu";
2
+ import { HorizontalDirection, IconName } from '../../components';
2
3
  export declare const ContextMenu: {
3
4
  (props: RightMenu.ContextMenuProps): import("react/jsx-runtime").JSX.Element;
4
5
  Trigger: {
5
- (props: RightMenu.ContextMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ disabled, ...props }: RightMenu.ContextMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
6
7
  displayName: string;
7
8
  };
8
9
  SubTrigger: {
9
- ({ children, ...props }: RightMenu.ContextMenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
10
+ ({ icon, iconDir, children, ...props }: ContextMenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
10
11
  displayName: string;
11
12
  };
12
13
  Content: {
@@ -22,10 +23,14 @@ export declare const ContextMenu: {
22
23
  displayName: string;
23
24
  };
24
25
  Item: {
25
- ({ ...props }: RightMenu.ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
26
+ ({ icon, iconDir, children, ...props }: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
26
27
  displayName: string;
27
28
  };
28
29
  };
30
+ interface ContextMenuSubTriggerProps extends RightMenu.ContextMenuSubTriggerProps {
31
+ icon?: IconName;
32
+ iconDir?: HorizontalDirection;
33
+ }
29
34
  export type ArrowProps = {
30
35
  showArrow?: boolean;
31
36
  };
@@ -35,4 +40,8 @@ type ContextMenuContentProps = RightMenu.MenuContentProps & {
35
40
  type ContextMenuSubContentProps = RightMenu.MenuSubContentProps & {
36
41
  sub?: never;
37
42
  } & ArrowProps;
43
+ interface ContextMenuItemProps extends RightMenu.ContextMenuItemProps {
44
+ icon?: IconName;
45
+ iconDir?: HorizontalDirection;
46
+ }
38
47
  export default ContextMenu;
@@ -1,4 +1,5 @@
1
1
  import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
2
+ import { HorizontalDirection, IconName } from '../../components';
2
3
  export declare const Dropdown: {
3
4
  (props: DropdownMenu.DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
4
5
  Trigger: {
@@ -18,12 +19,14 @@ export declare const Dropdown: {
18
19
  displayName: string;
19
20
  };
20
21
  Item: {
21
- (props: DropdownMenu.DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
22
+ ({ icon, iconDir, children, ...props }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
22
23
  displayName: string;
23
24
  };
24
25
  };
25
26
  interface SubDropdownProps {
26
27
  sub?: true;
28
+ icon?: IconName;
29
+ iconDir?: HorizontalDirection;
27
30
  }
28
31
  interface MainDropdownProps {
29
32
  sub?: never;
@@ -35,4 +38,8 @@ export type ArrowProps = {
35
38
  };
36
39
  type DropdownContentProps = DropdownMenu.MenuContentProps & SubDropdownProps & ArrowProps;
37
40
  type DropdownSubContentProps = DropdownMenu.MenuSubContentProps & MainDropdownProps & ArrowProps;
41
+ interface DropdownItemProps extends DropdownMenu.DropdownMenuItemProps {
42
+ icon?: IconName;
43
+ iconDir?: HorizontalDirection;
44
+ }
38
45
  export default Dropdown;
@@ -1 +1 @@
1
- export type LogoName = "clickhouse" | "aws-s3" | "aws-redshift" | "aws-msk" | "kakfa" | "fivetran" | "confluent" | "tableau" | "graphana" | "superset" | "metabase" | "aws" | "gcp" | "azure" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg";
1
+ export type LogoName = "clickhouse" | "aws-s3" | "aws-redshift" | "aws-msk" | "kafka" | "fivetran" | "confluent" | "tableau" | "graphana" | "superset" | "metabase" | "aws" | "gcp" | "azure" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg";
@@ -9,4 +9,4 @@ export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
9
9
  children?: React.ReactNode;
10
10
  orientation?: "horizontal" | "vertical";
11
11
  }
12
- export declare const Panel: ({ hasBorder, hasShadow, color, padding, children, orientation, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Panel: ({ hasBorder, hasShadow, color, padding, children, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ import { IconSize } from "./Icon/types";
4
4
  export declare const FormRoot: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
5
  $orientation?: "horizontal" | "vertical" | undefined;
6
6
  $dir?: "start" | "end" | undefined;
7
+ $addLabelPadding?: boolean | undefined;
7
8
  }>>;
8
9
  export declare const Error: import("styled-components").IStyledComponent<"web", {
9
10
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
@@ -377,12 +377,12 @@ declare const _default: {
377
377
  "color": {
378
378
  "text": {
379
379
  "default": "#696e79",
380
- "hover": "#ffffff",
380
+ "hover": "#151515",
381
381
  "active": "#161517"
382
382
  },
383
383
  "background": {
384
384
  "default": "rgba(0,0,0,0)",
385
- "hover": "lch(40.9 16.2 296)",
385
+ "hover": "lch(91.6 1.1 266 / 0.6)",
386
386
  "active": "rgba(0,0,0,0)"
387
387
  }
388
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",