@vmz/ui 0.0.2 → 0.0.4

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.
Files changed (53) hide show
  1. package/README.md +25 -3
  2. package/conformance/fixtures/button-control-motion.json +22 -0
  3. package/conformance/fixtures/dialog-overlay-motion.json +27 -0
  4. package/conformance/fixtures/drawer-overlay-motion.json +27 -0
  5. package/conformance/pack.v0.json +7 -0
  6. package/contracts/token-requirements.v0.json +604 -2
  7. package/package.json +50 -2
  8. package/presets/web-surface.v0.json +34 -0
  9. package/src/components/Accordion.vmz +112 -0
  10. package/src/components/Alert.vmz +84 -0
  11. package/src/components/AppShell.vmz +97 -0
  12. package/src/components/Autocomplete.vmz +176 -0
  13. package/src/components/Badge.vmz +63 -0
  14. package/src/components/Breadcrumb.vmz +66 -0
  15. package/src/components/BulkActions.vmz +52 -0
  16. package/src/components/Button.vmz +71 -4
  17. package/src/components/Callout.vmz +80 -0
  18. package/src/components/Card.vmz +81 -0
  19. package/src/components/Checkbox.vmz +69 -0
  20. package/src/components/CodeBlock.vmz +67 -0
  21. package/src/components/ConsoleShell.vmz +127 -0
  22. package/src/components/DataTable.vmz +220 -0
  23. package/src/components/DatePicker.vmz +93 -0
  24. package/src/components/Dialog.vmz +442 -0
  25. package/src/components/Drawer.vmz +435 -0
  26. package/src/components/Empty.vmz +52 -0
  27. package/src/components/Field.vmz +88 -0
  28. package/src/components/FilterBar.vmz +27 -0
  29. package/src/components/Form.vmz +72 -0
  30. package/src/components/FormItem.vmz +78 -0
  31. package/src/components/Link.vmz +48 -0
  32. package/src/components/List.vmz +116 -0
  33. package/src/components/Menu.vmz +270 -0
  34. package/src/components/Notification.vmz +83 -0
  35. package/src/components/Pagination.vmz +81 -0
  36. package/src/components/Popover.vmz +253 -0
  37. package/src/components/Prose.vmz +83 -0
  38. package/src/components/QueryForm.vmz +39 -0
  39. package/src/components/RadioGroup.vmz +135 -0
  40. package/src/components/Result.vmz +84 -0
  41. package/src/components/Select.vmz +351 -0
  42. package/src/components/Skeleton.vmz +80 -0
  43. package/src/components/Spinner.vmz +45 -0
  44. package/src/components/Steps.vmz +107 -0
  45. package/src/components/Switch.vmz +109 -0
  46. package/src/components/Table.vmz +134 -0
  47. package/src/components/Tabs.vmz +132 -0
  48. package/src/components/TextArea.vmz +91 -0
  49. package/src/components/Timeline.vmz +67 -0
  50. package/src/components/Toc.vmz +77 -0
  51. package/src/components/Tooltip.vmz +68 -0
  52. package/src/components/Tree.vmz +215 -0
  53. package/src/components/Upload.vmz +102 -0
package/README.md CHANGED
@@ -9,8 +9,30 @@ VMZ Design ≠ VMZ UI
9
9
  ```
10
10
 
11
11
  - Declares **semantic token requirements** (see `contracts/`).
12
- - Ships ordinary `.vmz` under **`src/components/`** (same hard convention as apps) — **not** `@vmz/plugin-*`, no `componentsRoot` config.
12
+ - Ships ordinary `.vmz` under **`src/components/`** (same hard convention as apps) — **not** `@vmz/plugin-*`, no
13
+ `componentsRoot` config.
13
14
  - **Never** hardcodes brand hex (`#176BFF`, etc.). Applications provide values via `/designs`.
14
- - Naming / ownership: `规划设计/vmz/29`. Architecture: `规划设计/vmz/31` (UI0→UI5).
15
15
 
16
- UI0 scope: package skeleton + `Button` probe + token requirement contract + `pnpm gate:ui0`.
16
+ ## Preview `0.0.4`
17
+
18
+ This is a **preview** release. It is **not** `production-ready` and **not** a mature / production UI.
19
+
20
+ Headline surface for this cut:
21
+
22
+ - Commercial / Console / Document-Product composition dogfood (homepage)
23
+ - Form depth, Structure, Overlay stacking, DataTable (ordinary HTML table — not `@vmz/ui-data-grid`)
24
+ - Density / RTL / preset materialize
25
+ - Motion continuity + interrupt/cancel
26
+ - Motion compiler IR thin gate (`pnpm verify -- motion-ir`)
27
+ - UI7 conformance pack (`@vmz/ui/conformance` + `pnpm verify -- ui7`)
28
+
29
+ Verify:
30
+
31
+ ```bash
32
+ pnpm verify -- ui-automation
33
+ pnpm verify -- ui7
34
+ pnpm verify -- official-dogfood
35
+ ```
36
+
37
+ Still open relative to Browser Production Profile v1: `browser-production` aggregate core gaps, `@vmz/ui-data-grid`, UI7
38
+ browser-timing depth, sibling `vmz-panel` product app.
@@ -0,0 +1,22 @@
1
+ {
2
+ "schema": "vmz.ui.conformance.fixture.v0",
3
+ "id": "ui7.button.control-motion",
4
+ "title": "Button control Motion IR — Style Theme token family",
5
+ "artifact": {
6
+ "kind": "program.json",
7
+ "component": "Button"
8
+ },
9
+ "assertions": [
10
+ {
11
+ "schema": "vmz.test.assertion.v0",
12
+ "kind": "motion",
13
+ "expect": {
14
+ "status": "partial",
15
+ "kinds": ["control"],
16
+ "token": "motion.control",
17
+ "reducedMotion": "honor",
18
+ "planMotionTransition": true
19
+ }
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "schema": "vmz.ui.conformance.fixture.v0",
3
+ "id": "ui7.dialog.overlay-motion",
4
+ "title": "Dialog overlay Motion IR — token + region affects + cancel edges",
5
+ "artifact": {
6
+ "kind": "program.json",
7
+ "component": "Dialog"
8
+ },
9
+ "assertions": [
10
+ {
11
+ "schema": "vmz.test.assertion.v0",
12
+ "kind": "motion",
13
+ "expect": {
14
+ "status": "partial",
15
+ "kinds": ["overlay-enter", "overlay-exit"],
16
+ "token": "motion.overlay",
17
+ "cancelable": true,
18
+ "generation": true,
19
+ "reducedMotion": "honor",
20
+ "hasRegion": true,
21
+ "affectsRegion": true,
22
+ "cancelsFrom": ["motion:reverse", "effect:_cancelExit", "lifecycle:destroy"],
23
+ "planMotionTransition": true
24
+ }
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "schema": "vmz.ui.conformance.fixture.v0",
3
+ "id": "ui7.drawer.overlay-motion",
4
+ "title": "Drawer overlay Motion IR — token + region affects + cancel edges",
5
+ "artifact": {
6
+ "kind": "program.json",
7
+ "component": "Drawer"
8
+ },
9
+ "assertions": [
10
+ {
11
+ "schema": "vmz.test.assertion.v0",
12
+ "kind": "motion",
13
+ "expect": {
14
+ "status": "partial",
15
+ "kinds": ["overlay-enter", "overlay-exit"],
16
+ "token": "motion.overlay",
17
+ "cancelable": true,
18
+ "generation": true,
19
+ "reducedMotion": "honor",
20
+ "hasRegion": true,
21
+ "affectsRegion": true,
22
+ "cancelsFrom": ["motion:reverse", "effect:_cancelExit", "lifecycle:destroy"],
23
+ "planMotionTransition": true
24
+ }
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "schema": "vmz.ui.conformance.pack.v0",
3
+ "id": "ui7",
4
+ "title": "@vmz/ui conformance pack (thin)",
5
+ "description": "External fixtures for Motion IR depth + overlay/control contracts. Consumed by pnpm verify -- ui7 (program.json + vmz test compile motion). Not a second test framework.",
6
+ "fixtures": ["fixtures/dialog-overlay-motion.json", "fixtures/drawer-overlay-motion.json", "fixtures/button-control-motion.json"]
7
+ }