@clickhouse/click-ui 0.0.190 → 0.0.192

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.
@@ -12,6 +12,7 @@ export interface CommonBadgeProps extends HTMLAttributes<HTMLDivElement> {
12
12
  type?: BadgeType;
13
13
  icon?: ImageName;
14
14
  iconDir?: HorizontalDirection;
15
+ ellipsisContent?: boolean;
15
16
  }
16
17
  export interface DismissibleBadge extends CommonBadgeProps {
17
18
  dismissible: true;
@@ -22,4 +23,4 @@ export interface NonDismissibleBadge extends CommonBadgeProps {
22
23
  onClose?: never;
23
24
  }
24
25
  export type BadgeProps = NonDismissibleBadge | DismissibleBadge;
25
- export declare const Badge: ({ icon, iconDir, text, state, size, type, dismissible, onClose, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const Badge: ({ icon, iconDir, text, state, size, type, dismissible, onClose, ellipsisContent, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export declare const TopBadgeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<any, never> & import('../Container/Container').ContainerProps<import('react').ElementType>, never>> & string & Omit<(<T extends import('react').ElementType = "div">(props: Omit<import('react').ComponentProps<T>, keyof T> & import('../Container/Container').ContainerProps<T>) => import('react').ReactNode), keyof import('react').Component<any, {}, any>>;
2
2
  export declare const CardPrimaryTopBadge: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Badge/Badge').DismissibleBadge | import('../Badge/Badge').NonDismissibleBadge, {
3
3
  $isSelected?: boolean;
4
- }>> & string & Omit<({ icon, iconDir, text, state, size, type, dismissible, onClose, ...props }: import('../Badge/Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
4
+ }>> & string & Omit<({ icon, iconDir, text, state, size, type, dismissible, onClose, ellipsisContent, ...props }: import('../Badge/Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,7 @@
1
+ export type ArrowPosition = "top" | "right" | "left" | "bottom";
2
+ export interface DateDetailsProps {
3
+ date: Date;
4
+ side?: ArrowPosition;
5
+ systemTimeZone?: string;
6
+ }
7
+ export declare const DateDetails: ({ date, side, systemTimeZone, }: DateDetailsProps) => import("react/jsx-runtime").JSX.Element;
@@ -19,5 +19,5 @@ interface HeaderProps {
19
19
  scrolledHorizontal: boolean;
20
20
  resizingState: ResizingState;
21
21
  }
22
- declare const Header: ({ scrolledVertical, scrolledHorizontal, showRowNumber, rowNumberWidth, minColumn, maxColumn, height, getColumnWidth, cell, columnCount, getSelectionType, onColumnResize, getColumnHorizontalPosition, getResizerPosition, showBorder, resizingState }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
22
+ declare const Header: ({ scrolledVertical, scrolledHorizontal, showRowNumber, rowNumberWidth, minColumn, maxColumn, height, getColumnWidth, cell, columnCount, getSelectionType, onColumnResize, getColumnHorizontalPosition, getResizerPosition, showBorder, resizingState, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
23
23
  export default Header;
@@ -12,6 +12,7 @@ interface RowNumberColumnProps {
12
12
  scrolledHorizontal: boolean;
13
13
  rowStart: number;
14
14
  showBorder: boolean;
15
+ rowAutoHeight?: boolean;
15
16
  }
16
- declare const RowNumberColumn: ({ minRow, maxRow, rowHeight, headerHeight, rowWidth, getSelectionType, rowCount, showHeader, scrolledHorizontal, rowStart, showBorder, }: RowNumberColumnProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const RowNumberColumn: ({ minRow, maxRow, rowHeight, headerHeight, rowWidth, getSelectionType, rowCount, showHeader, scrolledHorizontal, rowStart, showBorder, rowAutoHeight, }: RowNumberColumnProps) => import("react/jsx-runtime").JSX.Element;
17
18
  export default RowNumberColumn;
@@ -12,4 +12,5 @@ export declare const StyledCell: import('styled-components/dist/types').IStyledC
12
12
  $height: number;
13
13
  $type?: "body" | "header";
14
14
  $showBorder: boolean;
15
+ $rowAutoHeight?: boolean;
15
16
  }>> & string;
@@ -107,6 +107,9 @@ export interface ItemDataType {
107
107
  headerHeight: number;
108
108
  rowNumberWidth: number;
109
109
  rowStart: number;
110
+ rowAutoHeight?: boolean;
111
+ updateRowHeight: (rowIndex: number, height: number) => void;
112
+ getRowHeight: (index: number) => number;
110
113
  }
111
114
  export interface GridContextMenuItemProps extends Omit<ContextMenuItemProps, "children"> {
112
115
  label: ReactNode;
@@ -137,6 +140,7 @@ export interface GridProps extends Omit<VariableSizeGridProps, "height" | "width
137
140
  onCopyCallback?: (copied: boolean) => void;
138
141
  onContextMenu?: MouseEventHandler<HTMLDivElement>;
139
142
  forwardedGridRef?: MutableRefObject<VariableSizeGrid>;
143
+ rowAutoHeight?: boolean;
140
144
  }
141
145
  export type ResizerPosition = {
142
146
  left: string;
@@ -24,6 +24,13 @@ export declare const ICONS_MAP: {
24
24
  cards: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
25
25
  "cell-tower": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
26
26
  chat: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
27
+ "chart-area": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
28
+ "chart-bar-horizontal": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
29
+ "chart-donut": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
30
+ "chart-heatmap": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
31
+ "chart-scatter": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
32
+ "chart-stacked-horizontal": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
33
+ "chart-stacked-vertical": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
27
34
  check: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
28
35
  "check-in-circle": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
29
36
  "chevron-down": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ import { PaymentName, PaymentProps } from '../icons/Payments';
6
6
 
7
7
  export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
8
8
  export type IconState = "default" | "success" | "warning" | "danger" | "info";
9
- export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "warning", "waves"];
9
+ export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "warning", "waves"];
10
10
  export type IconName = (typeof ICON_NAMES)[number];
11
11
  export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
12
12
  name: IconName;
@@ -2,12 +2,14 @@ import { ReactNode } from 'react';
2
2
  import { HorizontalDirection, IconName } from '..';
3
3
  import { IconSize } from '../Icon/types';
4
4
 
5
- declare const IconWrapper: ({ icon, iconDir, size, width, height, children, ...props }: {
5
+ interface IconWrapperProps {
6
6
  icon?: IconName;
7
7
  iconDir?: HorizontalDirection;
8
- children: ReactNode;
9
8
  size?: IconSize;
10
9
  width?: number | string;
11
10
  height?: number | string;
12
- }) => import("react/jsx-runtime").JSX.Element;
11
+ children: ReactNode;
12
+ ellipsisContent?: boolean;
13
+ }
14
+ declare const IconWrapper: ({ icon, iconDir, size, width, height, children, ellipsisContent, ...props }: IconWrapperProps) => import("react/jsx-runtime").JSX.Element;
13
15
  export default IconWrapper;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartArea: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartArea;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartBarHorizontal: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartBarHorizontal;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartDonut: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartDonut;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartHeatmap: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartHeatmap;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartScatter: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartScatter;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartStackedHorizontal: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartStackedHorizontal;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const ChartStackedVertical: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ChartStackedVertical;
@@ -12,22 +12,23 @@ export { Badge } from './Badge/Badge';
12
12
  export { BigStat } from './BigStat/BigStat';
13
13
  export { ButtonGroup } from './ButtonGroup/ButtonGroup';
14
14
  export { Button } from './Button/Button';
15
- export { CardSecondary } from './CardSecondary/CardSecondary';
16
- export { CardPrimary } from './CardPrimary/CardPrimary';
17
15
  export { CardHorizontal } from './CardHorizontal/CardHorizontal';
16
+ export { CardPrimary } from './CardPrimary/CardPrimary';
18
17
  export { CardPromotion } from './CardPromotion/CardPromotion';
18
+ export { CardSecondary } from './CardSecondary/CardSecondary';
19
19
  export { Checkbox } from './Checkbox/Checkbox';
20
20
  export { CodeBlock } from './CodeBlock/CodeBlock';
21
+ export { ConfirmationDialog } from './ConfirmationDialog/ConfirmationDialog';
22
+ export { ContextMenu } from './ContextMenu/ContextMenu';
21
23
  export { Container } from './Container/Container';
24
+ export { DateDetails } from './DateDetails/DateDetails';
22
25
  export { DatePicker } from './DatePicker/DatePicker';
23
26
  export { Dialog } from './Dialog/Dialog';
24
- export { ConfirmationDialog } from './ConfirmationDialog/ConfirmationDialog';
25
27
  export { EllipsisContent } from './EllipsisContent/EllipsisContent';
26
28
  export { Flyout } from './Flyout/Flyout';
27
29
  export { FormContainer } from './FormContainer/FormContainer';
28
30
  export { GridContainer } from './GridContainer/GridContainer';
29
31
  export { InlineCodeBlock } from './CodeBlock/InlineCodeBlock';
30
- export { ContextMenu } from './ContextMenu/ContextMenu';
31
32
  export { default as Flags } from './icons/Flags';
32
33
  export { Grid } from './Grid/Grid';
33
34
  export { HoverCard } from './HoverCard/HoverCard';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.190",
3
+ "version": "0.0.192",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -115,6 +115,7 @@
115
115
  "watch": "^1.0.2"
116
116
  },
117
117
  "peerDependencies": {
118
+ "dayjs": "^1.11.13",
118
119
  "react": "^18.2.0",
119
120
  "react-dom": "^18.2.0",
120
121
  "styled-components": ">= 5"