neko-ui 2.3.3 → 2.3.5

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 CHANGED
@@ -44,7 +44,7 @@ yarn add neko-ui -S
44
44
 
45
45
  ```html
46
46
  <!-- 引入 CDN 资源 -->
47
- <script src="https://cdn.jsdelivr.net/npm/neko-ui@2.0.1/lib/index.js"></script>
47
+ <script src="https://cdn.jsdelivr.net/npm/neko-ui/lib/index.js"></script>
48
48
  <!-- 使用 -->
49
49
  <body>
50
50
  <n-button>按钮</n-button>
@@ -1,6 +1,10 @@
1
1
  import { type JSX } from 'solid-js';
2
2
  import type { CustomElement } from '..';
3
3
  export interface CronProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
+ /** 自定义类名 */
5
+ class?: string;
6
+ /** 自定义样式表 */
7
+ css?: string;
4
8
  /** 隐藏域 */
5
9
  exclude?: string[];
6
10
  /** 显示表达式
package/lib/index.d.ts CHANGED
@@ -159,20 +159,21 @@ export type CustomElement<T extends Partial<ICustomElement> = ICustomElement, E
159
159
  offsetWidth?: number;
160
160
  part?: string;
161
161
  };
162
+ type IntrinsicNekoElement = Transform<CustomElementTags>;
162
163
  declare module 'solid-js' {
163
164
  namespace JSX {
164
- interface IntrinsicElements extends HTMLElementTags, Transform<CustomElementTags> {
165
+ interface IntrinsicElements extends HTMLElementTags, IntrinsicNekoElement {
165
166
  }
166
167
  }
167
- interface HTMLElementTagNameMap extends Transform<CustomElementTags> {
168
+ interface HTMLElementTagNameMap extends IntrinsicNekoElement {
168
169
  }
169
170
  }
170
171
  declare global {
171
172
  export namespace JSX {
172
- interface IntrinsicElements extends Transform<CustomElementTags>, Transform<CustomElementTags> {
173
+ interface IntrinsicElements extends IntrinsicNekoElement {
173
174
  }
174
175
  }
175
- interface HTMLElementTagNameMap extends Transform<CustomElementTags> {
176
+ interface HTMLElementTagNameMap extends IntrinsicNekoElement {
176
177
  }
177
178
  }
178
179
  export interface ComponentOptions<T> {