next-flow-design 1.0.2 → 1.1.3
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 +59 -1
- package/dist/components/nf-checkbox/nf-checkbox.d.ts +8 -0
- package/dist/components/nf-color-picker/nf-color-picker.d.ts +76 -0
- package/dist/components/nf-input-number/nf-input-number.d.ts +25 -0
- package/dist/components/nf-slider/nf-slider.d.ts +26 -0
- package/dist/components/nf-switch/nf-switch.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1279 -54
- package/dist/react/components/nf-checkbox/nf-checkbox.d.ts +5 -0
- package/dist/react/components/nf-color-picker/nf-color-picker.d.ts +28 -0
- package/dist/react/components/nf-input/nf-input.d.ts +7 -0
- package/dist/react/components/nf-input-number/nf-input-number.d.ts +8 -0
- package/dist/react/components/nf-slider/nf-slider.d.ts +5 -0
- package/dist/react/components/nf-switch/nf-switch.d.ts +10 -0
- package/dist/react/index.d.ts +7 -1
- package/dist/react/index.js +1371 -7
- package/package.json +14 -11
- package/dist/nf-select-CUntTjoX.js +0 -355
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NfColorPickerElement } from '../../../components/nf-color-picker/nf-color-picker';
|
|
3
|
+
interface NfColorPickerProps {
|
|
4
|
+
/** 当前颜色值 */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** 禁用状态 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 禁用透明度 */
|
|
9
|
+
disabledAlpha?: boolean;
|
|
10
|
+
/** 控制面板显示状态 */
|
|
11
|
+
open?: boolean;
|
|
12
|
+
/** 显示颜色文本 */
|
|
13
|
+
showText?: boolean;
|
|
14
|
+
/** 颜色变化时触发 */
|
|
15
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
16
|
+
/** 面板显示状态变化时触发 */
|
|
17
|
+
onOpenChange?: (event: CustomEvent<boolean>) => void;
|
|
18
|
+
/** 子元素 */
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
/** 类名 */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** 样式 */
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
/** 引用 */
|
|
25
|
+
ref?: React.Ref<NfColorPickerElement>;
|
|
26
|
+
}
|
|
27
|
+
export declare const NfColorPicker: React.FC<NfColorPickerProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { NfInputElement } from '../../../components/nf-input/nf-input';
|
|
3
|
+
export declare const NfInput: import('@lit/react').ReactWebComponent<NfInputElement, {
|
|
4
|
+
onInput: EventName<CustomEvent<string>>;
|
|
5
|
+
onChange: EventName<CustomEvent<string>>;
|
|
6
|
+
onPressEnter: EventName<CustomEvent<string>>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { NfInputNumberElement } from '../../../components/nf-input-number/nf-input-number';
|
|
3
|
+
export declare const NfInputNumber: import('@lit/react').ReactWebComponent<NfInputNumberElement, {
|
|
4
|
+
onInput: EventName<CustomEvent<string>>;
|
|
5
|
+
onChange: EventName<CustomEvent<number>>;
|
|
6
|
+
onPressEnter: EventName<CustomEvent<number>>;
|
|
7
|
+
onStep: EventName<CustomEvent<number>>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NfSwitchElement } from '../../../components/nf-switch/nf-switch';
|
|
3
|
+
interface NfSwitchProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onChange?: (event: CustomEvent<boolean>) => void;
|
|
7
|
+
ref?: React.Ref<NfSwitchElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const NfSwitch: React.FC<NfSwitchProps>;
|
|
10
|
+
export {};
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import { NfInput } from './components/nf-input/nf-input';
|
|
1
2
|
import { NfSelect } from './components/nf-select/nf-select';
|
|
2
|
-
|
|
3
|
+
import { NfSwitch } from './components/nf-switch/nf-switch';
|
|
4
|
+
import { NfInputNumber } from './components/nf-input-number/nf-input-number';
|
|
5
|
+
import { NfCheckbox } from './components/nf-checkbox/nf-checkbox';
|
|
6
|
+
import { NfColorPicker } from './components/nf-color-picker/nf-color-picker';
|
|
7
|
+
import { NfSlider } from './components/nf-slider/nf-slider';
|
|
8
|
+
export { NfInput, NfSelect, NfSwitch, NfInputNumber, NfCheckbox, NfColorPicker, NfSlider };
|