isp-ui-kit 0.22.4 → 0.23.1
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 +6 -4
- package/dist/FormComponents/FormSwitch/FormSwitch.d.ts +5 -0
- package/dist/FormComponents/FormSwitch/form-switch.type.d.ts +4 -0
- package/dist/FormComponents/index.d.ts +1 -0
- package/dist/Layout/EmptyData/EmptyData.d.ts +2 -1
- package/dist/Layout/EmptyData/empty-data.type.d.ts +4 -0
- package/dist/Layout/NoData/NoData.d.ts +2 -1
- package/dist/Layout/NoData/no-data.type.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
## Команды
|
|
3
2
|
|
|
4
3
|
- `npm install` — установка зависимостей
|
|
@@ -9,6 +8,7 @@
|
|
|
9
8
|
## Обновление версии
|
|
10
9
|
|
|
11
10
|
Для обновления версии необходимо:
|
|
11
|
+
|
|
12
12
|
1. Поднять версию в `package.json`.
|
|
13
13
|
2. Прописать изменения в `CHANGELOG.md`.
|
|
14
14
|
3. Пакет автоматически добавится в npm после сборки на сервере.
|
|
@@ -40,17 +40,19 @@ npm install @monaco-editor/react monaco-editor antd react react-dom react-hook-f
|
|
|
40
40
|
|
|
41
41
|
### 1. Не подгружаются стили
|
|
42
42
|
|
|
43
|
-
Для поддержки смены светлой/темной темы используются **CSS переменные**. Чтобы они работали в проекте, необходимо
|
|
43
|
+
Для поддержки смены светлой/темной темы используются **CSS переменные**. Чтобы они работали в проекте, необходимо
|
|
44
|
+
добавить `antd-конфиг` и ОБЯЗАТЕЛЬНО обернуть в Layout от antd:
|
|
44
45
|
|
|
45
46
|
```js
|
|
46
|
-
<ConfigProvider theme={{
|
|
47
|
-
|
|
47
|
+
<ConfigProvider theme={{cssVar: true}} locale={ruRu}>
|
|
48
|
+
<App/>
|
|
48
49
|
</ConfigProvider>
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
### 2. Ошибка импорта Vite
|
|
52
53
|
|
|
53
54
|
Ошибка:
|
|
55
|
+
|
|
54
56
|
```
|
|
55
57
|
TypeError: Super expression must either be null or a function
|
|
56
58
|
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { FormSwitchProps } from './form-switch.type';
|
|
3
|
+
import './form-switch.style.scss';
|
|
4
|
+
declare const _default: <T extends FieldValues>({ control, name, label, rules, formItemProps, ...rest }: FormSwitchProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default _default;
|
|
@@ -5,6 +5,7 @@ export { default as FormInputNumber } from './FormInputNumber/FormInputNumber';
|
|
|
5
5
|
export { default as FormInputPassword } from './FormInputPassword/FormInputPassword';
|
|
6
6
|
export { default as FormRadioGroup } from './FormRadioGroup/FormRadioGroup';
|
|
7
7
|
export { default as FormSelect } from './FormSelect/FormSelect';
|
|
8
|
+
export { default as FormSwitch } from './FormSwitch/FormSwitch';
|
|
8
9
|
export { default as FormTextArea } from './FormTextArea/FormTextArea';
|
|
9
10
|
export { default as FormSecretTextArea } from './FormSecretTextArea/FormSecretTextArea';
|
|
10
11
|
export { default as FormTreeSelect } from './FormTreeSelect/FormTreeSelect';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EmptyDataPropsType } from './empty-data.type';
|
|
1
2
|
import './empty-data.scss';
|
|
2
|
-
declare const EmptyData: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const EmptyData: ({ content }: EmptyDataPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default EmptyData;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './FormComponents/FormTreeSelect/form-tree-select.type';
|
|
|
13
13
|
export * from './FormComponents/FormDatePicker/form-date-picker.type';
|
|
14
14
|
export * from './FormComponents/FormRangeDatePicker/form-range-date-picker.type';
|
|
15
15
|
export * from './FormComponents/FormAutoComplete/form-auto-complete.type';
|
|
16
|
+
export * from './FormComponents/FormSwitch/form-switch.type';
|
|
16
17
|
export * from './FormComponents/formTypes';
|
|
17
18
|
import * as Layout from './Layout';
|
|
18
19
|
export * from './Layout/Column/column.type';
|