@vobs/ui 1.2.2 → 1.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.
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -1
- package/package.json +5 -5
- package/src/types.ts +7 -0
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { VobsNode } from '@vobs/vobs'\n\nexport type VuiAttributeValue = string | number | boolean | undefined\n\nexport type VuiChildren =\n | VobsNode\n | string\n | number\n | readonly VuiChildren[]\n | (() => VuiChildren | null | undefined)\n\nexport interface VuiCommonProps {\n readonly class?: string\n readonly className?: string\n readonly style?: string\n readonly id?: string\n readonly title?: string\n readonly role?: string\n readonly tabIndex?: number\n readonly children?: VuiChildren\n readonly [name: `aria-${string}`]: VuiAttributeValue\n readonly [name: `data-${string}`]: VuiAttributeValue\n}\n\nexport type VuiEventHandler<EventType extends Event = Event> = (event: EventType) => void\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { VobsNode } from '@vobs/vobs'\n\nexport type VuiAttributeValue = string | number | boolean | undefined\n\n/**\n * 条件 JSX 子节点(`{cond ? <A/> : null}`、`{cond && <B/>}`)在类型层面产出\n * null/false,是合法子节点形态(运行时归一化为空),与节点/文本/数组并列。\n */\nexport type VuiChildren =\n | VobsNode\n | string\n | number\n | boolean\n | null\n | undefined\n | readonly VuiChildren[]\n | (() => VuiChildren | null | undefined)\n\nexport interface VuiCommonProps {\n readonly class?: string\n readonly className?: string\n readonly style?: string\n readonly id?: string\n readonly title?: string\n readonly role?: string\n readonly tabIndex?: number\n readonly children?: VuiChildren\n readonly [name: `aria-${string}`]: VuiAttributeValue\n readonly [name: `data-${string}`]: VuiAttributeValue\n}\n\nexport type VuiEventHandler<EventType extends Event = Event> = (event: EventType) => void\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { VobsNode } from '@vobs/vobs';
|
|
2
2
|
|
|
3
3
|
type VuiAttributeValue = string | number | boolean | undefined;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 条件 JSX 子节点(`{cond ? <A/> : null}`、`{cond && <B/>}`)在类型层面产出
|
|
6
|
+
* null/false,是合法子节点形态(运行时归一化为空),与节点/文本/数组并列。
|
|
7
|
+
*/
|
|
8
|
+
type VuiChildren = VobsNode | string | number | boolean | null | undefined | readonly VuiChildren[] | (() => VuiChildren | null | undefined);
|
|
5
9
|
interface VuiCommonProps {
|
|
6
10
|
readonly class?: string;
|
|
7
11
|
readonly className?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { VobsNode } from '@vobs/vobs';
|
|
2
2
|
|
|
3
3
|
type VuiAttributeValue = string | number | boolean | undefined;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 条件 JSX 子节点(`{cond ? <A/> : null}`、`{cond && <B/>}`)在类型层面产出
|
|
6
|
+
* null/false,是合法子节点形态(运行时归一化为空),与节点/文本/数组并列。
|
|
7
|
+
*/
|
|
8
|
+
type VuiChildren = VobsNode | string | number | boolean | null | undefined | readonly VuiChildren[] | (() => VuiChildren | null | undefined);
|
|
5
9
|
interface VuiCommonProps {
|
|
6
10
|
readonly class?: string;
|
|
7
11
|
readonly className?: string;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/vobsjs/vobs.git"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.3.1",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -201,10 +201,10 @@
|
|
|
201
201
|
"./src/styles/*.css"
|
|
202
202
|
],
|
|
203
203
|
"dependencies": {
|
|
204
|
-
"@vobs/icon-core": "1.
|
|
205
|
-
"@vobs/
|
|
206
|
-
"@vobs/
|
|
207
|
-
"@vobs/vobs": "1.
|
|
204
|
+
"@vobs/icon-core": "1.3.1",
|
|
205
|
+
"@vobs/reactivity": "1.3.1",
|
|
206
|
+
"@vobs/notification": "1.3.1",
|
|
207
|
+
"@vobs/vobs": "1.3.1"
|
|
208
208
|
},
|
|
209
209
|
"scripts": {
|
|
210
210
|
"test": "vitest --environment jsdom"
|
package/src/types.ts
CHANGED
|
@@ -2,10 +2,17 @@ import type { VobsNode } from '@vobs/vobs'
|
|
|
2
2
|
|
|
3
3
|
export type VuiAttributeValue = string | number | boolean | undefined
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* 条件 JSX 子节点(`{cond ? <A/> : null}`、`{cond && <B/>}`)在类型层面产出
|
|
7
|
+
* null/false,是合法子节点形态(运行时归一化为空),与节点/文本/数组并列。
|
|
8
|
+
*/
|
|
5
9
|
export type VuiChildren =
|
|
6
10
|
| VobsNode
|
|
7
11
|
| string
|
|
8
12
|
| number
|
|
13
|
+
| boolean
|
|
14
|
+
| null
|
|
15
|
+
| undefined
|
|
9
16
|
| readonly VuiChildren[]
|
|
10
17
|
| (() => VuiChildren | null | undefined)
|
|
11
18
|
|