@clickhouse/click-ui 0.0.200 → 0.0.201

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.
@@ -849,6 +849,57 @@ declare const _default: {
849
849
  }
850
850
  }
851
851
  },
852
+ "datePicker": {
853
+ "dateOption": {
854
+ "color": {
855
+ "label": {
856
+ "default": "#161517",
857
+ "hover": "#161517",
858
+ "active": "#ffffff",
859
+ "disabled": "#a0a0a0",
860
+ "range": "#161517"
861
+ },
862
+ "background": {
863
+ "default": "#ffffff",
864
+ "hover": "#ffffff",
865
+ "active": "#151515",
866
+ "disabled": "#ffffff",
867
+ "range": "#e6e7e9"
868
+ },
869
+ "stroke": {
870
+ "default": "#ffffff",
871
+ "hover": "#151515",
872
+ "active": "#151515",
873
+ "disabled": "#ffffff",
874
+ "range": "#e6e7e9"
875
+ }
876
+ }
877
+ },
878
+ "color": {
879
+ "title": {
880
+ "default": "lch(11.1 1.37 305)"
881
+ },
882
+ "daytitle": {
883
+ "default": "#696e79"
884
+ }
885
+ }
886
+ },
887
+ "dialog": {
888
+ "color": {
889
+ "background": {
890
+ "default": "#ffffff"
891
+ },
892
+ "title": {
893
+ "default": "lch(11.1 1.37 305)"
894
+ },
895
+ "description": {
896
+ "default": "#696e79"
897
+ },
898
+ "opaqueBackground": {
899
+ "default": "lch(6.77 0 0 / 0.75)"
900
+ }
901
+ }
902
+ },
852
903
  "field": {
853
904
  "color": {
854
905
  "background": {
@@ -898,6 +949,64 @@ declare const _default: {
898
949
  }
899
950
  }
900
951
  },
952
+ "fileUpload": {
953
+ "sm": {
954
+ "color": {
955
+ "icon": {
956
+ "default": "#696e79"
957
+ }
958
+ }
959
+ },
960
+ "md": {
961
+ "color": {
962
+ "icon": {
963
+ "default": "#161517"
964
+ }
965
+ }
966
+ },
967
+ "color": {
968
+ "background": {
969
+ "default": "#ffffff",
970
+ "hover": "#ffffff",
971
+ "active": "rgb(96.6% 96.9% 98.1%)",
972
+ "error": "rgb(100% 13.7% 13.7% / 0.1)"
973
+ },
974
+ "stroke": {
975
+ "default": "rgb(90.7% 91.1% 91.8%)",
976
+ "hover": "rgb(90.7% 91.1% 91.8%)",
977
+ "active": "#b3b6bd",
978
+ "error": "rgba(0,0,0,0)"
979
+ },
980
+ "title": {
981
+ "default": "#161517",
982
+ "hover": "#161517",
983
+ "active": "#161517",
984
+ "error": "#c10000"
985
+ },
986
+ "description": {
987
+ "default": "#696e79",
988
+ "hover": "#696e79",
989
+ "active": "#696e79",
990
+ "error": "#c10000"
991
+ }
992
+ }
993
+ },
994
+ "flyout": {
995
+ "color": {
996
+ "background": {
997
+ "default": "#ffffff"
998
+ },
999
+ "title": {
1000
+ "default": "lch(11.1 1.37 305)"
1001
+ },
1002
+ "description": {
1003
+ "default": "#696e79"
1004
+ },
1005
+ "stroke": {
1006
+ "default": "#e6e7e9"
1007
+ }
1008
+ }
1009
+ },
901
1010
  "genericMenu": {
902
1011
  "item": {
903
1012
  "color": {
@@ -971,6 +1080,88 @@ declare const _default: {
971
1080
  }
972
1081
  }
973
1082
  },
1083
+ "grid": {
1084
+ "header": {
1085
+ "cell": {
1086
+ "color": {
1087
+ "background": {
1088
+ "default": "#f6f7fa",
1089
+ "selectIndirect": "lch(95.6 5.84 264)",
1090
+ "selectDirect": "lch(93.2 7.7 264)"
1091
+ },
1092
+ "title": {
1093
+ "default": "#696e79",
1094
+ "selectIndirect": "#161517",
1095
+ "selectDirect": "#161517"
1096
+ },
1097
+ "stroke": {
1098
+ "default": "lch(89.3 1.07 266)",
1099
+ "selectIndirect": "lch(91.8 7.59 264)",
1100
+ "selectDirect": "lch(86.1 15.1 266)"
1101
+ }
1102
+ }
1103
+ }
1104
+ },
1105
+ "body": {
1106
+ "cell": {
1107
+ "color": {
1108
+ "background": {
1109
+ "default": "#ffffff",
1110
+ "selectIndirect": "lch(94.1 7.78 264 / 0.2)",
1111
+ "selectDirect": "lch(94.1 7.78 264 / 0.2)"
1112
+ },
1113
+ "stroke": {
1114
+ "default": "#e6e7e9",
1115
+ "selectIndirect": "lch(70.7 12.4 266)",
1116
+ "selectDirect": "#437EEF"
1117
+ },
1118
+ "text": {
1119
+ "default": "lch(7.17 1.44 305)",
1120
+ "selectIndirect": "#161517",
1121
+ "selectDirect": "#161517"
1122
+ }
1123
+ }
1124
+ }
1125
+ },
1126
+ "global": {
1127
+ "color": {
1128
+ "stroke": {
1129
+ "default": "#e6e7e9"
1130
+ },
1131
+ "background": {
1132
+ "default": "#ffffff"
1133
+ }
1134
+ }
1135
+ }
1136
+ },
1137
+ "icon": {
1138
+ "color": {
1139
+ "background": {
1140
+ "default": "rgba(0,0,0,0)",
1141
+ "success": "rgb(20% 100% 26.7% / 0.1)",
1142
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1143
+ "danger": "rgb(100% 13.7% 13.7% / 0.1)",
1144
+ "info": "rgb(26.3% 49.4% 93.7% / 0.1)",
1145
+ "warning": "rgb(100% 46.7% 16.1% / 0.1)"
1146
+ },
1147
+ "text": {
1148
+ "default": "rgba(0,0,0,0)",
1149
+ "success": "#008A0B",
1150
+ "neutral": "#53575f",
1151
+ "danger": "#c10000",
1152
+ "info": "#437EEF",
1153
+ "warning": "#A33C00"
1154
+ },
1155
+ "stroke": {
1156
+ "default": "rgba(0,0,0,0)",
1157
+ "success": "rgb(20% 100% 26.7% / 0.05)",
1158
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1159
+ "danger": "rgb(100% 13.7% 13.7% / 0.05)",
1160
+ "info": "rgb(26.3% 49.4% 93.7% / 0.05)",
1161
+ "warning": "rgb(100% 46.7% 16.1% / 0.05)"
1162
+ }
1163
+ }
1164
+ },
974
1165
  "image": {
975
1166
  "color": {
976
1167
  "stroke": "#161517"
@@ -1393,155 +1584,6 @@ declare const _default: {
1393
1584
  }
1394
1585
  }
1395
1586
  },
1396
- "dialog": {
1397
- "color": {
1398
- "background": {
1399
- "default": "#ffffff"
1400
- },
1401
- "title": {
1402
- "default": "lch(11.1 1.37 305)"
1403
- },
1404
- "description": {
1405
- "default": "#696e79"
1406
- },
1407
- "opaqueBackground": {
1408
- "default": "lch(6.77 0 0 / 0.75)"
1409
- }
1410
- }
1411
- },
1412
- "flyout": {
1413
- "color": {
1414
- "background": {
1415
- "default": "#ffffff"
1416
- },
1417
- "title": {
1418
- "default": "lch(11.1 1.37 305)"
1419
- },
1420
- "description": {
1421
- "default": "#696e79"
1422
- },
1423
- "stroke": {
1424
- "default": "#e6e7e9"
1425
- }
1426
- }
1427
- },
1428
- "grid": {
1429
- "header": {
1430
- "cell": {
1431
- "color": {
1432
- "background": {
1433
- "default": "#f6f7fa",
1434
- "selectIndirect": "lch(95.6 5.84 264)",
1435
- "selectDirect": "lch(93.2 7.7 264)"
1436
- },
1437
- "title": {
1438
- "default": "#696e79",
1439
- "selectIndirect": "#161517",
1440
- "selectDirect": "#161517"
1441
- },
1442
- "stroke": {
1443
- "default": "lch(89.3 1.07 266)",
1444
- "selectIndirect": "lch(91.8 7.59 264)",
1445
- "selectDirect": "lch(86.1 15.1 266)"
1446
- }
1447
- }
1448
- }
1449
- },
1450
- "body": {
1451
- "cell": {
1452
- "color": {
1453
- "background": {
1454
- "default": "#ffffff",
1455
- "selectIndirect": "lch(94.1 7.78 264 / 0.2)",
1456
- "selectDirect": "lch(94.1 7.78 264 / 0.2)"
1457
- },
1458
- "stroke": {
1459
- "default": "#e6e7e9",
1460
- "selectIndirect": "lch(70.7 12.4 266)",
1461
- "selectDirect": "#437EEF"
1462
- },
1463
- "text": {
1464
- "default": "lch(7.17 1.44 305)",
1465
- "selectIndirect": "#161517",
1466
- "selectDirect": "#161517"
1467
- }
1468
- }
1469
- }
1470
- },
1471
- "global": {
1472
- "color": {
1473
- "stroke": {
1474
- "default": "#e6e7e9"
1475
- },
1476
- "background": {
1477
- "default": "#ffffff"
1478
- }
1479
- }
1480
- }
1481
- },
1482
- "icon": {
1483
- "color": {
1484
- "background": {
1485
- "default": "rgba(0,0,0,0)",
1486
- "success": "rgb(20% 100% 26.7% / 0.1)",
1487
- "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1488
- "danger": "rgb(100% 13.7% 13.7% / 0.1)",
1489
- "info": "rgb(26.3% 49.4% 93.7% / 0.1)",
1490
- "warning": "rgb(100% 46.7% 16.1% / 0.1)"
1491
- },
1492
- "text": {
1493
- "default": "rgba(0,0,0,0)",
1494
- "success": "#008A0B",
1495
- "neutral": "#53575f",
1496
- "danger": "#c10000",
1497
- "info": "#437EEF",
1498
- "warning": "#A33C00"
1499
- },
1500
- "stroke": {
1501
- "default": "rgba(0,0,0,0)",
1502
- "success": "rgb(20% 100% 26.7% / 0.05)",
1503
- "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1504
- "danger": "rgb(100% 13.7% 13.7% / 0.05)",
1505
- "info": "rgb(26.3% 49.4% 93.7% / 0.05)",
1506
- "warning": "rgb(100% 46.7% 16.1% / 0.05)"
1507
- }
1508
- }
1509
- },
1510
- "datePicker": {
1511
- "dateOption": {
1512
- "color": {
1513
- "label": {
1514
- "default": "#161517",
1515
- "hover": "#161517",
1516
- "active": "#ffffff",
1517
- "disabled": "#a0a0a0",
1518
- "range": "#161517"
1519
- },
1520
- "background": {
1521
- "default": "#ffffff",
1522
- "hover": "#ffffff",
1523
- "active": "#151515",
1524
- "disabled": "#ffffff",
1525
- "range": "#e6e7e9"
1526
- },
1527
- "stroke": {
1528
- "default": "#ffffff",
1529
- "hover": "#151515",
1530
- "active": "#151515",
1531
- "disabled": "#ffffff",
1532
- "range": "#e6e7e9"
1533
- }
1534
- }
1535
- },
1536
- "color": {
1537
- "title": {
1538
- "default": "lch(11.1 1.37 305)"
1539
- },
1540
- "daytitle": {
1541
- "default": "#696e79"
1542
- }
1543
- }
1544
- },
1545
1587
  "global": {
1546
1588
  "color": {
1547
1589
  "background": {
@@ -0,0 +1,13 @@
1
+ /**
2
+ * truncateFilename
3
+ *
4
+ * On occasion, we may be dealing with filenames - which could be very large
5
+ * and not practical to display in the user interface. This utility func
6
+ * ensures that we return a name that looks recognisable and fits the
7
+ * component using the data.
8
+ *
9
+ * @param filename
10
+ * @param maxLength
11
+ * @param delimiter
12
+ */
13
+ export declare const truncateFilename: (filename: string, maxLength?: number, delimiter?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.200",
3
+ "version": "0.0.201",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",