@clickhouse/click-ui 0.0.86 → 0.0.87

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.
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { Orientation } from '../../components';
3
+ type AlignItemsOptions = "start" | "center" | "end";
4
+ type GapOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
5
+ type GrowShrinkOptions = "0" | "1" | "2" | "3" | "4" | "5" | "6";
6
+ type JustifyContentOptions = "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "left" | "right";
7
+ type PaddingOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
8
+ type WrapOptions = "nowrap" | "wrap" | "wrap-reverse";
9
+ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
10
+ alignItems?: AlignItemsOptions;
11
+ children?: React.ReactNode;
12
+ fillWidth?: boolean;
13
+ gap?: GapOptions;
14
+ grow?: GrowShrinkOptions;
15
+ shrink?: GrowShrinkOptions;
16
+ isResponsive?: boolean;
17
+ justifyContent?: JustifyContentOptions;
18
+ maxWidth?: string;
19
+ minWidth?: string;
20
+ orientation?: Orientation;
21
+ padding?: PaddingOptions;
22
+ wrap?: WrapOptions;
23
+ }
24
+ declare const Container: ({ alignItems, children, fillWidth, gap, grow, shrink, isResponsive, justifyContent, maxWidth, minWidth, orientation, padding, wrap, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
25
+ export { Container };
@@ -11,6 +11,7 @@ export declare const ICONS_MAP: {
11
11
  "auth-sms": (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
12
12
  backups: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
13
13
  "bar-chart": (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
14
+ bell: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
14
15
  beta: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
15
16
  blog: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
16
17
  book: (props: import("react").SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { FlagName, FlagProps } from "../icons/Flags";
4
4
  import { LogoName } from "../Logos/types";
5
5
  import { PaymentName, PaymentProps } from "../icons/Payments";
6
6
  export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
7
- export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "cards", "cell-tower", "chat", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "download", "download-in-circle", "email", "empty", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "history", "horizontal-loading", "home", "http", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "metrics", "metrics-alt", "no-cloud", "payment", "pencil", "pie-chart", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "star", "support", "table", "taxi", "trash", "upload", "url", "user", "users", "warning", "waves"];
7
+ export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "cards", "cell-tower", "chat", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "download", "download-in-circle", "email", "empty", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "history", "horizontal-loading", "home", "http", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "metrics", "metrics-alt", "no-cloud", "payment", "pencil", "pie-chart", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "star", "support", "table", "taxi", "trash", "upload", "url", "user", "users", "warning", "waves"];
8
8
  export type IconName = (typeof ICON_NAMES)[number];
9
9
  export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
10
10
  name: IconName;
@@ -0,0 +1,3 @@
1
+ import { SVGAttributes } from "react";
2
+ declare const Bell: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default Bell;
@@ -17,6 +17,7 @@ export { CardHorizontal } from "./CardHorizontal/CardHorizontal";
17
17
  export { CardPromotion } from "./CardPromotion/CardPromotion";
18
18
  export { Checkbox } from "./Checkbox/Checkbox";
19
19
  export { CodeBlock } from "./CodeBlock/CodeBlock";
20
+ export { Container } from "./Container/Container";
20
21
  export { Dialog } from "./Dialog/Dialog";
21
22
  export { ConfirmationDialog } from "./ConfirmationDialog/ConfirmationDialog";
22
23
  export { EllipsisContent } from "./EllipsisContent/EllipsisContent";
@@ -12,6 +12,7 @@ import { PasswordFieldProps } from "./Input/PasswordField";
12
12
  import { NumberFieldProps } from "./Input/NumberField";
13
13
  import { LabelProps } from "./Label/Label";
14
14
  import { HoverCardProps } from "@radix-ui/react-hover-card";
15
+ import { ContainerProps } from "./Container/Container";
15
16
  import { ContextMenuProps } from "@radix-ui/react-context-menu";
16
17
  import { CheckboxProps } from "./Checkbox/Checkbox";
17
18
  import { CardPrimaryProps } from "./CardPrimary/CardPrimary";
@@ -57,6 +58,7 @@ export type { ButtonProps };
57
58
  export type { CardSecondaryProps, BadgeState };
58
59
  export type { CardPrimaryProps };
59
60
  export type { CheckboxProps };
61
+ export type { ContainerProps };
60
62
  export type { ContextMenuProps };
61
63
  export type { HoverCardProps };
62
64
  export type { LabelProps };
@@ -2555,6 +2555,28 @@ export interface Theme {
2555
2555
  };
2556
2556
  };
2557
2557
  };
2558
+ "container": {
2559
+ "space": {
2560
+ "none": string;
2561
+ "xxs": string;
2562
+ "xs": string;
2563
+ "sm": string;
2564
+ "md": string;
2565
+ "lg": string;
2566
+ "xl": string;
2567
+ "xxl": string;
2568
+ };
2569
+ "gap": {
2570
+ "none": string;
2571
+ "xxs": string;
2572
+ "xs": string;
2573
+ "sm": string;
2574
+ "md": string;
2575
+ "lg": string;
2576
+ "xl": string;
2577
+ "xxl": string;
2578
+ };
2579
+ };
2558
2580
  "global": {
2559
2581
  "color": {
2560
2582
  "background": {
@@ -2991,10 +3013,20 @@ export interface Theme {
2991
3013
  "5": string;
2992
3014
  "6": string;
2993
3015
  "7": string;
3016
+ "8": string;
2994
3017
  };
2995
3018
  "shadow": {
2996
3019
  "1": string;
2997
3020
  "2": string;
2998
3021
  "3": string;
2999
3022
  };
3023
+ "breakpoint": {
3024
+ "sizes": {
3025
+ "sm": string;
3026
+ "md": string;
3027
+ "lg": string;
3028
+ "xl": string;
3029
+ "2xl": string;
3030
+ };
3031
+ };
3000
3032
  }
@@ -2555,6 +2555,28 @@ declare const _default: {
2555
2555
  }
2556
2556
  }
2557
2557
  },
2558
+ "container": {
2559
+ "space": {
2560
+ "none": "0",
2561
+ "xxs": "0.25rem",
2562
+ "xs": "0.5rem",
2563
+ "sm": "0.75rem",
2564
+ "md": "1rem",
2565
+ "lg": "1.5rem",
2566
+ "xl": "2rem",
2567
+ "xxl": "4rem"
2568
+ },
2569
+ "gap": {
2570
+ "none": "0",
2571
+ "xxs": "0.25rem",
2572
+ "xs": "0.5rem",
2573
+ "sm": "0.75rem",
2574
+ "md": "1rem",
2575
+ "lg": "1.5rem",
2576
+ "xl": "2rem",
2577
+ "xxl": "4rem"
2578
+ }
2579
+ },
2558
2580
  "global": {
2559
2581
  "color": {
2560
2582
  "background": {
@@ -2990,12 +3012,22 @@ declare const _default: {
2990
3012
  "4": "1rem",
2991
3013
  "5": "1.5rem",
2992
3014
  "6": "2rem",
2993
- "7": "2.5rem"
3015
+ "7": "2.5rem",
3016
+ "8": "4rem"
2994
3017
  },
2995
3018
  "shadow": {
2996
3019
  "1": "0 4px 6px -1px lch(6.77 0 0 / 0.15), 0 2px 4px -1px lch(6.77 0 0 / 0.15)",
2997
3020
  "2": "0 4px 4px 0 rgba(88, 92, 98, 0.06), inset 5px 0 10px 0 rgba(104, 105, 111, 0.1)",
2998
3021
  "3": "-5px 0 20px 0 rgba(0, 0, 0, 0.08), -6px 0 10px 0 rgba(0, 0, 0, 0.08)"
3022
+ },
3023
+ "breakpoint": {
3024
+ "sizes": {
3025
+ "sm": "640px",
3026
+ "md": "768px",
3027
+ "lg": "1024px",
3028
+ "xl": "1280px",
3029
+ "2xl": "1536px"
3030
+ }
2999
3031
  }
3000
3032
  };
3001
3033
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",