![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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/plasma-typo @salutejs/plasma-tokens
Создайте компонент для подключения глобальных стилей:
import { createGlobalStyle } from 'styled-components';
import { standard } from '@salutejs/plasma-typo';
import { caldera_online__light } from '@salutejs/plasma-tokens';
const ThemeStyle = createGlobalStyle(caldera_online__light);
const TypoStyle = createGlobalStyle(standard);
export const GlobalStyle = () => (
<>
<ThemeStyle />
<TypoStyle />
</>
);
В корне приложения вызовите компонент глобальных стилей 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/plasma-tokens/brands/caldera-online';
export const App = () => {
return (
<Button>Hello, Plasma!</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 36 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.