@salutejs/sdds-cs 0.372.0-canary.3015.34463388473.0 → 0.372.0-dev.0
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 +98 -70
- package/README.mdx +3 -66
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/cjs/components/Button/Button.js +3 -4
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +0 -1
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +0 -1
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +0 -1
- package/dist/emotion/cjs/components/Select/Select.config.js +1 -1
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/cjs/components/TextField/TextField.config.js +2 -2
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +2 -0
- package/dist/emotion/cjs/components/Tokens/Colors/Colors.styles.js +27 -27
- package/dist/emotion/cjs/components/Tokens/Typography/Typography.styles.js +35 -35
- package/dist/emotion/cjs/components/Tour/TourCard.config.js +50 -50
- package/dist/emotion/cjs/components/Tour/TourCard.js +3 -3
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/es/components/Button/Button.js +3 -4
- package/dist/emotion/es/components/Calendar/Calendar.config.js +0 -1
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +0 -1
- package/dist/emotion/es/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +0 -1
- package/dist/emotion/es/components/Select/Select.config.js +1 -1
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/es/components/TextField/TextField.config.js +2 -2
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +2 -0
- package/dist/emotion/es/components/Tokens/Colors/Colors.styles.js +27 -27
- package/dist/emotion/es/components/Tokens/Typography/Typography.styles.js +35 -35
- package/dist/emotion/es/components/Tour/TourCard.config.js +1 -1
- package/dist/emotion/es/components/Tour/TourCard.js +1 -1
- package/package.json +9 -9
- package/types/components/Avatar/Avatar.d.ts +8 -4
- package/types/components/Combobox/Combobox.d.ts +8 -8
- package/types/components/TimePicker/TimePicker.d.ts +2 -0
- package/types/components/Tokens/Colors/Colors.styles.d.ts +2 -2
- package/types/components/Tokens/Typography/Typography.styles.d.ts +2 -2
- package/types/components/Tour/TourCard.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,121 +1,149 @@
|
|
|
1
1
|
# Библиотека компонентов SDDS CS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/salute-developers/plasma/blob/master/LICENSE.txt)
|
|
4
|
+
[](https://www.npmjs.com/package/@salutejs/sdds-cs)
|
|
5
|
+
[](https://www.typescriptlang.org/)
|
|
6
|
+
[](https://www.npmjs.com/package/@salutejs/sdds-themes)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Реализация компонентов для создания веб-приложений.
|
|
6
9
|
|
|
7
|
-
Компоненты реализованы
|
|
10
|
+
Компоненты реализованы с помощью [React](https://react.dev/) и поставляются в варианте на [emotion](https://emotion.sh/).
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
## Ссылки
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
- [Документация](https://plasma.sberdevices.ru/sdds-cs/) — гайды, список компонентов с примерами и API
|
|
15
|
+
- [Подключение в Next.js](https://plasma.sberdevices.ru/sdds-cs/next/)
|
|
16
|
+
- [Changelog](https://plasma.sberdevices.ru/changelog/?vertical=SDDSCS&platform=React&version=0.370.0)
|
|
17
|
+
- [Задать вопрос или сообщить о проблеме](https://github.com/salute-developers/plasma/issues)
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
## Установка
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
Требуются `react` и `react-dom` версии `16.13.1` или выше, а также `@emotion/react` и `@emotion/styled` версии `11` или выше:
|
|
16
22
|
|
|
17
23
|
```bash
|
|
18
24
|
$ npm install --save react react-dom
|
|
19
|
-
$ npm install --save @salutejs/sdds-cs @salutejs/
|
|
25
|
+
$ npm install --save @salutejs/sdds-cs @salutejs/sdds-themes
|
|
26
|
+
$ npm install --save @emotion/react @emotion/styled
|
|
20
27
|
```
|
|
21
28
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
$ npm install --save styled-components@5.3.1
|
|
26
|
-
```
|
|
29
|
+
## Варианты поставки
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
| Точка входа | Реализация | Дополнительные зависимости |
|
|
32
|
+
| ------------------- | ---------- | ----------------------------------- |
|
|
33
|
+
| `@salutejs/sdds-cs` | emotion | `@emotion/react`, `@emotion/styled` |
|
|
29
34
|
|
|
30
|
-
```
|
|
31
|
-
|
|
35
|
+
```jsx
|
|
36
|
+
import { Button } from '@salutejs/sdds-cs';
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
Beta-компоненты доступны из точки входа `@salutejs/sdds-cs/beta`. Подробнее — в [документации](https://plasma.sberdevices.ru/sdds-cs/beta/popover/).
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
## Подключение шрифтов
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
import { createGlobalStyle } from 'styled-components';
|
|
40
|
-
import { standard } from '@salutejs/plasma-typo';
|
|
41
|
-
import { sdds_cs__light } from '@salutejs/sdds-themes';
|
|
43
|
+
Типографическая система основана на фирменных шрифтах, они поставляются с CDN.
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
const TypoStyle = createGlobalStyle(standard);
|
|
45
|
+
Добавьте три css-файла внутрь тега `<head>`.
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</>
|
|
51
|
-
);
|
|
47
|
+
```html
|
|
48
|
+
<link rel="stylesheet" href="https://cdn-app.sberdevices.ru/shared-static/0.0.0/styles/SBSansText.0.2.0.css" />
|
|
49
|
+
<link rel="stylesheet" href="https://cdn-app.sberdevices.ru/shared-static/0.0.0/styles/SBSansDisplay.0.2.0.css" />
|
|
50
|
+
<link rel="stylesheet" href="https://cdn-app.sberdevices.ru/shared-static/0.0.0/styles/SBSansTextMono.0.2.0.css" />
|
|
52
51
|
```
|
|
53
52
|
|
|
54
|
-
##
|
|
53
|
+
## Подключение темы
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
Тема подключается один раз в корне приложения.
|
|
57
56
|
|
|
58
|
-
|
|
59
|
-
import { Global, css } from '@emotion/react';
|
|
60
|
-
import { standard } from '@salutejs/plasma-typo';
|
|
61
|
-
import { sdds_cs__light } from '@salutejs/sdds-themes';
|
|
57
|
+
> **Примечание:** Для [Next.js](https://nextjs.org/) — в `pages/_app.tsx`.
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
const typoStyle = css(standard);
|
|
65
|
-
|
|
66
|
-
export const GlobalStyle = () => (
|
|
67
|
-
<>
|
|
68
|
-
<Global styles={themeStyle} />
|
|
69
|
-
<Global styles={typoStyle} />
|
|
70
|
-
</>
|
|
71
|
-
);
|
|
72
|
-
```
|
|
59
|
+
Тема включает в себя цветовые и типографические токены.
|
|
73
60
|
|
|
74
|
-
|
|
61
|
+
Доступны светлая и тёмная темы — `sdds_cs__light`.
|
|
75
62
|
|
|
76
|
-
|
|
63
|
+
```jsx
|
|
64
|
+
import { Global, css } from '@emotion/react';
|
|
65
|
+
import { sdds_cs__light } from '@salutejs/sdds-themes';
|
|
77
66
|
|
|
78
|
-
|
|
79
|
-
- Если вы используете [Next.js](https://nextjs.org/), создайте файл `pages/_app.tsx` и подключите стили в нем.
|
|
67
|
+
const themeStyle = css(sdds_cs__light);
|
|
80
68
|
|
|
81
|
-
|
|
69
|
+
// вызовите <Global styles={themeStyle} /> в корне приложения
|
|
70
|
+
```
|
|
82
71
|
|
|
83
|
-
|
|
72
|
+
Переключение темы в рантайме описано в [документации](https://plasma.sberdevices.ru/sdds-cs/).
|
|
84
73
|
|
|
85
|
-
|
|
74
|
+
## Использование компонентов
|
|
86
75
|
|
|
87
76
|
```jsx
|
|
88
77
|
// App.tsx
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
78
|
+
import { Global, css } from '@emotion/react';
|
|
79
|
+
import { Button, BodyL } from '@salutejs/sdds-cs';
|
|
80
|
+
import { sdds_cs__light } from '@salutejs/sdds-themes';
|
|
81
|
+
|
|
82
|
+
const themeStyle = css(sdds_cs__light);
|
|
91
83
|
|
|
92
84
|
export const App = () => {
|
|
93
85
|
return (
|
|
94
86
|
<>
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
<
|
|
87
|
+
<Global styles={themeStyle} />
|
|
88
|
+
<BodyL>Hello, SDDS CS!</BodyL>
|
|
89
|
+
<Button>Кнопка</Button>
|
|
98
90
|
</>
|
|
99
91
|
);
|
|
100
92
|
};
|
|
101
93
|
```
|
|
102
94
|
|
|
103
|
-
|
|
95
|
+
Дизайн-токены доступны в виде js-переменных:
|
|
104
96
|
|
|
105
|
-
|
|
97
|
+
- базовый набор — из `@salutejs/sdds-themes/tokens`
|
|
98
|
+
- уникальные токены темы — из `@salutejs/sdds-themes/tokens/sdds_cs`.
|
|
106
99
|
|
|
107
100
|
```jsx
|
|
108
|
-
|
|
109
|
-
import { Button } from '@salutejs/sdds-cs/emotion';
|
|
110
|
-
import { textAccent } from '@salutejs/plasma-tokens/brands/sdds-cs';
|
|
101
|
+
import { textAccent } from '@salutejs/sdds-themes/tokens';
|
|
111
102
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<>
|
|
115
|
-
<Button>Hello, Plasma!</Button>
|
|
103
|
+
<p style={{ color: textAccent }}>Пример использования токена</p>;
|
|
104
|
+
```
|
|
116
105
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
106
|
+
## SSR и Next.js
|
|
107
|
+
|
|
108
|
+
- Библиотека поддерживает React Server Components (App Router) **только** при **явном** использовании директивы `'use client'` в модулях, импортирующих компоненты.
|
|
109
|
+
- Добавьте пакеты в `transpilePackages` в `next.config.js`:
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
const nextConfig = {
|
|
113
|
+
transpilePackages: ['@salutejs/sdds-cs', '@salutejs/plasma-new-hope', '@salutejs/plasma-icons'],
|
|
120
114
|
};
|
|
121
115
|
```
|
|
116
|
+
|
|
117
|
+
Подробности — в [гайде по Next.js](https://plasma.sberdevices.ru/sdds-cs/next/).
|
|
118
|
+
|
|
119
|
+
## MCP-сервер для AI-агентов
|
|
120
|
+
|
|
121
|
+
> **Примечание**: Поддерживаются версии библиотеки начиная с `0.348.0` — нужная указывается параметром `--version`.
|
|
122
|
+
|
|
123
|
+
Библиотека предоставляет [MCP-сервер](https://plasma.sberdevices.ru/sdds-cs/how-to-mcp/) `@salutejs/sdds-mcp` — через него LLM-агент (Claude Code, Cursor и др.) получает актуальную документацию:
|
|
124
|
+
|
|
125
|
+
- список компонентов
|
|
126
|
+
- описание props
|
|
127
|
+
- примеры использования
|
|
128
|
+
- токены и гайды.
|
|
129
|
+
|
|
130
|
+
Сервер работает по `stdio`:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npx -y @salutejs/sdds-mcp@latest --lib sdds-cs
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Если агент настраивается через конфигурацию, используйте шаблон:
|
|
137
|
+
|
|
138
|
+
```json
|
|
139
|
+
{
|
|
140
|
+
"mcpServers": {
|
|
141
|
+
"sdds-cs": {
|
|
142
|
+
"command": "npx",
|
|
143
|
+
"args": ["-y", "@salutejs/sdds-mcp@latest", "--lib", "sdds-cs"]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Подробности и список инструментов — в [гайде по MCP](https://plasma.sberdevices.ru/sdds-cs/how-to-mcp/).
|
package/README.mdx
CHANGED
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import { Meta } from "@storybook/addon-docs/blocks";
|
|
1
|
+
import { Meta, Markdown } from "@storybook/addon-docs/blocks";
|
|
2
|
+
import ReadmeMd from './README.md?raw';
|
|
2
3
|
|
|
3
4
|
<Meta title="About" />
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Реализация компонентов для создания веб-приложений.
|
|
8
|
-
|
|
9
|
-
## Использование
|
|
10
|
-
|
|
11
|
-
Компоненты реализованы на [typescript](https://www.typescriptlang.org/) с помощью [react](https://reactjs.org/) и [styled-components](https://styled-components.com/);
|
|
12
|
-
|
|
13
|
-
Использование данного пакета предполагает установку зависимостей: `react` & `react-dom`;
|
|
14
|
-
|
|
15
|
-
Использование `styled-components` на проект необязательно, так же как и использование `typescript`.
|
|
16
|
-
|
|
17
|
-
### Установка пакета
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
$ npm install --save react react-dom
|
|
21
|
-
$ npm install --save styled-components@5.1.1
|
|
22
|
-
$ npm install --save @salutejs/sdds-cs @salutejs/sdds-themes
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Настройка
|
|
26
|
-
|
|
27
|
-
Создайте компонент для подключения глобальных стилей:
|
|
28
|
-
|
|
29
|
-
```jsx title="GlobalStyle.tsx"
|
|
30
|
-
import { createGlobalStyle } from 'styled-components';
|
|
31
|
-
import { sdds_cs__light } from '@salutejs/sdds-themes';
|
|
32
|
-
|
|
33
|
-
const ThemeStyle = createGlobalStyle(sdds_cs__light);
|
|
34
|
-
|
|
35
|
-
export const GlobalStyle = () => (
|
|
36
|
-
<>
|
|
37
|
-
<ThemeStyle />
|
|
38
|
-
</>
|
|
39
|
-
);
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Корень приложения
|
|
43
|
-
|
|
44
|
-
В корне приложения вызовите компонент глобальных стилей `GlobalStyle`:
|
|
45
|
-
|
|
46
|
-
- Если вы используете [Create React App](https://create-react-app.dev), делайте вызов внутри `src/index.tsx`.
|
|
47
|
-
- Если вы используете [Next.js](https://nextjs.org/), создайте файл `pages/_app.tsx` и подключите стили в нем.
|
|
48
|
-
|
|
49
|
-
Для корректной работы server side rendering приложение нужно обернуть `SSRProvider` (доступен в sdds-cs);
|
|
50
|
-
|
|
51
|
-
### Использование компонентов
|
|
52
|
-
|
|
53
|
-
Все компоненты доступны из папки `components` или напрямую из пакета:
|
|
54
|
-
|
|
55
|
-
```jsx
|
|
56
|
-
// App.tsx
|
|
57
|
-
import { Button } from '@salutejs/sdds-cs';
|
|
58
|
-
import { textAccent } from '@salutejs/sdds-themes/tokens/sdds-cs';
|
|
59
|
-
|
|
60
|
-
export const App = () => {
|
|
61
|
-
return (
|
|
62
|
-
<Button>Hello, SDDS CS!</Button>
|
|
63
|
-
|
|
64
|
-
<p style={{color: textAccent}}>
|
|
65
|
-
Token usage example
|
|
66
|
-
</p>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
```
|
|
6
|
+
<Markdown>{ReadmeMd}</Markdown>
|
|
@@ -133,7 +133,7 @@ const config = {
|
|
|
133
133
|
${_emotion.autocompleteTokens.textFieldLabelLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
134
134
|
${_emotion.autocompleteTokens.textFieldLabelLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
135
135
|
|
|
136
|
-
${_emotion.autocompleteTokens.
|
|
136
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
137
137
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
138
138
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
139
139
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "Button", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
13
|
-
const _plasmanewhope = require("@salutejs/plasma-new-hope");
|
|
14
13
|
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
|
|
15
14
|
const _Buttonconfig = require("./Button.config");
|
|
16
15
|
function _interop_require_default(obj) {
|
|
@@ -63,10 +62,10 @@ const mergedConfig = (0, _emotion.mergeConfig)(_emotion.buttonConfig, _Buttoncon
|
|
|
63
62
|
const ButtonComponent = (0, _emotion.component)(mergedConfig);
|
|
64
63
|
// INFO: Данное поведение запрошено продуктом
|
|
65
64
|
const StyledButton = /*#__PURE__*/ (0, _styled.default)(ButtonComponent, {
|
|
66
|
-
target: "
|
|
65
|
+
target: "eht90h10",
|
|
67
66
|
label: "StyledButton"
|
|
68
|
-
})("&&.", String(_emotion.buttonClasses.buttonLoading), "{color:var(", _emotion.buttonTokens.buttonColorActive, ",var(", _emotion.buttonTokens.buttonColor, "));background:var(", _emotion.buttonTokens.buttonBackgroundColorActive, ",var(", _emotion.buttonTokens.buttonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
69
|
-
const Button = (0,
|
|
67
|
+
})("&&.", String(_emotion.buttonClasses.buttonLoading), "{color:var(", _emotion.buttonTokens.buttonColorActive, ",var(", _emotion.buttonTokens.buttonColor, "));background:var(", _emotion.buttonTokens.buttonBackgroundColorActive, ",var(", _emotion.buttonTokens.buttonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvQnV0dG9uL0J1dHRvbi50c3giLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24udHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDb21wb25lbnRQcm9wcywgdXNlQ2FsbGJhY2ssIE1vdXNlRXZlbnQsIGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQge1xuICAgIGJ1dHRvbkNvbmZpZyxcbiAgICBjb21wb25lbnQsXG4gICAgbWVyZ2VDb25maWcsXG4gICAgYnV0dG9uQ2xhc3NlcyxcbiAgICBidXR0b25Ub2tlbnMsXG4gICAgbWFrZVBvbHltb3JwaGljLFxufSBmcm9tICdAc2FsdXRlanMvcGxhc21hLW5ldy1ob3BlL2Vtb3Rpb24nO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjb25maWcgfSBmcm9tICcuL0J1dHRvbi5jb25maWcnO1xuXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhidXR0b25Db25maWcsIGNvbmZpZyk7XG5jb25zdCBCdXR0b25Db21wb25lbnQgPSBjb21wb25lbnQobWVyZ2VkQ29uZmlnKTtcblxuZXhwb3J0IHR5cGUgQnV0dG9uUHJvcHMgPSBDb21wb25lbnRQcm9wczx0eXBlb2YgQnV0dG9uQ29tcG9uZW50PjtcblxuLy8gSU5GTzog0JTQsNC90L3QvtC1INC/0L7QstC10LTQtdC90LjQtSDQt9Cw0L/RgNC+0YjQtdC90L4g0L/RgNC+0LTRg9C60YLQvtC8XG5jb25zdCBTdHlsZWRCdXR0b24gPSBzdHlsZWQoQnV0dG9uQ29tcG9uZW50KWBcbiAgICAmJi4ke1N0cmluZyhidXR0b25DbGFzc2VzLmJ1dHRvbkxvYWRpbmcpfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JBY3RpdmV9LCB2YXIoJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3J9KSk7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke2J1dHRvblRva2Vucy5idXR0b25CYWNrZ3JvdW5kQ29sb3JBY3RpdmV9LCB2YXIoJHtidXR0b25Ub2tlbnMuYnV0dG9uQmFja2dyb3VuZENvbG9yfSkpO1xuXG4gICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuICAgIH1cbmA7XG5cbi8qKlxuICog0JrQvdC+0L/QutCwLlxuICovXG5leHBvcnQgY29uc3QgQnV0dG9uID0gbWFrZVBvbHltb3JwaGljKFxuICAgIGZvcndhcmRSZWY8T21pdDxIVE1MQnV0dG9uRWxlbWVudCwgJ3ZhbHVlJz4sIEJ1dHRvblByb3BzPigoeyBvbkNsaWNrLCBpc0xvYWRpbmcsIHZhbHVlLCAuLi5wcm9wcyB9LCByZWYpID0+IHtcbiAgICAgICAgY29uc3QgaGFuZGxlQ2xpY2sgPSB1c2VDYWxsYmFjayhcbiAgICAgICAgICAgIChldmVudDogTW91c2VFdmVudDxIVE1MQnV0dG9uRWxlbWVudD4pID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIWlzTG9hZGluZykge1xuICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPy4oZXZlbnQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbaXNMb2FkaW5nLCBvbkNsaWNrXSxcbiAgICAgICAgKTtcblxuICAgICAgICAvLyBAdHMtaWdub3JlXG4gICAgICAgIHJldHVybiA8U3R5bGVkQnV0dG9uIHZhbHVlPXt2YWx1ZX0gcmVmPXtyZWZ9IG9uQ2xpY2s9e2hhbmRsZUNsaWNrfSBpc0xvYWRpbmc9e2lzTG9hZGluZ30gey4uLnByb3BzfSAvPjtcbiAgICB9KSxcbiAgICAnYnV0dG9uJyxcbik7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJxQiJ9 */");
|
|
68
|
+
const Button = (0, _emotion.makePolymorphic)(/*#__PURE__*/ (0, _react.forwardRef)(({ onClick, isLoading, value, ...props }, ref)=>{
|
|
70
69
|
const handleClick = (0, _react.useCallback)((event)=>{
|
|
71
70
|
if (!isLoading) {
|
|
72
71
|
onClick?.(event);
|
|
@@ -101,7 +101,6 @@ const config = {
|
|
|
101
101
|
|
|
102
102
|
${_emotion.calendarBaseTokens.calendarHeaderArrowGap}: 0.5rem;
|
|
103
103
|
${_emotion.calendarBaseTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
104
|
-
${_emotion.calendarBaseTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
105
104
|
|
|
106
105
|
${_emotion.calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
107
106
|
${_emotion.calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -100,7 +100,6 @@ const config = {
|
|
|
100
100
|
|
|
101
101
|
${_emotion.calendarDoubleTokens.calendarHeaderArrowGap}: 0.5rem;
|
|
102
102
|
${_emotion.calendarDoubleTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
103
|
-
${_emotion.calendarDoubleTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
104
103
|
|
|
105
104
|
${_emotion.calendarDoubleTokens.calendarDaysPadding}: 0.5rem 0 0 0;
|
|
106
105
|
${_emotion.calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
@@ -171,7 +171,7 @@ const config = {
|
|
|
171
171
|
${_emotion.comboboxTokens.textFieldLabelLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
172
172
|
${_emotion.comboboxTokens.textFieldLabelLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
173
173
|
|
|
174
|
-
${_emotion.comboboxTokens.
|
|
174
|
+
${_emotion.comboboxTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
175
175
|
${_emotion.comboboxTokens.textFieldLeftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
176
176
|
${_emotion.comboboxTokens.textFieldLeftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
177
177
|
${_emotion.comboboxTokens.textFieldLeftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -302,7 +302,7 @@ const config = {
|
|
|
302
302
|
${_emotion.comboboxTokens.disclosureIconColorHover}: transparent;
|
|
303
303
|
${_emotion.comboboxTokens.textFieldPadding}: 0;
|
|
304
304
|
${_emotion.comboboxTokens.textFieldLabelOffset}: 0.25rem;
|
|
305
|
-
${_emotion.comboboxTokens.
|
|
305
|
+
${_emotion.comboboxTokens.textFieldLeftHelperOffset}: 0rem 0 0 0;
|
|
306
306
|
${_emotion.comboboxTokens.textFieldBorderColor}: transparent;
|
|
307
307
|
${_emotion.comboboxTokens.textFieldBorderWidth}: 0;
|
|
308
308
|
`
|
|
@@ -249,7 +249,6 @@ const config = {
|
|
|
249
249
|
${_emotion.datePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
250
250
|
${_emotion.datePickerTokens.calendarHeaderArrowGap}: 0.5rem;
|
|
251
251
|
${_emotion.datePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
252
|
-
${_emotion.datePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
253
252
|
|
|
254
253
|
${_emotion.datePickerTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
255
254
|
${_emotion.datePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -135,7 +135,7 @@ const config = {
|
|
|
135
135
|
${_emotion.selectTokens.textFieldLabelLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
136
136
|
${_emotion.selectTokens.textFieldLabelLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
137
137
|
|
|
138
|
-
${_emotion.selectTokens.
|
|
138
|
+
${_emotion.selectTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
139
139
|
${_emotion.selectTokens.textFieldLeftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
140
140
|
${_emotion.selectTokens.textFieldLeftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
141
141
|
${_emotion.selectTokens.textFieldLeftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -123,7 +123,7 @@ const config = {
|
|
|
123
123
|
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
124
124
|
${_emotion.textFieldTokens.titleCaptionLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
125
125
|
|
|
126
|
-
${_emotion.textFieldTokens.
|
|
126
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
127
127
|
${_emotion.textFieldTokens.leftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
128
128
|
${_emotion.textFieldTokens.leftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
129
129
|
${_emotion.textFieldTokens.leftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -150,7 +150,7 @@ const config = {
|
|
|
150
150
|
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
151
151
|
${_emotion.textFieldTokens.titleCaptionLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
152
152
|
|
|
153
|
-
${_emotion.textFieldTokens.
|
|
153
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem;
|
|
154
154
|
${_emotion.textFieldTokens.leftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
155
155
|
${_emotion.textFieldTokens.leftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
156
156
|
${_emotion.textFieldTokens.leftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -223,7 +223,7 @@ const config = {
|
|
|
223
223
|
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
224
224
|
${_emotion.textFieldTokens.titleCaptionLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
225
225
|
|
|
226
|
-
${_emotion.textFieldTokens.
|
|
226
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
227
227
|
${_emotion.textFieldTokens.leftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
228
228
|
${_emotion.textFieldTokens.leftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
229
229
|
${_emotion.textFieldTokens.leftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -76,6 +76,8 @@ const config = {
|
|
|
76
76
|
${_emotion.timePickerTokens.scrollbarColor}: ${_sdds_cs.surfaceSolidTertiary};
|
|
77
77
|
${_emotion.timePickerTokens.scrollbarTrackColor}: var(--surface-transparent-primary);
|
|
78
78
|
|
|
79
|
+
${_emotion.timePickerTokens.disabledOpacity}: 0.4;
|
|
80
|
+
|
|
79
81
|
${_emotion.timePickerTokens.leftHelperColor}: ${_sdds_cs.textSecondary};
|
|
80
82
|
${_emotion.timePickerTokens.leftHelperColorError}: ${_sdds_cs.textNegative};
|
|
81
83
|
${_emotion.timePickerTokens.leftHelperColorSuccess}: ${_sdds_cs.textPositive};
|