Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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 50 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.