neko-ui 2.2.0 → 2.3.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.
@@ -47,6 +47,6 @@ export interface CaptureScreenProps extends JSX.ButtonHTMLAttributes<HTMLDivElem
47
47
  /** 自定义保存录制文件方法 */
48
48
  onSaveRecorder?: (blob: Blob, fileName: string) => void;
49
49
  }
50
- export type CaptureScreenElement = CustomElement<CaptureScreenProps>;
50
+ export type CaptureScreenElement = CustomElement<CaptureScreenProps, 'onErrorRecorder' | 'onStopRecorder' | 'onStartRecorder' | 'onRecorderDataAvailable' | 'onErrorCapture' | 'onStopCapture' | 'onStartCapture' | 'onSaveRecorder'>;
51
51
  declare function CaptureScreen(_: CaptureScreenProps): JSX.Element;
52
52
  export default CaptureScreen;
@@ -73,5 +73,5 @@ declare enum PickerType {
73
73
  /** 年份选择 */
74
74
  year = "year"
75
75
  }
76
- export type DatePickerElement = CustomElement<DatePickerProps>;
76
+ export type DatePickerElement = CustomElement<DatePickerProps, 'onChange' | 'onOpenChange'>;
77
77
  export default DatePicker;
@@ -21,6 +21,6 @@ export interface ImgProps {
21
21
  */
22
22
  escClosable?: boolean;
23
23
  }
24
- export type ImgElement = CustomElement<ImgProps>;
24
+ export type ImgElement = CustomElement<ImgProps, 'onOpenChange'>;
25
25
  declare function Img(props: ImgProps): import("solid-js").JSX.Element;
26
26
  export default Img;
package/lib/index.d.ts CHANGED
@@ -36,24 +36,8 @@ export { default as theme, type ColorScheme, type ThemeOption, generateTheme, to
36
36
  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';
37
37
  export { default as Typography, type TypographyElement, type TypographyProps } from './typography';
38
38
  export { default as dayjs } from './date-picker/dayjs';
39
- import { css, cx, injectGlobal } from '@moneko/css';
40
- import { FieldName, Size, Status, dayjs, fromSchema, generateTheme, getOptions, toneColor } from 'neko-ui';
41
- import type { AvatarElement, AvatarGroupElement, BackTopElement, ButtonElement, CaptureScreenElement, CarouselElement, CheckboxBoolElement, CheckboxGroupElement, CodeElement, ColorPaletteElement, ColorPickerElement, CronElement, DatePickerElement, DropdownElement, DropdownMultipleElement, EmptyElement, HighlightTextElement, ImgElement, InputElement, InputNumberElement, MdElement, MenuElement, MenuMultipleElement, PaginationElement, PopoverElement, RadioElement, SegmentedElement, SelectElement, SelectMultipleElement, SkeletonElement, SpinElement, SwitchElement, TableElement, TabsElement, TagElement, TreeElement, TreeMultipleElement, TreeMultipleSchemaElement, TreeMultipleStringElement, TreeSchemaElement, TreeStringElement, TypographyElement } from '.';
42
- declare const normal: {
43
- FieldName: typeof FieldName;
44
- Size: typeof Size;
45
- Status: typeof Status;
46
- dayjs: typeof dayjs;
47
- fromSchema: typeof fromSchema;
48
- generateTheme: typeof generateTheme;
49
- getOptions: typeof getOptions;
50
- theme: import("./theme").Theme;
51
- toneColor: typeof toneColor;
52
- css: typeof css;
53
- cx: typeof cx;
54
- injectGlobal: typeof injectGlobal;
55
- };
56
- export default normal;
39
+ export { default as Provider, type ProviderElement, type ProviderProps } from './provider';
40
+ import { AvatarElement, AvatarGroupElement, BackTopElement, ButtonElement, CaptureScreenElement, CarouselElement, CheckboxBoolElement, CheckboxGroupElement, CodeElement, ColorPaletteElement, ColorPickerElement, CronElement, DatePickerElement, DropdownElement, DropdownMultipleElement, EmptyElement, HighlightTextElement, ImgElement, InputElement, InputNumberElement, MdElement, MenuElement, MenuMultipleElement, PaginationElement, PopoverElement, ProviderElement, RadioElement, SegmentedElement, SelectElement, SelectMultipleElement, SkeletonElement, SpinElement, SwitchElement, TableElement, TabsElement, TagElement, TreeElement, TreeMultipleElement, TreeMultipleSchemaElement, TreeMultipleStringElement, TreeSchemaElement, TreeStringElement, TypographyElement } from '.';
57
41
  /** 组件列表
58
42
  * @author monako97
59
43
  * @ignore optional
@@ -131,6 +115,10 @@ interface CustomElementTags {
131
115
  * @since 2.2.0
132
116
  */
133
117
  'n-pagination': PaginationElement;
118
+ /** 响应内部变化
119
+ * @since 2.3.0
120
+ */
121
+ 'n-provider': ProviderElement;
134
122
  }
135
123
  declare module 'solid-js' {
136
124
  namespace JSX {
@@ -147,8 +135,4 @@ declare global {
147
135
  }
148
136
  interface HTMLElementTagNameMap extends CustomElementTags {
149
137
  }
150
- interface window {
151
- NekoUI: typeof normal;
152
- }
153
- const NekoUI: window['NekoUI'];
154
138
  }