@magicvr/schema-ui-ui 0.1.0
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/components/data-table.d.ts +43 -0
- package/components/ui/async-state.d.ts +27 -0
- package/components/ui/badge.d.ts +9 -0
- package/components/ui/breadcrumbs.d.ts +78 -0
- package/components/ui/button.d.ts +11 -0
- package/components/ui/card.d.ts +8 -0
- package/components/ui/index.d.ts +13 -0
- package/components/ui/input.d.ts +5 -0
- package/components/ui/label.d.ts +3 -0
- package/components/ui/skeleton.d.ts +2 -0
- package/components/ui/textarea.d.ts +5 -0
- package/i18n/catalog.d.ts +51 -0
- package/i18n/format.d.ts +17 -0
- package/i18n/locale.d.ts +51 -0
- package/i18n/runtime.d.ts +90 -0
- package/i18n/timezone.d.ts +57 -0
- package/index.js +6223 -0
- package/lib/datetime.d.ts +14 -0
- package/lib/utils.d.ts +2 -0
- package/package.json +30 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Display-time formatting (GOAL-011 table style): ISO-8601 timestamps are
|
|
3
|
+
* rendered in a human-readable local-time form ("2026-08-01 18:02") instead
|
|
4
|
+
* of the raw wire value ("2026-08-01T18:02:44.000Z").
|
|
5
|
+
*
|
|
6
|
+
* Returns null when the value is not a renderable timestamp so callers fall
|
|
7
|
+
* back to the raw text (numbers, booleans, plain strings, arbitrary dates
|
|
8
|
+
* with other shapes stay untouched).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Formats an ISO-8601 timestamp string to local "YYYY-MM-DD HH:mm". Returns
|
|
12
|
+
* null for non-timestamp values, malformed dates, or non-string input.
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatDisplayTime(value: unknown): string | null;
|
package/lib/utils.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@magicvr/schema-ui-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "schema-ui-core 包面(VP-023 R3 六包化)",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "./components/ui/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./components/ui/index.d.ts",
|
|
11
|
+
"import": "./index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"index.js",
|
|
16
|
+
"lib",
|
|
17
|
+
"theme",
|
|
18
|
+
"components",
|
|
19
|
+
"app",
|
|
20
|
+
"host",
|
|
21
|
+
"i18n",
|
|
22
|
+
"ui",
|
|
23
|
+
"renderer",
|
|
24
|
+
"render"
|
|
25
|
+
],
|
|
26
|
+
"license": "UNLICENSED",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
30
|
+
}
|