@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.
- package/dist/click-ui.bundled.es.js +82 -19
- package/dist/click-ui.bundled.es.js.map +1 -1
- package/dist/click-ui.bundled.umd.js +82 -19
- package/dist/click-ui.bundled.umd.js.map +1 -1
- package/dist/click-ui.es.js +82 -19
- package/dist/click-ui.es.js.map +1 -1
- package/dist/click-ui.umd.js +82 -19
- package/dist/click-ui.umd.js.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +4 -3
- package/dist/components/GridContainer/GridContainer.d.ts +6 -4
- package/dist/components/Logos/MariaDB.d.ts +4 -0
- package/dist/components/Logos/types.d.ts +1 -1
- package/dist/components/Select/common/InternalSelect.d.ts +5 -1
- package/dist/components/Select/common/types.d.ts +8 -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 +1 -1
|
@@ -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 +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
|
|
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";
|