@clickhouse/click-ui 0.0.0
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/.eslintrc.cjs +32 -0
- package/.github/workflows/deployment.yml +34 -0
- package/.storybook/main.ts +18 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.tsx +67 -0
- package/README.md +11 -0
- package/app/.babelrc +27 -0
- package/app/.eslintrc.json +6 -0
- package/app/.storybook/main.ts +17 -0
- package/app/.storybook/preview.tsx +26 -0
- package/app/README.md +38 -0
- package/app/next.config.js +6 -0
- package/app/package-lock.json +28711 -0
- package/app/package.json +44 -0
- package/app/public/favicon.ico +0 -0
- package/app/public/next.svg +1 -0
- package/app/public/vercel.svg +1 -0
- package/app/src/assets/RightArrow/right-arrow.tsx +17 -0
- package/app/src/assets/S3Logo/s3-logo.tsx +31 -0
- package/app/src/assets/amazon_s3.svg +9 -0
- package/app/src/assets/arrow.svg +3 -0
- package/app/src/globals.d.ts +4 -0
- package/app/src/pages/_app.tsx +8 -0
- package/app/src/pages/_document.tsx +17 -0
- package/app/src/pages/api/hello.ts +13 -0
- package/app/src/pages/index.tsx +141 -0
- package/app/src/pages/label.tsx +27 -0
- package/app/src/stories/assets/code-brackets.svg +1 -0
- package/app/src/stories/assets/colors.svg +1 -0
- package/app/src/stories/assets/comments.svg +1 -0
- package/app/src/stories/assets/direction.svg +1 -0
- package/app/src/stories/assets/flow.svg +1 -0
- package/app/src/stories/assets/plugin.svg +1 -0
- package/app/src/stories/assets/repo.svg +1 -0
- package/app/src/stories/assets/stackalt.svg +1 -0
- package/app/src/styles/Home.module.css +235 -0
- package/app/src/styles/globals.css +111 -0
- package/app/src/styles/types.ts +1031 -0
- package/app/src/styles/variables.classic.css +16 -0
- package/app/src/styles/variables.classic.json +31 -0
- package/app/src/styles/variables.css +763 -0
- package/app/src/styles/variables.dark.css +135 -0
- package/app/src/styles/variables.dark.json +339 -0
- package/app/src/styles/variables.json +1029 -0
- package/app/src/styles/variables.light.css +203 -0
- package/app/src/styles/variables.light.json +478 -0
- package/app/tokens/themes/$metadata.json +9 -0
- package/app/tokens/themes/$themes.json +1 -0
- package/app/tokens/themes/classic.json +58 -0
- package/app/tokens/themes/component.json +868 -0
- package/app/tokens/themes/dark.json +937 -0
- package/app/tokens/themes/light.json +1380 -0
- package/app/tokens/themes/primitives.json +859 -0
- package/app/tsconfig.json +23 -0
- package/build-tokens.js +131 -0
- package/index.html +17 -0
- package/jest.config.ts +11 -0
- package/package.json +77 -0
- package/public/vite.svg +1 -0
- package/src/App.css +1 -0
- package/src/App.module.css +235 -0
- package/src/App.tsx +154 -0
- package/src/assets/RightArrow/RightArrow.tsx +17 -0
- package/src/assets/S3Logo/S3Logo.tsx +31 -0
- package/src/assets/react.svg +1 -0
- package/src/components/Accordion/Accordion.stories.tsx +78 -0
- package/src/components/Accordion/Accordion.test.tsx +46 -0
- package/src/components/Accordion/Accordion.tsx +118 -0
- package/src/components/Badge/Badge.stories.ts +14 -0
- package/src/components/Badge/Badge.test.tsx +11 -0
- package/src/components/Badge/Badge.tsx +24 -0
- package/src/components/BigStat/BigStat.stories.ts +15 -0
- package/src/components/BigStat/BigStat.tsx +37 -0
- package/src/components/Button/Button.stories.ts +82 -0
- package/src/components/Button/Button.test.tsx +32 -0
- package/src/components/Button/Button.tsx +97 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.ts +14 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +78 -0
- package/src/components/Card/Card.stories.ts +19 -0
- package/src/components/Card/Card.tsx +107 -0
- package/src/components/FormField/FormField.stories.ts +14 -0
- package/src/components/FormField/FormField.tsx +22 -0
- package/src/components/Icon/Icon.stories.ts +46 -0
- package/src/components/Icon/Icon.tsx +90 -0
- package/src/components/Icon/types.ts +18 -0
- package/src/components/IconButton/IconButton.stories.ts +16 -0
- package/src/components/IconButton/IconButton.tsx +94 -0
- package/src/components/SidebarNavigationItem/SidebarNavigationItem.stories.tsx +28 -0
- package/src/components/SidebarNavigationItem/SidebarNavigationItem.tsx +112 -0
- package/src/components/Switch/Switch.stories.ts +14 -0
- package/src/components/Switch/Switch.tsx +106 -0
- package/src/components/Tabs/Tabs.stories.tsx +71 -0
- package/src/components/Tabs/Tabs.test.tsx +86 -0
- package/src/components/Tabs/Tabs.tsx +82 -0
- package/src/components/icons/ChatIcon.tsx +22 -0
- package/src/components/icons/ChevronDown.tsx +6 -0
- package/src/components/icons/ChevronRight.tsx +20 -0
- package/src/components/icons/DatabaseIcon.tsx +33 -0
- package/src/components/icons/FilterIcon.tsx +24 -0
- package/src/components/icons/Flags/EuropeanUnion.tsx +174 -0
- package/src/components/icons/Flags/Germany.tsx +25 -0
- package/src/components/icons/Flags/India.tsx +48 -0
- package/src/components/icons/Flags/Ireland.tsx +32 -0
- package/src/components/icons/Flags/Netherlands.tsx +29 -0
- package/src/components/icons/Flags/Singapore.tsx +43 -0
- package/src/components/icons/Flags/UnitedKingdom.tsx +32 -0
- package/src/components/icons/Flags/UnitedStates.tsx +26 -0
- package/src/components/icons/Flags/index.tsx +46 -0
- package/src/components/icons/HistoryIcon.tsx +28 -0
- package/src/components/icons/Icons.mdx +36 -0
- package/src/components/icons/InsertRowIcon.tsx +36 -0
- package/src/components/icons/SortAltIcon.tsx +24 -0
- package/src/components/icons/UserIcon.tsx +17 -0
- package/src/components/icons/UsersIcon.tsx +43 -0
- package/src/components/index.ts +14 -0
- package/src/components/types.ts +1 -0
- package/src/index.css +9 -0
- package/src/index.ts +2 -0
- package/src/main.tsx +11 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/styles/Home.module.css +235 -0
- package/src/styles/globals.css +111 -0
- package/src/styles/types.ts +1669 -0
- package/src/styles/variables.classic.css +16 -0
- package/src/styles/variables.classic.json +31 -0
- package/src/styles/variables.css +763 -0
- package/src/styles/variables.dark.css +135 -0
- package/src/styles/variables.dark.json +576 -0
- package/src/styles/variables.json +1667 -0
- package/src/styles/variables.light.css +203 -0
- package/src/styles/variables.light.json +789 -0
- package/src/theme/index.ts +22 -0
- package/src/theme/theme.tsx +28 -0
- package/src/vite-env.d.ts +1 -0
- package/tokens/themes/$metadata.json +9 -0
- package/tokens/themes/$themes.json +1 -0
- package/tokens/themes/classic.json +58 -0
- package/tokens/themes/component.json +1567 -0
- package/tokens/themes/dark.json +1450 -0
- package/tokens/themes/light.json +2059 -0
- package/tokens/themes/primitives.json +863 -0
- package/tsconfig.json +27 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +38 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
|
|
8
|
+
/* Bundler mode */
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowImportingTsExtensions": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
|
+
|
|
16
|
+
/* Linting */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": ["./src/*"],
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["src"],
|
|
26
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
27
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import react from "@vitejs/plugin-react";
|
|
3
|
+
import path, { resolve } from "path";
|
|
4
|
+
|
|
5
|
+
// https://vitejs.dev/config/
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [
|
|
8
|
+
react({
|
|
9
|
+
babel: {
|
|
10
|
+
plugins: [["babel-plugin-styled-components", { displayName: false }]],
|
|
11
|
+
|
|
12
|
+
env: {
|
|
13
|
+
development: {
|
|
14
|
+
plugins: [
|
|
15
|
+
["babel-plugin-styled-components", { displayName: true }],
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}),
|
|
21
|
+
],
|
|
22
|
+
resolve: {
|
|
23
|
+
alias: {
|
|
24
|
+
"@": path.resolve(__dirname, "./src"),
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
build: {
|
|
28
|
+
lib: {
|
|
29
|
+
entry: resolve(__dirname, "src/index.ts"),
|
|
30
|
+
fileName: "index",
|
|
31
|
+
formats: ["cjs", "es"],
|
|
32
|
+
},
|
|
33
|
+
rollupOptions: {
|
|
34
|
+
// Add _all_ external dependencies here
|
|
35
|
+
external: ["react"],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
});
|