File tree Expand file tree Collapse file tree 6 files changed +707
-628
lines changed
Expand file tree Collapse file tree 6 files changed +707
-628
lines changed Original file line number Diff line number Diff line change 55 ``` bash
66 npm create vite my-project-name -- --template react-ts
77 cd my-project-name
8- npm install react@17 react-dom@17 @kaspersky/icons @kaspersky/components
9- npm install -D @types/react@17 @types/react-dom@17 less antd@4.18
8+ npm install react@17 react-dom@17 @kaspersky/hexa-ui- icons @kaspersky/hexa-ui --legacy-peer-deps
9+ npm install -D @types/react@17 @types/react-dom@17 less antd@4.18 --legacy-peer-deps
1010 ```
1111
12122. Add this to ` vite.config.ts` for correct ` less` work:
5353 ` ` ` typescript
5454 import { useState } from ' react'
5555
56- import { ConfigProvider } from ' @kaspersky/components /design-system/context/provider'
57- import { GlobalStyle } from ' @kaspersky/components /design-system/global-style'
58- import { ThemeKey } from ' @kaspersky/components /design-system'
59- import { LangVariants } from ' @kaspersky/components /helpers/localization/types'
56+ import { ConfigProvider } from ' @kaspersky/hexa-ui /design-system/context/provider'
57+ import { GlobalStyle } from ' @kaspersky/hexa-ui /design-system/global-style'
58+ import { ThemeKey } from ' @kaspersky/hexa-ui /design-system'
59+ import { LangVariants } from ' @kaspersky/hexa-ui /helpers/localization/types'
6060
61- import { Notification, H1 } from ' @kaspersky/components '
61+ import { Notification, H1 } from ' @kaspersky/hexa-ui '
6262
6363 function App() {
6464 const [themeKey] = useState< ThemeKey>( ThemeKey.Light)
6767 < ConfigProvider theme={themeKey} locale={LangVariants.EnUs}>
6868 < GlobalStyle />
6969 < Notification/>
70- < H1> Hi there! I am using @kaspersky/components ! < /H1>
70+ < H1> Hi there! I am using @kaspersky/hexa-ui ! < /H1>
7171 < /ConfigProvider>
7272 )
7373 }
You can’t perform that action at this time.
0 commit comments