@clickhouse/click-ui 0.0.229 → 0.0.231

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.
@@ -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: string;
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 { HTMLAttributes } from 'react';
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 HTMLAttributes<HTMLDivElement> {
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
- declare const GridContainer: ({ alignItems, alignContent, children, columnGap, gap, gridAutoColumns, gridAutoFlow, gridAutoRows, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, gridTemplate, inline, isResponsive, justifyContent, justifyItems, rowGap, height, maxHeight, minHeight, fillWidth, maxWidth, minWidth, overflow, ...props }: GridContainerProps) => import("react/jsx-runtime").JSX.Element;
34
- export { GridContainer };
34
+ type GridContainerPolymorphicComponent = <T extends ElementType = "div">(props: Omit<ComponentProps<T>, keyof T> & GridContainerProps<T>) => ReactNode;
35
+ export declare const GridContainer: GridContainerPolymorphicComponent;
36
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const MariaDB: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default MariaDB;
@@ -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" | "cloudflare" | "databricks";
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,7 +1,11 @@
1
1
  import { SelectContainerProps, SelectGroupProps, SelectItemProps } from './types';
2
2
  import { CheckboxVariants, TextProps } from '../..';
3
3
 
4
- export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, sortable, placeholder, multiple, checkbox, selectLabel, showSearch, container, useFullWidthItems, itemCharacterLimit, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
4
+ export interface NoAvailableOptionsFactoryProps {
5
+ search: string;
6
+ close: () => void;
7
+ }
8
+ export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, sortable, placeholder, multiple, checkbox, selectLabel, showSearch, container, useFullWidthItems, itemCharacterLimit, noAvailableOptions, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
5
9
  export declare const SelectGroup: import('react').ForwardRefExoticComponent<SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
6
10
  export declare const SelectItem: import('react').ForwardRefExoticComponent<SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
7
11
  export type MultiSelectCheckboxItemProps = SelectItemProps & {
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
2
  import { HorizontalDirection, IconName } from '../..';
3
3
  import { PopoverProps } from '@radix-ui/react-popover';
4
+ import { NoAvailableOptionsFactoryProps } from './InternalSelect';
4
5
 
5
6
  declare type DivProps = HTMLAttributes<HTMLDivElement>;
6
7
  interface SelectItemComponentProps extends Omit<DivProps, "disabled" | "onSelect" | "value" | "children"> {
@@ -72,6 +73,13 @@ interface InternalSelectProps extends PopoverProps, Omit<HTMLAttributes<HTMLDivE
72
73
  container?: HTMLElement;
73
74
  useFullWidthItems?: boolean;
74
75
  itemCharacterLimit?: string;
76
+ /**
77
+ * Controls rendering when no options are available.
78
+ * - false: renders nothing
79
+ * - true: renders default message 'No Options found' with search term if present
80
+ * - ({ search: string, onClose: () => void }) => ReactNode: renders the returned node allowing dynamic content based on current search string
81
+ */
82
+ noAvailableOptions?: boolean | ((props: NoAvailableOptionsFactoryProps) => ReactNode);
75
83
  }
76
84
  export type SelectOptionProp = SelectOptionType | SelectChildrenType;
77
85
  export type SelectContainerProps = SelectOptionProp & InternalSelectProps;
@@ -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";
@@ -1029,7 +1029,7 @@ declare const _default: {
1029
1029
  "default": "#ffffff",
1030
1030
  "hover": "#ffffff",
1031
1031
  "active": "#ffffff",
1032
- "disabled": "#c0c0c0",
1032
+ "disabled": "#808080",
1033
1033
  "muted": "#b3b6bd"
1034
1034
  },
1035
1035
  "background": {
@@ -1877,7 +1877,7 @@ declare const _default: {
1877
1877
  "default": "#161517",
1878
1878
  "hover": "#161517",
1879
1879
  "active": "#161517",
1880
- "disabled": "#c0c0c0",
1880
+ "disabled": "#a0a0a0",
1881
1881
  "muted": "#696e79"
1882
1882
  },
1883
1883
  "background": {
@@ -1014,7 +1014,7 @@ declare const _default: {
1014
1014
  "default": "#161517",
1015
1015
  "hover": "#161517",
1016
1016
  "active": "#161517",
1017
- "disabled": "#c0c0c0",
1017
+ "disabled": "#a0a0a0",
1018
1018
  "muted": "#696e79"
1019
1019
  },
1020
1020
  "background": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",