neko-ui 2.0.2 → 2.0.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/lib/cron/index.d.ts +1 -1
- package/lib/cron/item.d.ts +4 -5
- package/lib/index.d.ts +1 -2
- 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,5 +1,4 @@
|
|
|
1
1
|
export * from '@moneko/css';
|
|
2
|
-
export { default as Prism } from './prism';
|
|
3
2
|
export { default as getOptions } from './get-options';
|
|
4
3
|
export { default as Button, type ButtonProps, type ButtonElement } from './button';
|
|
5
4
|
export { default as Avatar, type AvatarElement, type AvatarProps } from './avatar';
|
|
@@ -31,7 +30,7 @@ export { default as Tabs, type TabsProps, type TabsElement, type TabOption } fro
|
|
|
31
30
|
export { default as Tag, type TagProps, type TagElement } from './tag';
|
|
32
31
|
export { default as Menu, type MenuProps, type MenuMultipleProps, type MenuElement, type MenuMultipleElement, type MenuOption, } from './menu';
|
|
33
32
|
export { default as Cron, type CronProps, type CronElement } from './cron';
|
|
34
|
-
export { theme,
|
|
33
|
+
export { default as theme, generateTheme, toneColor, type ThemeOption, type ColorScheme, } from './theme';
|
|
35
34
|
export { FieldName, Size, Status, type BasicConfig, type BaseOption } from './basic-config';
|
|
36
35
|
export { default as fromSchema } from './from-schema';
|
|
37
36
|
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 'neko-ui';
|