@coolms/ui-react 0.1.0-alpha.4 → 0.1.0-alpha.42

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/kit.contract.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kit": "@coolms/ui-react",
3
3
  "components": {
4
- "button": { "implementedBy": "Button", "states": ["default", "primary", "danger", "disabled", "busy", "locked"] },
4
+ "button": { "implementedBy": "Button", "states": ["default", "primary", "danger", "disabled", "busy", "locked", "quiet"] },
5
5
  "text-field": { "implementedBy": "TextField", "states": ["default", "focused", "disabled", "read-only", "invalid", "pinned"] },
6
6
  "select": { "implementedBy": "Select", "states": ["default", "disabled", "read-only", "invalid", "empty-list"] },
7
7
  "toggle": { "implementedBy": "Toggle", "states": ["on", "off", "disabled", "read-only"] },
@@ -10,12 +10,21 @@
10
10
  "toast": { "implementedBy": "Toast", "states": ["success", "error", "info", "with-action"] },
11
11
  "loading": { "implementedBy": "Loading", "states": ["inline", "block"] },
12
12
  "empty-state": { "implementedBy": "EmptyState", "states": ["default", "with-action"] },
13
+ "state": { "implementedBy": "State", "states": ["loading", "empty", "error", "denied", "page", "block", "inline", "with-action", "delayed"] },
13
14
  "error-banner": { "implementedBy": "ErrorBanner", "states": ["default", "with-retry"] },
14
15
  "page-header": { "implementedBy": "PageHeader", "states": ["default", "with-actions", "with-back-link"] },
16
+ "section-header": { "implementedBy": "SectionHeader", "states": ["default", "with-primary", "with-primary-menu", "with-more", "with-secondary", "secondary-icon", "secondary-in-more", "lone-menu-only", "action-disabled", "with-context", "with-description", "meta-hidden", "meta-cut", "primary-icon", "primary-in-more", "full-width"] },
15
17
  "tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
16
- "list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error"] },
17
- "avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence"] },
18
- "context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused"] }
18
+ "list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
19
+ "avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
20
+ "filter-menu": { "implementedBy": "FilterMenu", "states": ["default", "active", "open", "focused"] },
21
+ "screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filter", "filtered", "filter-in-more", "with-primary-action", "with-primary-menu", "with-more", "pulling", "refreshing", "searching", "bar-hidden"] },
22
+ "context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
23
+ "file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
24
+ "file-picker": { "implementedBy": "FilePicker", "states": ["loading", "empty", "error", "denied", "with-selection", "with-budget", "over-budget", "disabled-entry", "paging", "phone"] },
25
+ "notification": { "implementedBy": "Notification", "states": ["unread", "read", "collapsed", "expanded", "with-action", "row-action"] },
26
+ "pane-toolbar": { "implementedBy": "PaneToolbar", "states": ["default", "labels-partly-hidden", "labels-hidden", "overflowing", "menu-open", "with-status", "action-disabled", "action-busy", "phone", "lone-menu-only"] },
27
+ "splitter": { "implementedBy": "Splitter", "states": ["default", "hover", "dragging", "focused", "at-min", "at-max"] }
19
28
  },
20
29
  "serverStates": {
21
30
  "node-rwx": { "where": "src/server/capability.ts" },
@@ -29,6 +38,7 @@
29
38
  "client-version": { "where": "src/server/client-update.ts" }
30
39
  },
31
40
  "notOffered": {
32
- "elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)"
41
+ "elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)",
42
+ "settings-shell": "no screen of this kit's clients draws a settings layout yet: it is offered with the first one (My Profile)"
33
43
  }
34
44
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.42",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/coolms/ui-react.git"
9
+ "url": "git+https://github.com/coolms/ui-react.git"
10
10
  },
11
11
  "engines": {
12
12
  "node": "^22.0.0 || ^24.0.0 || ^26.0.0"
@@ -42,9 +42,12 @@
42
42
  "demo": "vite --config demo/vite.config.ts",
43
43
  "demo:build": "vite build --config demo/vite.config.ts",
44
44
  "check:layout": "node tools/check-layout.mjs",
45
- "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build && npm run check:layout",
45
+ "check:ui-text": "node tools/check-ui-text.mjs",
46
+ "verify": "npm run tokens:check && npm run check && npm run check:ui-text && npm run typecheck && npm test && npm run build && npm run check:built && npm run check:types-resolution && npm run check:package && npm run demo:build && npm run check:layout",
46
47
  "build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
47
48
  "check:built": "node tools/check-built.mjs",
49
+ "check:types-resolution": "node tools/check-types-resolution.mjs",
50
+ "check:package": "node tools/check-package.mjs",
48
51
  "prepack": "npm run build"
49
52
  },
50
53
  "peerDependencies": {
@@ -52,6 +55,7 @@
52
55
  "react-dom": "^19.2.3"
53
56
  },
54
57
  "devDependencies": {
58
+ "@arethetypeswrong/cli": "0.18.5",
55
59
  "@testing-library/jest-dom": "6.9.1",
56
60
  "@testing-library/react": "16.3.3",
57
61
  "@testing-library/user-event": "14.6.7",
@@ -59,10 +63,11 @@
59
63
  "@types/react-dom": "19.2.7",
60
64
  "@vitejs/plugin-react": "4.7.0",
61
65
  "jsdom": "26.1.0",
66
+ "publint": "0.3.25",
62
67
  "react": "19.2.3",
63
68
  "react-dom": "19.2.3",
64
69
  "typescript": "6.0.3",
65
- "vite": "6.4.4",
66
- "vitest": "3.2.7"
70
+ "vite": "6.4.5",
71
+ "vitest": "5.1.0"
67
72
  }
68
73
  }