@clickhouse/click-ui 0.0.29 → 0.0.31
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 +7 -7
- package/dist/click-ui.es.js +11672 -9251
- package/dist/click-ui.umd.js +231 -268
- package/dist/components/Badge/Badge.d.ts +11 -6
- package/dist/components/CardPrimary/CardPrimary.d.ts +4 -3
- package/dist/components/ClickUIProvider/ClickUIProvider.d.ts +14 -0
- package/dist/components/EllipsisContent/EllipsisContent.d.ts +2 -0
- package/dist/components/Icon/IconCommon.d.ts +1 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconWrapper/IconWrapper.d.ts +12 -0
- package/dist/components/Logos/AWSMsk.d.ts +3 -0
- package/dist/components/Logos/types.d.ts +1 -1
- package/dist/components/Panel/Panel.d.ts +7 -7
- package/dist/components/Select/MultiSelect.d.ts +13 -0
- package/dist/components/Select/MultiSelectValue.d.ts +11 -0
- package/dist/components/Select/SingleSelect.d.ts +13 -0
- package/dist/components/Select/SingleSelectValue.d.ts +6 -0
- package/dist/components/Select/common/InternalSelect.d.ts +5 -0
- package/dist/components/Select/common/OptionContext.d.ts +13 -0
- package/dist/components/Select/common/SelectStyled.d.ts +2226 -0
- package/dist/components/Select/common/types.d.ts +74 -0
- package/dist/components/Select/common/useOption.d.ts +11 -0
- package/dist/components/Select/selectOptions.d.ts +2 -0
- package/dist/components/SidebarCollapsibleItem/SidebarCollapsibleItem.d.ts +1 -0
- package/dist/components/SidebarCollapsibleTitle/SidebarCollapsibleTitle.d.ts +2 -1
- package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +2 -0
- package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.d.ts +3 -1
- package/dist/components/SplitButton/SplitButton.d.ts +6 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/components/commonElement.d.ts +272 -0
- package/dist/components/icons/PlayInCircle.d.ts +3 -0
- package/dist/components/index.d.ts +7 -3
- package/dist/components/types.d.ts +4 -1
- package/dist/styles/variables.classic.json.d.ts +3 -3
- package/dist/styles/variables.dark.json.d.ts +3 -3
- package/dist/styles/variables.json.d.ts +3 -3
- package/dist/styles/variables.light.json.d.ts +3 -3
- package/dist/theme/index.d.ts +0 -2
- package/package.json +5 -3
- package/dist/components/Select/Select.d.ts +0 -43
- package/dist/components/Select/SelectContext.d.ts +0 -24
- package/dist/components/Select/useSelect.d.ts +0 -8
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@ Click UI has been tested in NextJS, Gatsby, and Vite. If you run into problems u
|
|
|
7
7
|
`npm i @clickhouse/click-ui`
|
|
8
8
|
or
|
|
9
9
|
`yarn add @clickhouse/click-ui`
|
|
10
|
-
2. Make sure to wrap your application in the Click UI `
|
|
10
|
+
2. Make sure to wrap your application in the Click UI `ClickUIProvider`, without doing this, you may run into issues with styled-components. Once thats done, you'll be able to import the individual components that you want to use on each page. Here's an example an `App.tsx` in NextJS.
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
import { Switch, Text, ThemeName,
|
|
13
|
+
import { Switch, Text, ThemeName, ClickUIProvider, Title } from '@clickhouse/click-ui'
|
|
14
14
|
|
|
15
15
|
function App() {
|
|
16
16
|
const [theme, setTheme] = useState<ThemeName>('dark')
|
|
@@ -20,25 +20,25 @@ function App() {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
<
|
|
23
|
+
<ClickUIProvider theme={theme} config={{tooltip:{ delayDuration: 0 }}}>
|
|
24
24
|
<Switch checked={theme === 'dark'} onClick={() => toggleTheme() } />
|
|
25
25
|
|
|
26
26
|
<Title type='h1'>Click UI Example</Title>
|
|
27
27
|
<Text>Welcome to Click UI. Get started here.</Text>
|
|
28
|
-
</
|
|
28
|
+
</ClickUIProvider>
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export default App
|
|
33
33
|
```
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
### To develop this library locally 🚀
|
|
38
38
|
1. Clone this repo, cd into the `click-ui` directory
|
|
39
|
-
2. To install dependencies, run `npm i`
|
|
39
|
+
2. To install dependencies, run `npm i`
|
|
40
40
|
3. To build the latest styles, run `npm run generate-tokens`
|
|
41
41
|
4. To run ClickUI locally, run `npm run dev` and navigate to https://localhost:5173
|
|
42
42
|
5. To run Storybook locally, run `npm run storybook` and navigate to https://localhost:6006
|
|
43
43
|
|
|
44
|
-
Enjoy!
|
|
44
|
+
Enjoy!
|