@clickhouse/click-ui 0.0.234-sc-deprecation.3 → 0.0.234-sc-deprecation.5
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.
- package/README.md +178 -15
- package/bin/click-ui.js +57 -0
- package/bin/commands/init.js +151 -0
- package/dist/click-ui.bundled.es.js +787 -773
- package/dist/click-ui.bundled.umd.js +2 -2
- package/dist/click-ui.es.js +787 -773
- package/dist/click-ui.umd.js +2 -2
- package/dist/theme/types.d.ts +4 -3
- package/package.json +13 -6
package/dist/theme/types.d.ts
CHANGED
|
@@ -10,11 +10,12 @@ export type ConfigThemeValues = Theme | NestedJSONObject;
|
|
|
10
10
|
export type DeepPartial<T> = {
|
|
11
11
|
[P in keyof T]?: T[P] extends object ? T[P] extends (infer U)[] ? DeepPartial<U>[] : DeepPartial<T[P]> : T[P];
|
|
12
12
|
};
|
|
13
|
+
type FlexibleTheme = DeepPartial<Theme> & Record<string, string | number | NestedJSONObject>;
|
|
13
14
|
export interface ThemeConfig {
|
|
14
|
-
theme?:
|
|
15
|
+
theme?: FlexibleTheme;
|
|
15
16
|
systemModeOverrides?: {
|
|
16
|
-
light?:
|
|
17
|
-
dark?:
|
|
17
|
+
light?: FlexibleTheme;
|
|
18
|
+
dark?: FlexibleTheme;
|
|
18
19
|
};
|
|
19
20
|
storageKey?: string;
|
|
20
21
|
enableSystemMode?: boolean;
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickhouse/click-ui",
|
|
3
|
-
"version": "0.0.234-sc-deprecation.
|
|
3
|
+
"version": "0.0.234-sc-deprecation.5",
|
|
4
4
|
"description": "Official ClickHouse design system react library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"bin"
|
|
9
10
|
],
|
|
11
|
+
"bin": {
|
|
12
|
+
"click-ui": "./bin/click-ui.js"
|
|
13
|
+
},
|
|
10
14
|
"exports": {
|
|
11
15
|
".": {
|
|
12
16
|
"types": "./dist/index.d.ts",
|
|
@@ -17,6 +21,9 @@
|
|
|
17
21
|
"types": "./dist/index.d.ts",
|
|
18
22
|
"import": "./dist/click-ui.bundled.es.js",
|
|
19
23
|
"require": "./dist/click-ui.bundled.umd.js"
|
|
24
|
+
},
|
|
25
|
+
"./theme": {
|
|
26
|
+
"types": "./dist/theme/index.d.ts"
|
|
20
27
|
}
|
|
21
28
|
},
|
|
22
29
|
"main": "./dist/click-ui.umd.js",
|
|
@@ -65,11 +72,11 @@
|
|
|
65
72
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
66
73
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
67
74
|
"@radix-ui/react-separator": "^1.0.3",
|
|
75
|
+
"@radix-ui/react-switch": "^1.0.2",
|
|
68
76
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
69
77
|
"@radix-ui/react-toast": "^1.1.5",
|
|
70
78
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
71
79
|
"clsx": "^2.1.1",
|
|
72
|
-
"@radix-ui/react-switch": "^1.0.2",
|
|
73
80
|
"react-sortablejs": "^6.1.4",
|
|
74
81
|
"react-syntax-highlighter": "^15.5.0",
|
|
75
82
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
@@ -113,8 +120,8 @@
|
|
|
113
120
|
"watch": "^1.0.2"
|
|
114
121
|
},
|
|
115
122
|
"peerDependencies": {
|
|
116
|
-
"dayjs": "^1.11.
|
|
117
|
-
"react": "^18.2.0",
|
|
118
|
-
"react-dom": "^18.2.0"
|
|
123
|
+
"dayjs": "^1.11.18",
|
|
124
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
125
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
119
126
|
}
|
|
120
127
|
}
|