@clickhouse/click-ui 0.0.78 → 0.0.80

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.
@@ -1,12 +1,15 @@
1
1
  /// <reference types="react" />
2
- export type bigStatState = "default";
2
+ export type bigStatOrder = "titleTop" | "titleBottom";
3
3
  export type bigStatSize = "sm" | "lg";
4
- export type bigStatHeight = "fixed" | "fluid";
4
+ export type bigStatSpacing = "sm" | "lg";
5
+ export type bigStatState = "default" | "muted";
5
6
  export interface BigStatProps {
6
7
  label: React.ReactNode;
7
8
  title: React.ReactNode;
8
9
  height?: string;
9
- state?: bigStatState;
10
+ order?: bigStatOrder;
10
11
  size?: bigStatSize;
12
+ spacing?: bigStatSpacing;
13
+ state?: bigStatState;
11
14
  }
12
- export declare const BigStat: ({ label, title, height, size, state, }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const BigStat: ({ label, title, height, order, size, spacing, state, }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { IconName } from '../../components';
3
+ export interface CardPromotionProps extends HTMLAttributes<HTMLDivElement> {
4
+ label: string;
5
+ icon: IconName;
6
+ dismissible?: boolean;
7
+ }
8
+ export declare const CardPromotion: ({ label, icon, dismissible, ...props }: CardPromotionProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectContainerProps, SelectGroupProps, SelectItemProps } from "./types";
3
- export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, showCheck, sortable, placeholder, multiple, showSearch, container, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
3
+ 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, showSearch, container, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const SelectGroup: import("react").ForwardRefExoticComponent<SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
5
5
  export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -53,7 +53,6 @@ interface InternalSelectProps extends PopoverProps, Omit<HTMLAttributes<HTMLDivE
53
53
  dir?: "start" | "end";
54
54
  orientation?: "horizontal" | "vertical";
55
55
  allowCreateOption?: boolean;
56
- showCheck?: boolean;
57
56
  onChange: (selectedValues: Array<string>) => void;
58
57
  open: boolean;
59
58
  onOpenChange: (open: boolean) => void;
@@ -11,6 +11,8 @@ export interface ToastProps {
11
11
  type?: ToastType;
12
12
  title: string;
13
13
  description?: ReactNode;
14
+ /** Time in milliseconds the toast will be visible */
15
+ duration?: number;
14
16
  actions?: Array<ButtonProps & {
15
17
  altText: string;
16
18
  }>;
@@ -1,3 +1,3 @@
1
- import * as React from "react";
2
- declare const GreatBritain: (props: React.SVGAttributes<SVGElement>) => React.ReactElement;
1
+ /// <reference types="react" />
2
+ declare const GreatBritain: (props: import("react").SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
3
  export default GreatBritain;
@@ -13,6 +13,7 @@ export { Button } from "./Button/Button";
13
13
  export { CardSecondary } from "./CardSecondary/CardSecondary";
14
14
  export { CardPrimary } from "./CardPrimary/CardPrimary";
15
15
  export { CardHorizontal } from "./CardHorizontal/CardHorizontal";
16
+ export { CardPromotion } from "./CardPromotion/CardPromotion";
16
17
  export { Checkbox } from "./Checkbox/Checkbox";
17
18
  export { CodeBlock } from "./CodeBlock/CodeBlock";
18
19
  export { Dialog } from "./Dialog/Dialog";
@@ -41,6 +41,7 @@ export type { BigStatProps } from "./BigStat/BigStat";
41
41
  export type { TextAreaFieldProps } from "./Input/TextArea";
42
42
  export type { VerticalStepperProps, VerticalStepProps, } from "./VerticalStepper/VerticalStepper";
43
43
  export type { CardHorizontalProps } from "./CardHorizontal/CardHorizontal";
44
+ export type { CardPromotionProps } from "./CardPromotion/CardPromotion";
44
45
  export type { ProgressBarProps } from "./ProgressBar/ProgressBar";
45
46
  export type States = "default" | "active" | "disabled" | "error" | "hover";
46
47
  export type HorizontalDirection = "start" | "end";
@@ -258,7 +258,12 @@ export interface Theme {
258
258
  "bigStat": {
259
259
  "space": {
260
260
  "all": string;
261
- "gap": string;
261
+ "sm": {
262
+ "gap": string;
263
+ };
264
+ "lg": {
265
+ "gap": string;
266
+ };
262
267
  };
263
268
  "radii": {
264
269
  "all": string;
@@ -268,32 +273,40 @@ export interface Theme {
268
273
  "lg": {
269
274
  "label": {
270
275
  "default": string;
276
+ "muted": string;
271
277
  };
272
278
  "title": {
273
279
  "default": string;
280
+ "muted": string;
274
281
  };
275
282
  };
276
283
  "sm": {
277
284
  "label": {
278
285
  "default": string;
286
+ "muted": string;
279
287
  };
280
288
  "title": {
281
289
  "default": string;
290
+ "muted": string;
282
291
  };
283
292
  };
284
293
  };
285
294
  "color": {
286
295
  "stroke": {
287
296
  "default": string;
297
+ "muted": string;
288
298
  };
289
299
  "background": {
290
300
  "default": string;
301
+ "muted": string;
291
302
  };
292
303
  "label": {
293
304
  "default": string;
305
+ "muted": string;
294
306
  };
295
307
  "title": {
296
308
  "default": string;
309
+ "muted": string;
297
310
  };
298
311
  };
299
312
  };
@@ -895,6 +908,49 @@ export interface Theme {
895
908
  };
896
909
  };
897
910
  };
911
+ "promotion": {
912
+ "radii": {
913
+ "all": string;
914
+ };
915
+ "typography": {
916
+ "text": {
917
+ "default": string;
918
+ };
919
+ };
920
+ "space": {
921
+ "y": string;
922
+ "x": string;
923
+ "gap": string;
924
+ };
925
+ "icon": {
926
+ "size": {
927
+ "all": string;
928
+ };
929
+ };
930
+ "color": {
931
+ "text": {
932
+ "default": string;
933
+ "hover": string;
934
+ "active": string;
935
+ };
936
+ "icon": {
937
+ "default": string;
938
+ "hover": string;
939
+ "active": string;
940
+ };
941
+ "background": {
942
+ "default": string;
943
+ "hover": string;
944
+ "active": string;
945
+ };
946
+ "stroke": {
947
+ "default": string;
948
+ "hover": string;
949
+ "active": string;
950
+ "focus": string;
951
+ };
952
+ };
953
+ };
898
954
  };
899
955
  "checkbox": {
900
956
  "radii": {
@@ -1192,6 +1248,22 @@ export interface Theme {
1192
1248
  "sectionHeader": {
1193
1249
  "default": string;
1194
1250
  };
1251
+ "subtext": {
1252
+ "default": string;
1253
+ "hover": string;
1254
+ "active": string;
1255
+ "disabled": string;
1256
+ };
1257
+ };
1258
+ "two-lines": {
1259
+ "space": {
1260
+ "x": string;
1261
+ "y": string;
1262
+ "gap": string;
1263
+ };
1264
+ };
1265
+ "size": {
1266
+ "minWidth": string;
1195
1267
  };
1196
1268
  "color": {
1197
1269
  "text": {
@@ -1217,6 +1289,12 @@ export interface Theme {
1217
1289
  "stroke": {
1218
1290
  "default": string;
1219
1291
  };
1292
+ "subtext": {
1293
+ "default": string;
1294
+ "hover": string;
1295
+ "active": string;
1296
+ "disabled": string;
1297
+ };
1220
1298
  };
1221
1299
  };
1222
1300
  "itemCustom": {
@@ -2424,6 +2502,9 @@ export interface Theme {
2424
2502
  "shadow": {
2425
2503
  "default": string;
2426
2504
  };
2505
+ "title": {
2506
+ "default": string;
2507
+ };
2427
2508
  };
2428
2509
  };
2429
2510
  "feedback": {
@@ -302,9 +302,9 @@ declare const _default: {
302
302
  "disabled": "#dfdfdf"
303
303
  },
304
304
  "title": {
305
- "default": "#161517",
306
- "hover": "#161517",
307
- "active": "#161517",
305
+ "default": "lch(10.2 1.39 305)",
306
+ "hover": "lch(10.2 1.39 305)",
307
+ "active": "lch(10.2 1.39 305)",
308
308
  "disabled": "#a0a0a0"
309
309
  },
310
310
  "description": {
@@ -331,9 +331,9 @@ declare const _default: {
331
331
  "disabled": "#dfdfdf"
332
332
  },
333
333
  "title": {
334
- "default": "#161517",
335
- "hover": "#161517",
336
- "active": "#161517",
334
+ "default": "lch(10.2 1.39 305)",
335
+ "hover": "lch(10.2 1.39 305)",
336
+ "active": "lch(10.2 1.39 305)",
337
337
  "disabled": "#a0a0a0"
338
338
  },
339
339
  "description": {
@@ -359,9 +359,9 @@ declare const _default: {
359
359
  "disabled": "#dfdfdf"
360
360
  },
361
361
  "title": {
362
- "default": "#161517",
363
- "hover": "#161517",
364
- "active": "#161517",
362
+ "default": "lch(10.2 1.39 305)",
363
+ "hover": "lch(10.2 1.39 305)",
364
+ "active": "lch(10.2 1.39 305)",
365
365
  "disabled": "#a0a0a0"
366
366
  },
367
367
  "description": {
@@ -378,6 +378,31 @@ declare const _default: {
378
378
  }
379
379
  }
380
380
  }
381
+ },
382
+ "promotion": {
383
+ "color": {
384
+ "text": {
385
+ "default": "#161517",
386
+ "hover": "#161517",
387
+ "active": "#161517"
388
+ },
389
+ "icon": {
390
+ "default": "#161517",
391
+ "hover": "#161517",
392
+ "active": "#161517"
393
+ },
394
+ "background": {
395
+ "default": "lch(97.2 1.57 272 / 0.9)",
396
+ "hover": "lch(91.8 1.07 266)",
397
+ "active": "lch(89.3 1.07 266)"
398
+ },
399
+ "stroke": {
400
+ "default": "linear-gradient(174deg, #ABABAB 7.59%, #D4D4D4 30.01%)",
401
+ "hover": "linear-gradient(174deg, #ABABAB 7.59%, #D4D4D4 30.01%)",
402
+ "active": "linear-gradient(174deg, #ABABAB 7.59%, #D4D4D4 30.01%)",
403
+ "focus": "#151515"
404
+ }
405
+ }
381
406
  }
382
407
  },
383
408
  "sidebar": {
@@ -650,7 +675,7 @@ declare const _default: {
650
675
  "default": "#ffffff"
651
676
  },
652
677
  "title": {
653
- "default": "#161517"
678
+ "default": "lch(10.2 1.39 305)"
654
679
  },
655
680
  "description": {
656
681
  "default": "#696e79"
@@ -724,6 +749,9 @@ declare const _default: {
724
749
  "default": "#C78F0F",
725
750
  "hover": "#C78F0F"
726
751
  }
752
+ },
753
+ "title": {
754
+ "default": "lch(10.2 1.39 305)"
727
755
  }
728
756
  }
729
757
  },
@@ -98,16 +98,20 @@ declare const _default: {
98
98
  "bigStat": {
99
99
  "color": {
100
100
  "stroke": {
101
- "default": "lch(27.5 0 0 / 0.3)"
101
+ "default": "lch(27.5 0 0 / 0.3)",
102
+ "muted": "lch(27.5 0 0 / 0.3)"
102
103
  },
103
104
  "background": {
104
- "default": "#1F1F1C"
105
+ "default": "#1F1F1C",
106
+ "muted": "#282828"
105
107
  },
106
108
  "label": {
107
- "default": "#b3b6bd"
109
+ "default": "#b3b6bd",
110
+ "muted": "#b3b6bd"
108
111
  },
109
112
  "title": {
110
- "default": "#ffffff"
113
+ "default": "lch(97.5 0 0)",
114
+ "muted": "lch(97.5 0 0)"
111
115
  }
112
116
  }
113
117
  },
@@ -395,9 +399,9 @@ declare const _default: {
395
399
  "disabled": "#414141"
396
400
  },
397
401
  "title": {
398
- "default": "#ffffff",
399
- "hover": "#ffffff",
400
- "active": "#ffffff",
402
+ "default": "lch(97.5 0 0)",
403
+ "hover": "lch(97.5 0 0)",
404
+ "active": "lch(97.5 0 0)",
401
405
  "disabled": "#808080"
402
406
  },
403
407
  "description": {
@@ -429,9 +433,9 @@ declare const _default: {
429
433
  "disabled": "#414141"
430
434
  },
431
435
  "title": {
432
- "default": "#ffffff",
433
- "hover": "#ffffff",
434
- "active": "#ffffff",
436
+ "default": "lch(97.5 0 0)",
437
+ "hover": "lch(97.5 0 0)",
438
+ "active": "lch(97.5 0 0)",
435
439
  "disabled": "#808080"
436
440
  },
437
441
  "description": {
@@ -458,9 +462,9 @@ declare const _default: {
458
462
  "disabled": "#414141"
459
463
  },
460
464
  "title": {
461
- "default": "#ffffff",
462
- "hover": "#ffffff",
463
- "active": "#ffffff",
465
+ "default": "lch(97.5 0 0)",
466
+ "hover": "lch(97.5 0 0)",
467
+ "active": "lch(97.5 0 0)",
464
468
  "disabled": "#808080"
465
469
  },
466
470
  "description": {
@@ -486,9 +490,9 @@ declare const _default: {
486
490
  "disabled": "#414141"
487
491
  },
488
492
  "title": {
489
- "default": "#ffffff",
490
- "hover": "#ffffff",
491
- "active": "#ffffff",
493
+ "default": "lch(97.5 0 0)",
494
+ "hover": "lch(97.5 0 0)",
495
+ "active": "lch(97.5 0 0)",
492
496
  "disabled": "#808080"
493
497
  },
494
498
  "description": {
@@ -505,6 +509,31 @@ declare const _default: {
505
509
  }
506
510
  }
507
511
  }
512
+ },
513
+ "promotion": {
514
+ "color": {
515
+ "text": {
516
+ "default": "#ffffff",
517
+ "hover": "#ffffff",
518
+ "active": "#ffffff"
519
+ },
520
+ "icon": {
521
+ "default": "#FAFF69",
522
+ "hover": "#FAFF69",
523
+ "active": "#FAFF69"
524
+ },
525
+ "background": {
526
+ "default": "lch(16.1 0 0 / 0.9)",
527
+ "hover": "lch(18.2 0 0 / 0.9)",
528
+ "active": "lch(20.2 0 0 / 0.9)"
529
+ },
530
+ "stroke": {
531
+ "default": "linear-gradient(174deg, #FAFF69 8.31%, #2C2E31 22.92%)",
532
+ "hover": "linear-gradient(174deg, #FAFF69 8.31%, #2C2E31 22.92%)",
533
+ "active": "linear-gradient(174deg, #FAFF69 8.31%, #2C2E31 22.92%)",
534
+ "focus": "#FAFF69"
535
+ }
536
+ }
508
537
  }
509
538
  },
510
539
  "checkbox": {
@@ -658,7 +687,7 @@ declare const _default: {
658
687
  "background": {
659
688
  "default": "#282828",
660
689
  "hover": "lch(23.5 0 0)",
661
- "active": "lch(23.5 0 0)",
690
+ "active": "#282828",
662
691
  "disabled": "#414141"
663
692
  },
664
693
  "format": {
@@ -670,6 +699,12 @@ declare const _default: {
670
699
  },
671
700
  "stroke": {
672
701
  "default": "lch(27.5 0 0 / 0.3)"
702
+ },
703
+ "subtext": {
704
+ "default": "#b3b6bd",
705
+ "hover": "#b3b6bd",
706
+ "active": "#b3b6bd",
707
+ "disabled": "#c0c0c0"
673
708
  }
674
709
  }
675
710
  },
@@ -999,7 +1034,7 @@ declare const _default: {
999
1034
  "active": "lch(18.2 0 0)"
1000
1035
  },
1001
1036
  "title": {
1002
- "default": "#ffffff"
1037
+ "default": "lch(97.5 0 0)"
1003
1038
  },
1004
1039
  "icon": {
1005
1040
  "default": "#ffffff"
@@ -1092,7 +1127,7 @@ declare const _default: {
1092
1127
  "toast": {
1093
1128
  "color": {
1094
1129
  "title": {
1095
- "default": "#ffffff"
1130
+ "default": "lch(97.5 0 0)"
1096
1131
  },
1097
1132
  "description": {
1098
1133
  "default": "#b3b6bd"
@@ -1101,7 +1136,7 @@ declare const _default: {
1101
1136
  "default": "#414141"
1102
1137
  },
1103
1138
  "icon": {
1104
- "default": "#ffffff",
1139
+ "default": "lch(97.5 0 0)",
1105
1140
  "success": "#81e59d",
1106
1141
  "warning": "#ff9416",
1107
1142
  "danger": "#ff7575"
@@ -1124,7 +1159,7 @@ declare const _default: {
1124
1159
  "default": "#1F1F1C"
1125
1160
  },
1126
1161
  "title": {
1127
- "default": "#ffffff"
1162
+ "default": "lch(97.5 0 0)"
1128
1163
  },
1129
1164
  "description": {
1130
1165
  "default": "#b3b6bd"
@@ -1140,7 +1175,7 @@ declare const _default: {
1140
1175
  "default": "#1F1F1C"
1141
1176
  },
1142
1177
  "title": {
1143
- "default": "#ffffff"
1178
+ "default": "lch(97.5 0 0)"
1144
1179
  },
1145
1180
  "description": {
1146
1181
  "default": "#b3b6bd"
@@ -1234,6 +1269,9 @@ declare const _default: {
1234
1269
  },
1235
1270
  "shadow": {
1236
1271
  "default": "lch(6.77 0 0 / 0.6)"
1272
+ },
1273
+ "title": {
1274
+ "default": "lch(97.5 0 0)"
1237
1275
  }
1238
1276
  }
1239
1277
  },