@clickhouse/click-ui 0.0.42 → 0.0.44

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.
@@ -2,11 +2,11 @@ import { HTMLAttributes, ReactNode } from "react";
2
2
  export interface ButtonGroupElementProps extends Omit<HTMLAttributes<HTMLButtonElement>, "children"> {
3
3
  value: string;
4
4
  label?: ReactNode;
5
- fillWidth?: boolean;
6
5
  }
7
6
  export interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
8
7
  options: Array<ButtonGroupElementProps>;
9
8
  selected?: string;
10
9
  onClick?: (value: string) => void;
10
+ fillWidth?: boolean;
11
11
  }
12
- export declare const ButtonGroup: ({ options, selected, onClick, ...props }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ButtonGroup: ({ options, selected, fillWidth, onClick, ...props }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1784,6 +1784,18 @@ export interface Theme {
1784
1784
  "title": {
1785
1785
  "default": string;
1786
1786
  };
1787
+ "cell": {
1788
+ "space": {
1789
+ "md": {
1790
+ "y": string;
1791
+ "x": string;
1792
+ };
1793
+ "sm": {
1794
+ "y": string;
1795
+ "x": string;
1796
+ };
1797
+ };
1798
+ };
1787
1799
  "color": {
1788
1800
  "background": {
1789
1801
  "default": string;
@@ -1815,6 +1827,29 @@ export interface Theme {
1815
1827
  "radii": {
1816
1828
  "all": string;
1817
1829
  };
1830
+ "body": {
1831
+ "cell": {
1832
+ "space": {
1833
+ "md": {
1834
+ "y": string;
1835
+ "x": string;
1836
+ };
1837
+ "sm": {
1838
+ "y": string;
1839
+ "x": string;
1840
+ };
1841
+ };
1842
+ };
1843
+ };
1844
+ "mobile": {
1845
+ "cell": {
1846
+ "space": {
1847
+ "y": string;
1848
+ "x": string;
1849
+ "gap": string;
1850
+ };
1851
+ };
1852
+ };
1818
1853
  "row": {
1819
1854
  "color": {
1820
1855
  "background": {
@@ -2110,6 +2145,47 @@ export interface Theme {
2110
2145
  };
2111
2146
  };
2112
2147
  };
2148
+ "grid": {
2149
+ "header": {
2150
+ "cell": {
2151
+ "space": {
2152
+ "y": string;
2153
+ "x": string;
2154
+ };
2155
+ };
2156
+ };
2157
+ "body": {
2158
+ "cell": {
2159
+ "space": {
2160
+ "y": string;
2161
+ "x": string;
2162
+ };
2163
+ };
2164
+ };
2165
+ "color": {
2166
+ "background": {
2167
+ "header": {
2168
+ "default": string;
2169
+ };
2170
+ "row": {
2171
+ "default": string;
2172
+ };
2173
+ };
2174
+ "text": {
2175
+ "header": {
2176
+ "default": string;
2177
+ };
2178
+ "row": {
2179
+ "default": string;
2180
+ };
2181
+ };
2182
+ "stroke": {
2183
+ "cell": {
2184
+ "stroke": string;
2185
+ };
2186
+ };
2187
+ };
2188
+ };
2113
2189
  "global": {
2114
2190
  "color": {
2115
2191
  "background": {
@@ -2165,31 +2241,6 @@ export interface Theme {
2165
2241
  };
2166
2242
  };
2167
2243
  };
2168
- "grid": {
2169
- "color": {
2170
- "background": {
2171
- "header": {
2172
- "default": string;
2173
- };
2174
- "row": {
2175
- "default": string;
2176
- };
2177
- };
2178
- "text": {
2179
- "header": {
2180
- "default": string;
2181
- };
2182
- "row": {
2183
- "default": string;
2184
- };
2185
- };
2186
- "stroke": {
2187
- "cell": {
2188
- "stroke": string;
2189
- };
2190
- };
2191
- };
2192
- };
2193
2244
  "storybook": {
2194
2245
  "global": {
2195
2246
  "background": string;
@@ -2244,6 +2295,29 @@ export interface Theme {
2244
2295
  "shadow": {
2245
2296
  "default": string;
2246
2297
  };
2298
+ "feedback": {
2299
+ "info": {
2300
+ "background": string;
2301
+ "foreground": string;
2302
+ };
2303
+ "success": {
2304
+ "background": string;
2305
+ "foreground": string;
2306
+ };
2307
+ "warning": {
2308
+ "background": string;
2309
+ "foreground": string;
2310
+ };
2311
+ "danger": {
2312
+ "background": string;
2313
+ "foreground": string;
2314
+ };
2315
+ "neutral": {
2316
+ "background": string;
2317
+ "foreground": string;
2318
+ "stroke": string;
2319
+ };
2320
+ };
2247
2321
  };
2248
2322
  };
2249
2323
  "palette": {
@@ -587,13 +587,36 @@ declare const _default: {
587
587
  "intense": "#b3b6bd"
588
588
  },
589
589
  "accent": {
590
- "default": "#151515"
590
+ "default": "#FFC029"
591
591
  },
592
592
  "outline": {
593
593
  "default": "#C78F0F"
594
594
  },
595
595
  "shadow": {
596
596
  "default": "lch(6.77 0 0 / 0.15)"
597
+ },
598
+ "feedback": {
599
+ "info": {
600
+ "background": "#dae6fc",
601
+ "foreground": "#135be6"
602
+ },
603
+ "success": {
604
+ "background": "#e0f8e7",
605
+ "foreground": "#15632b"
606
+ },
607
+ "warning": {
608
+ "background": "#ffedd8",
609
+ "foreground": "#9e5600"
610
+ },
611
+ "danger": {
612
+ "background": "#ffdddd",
613
+ "foreground": "#c10000"
614
+ },
615
+ "neutral": {
616
+ "background": "#e6e7e9",
617
+ "foreground": "#53575f",
618
+ "stroke": "lch(91.6 1.1 266)"
619
+ }
597
620
  }
598
621
  }
599
622
  }
@@ -1075,6 +1075,31 @@ declare const _default: {
1075
1075
  }
1076
1076
  }
1077
1077
  },
1078
+ "grid": {
1079
+ "color": {
1080
+ "background": {
1081
+ "header": {
1082
+ "default": "lch(16.1 0 0 / 0.7)"
1083
+ },
1084
+ "row": {
1085
+ "default": "#1F1F1C"
1086
+ }
1087
+ },
1088
+ "text": {
1089
+ "header": {
1090
+ "default": "#b3b6bd"
1091
+ },
1092
+ "row": {
1093
+ "default": "#ffffff"
1094
+ }
1095
+ },
1096
+ "stroke": {
1097
+ "cell": {
1098
+ "stroke": "lch(27.5 0 0 / 0.3)"
1099
+ }
1100
+ }
1101
+ }
1102
+ },
1078
1103
  "global": {
1079
1104
  "color": {
1080
1105
  "background": {
@@ -1130,31 +1155,6 @@ declare const _default: {
1130
1155
  }
1131
1156
  }
1132
1157
  },
1133
- "grid": {
1134
- "color": {
1135
- "background": {
1136
- "header": {
1137
- "default": "lch(16.1 0 0 / 0.7)"
1138
- },
1139
- "row": {
1140
- "default": "#1F1F1C"
1141
- }
1142
- },
1143
- "text": {
1144
- "header": {
1145
- "default": "#b3b6bd"
1146
- },
1147
- "row": {
1148
- "default": "#ffffff"
1149
- }
1150
- },
1151
- "stroke": {
1152
- "cell": {
1153
- "stroke": "lch(27.5 0 0 / 0.3)"
1154
- }
1155
- }
1156
- }
1157
- },
1158
1158
  "storybook": {
1159
1159
  "global": {
1160
1160
  "background": "rgb(27,28,29)"
@@ -1190,6 +1190,29 @@ declare const _default: {
1190
1190
  },
1191
1191
  "shadow": {
1192
1192
  "default": "lch(6.77 0 0 / 0.6)"
1193
+ },
1194
+ "feedback": {
1195
+ "info": {
1196
+ "background": "#092e73",
1197
+ "foreground": "#91b3f6"
1198
+ },
1199
+ "success": {
1200
+ "background": "#0e421d",
1201
+ "foreground": "#81e59d"
1202
+ },
1203
+ "warning": {
1204
+ "background": "#4f2b00",
1205
+ "foreground": "#ff9416"
1206
+ },
1207
+ "danger": {
1208
+ "background": "#610000",
1209
+ "foreground": "#ff7575"
1210
+ },
1211
+ "neutral": {
1212
+ "background": "#414141",
1213
+ "foreground": "#c0c0c0",
1214
+ "stroke": "lch(27.5 0 0 / 0.3)"
1215
+ }
1193
1216
  }
1194
1217
  }
1195
1218
  }
@@ -1784,6 +1784,18 @@ declare const _default: {
1784
1784
  "title": {
1785
1785
  "default": "500 0.75rem/1.5 \"Inter\", '\"SF Pro Display\"', -apple-system, BlinkMacSystemFont, '\"Segoe UI\"', Roboto, Oxygen, Ubuntu, Cantarell, '\"Open Sans\"', '\"Helvetica Neue\"', sans-serif;"
1786
1786
  },
1787
+ "cell": {
1788
+ "space": {
1789
+ "md": {
1790
+ "y": "0.75rem",
1791
+ "x": "1rem"
1792
+ },
1793
+ "sm": {
1794
+ "y": "0.5rem",
1795
+ "x": "1rem"
1796
+ }
1797
+ }
1798
+ },
1787
1799
  "color": {
1788
1800
  "background": {
1789
1801
  "default": "#f6f7fa"
@@ -1815,6 +1827,29 @@ declare const _default: {
1815
1827
  "radii": {
1816
1828
  "all": "0.25rem"
1817
1829
  },
1830
+ "body": {
1831
+ "cell": {
1832
+ "space": {
1833
+ "md": {
1834
+ "y": "1rem",
1835
+ "x": "1rem"
1836
+ },
1837
+ "sm": {
1838
+ "y": "0.5rem",
1839
+ "x": "1rem"
1840
+ }
1841
+ }
1842
+ }
1843
+ },
1844
+ "mobile": {
1845
+ "cell": {
1846
+ "space": {
1847
+ "y": "1rem",
1848
+ "x": "1rem",
1849
+ "gap": "0.5rem"
1850
+ }
1851
+ }
1852
+ },
1818
1853
  "row": {
1819
1854
  "color": {
1820
1855
  "background": {
@@ -2110,6 +2145,47 @@ declare const _default: {
2110
2145
  }
2111
2146
  }
2112
2147
  },
2148
+ "grid": {
2149
+ "header": {
2150
+ "cell": {
2151
+ "space": {
2152
+ "y": "0.438rem",
2153
+ "x": "0.5rem"
2154
+ }
2155
+ }
2156
+ },
2157
+ "body": {
2158
+ "cell": {
2159
+ "space": {
2160
+ "y": "0.25rem",
2161
+ "x": "0.5rem"
2162
+ }
2163
+ }
2164
+ },
2165
+ "color": {
2166
+ "background": {
2167
+ "header": {
2168
+ "default": "lch(97.2 1.57 272 / 0.7)"
2169
+ },
2170
+ "row": {
2171
+ "default": "#ffffff"
2172
+ }
2173
+ },
2174
+ "text": {
2175
+ "header": {
2176
+ "default": "#696e79"
2177
+ },
2178
+ "row": {
2179
+ "default": "#161517"
2180
+ }
2181
+ },
2182
+ "stroke": {
2183
+ "cell": {
2184
+ "stroke": "lch(91.6 1.1 266)"
2185
+ }
2186
+ }
2187
+ }
2188
+ },
2113
2189
  "global": {
2114
2190
  "color": {
2115
2191
  "background": {
@@ -2165,31 +2241,6 @@ declare const _default: {
2165
2241
  }
2166
2242
  }
2167
2243
  },
2168
- "grid": {
2169
- "color": {
2170
- "background": {
2171
- "header": {
2172
- "default": "lch(97.2 1.57 272 / 0.7)"
2173
- },
2174
- "row": {
2175
- "default": "#ffffff"
2176
- }
2177
- },
2178
- "text": {
2179
- "header": {
2180
- "default": "#696e79"
2181
- },
2182
- "row": {
2183
- "default": "#161517"
2184
- }
2185
- },
2186
- "stroke": {
2187
- "cell": {
2188
- "stroke": "lch(91.6 1.1 266)"
2189
- }
2190
- }
2191
- }
2192
- },
2193
2244
  "storybook": {
2194
2245
  "global": {
2195
2246
  "background": "#ffffff"
@@ -2243,6 +2294,29 @@ declare const _default: {
2243
2294
  },
2244
2295
  "shadow": {
2245
2296
  "default": "lch(6.77 0 0 / 0.15)"
2297
+ },
2298
+ "feedback": {
2299
+ "info": {
2300
+ "background": "#dae6fc",
2301
+ "foreground": "#135be6"
2302
+ },
2303
+ "success": {
2304
+ "background": "#e0f8e7",
2305
+ "foreground": "#15632b"
2306
+ },
2307
+ "warning": {
2308
+ "background": "#ffedd8",
2309
+ "foreground": "#9e5600"
2310
+ },
2311
+ "danger": {
2312
+ "background": "#ffdddd",
2313
+ "foreground": "#c10000"
2314
+ },
2315
+ "neutral": {
2316
+ "background": "#e6e7e9",
2317
+ "foreground": "#53575f",
2318
+ "stroke": "lch(91.6 1.1 266)"
2319
+ }
2246
2320
  }
2247
2321
  }
2248
2322
  },
@@ -1068,6 +1068,31 @@ declare const _default: {
1068
1068
  }
1069
1069
  }
1070
1070
  },
1071
+ "grid": {
1072
+ "color": {
1073
+ "background": {
1074
+ "header": {
1075
+ "default": "lch(97.2 1.57 272 / 0.7)"
1076
+ },
1077
+ "row": {
1078
+ "default": "#ffffff"
1079
+ }
1080
+ },
1081
+ "text": {
1082
+ "header": {
1083
+ "default": "#696e79"
1084
+ },
1085
+ "row": {
1086
+ "default": "#161517"
1087
+ }
1088
+ },
1089
+ "stroke": {
1090
+ "cell": {
1091
+ "stroke": "lch(91.6 1.1 266)"
1092
+ }
1093
+ }
1094
+ }
1095
+ },
1071
1096
  "global": {
1072
1097
  "color": {
1073
1098
  "background": {
@@ -1123,31 +1148,6 @@ declare const _default: {
1123
1148
  }
1124
1149
  }
1125
1150
  },
1126
- "grid": {
1127
- "color": {
1128
- "background": {
1129
- "header": {
1130
- "default": "lch(97.2 1.57 272 / 0.7)"
1131
- },
1132
- "row": {
1133
- "default": "#ffffff"
1134
- }
1135
- },
1136
- "text": {
1137
- "header": {
1138
- "default": "#696e79"
1139
- },
1140
- "row": {
1141
- "default": "#161517"
1142
- }
1143
- },
1144
- "stroke": {
1145
- "cell": {
1146
- "stroke": "lch(91.6 1.1 266)"
1147
- }
1148
- }
1149
- }
1150
- },
1151
1151
  "storybook": {
1152
1152
  "global": {
1153
1153
  "background": "#ffffff"
@@ -1183,6 +1183,29 @@ declare const _default: {
1183
1183
  },
1184
1184
  "shadow": {
1185
1185
  "default": "lch(6.77 0 0 / 0.15)"
1186
+ },
1187
+ "feedback": {
1188
+ "info": {
1189
+ "background": "#dae6fc",
1190
+ "foreground": "#135be6"
1191
+ },
1192
+ "success": {
1193
+ "background": "#e0f8e7",
1194
+ "foreground": "#15632b"
1195
+ },
1196
+ "warning": {
1197
+ "background": "#ffedd8",
1198
+ "foreground": "#9e5600"
1199
+ },
1200
+ "danger": {
1201
+ "background": "#ffdddd",
1202
+ "foreground": "#c10000"
1203
+ },
1204
+ "neutral": {
1205
+ "background": "#e6e7e9",
1206
+ "foreground": "#53575f",
1207
+ "stroke": "lch(91.6 1.1 266)"
1208
+ }
1186
1209
  }
1187
1210
  }
1188
1211
  }
@@ -5,7 +5,7 @@ declare module "styled-components" {
5
5
  interface DefaultTheme extends Theme {
6
6
  }
7
7
  }
8
- type CUIThemeType = Pick<Theme, "global" | "sizes">;
8
+ type CUIThemeType = Pick<Theme, "global" | "sizes" | "name">;
9
9
  declare const useCUITheme: () => CUIThemeType;
10
10
  export type { ThemeName, CUIThemeType };
11
11
  export { useCUITheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",