Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@salutejs/caldera-online
Advanced tools
Salute Design System / React UI kit for Caldera-online web applications
Реализация компонентов для создания веб-приложений.
Компоненты реализованы на typescript с помощью react и styled-components;
Использование данного пакета предполагает установку зависимостей: react
& react-dom
;
Использование styled-components
на проект необязательно, так же как и использование typescript
.
Но для того чтобы компоненты работали корректно необходимо установить styled-components
.
$ npm install --save react react-dom
$ npm install --save styled-components
$ npm install --save @salutejs/caldera-online @salutejs/caldera-online-themes
Создайте компонент для подключения глобальных стилей:
import { createGlobalStyle } from 'styled-components';
import { caldera_online__light } from '@salutejs/caldera-online-themes';
const ThemeStyle = createGlobalStyle(caldera_online__light);
export const GlobalStyle = () => (
<>
<ThemeStyle />
</>
);
В корне приложения вызовите компонент глобальных стилей GlobalStyle
:
src/index.tsx
.pages/_app.tsx
и подключите стили в нем.Для корректной работы server side rendering приложение нужно обернуть SSRProvider
(доступен в caldera-online);
Все компоненты доступны из папки components
или напрямую из пакета:
// App.tsx
import { Button } from '@salutejs/caldera-online';
import { textAccent } from '@salutejs/caldera-online-themes/tokens';
export const App = () => {
return (
<Button>Hello, Caldera Online!</Button>
<p style={{color: textAccent}}>
Token usage example
</p>
);
};
FAQs
Salute Design System / React UI kit for Caldera-online web applications
The npm package @salutejs/caldera-online receives a total of 80 weekly downloads. As such, @salutejs/caldera-online popularity was classified as not popular.
We found that @salutejs/caldera-online demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.