@clickhouse/click-ui 0.0.169 → 0.0.171

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,8 @@
1
+ export interface DatePickerProps {
2
+ date?: Date;
3
+ disabled?: boolean;
4
+ futureDatesDisabled?: boolean;
5
+ onSelectDate: (selectedDate: Date) => void;
6
+ placeholder?: string;
7
+ }
8
+ export declare const DatePicker: ({ date, disabled, futureDatesDisabled, onSelectDate, placeholder, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -69,6 +69,7 @@ export declare const ICONS_MAP: {
69
69
  "folder-open": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
70
70
  gear: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
71
71
  gift: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
72
+ globe: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
72
73
  "git-merge": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
73
74
  history: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
74
75
  home: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -122,6 +123,7 @@ export declare const ICONS_MAP: {
122
123
  sparkle: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
123
124
  speaker: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
124
125
  speed: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
126
+ square: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
125
127
  star: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
126
128
  stop: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
127
129
  support: (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", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "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", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "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", "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", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "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", "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;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
3
  export interface WrapperProps {
4
+ className?: string;
4
5
  id: string;
5
6
  label?: ReactNode;
6
7
  labelColor?: string;
@@ -11,7 +12,7 @@ export interface WrapperProps {
11
12
  dir?: "start" | "end";
12
13
  resize?: "none" | "vertical" | "horizontal" | "both";
13
14
  }
14
- export declare const InputWrapper: ({ id, label, labelColor, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const InputWrapper: ({ className, id, label, labelColor, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export declare const InputElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
16
17
  export declare const NumberInputElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, "ref"> & {
17
18
  ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
@@ -19,7 +20,7 @@ export declare const NumberInputElement: import('styled-components/dist/types').
19
20
  $hideControls?: boolean;
20
21
  }>> & string;
21
22
  export declare const TextAreaElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
22
- export declare const TextAreaWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<WrapperProps, never>> & string & Omit<({ id, label, labelColor, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
23
+ export declare const TextAreaWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<WrapperProps, never>> & string & Omit<({ className, id, label, labelColor, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
23
24
  export declare const IconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
24
25
  $show?: boolean;
25
26
  }>> & string;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const Globe: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Globe;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const Square: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Square;
@@ -19,6 +19,7 @@ export { CardPromotion } from './CardPromotion/CardPromotion';
19
19
  export { Checkbox } from './Checkbox/Checkbox';
20
20
  export { CodeBlock } from './CodeBlock/CodeBlock';
21
21
  export { Container } from './Container/Container';
22
+ export { DatePicker } from './DatePicker/DatePicker';
22
23
  export { Dialog } from './Dialog/Dialog';
23
24
  export { ConfirmationDialog } from './ConfirmationDialog/ConfirmationDialog';
24
25
  export { EllipsisContent } from './EllipsisContent/EllipsisContent';
@@ -2645,6 +2645,10 @@ export interface Theme {
2645
2645
  "width": string;
2646
2646
  "height": string;
2647
2647
  };
2648
+ "widest": {
2649
+ "width": string;
2650
+ "height": string;
2651
+ };
2648
2652
  };
2649
2653
  "typography": {
2650
2654
  "default": {
@@ -2847,6 +2851,73 @@ export interface Theme {
2847
2851
  };
2848
2852
  };
2849
2853
  };
2854
+ "datePicker": {
2855
+ "dateOption": {
2856
+ "space": {
2857
+ "gap": string;
2858
+ };
2859
+ "radii": {
2860
+ "default": string;
2861
+ "range": string;
2862
+ };
2863
+ "stroke": string;
2864
+ "size": {
2865
+ "height": string;
2866
+ "width": string;
2867
+ };
2868
+ "typography": {
2869
+ "label": {
2870
+ "default": string;
2871
+ "hover": string;
2872
+ "active": string;
2873
+ "disabled": string;
2874
+ "range": string;
2875
+ };
2876
+ };
2877
+ "color": {
2878
+ "label": {
2879
+ "default": string;
2880
+ "hover": string;
2881
+ "active": string;
2882
+ "disabled": string;
2883
+ "range": string;
2884
+ };
2885
+ "background": {
2886
+ "default": string;
2887
+ "hover": string;
2888
+ "active": string;
2889
+ "disabled": string;
2890
+ "range": string;
2891
+ };
2892
+ "stroke": {
2893
+ "default": string;
2894
+ "hover": string;
2895
+ "active": string;
2896
+ "disabled": string;
2897
+ "range": string;
2898
+ };
2899
+ };
2900
+ };
2901
+ "space": {
2902
+ "gap": string;
2903
+ };
2904
+ "typography": {
2905
+ "daytitle": {
2906
+ "default": string;
2907
+ };
2908
+ "title": {
2909
+ "default": string;
2910
+ };
2911
+ };
2912
+ "color": {
2913
+ "title": {
2914
+ "default": string;
2915
+ };
2916
+ "daytitle": {
2917
+ "default": string;
2918
+ };
2919
+ };
2920
+ };
2850
2921
  "global": {
2851
2922
  "color": {
2852
2923
  "background": {
@@ -774,6 +774,41 @@ declare const _default: {
774
774
  }
775
775
  }
776
776
  },
777
+ "datePicker": {
778
+ "dateOption": {
779
+ "color": {
780
+ "label": {
781
+ "default": "#161517",
782
+ "hover": "#161517",
783
+ "active": "#ffffff",
784
+ "disabled": "#a0a0a0",
785
+ "range": "#161517"
786
+ },
787
+ "background": {
788
+ "default": "#ffffff",
789
+ "hover": "#ffffff",
790
+ "active": "#151515",
791
+ "disabled": "#ffffff",
792
+ "range": "#e6e7e9"
793
+ },
794
+ "stroke": {
795
+ "default": "#ffffff",
796
+ "hover": "#151515",
797
+ "active": "#151515",
798
+ "disabled": "#ffffff",
799
+ "range": "#e6e7e9"
800
+ }
801
+ }
802
+ },
803
+ "color": {
804
+ "title": {
805
+ "default": "lch(10.2 1.39 305)"
806
+ },
807
+ "daytitle": {
808
+ "default": "#696e79"
809
+ }
810
+ }
811
+ },
777
812
  "global": {
778
813
  "color": {
779
814
  "text": {
@@ -1486,6 +1486,41 @@ declare const _default: {
1486
1486
  }
1487
1487
  }
1488
1488
  },
1489
+ "datePicker": {
1490
+ "dateOption": {
1491
+ "color": {
1492
+ "label": {
1493
+ "default": "#ffffff",
1494
+ "hover": "#ffffff",
1495
+ "active": "#1F1F1C",
1496
+ "disabled": "#a0a0a0",
1497
+ "range": "#ffffff"
1498
+ },
1499
+ "background": {
1500
+ "default": "#1F1F1C",
1501
+ "hover": "#1F1F1C",
1502
+ "active": "#FAFF69",
1503
+ "disabled": "#1F1F1C",
1504
+ "range": "#323232"
1505
+ },
1506
+ "stroke": {
1507
+ "default": "#1F1F1C",
1508
+ "hover": "#FAFF69",
1509
+ "active": "#FAFF69",
1510
+ "disabled": "#1F1F1C",
1511
+ "range": "#323232"
1512
+ }
1513
+ }
1514
+ },
1515
+ "color": {
1516
+ "title": {
1517
+ "default": "rgb(97.5% 97.5% 97.5%)"
1518
+ },
1519
+ "daytitle": {
1520
+ "default": "#b3b6bd"
1521
+ }
1522
+ }
1523
+ },
1489
1524
  "global": {
1490
1525
  "color": {
1491
1526
  "background": {
@@ -1092,8 +1092,8 @@ declare const _default: {
1092
1092
  },
1093
1093
  "stroke": {
1094
1094
  "default": "#62de85",
1095
- "hover": "#66FF73",
1096
- "active": "#66FF73",
1095
+ "hover": "#62de85",
1096
+ "active": "#62de85",
1097
1097
  "disabled": "#c0c0c0"
1098
1098
  },
1099
1099
  "check": {
@@ -2644,6 +2644,10 @@ declare const _default: {
2644
2644
  "narrow": {
2645
2645
  "width": "21rem",
2646
2646
  "height": "100%"
2647
+ },
2648
+ "widest": {
2649
+ "width": "55rem",
2650
+ "height": "100vh"
2647
2651
  }
2648
2652
  },
2649
2653
  "typography": {
@@ -2847,6 +2851,73 @@ declare const _default: {
2847
2851
  }
2848
2852
  }
2849
2853
  },
2854
+ "datePicker": {
2855
+ "dateOption": {
2856
+ "space": {
2857
+ "gap": "2px"
2858
+ },
2859
+ "radii": {
2860
+ "default": "0.25rem",
2861
+ "range": "0"
2862
+ },
2863
+ "stroke": "1px",
2864
+ "size": {
2865
+ "height": "2rem",
2866
+ "width": "2rem"
2867
+ },
2868
+ "typography": {
2869
+ "label": {
2870
+ "default": "400 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;",
2871
+ "hover": "400 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;",
2872
+ "active": "600 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;",
2873
+ "disabled": "400 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;",
2874
+ "range": "400 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;"
2875
+ }
2876
+ },
2877
+ "color": {
2878
+ "label": {
2879
+ "default": "#161517",
2880
+ "hover": "#161517",
2881
+ "active": "#ffffff",
2882
+ "disabled": "#a0a0a0",
2883
+ "range": "#161517"
2884
+ },
2885
+ "background": {
2886
+ "default": "#ffffff",
2887
+ "hover": "#ffffff",
2888
+ "active": "#151515",
2889
+ "disabled": "#ffffff",
2890
+ "range": "#e6e7e9"
2891
+ },
2892
+ "stroke": {
2893
+ "default": "#ffffff",
2894
+ "hover": "#151515",
2895
+ "active": "#151515",
2896
+ "disabled": "#ffffff",
2897
+ "range": "#e6e7e9"
2898
+ }
2899
+ }
2900
+ },
2901
+ "space": {
2902
+ "gap": "0.25rem"
2903
+ },
2904
+ "typography": {
2905
+ "daytitle": {
2906
+ "default": "400 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;"
2907
+ },
2908
+ "title": {
2909
+ "default": "600 0.875rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;"
2910
+ }
2911
+ },
2912
+ "color": {
2913
+ "title": {
2914
+ "default": "lch(11.1 1.37 305)"
2915
+ },
2916
+ "daytitle": {
2917
+ "default": "#696e79"
2918
+ }
2919
+ }
2920
+ },
2850
2921
  "global": {
2851
2922
  "color": {
2852
2923
  "background": {
@@ -613,8 +613,8 @@ declare const _default: {
613
613
  },
614
614
  "stroke": {
615
615
  "default": "#62de85",
616
- "hover": "#66FF73",
617
- "active": "#66FF73",
616
+ "hover": "#62de85",
617
+ "active": "#62de85",
618
618
  "disabled": "#c0c0c0"
619
619
  },
620
620
  "check": {
@@ -1473,6 +1473,41 @@ declare const _default: {
1473
1473
  }
1474
1474
  }
1475
1475
  },
1476
+ "datePicker": {
1477
+ "dateOption": {
1478
+ "color": {
1479
+ "label": {
1480
+ "default": "#161517",
1481
+ "hover": "#161517",
1482
+ "active": "#ffffff",
1483
+ "disabled": "#a0a0a0",
1484
+ "range": "#161517"
1485
+ },
1486
+ "background": {
1487
+ "default": "#ffffff",
1488
+ "hover": "#ffffff",
1489
+ "active": "#151515",
1490
+ "disabled": "#ffffff",
1491
+ "range": "#e6e7e9"
1492
+ },
1493
+ "stroke": {
1494
+ "default": "#ffffff",
1495
+ "hover": "#151515",
1496
+ "active": "#151515",
1497
+ "disabled": "#ffffff",
1498
+ "range": "#e6e7e9"
1499
+ }
1500
+ }
1501
+ },
1502
+ "color": {
1503
+ "title": {
1504
+ "default": "lch(11.1 1.37 305)"
1505
+ },
1506
+ "daytitle": {
1507
+ "default": "#696e79"
1508
+ }
1509
+ }
1510
+ },
1476
1511
  "global": {
1477
1512
  "color": {
1478
1513
  "background": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.169",
3
+ "version": "0.0.171",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -43,6 +43,7 @@
43
43
  "publish:click-ui": "npm run test && npm run build && npm publish"
44
44
  },
45
45
  "dependencies": {
46
+ "@h6s/calendar": "^2.0.1",
46
47
  "@radix-ui/react-accordion": "^1.1.2",
47
48
  "@radix-ui/react-avatar": "^1.0.4",
48
49
  "@radix-ui/react-checkbox": "^1.0.4",