neko-ui 2.0.2 → 2.0.4
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/lib/cron/index.d.ts +1 -1
- package/lib/cron/item.d.ts +4 -5
- package/lib/index.d.ts +79 -35
- package/lib/index.js +1 -1
- package/lib/theme/index.d.ts +53 -41
- package/lib/tree/index.d.ts +1 -1
- package/package.json +2 -2
package/lib/cron/index.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ export type CronData<T extends string = string> = {
|
|
|
36
36
|
some: number[];
|
|
37
37
|
value: string;
|
|
38
38
|
};
|
|
39
|
+
export type ActiveTab = keyof CronType;
|
|
39
40
|
export type CronType = {
|
|
40
|
-
activeKey: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
|
|
41
41
|
second: CronData<SecondType>;
|
|
42
42
|
minute: CronData<MinuteType>;
|
|
43
43
|
hour: CronData<HourType>;
|
package/lib/cron/item.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { CronType } from '.';
|
|
1
|
+
import type { ActiveTab, CronType } from '.';
|
|
2
2
|
import type { RadioOption } from 'neko-ui';
|
|
3
|
-
export type CronItemProps<T extends
|
|
3
|
+
export type CronItemProps<T extends ActiveTab = 'second'> = {
|
|
4
4
|
state: CronType[T];
|
|
5
|
-
|
|
6
|
-
onChange?<V extends Exclude<keyof CronType[T], 'value' | 'type'>>(type: V, value: CronType[T][V]): void;
|
|
5
|
+
onChange<V extends Exclude<keyof CronType[T], 'value' | 'type'> | 'type'>(type: V, value: CronType[T][V]): void;
|
|
7
6
|
options: RadioOption[];
|
|
8
7
|
};
|
|
9
|
-
declare function Item<T extends
|
|
8
|
+
declare function Item<T extends ActiveTab>(props: CronItemProps<T>): import("solid-js").JSX.Element;
|
|
10
9
|
export default Item;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,70 +1,114 @@
|
|
|
1
|
-
export * from '@moneko/css';
|
|
2
|
-
export { default as Prism } from './prism';
|
|
3
|
-
export { default as getOptions } from './get-options';
|
|
4
|
-
export { default as Button, type ButtonProps, type ButtonElement } from './button';
|
|
5
1
|
export { default as Avatar, type AvatarElement, type AvatarProps } from './avatar';
|
|
6
2
|
export { default as AvatarGroup, type AvatarGroupElement, type AvatarGroupProps, } from './avatar/group';
|
|
7
|
-
export { default as
|
|
8
|
-
export {
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as Checkbox, type CheckboxGroupProps, type CheckboxBoolProps, type CheckboxBoolElement, type CheckboxGroupElement, } from './checkbox';
|
|
20
|
-
export { default as BackTop, type BackTopProps, type BackTopElement } from './back-top';
|
|
21
|
-
export { default as Input, type InputProps, type InputElement } from './input';
|
|
22
|
-
export { default as InputNumber, type InputNumberProps, type InputNumberElement, } from './input-number';
|
|
23
|
-
export { default as Popover, type PopoverProps, type PopoverElement } from './popover';
|
|
24
|
-
export { default as Dropdown, type DropdownElement, type DropdownMultipleElement, } from './dropdown';
|
|
25
|
-
export { default as Select, type SelectElement, type SelectProps, type SelectMultipleElement, type SelectMultipleProps, } from './select';
|
|
26
|
-
export { default as ColorPalette, type ColorPaletteProps, type ColorPaletteElement, } from './color-palette';
|
|
27
|
-
export { default as ColorPicker, type ColorPickerProps, type ColorPickerElement, } from './color-picker';
|
|
28
|
-
export { default as Empty, type EmptyProps, type EmptyElement } from './empty';
|
|
29
|
-
export { default as CaptureScreen, type CaptureScreenProps, type CaptureScreenElement, } from './capture-screen';
|
|
30
|
-
export { default as Tabs, type TabsProps, type TabsElement, type TabOption } from './tabs';
|
|
31
|
-
export { default as Tag, type TagProps, type TagElement } from './tag';
|
|
32
|
-
export { default as Menu, type MenuProps, type MenuMultipleProps, type MenuElement, type MenuMultipleElement, type MenuOption, } from './menu';
|
|
33
|
-
export { default as Cron, type CronProps, type CronElement } from './cron';
|
|
34
|
-
export { theme, setTheme, generateTheme, baseStyle, toneColor, type ThemeOption, ColorScheme, } from './theme';
|
|
35
|
-
export { FieldName, Size, Status, type BasicConfig, type BaseOption } from './basic-config';
|
|
3
|
+
export { default as BackTop, type BackTopElement, type BackTopProps } from './back-top';
|
|
4
|
+
export { type BaseOption, type BasicConfig, FieldName, Size, Status } from './basic-config';
|
|
5
|
+
export { default as Button, type ButtonElement, type ButtonProps } from './button';
|
|
6
|
+
export { default as CaptureScreen, type CaptureScreenElement, type CaptureScreenProps, } from './capture-screen';
|
|
7
|
+
export { default as Carousel, type CarouselElement, type CarouselProps } from './carousel';
|
|
8
|
+
export { default as Checkbox, type CheckboxBoolElement, type CheckboxBoolProps, type CheckboxGroupElement, type CheckboxGroupProps, } from './checkbox';
|
|
9
|
+
export { default as Code, type CodeElement, type CodeProps } from './code';
|
|
10
|
+
export { default as ColorPalette, type ColorPaletteElement, type ColorPaletteProps, } from './color-palette';
|
|
11
|
+
export { default as ColorPicker, type ColorPickerElement, type ColorPickerProps, } from './color-picker';
|
|
12
|
+
export { default as Cron, type CronElement, type CronProps } from './cron';
|
|
13
|
+
export { default as Dropdown, type DropdownElement, type DropdownMultipleElement, type DropdownMultipleProps, type DropdownProps, } from './dropdown';
|
|
14
|
+
export { default as Empty, type EmptyElement, type EmptyProps } from './empty';
|
|
36
15
|
export { default as fromSchema } from './from-schema';
|
|
37
|
-
|
|
16
|
+
export { default as getOptions } from './get-options';
|
|
17
|
+
export { default as HighlightText, type HighlightTextElement, type HighlightTextProps, } from './highlight-text';
|
|
18
|
+
export { default as Img, type ImgElement, type ImgProps } from './img';
|
|
19
|
+
export { default as Input, type InputElement, type InputProps } from './input';
|
|
20
|
+
export { default as InputNumber, type InputNumberElement, type InputNumberProps, } from './input-number';
|
|
21
|
+
export { default as Md, type MdElement, type MdProps } from './md';
|
|
22
|
+
export { default as Menu, type MenuElement, type MenuMultipleElement, type MenuMultipleProps, type MenuOption, type MenuProps, } from './menu';
|
|
23
|
+
export { default as Popover, type PopoverElement, type PopoverProps } from './popover';
|
|
24
|
+
export { default as Radio, type RadioElement, type RadioOption, type RadioProps } from './radio';
|
|
25
|
+
export { default as Segmented, type SegmentedElement, type SegmentedProps } from './segmented';
|
|
26
|
+
export { default as Select, type SelectElement, type SelectMultipleElement, type SelectMultipleProps, type SelectProps, } from './select';
|
|
27
|
+
export { default as Skeleton, type SkeletonElement, type SkeletonProps } from './skeleton';
|
|
28
|
+
export { default as Spin, type SpinElement, type SpinProps } from './spin';
|
|
29
|
+
export { default as Switch, type SwitchElement, type SwitchProps } from './switch';
|
|
30
|
+
export { default as Tabs, type TabOption, type TabsElement, type TabsProps } from './tabs';
|
|
31
|
+
export { default as Tag, type TagElement, type TagProps } from './tag';
|
|
32
|
+
export { default as theme, type ColorScheme, type ThemeOption, generateTheme, toneColor, } from './theme';
|
|
33
|
+
export { default as Tree, type TreeElement, type TreeMultipleElement, type TreeMultipleProps, type TreeMultipleSchemaElement, type TreeMultipleSchemaProps, type TreeMultipleStringElement, type TreeMultipleStringProps, type TreeProps, type TreeSchemaElement, type TreeSchemaProps, type TreeStringElement, type TreeStringProps, } from './tree';
|
|
34
|
+
export { default as Typography, type TypographyElement, type TypographyProps } from './typography';
|
|
35
|
+
import { css, cx, injectGlobal } from '@moneko/css';
|
|
36
|
+
import { FieldName, Size, Status, fromSchema, generateTheme, getOptions, toneColor } from 'neko-ui';
|
|
37
|
+
import type { AvatarElement, AvatarGroupElement, BackTopElement, ButtonElement, CaptureScreenElement, CarouselElement, CheckboxBoolElement, CheckboxGroupElement, CodeElement, ColorPaletteElement, ColorPickerElement, CronElement, DropdownElement, DropdownMultipleElement, EmptyElement, HighlightTextElement, ImgElement, InputElement, InputNumberElement, MdElement, MenuElement, MenuMultipleElement, PopoverElement, RadioElement, SegmentedElement, SelectElement, SelectMultipleElement, SkeletonElement, SpinElement, SwitchElement, TabsElement, TagElement, TreeElement, TreeMultipleElement, TreeMultipleSchemaElement, TreeMultipleStringElement, TreeSchemaElement, TreeStringElement, TypographyElement } from '.';
|
|
38
|
+
declare const _default: {
|
|
39
|
+
FieldName: typeof FieldName;
|
|
40
|
+
Size: typeof Size;
|
|
41
|
+
Status: typeof Status;
|
|
42
|
+
fromSchema: typeof fromSchema;
|
|
43
|
+
generateTheme: typeof generateTheme;
|
|
44
|
+
getOptions: typeof getOptions;
|
|
45
|
+
theme: import("./theme").Theme;
|
|
46
|
+
toneColor: typeof toneColor;
|
|
47
|
+
css: typeof css;
|
|
48
|
+
cx: typeof cx;
|
|
49
|
+
injectGlobal: typeof injectGlobal;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
38
52
|
interface CustomElementTags {
|
|
53
|
+
/** 头像 */
|
|
39
54
|
'n-avatar': AvatarElement;
|
|
55
|
+
/** 头像组 */
|
|
40
56
|
'n-avatar-group': AvatarGroupElement;
|
|
57
|
+
/** 返回顶部 */
|
|
41
58
|
'n-back-top': BackTopElement;
|
|
59
|
+
/** 按钮 */
|
|
42
60
|
'n-button': ButtonElement;
|
|
61
|
+
/** 捕获屏幕 */
|
|
43
62
|
'n-capture-screen': CaptureScreenElement;
|
|
63
|
+
/** 走马灯、轮播 */
|
|
44
64
|
'n-carousel': CarouselElement;
|
|
65
|
+
/** 复选框 */
|
|
45
66
|
'n-checkbox': CheckboxBoolElement | CheckboxGroupElement;
|
|
67
|
+
/** 代码框 */
|
|
46
68
|
'n-code': CodeElement;
|
|
69
|
+
/** 取色器 */
|
|
47
70
|
'n-color-palette': ColorPaletteElement;
|
|
71
|
+
/** 取色器(弹出类型) */
|
|
48
72
|
'n-color-picker': ColorPickerElement;
|
|
73
|
+
/** 下拉面板 */
|
|
49
74
|
'n-dropdown': DropdownElement | DropdownMultipleElement;
|
|
75
|
+
/** 空面板 */
|
|
50
76
|
'n-empty': EmptyElement;
|
|
77
|
+
/** 匹配高亮文字 */
|
|
51
78
|
'n-highlight-text': HighlightTextElement;
|
|
79
|
+
/** 图片查看器 */
|
|
52
80
|
'n-img': ImgElement;
|
|
81
|
+
/** 输入框 */
|
|
53
82
|
'n-input': InputElement;
|
|
83
|
+
/** 数字输入框 */
|
|
54
84
|
'n-input-number': InputNumberElement;
|
|
85
|
+
/** Markdown渲染 */
|
|
55
86
|
'n-md': MdElement;
|
|
87
|
+
/** 弹出气泡面板 */
|
|
56
88
|
'n-popover': PopoverElement;
|
|
89
|
+
/** 单选项 */
|
|
57
90
|
'n-radio': RadioElement;
|
|
91
|
+
/** 分段控制器 */
|
|
58
92
|
'n-segmented': SegmentedElement;
|
|
93
|
+
/** 下拉选择框 */
|
|
59
94
|
'n-select': SelectElement | SelectMultipleElement;
|
|
95
|
+
/** 骨架屏 */
|
|
60
96
|
'n-skeleton': SkeletonElement;
|
|
97
|
+
/** 加载中 */
|
|
61
98
|
'n-spin': SpinElement;
|
|
99
|
+
/** 开关 */
|
|
62
100
|
'n-switch': SwitchElement;
|
|
101
|
+
/** 树形渲染 */
|
|
63
102
|
'n-tree': TreeElement | TreeStringElement | TreeSchemaElement | TreeMultipleElement | TreeMultipleStringElement | TreeMultipleSchemaElement;
|
|
103
|
+
/** 文字排版 */
|
|
64
104
|
'n-typography': TypographyElement;
|
|
105
|
+
/** 标签页 */
|
|
65
106
|
'n-tabs': TabsElement;
|
|
107
|
+
/** 标签 */
|
|
66
108
|
'n-tag': TagElement;
|
|
109
|
+
/** 导航菜单 */
|
|
67
110
|
'n-menu': MenuElement | MenuMultipleElement;
|
|
111
|
+
/** Cron表达式编辑器 */
|
|
68
112
|
'n-cron': CronElement;
|
|
69
113
|
}
|
|
70
114
|
declare module 'solid-js' {
|
|
@@ -77,7 +121,7 @@ declare module 'solid-js' {
|
|
|
77
121
|
}
|
|
78
122
|
declare global {
|
|
79
123
|
export namespace JSX {
|
|
80
|
-
interface IntrinsicElements extends CustomElementTags {
|
|
124
|
+
interface IntrinsicElements extends CustomElementTags, CustomElementTags {
|
|
81
125
|
}
|
|
82
126
|
}
|
|
83
127
|
interface HTMLElementTagNameMap extends CustomElementTags {
|