@cosxai/ui 1.0.0-alpha.1 → 1.0.0-alpha.11

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 (62) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/package.json +10 -4
  3. package/src/brand.css +1 -1
  4. package/src/components/ActionBar.tsx +607 -0
  5. package/src/components/ActivityTimeline.tsx +77 -0
  6. package/src/components/AppRail.tsx +141 -0
  7. package/src/components/AsyncSelect.tsx +205 -0
  8. package/src/components/AuthLayout.tsx +127 -0
  9. package/src/components/Avatar.tsx +75 -0
  10. package/src/components/BottomSheet.tsx +151 -0
  11. package/src/components/BottomTabs.tsx +102 -0
  12. package/src/components/BrandLoader.tsx +122 -0
  13. package/src/components/Breadcrumb.tsx +129 -0
  14. package/src/components/Button.tsx +48 -40
  15. package/src/components/ChoiceCards.tsx +68 -0
  16. package/src/components/CodeInput.tsx +150 -0
  17. package/src/components/CommandPalette.tsx +228 -0
  18. package/src/components/ConfirmDialog.tsx +294 -0
  19. package/src/components/CopyField.tsx +104 -0
  20. package/src/components/DateInput.tsx +366 -0
  21. package/src/components/Dialog.tsx +27 -3
  22. package/src/components/Dropzone.tsx +187 -0
  23. package/src/components/FileCard.tsx +233 -0
  24. package/src/components/FileRow.tsx +159 -0
  25. package/src/components/FolderTree.tsx +377 -0
  26. package/src/components/ListToolbar.tsx +177 -0
  27. package/src/components/MentionInput.tsx +233 -0
  28. package/src/components/Menu.tsx +109 -0
  29. package/src/components/PageHeader.tsx +62 -0
  30. package/src/components/PageState.tsx +84 -0
  31. package/src/components/Popover.tsx +46 -0
  32. package/src/components/Progress.tsx +97 -0
  33. package/src/components/PulseDot.tsx +31 -0
  34. package/src/components/RecipientsInput.tsx +252 -0
  35. package/src/components/SearchField.tsx +137 -0
  36. package/src/components/SegmentedControl.tsx +95 -0
  37. package/src/components/SidePanel.tsx +130 -0
  38. package/src/components/Skeleton.tsx +73 -0
  39. package/src/components/StageProgress.tsx +51 -0
  40. package/src/components/Steps.tsx +58 -0
  41. package/src/components/SyncStatus.tsx +56 -0
  42. package/src/components/ThemeSwitch.tsx +99 -0
  43. package/src/components/Toast.tsx +45 -8
  44. package/src/components/UploadCheck.tsx +118 -0
  45. package/src/components/UploadList.tsx +176 -0
  46. package/src/components/VirtualList.tsx +90 -0
  47. package/src/components/WindowDrop.tsx +131 -0
  48. package/src/components/WorkspaceRow.tsx +80 -0
  49. package/src/components/inputs-aria.ts +5 -0
  50. package/src/components/inputs-date.ts +92 -0
  51. package/src/components/inputs-listbox.tsx +154 -0
  52. package/src/components/inputs-search.ts +60 -0
  53. package/src/components/status-files.ts +124 -0
  54. package/src/components/status-motion.ts +30 -0
  55. package/src/components/useSelection.ts +142 -0
  56. package/src/index.ts +52 -1
  57. package/src/theme-base.css +123 -0
  58. package/src/theme-reset.css +14 -0
  59. package/src/theme.css +2 -125
  60. package/src/components/core.test.tsx +0 -242
  61. package/src/components/forms.test.tsx +0 -280
  62. package/src/components/overlays.test.tsx +0 -245
package/CHANGELOG.md CHANGED
@@ -1,3 +1,112 @@
1
+ ## 1.0.0-alpha.11 (2026-10-01)
2
+
3
+ App shell for the Agent module (Metaroom Agent, desktop and phone):
4
+
5
+ - Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose: a
6
+ small non-modal panel on Radix Popover — portal, flips to fit, Esc and
7
+ outside click close, focus returns. `inline` keeps it out of the portal.
8
+ - Avatar: a person's photo or initials, sizes 20–52, tone chrome / brand,
9
+ optional ring; decorative unless `label` is given.
10
+ - BottomSheet: the phone's sheet on Radix Dialog — drag handle, title, drag
11
+ or flick down to close, scrim, 20px top corners, safe-area padding, a
12
+ screen-reader close button.
13
+ - BottomTabs: the phone tab bar — 48×28 pill in the brand field for the
14
+ current tab, counts, avatar tab, disabled tabs at 40% (aria-disabled,
15
+ `onDisabledSelect`).
16
+ - AppRail + AppRailSlot: the 60px desktop rail — workspace slot, 40×38
17
+ module buttons (brand field when current), counts and dots, disabled
18
+ modules with the caller's tooltip, account slot. A nav of buttons with
19
+ aria-current.
20
+
21
+ ## 1.0.0-alpha.10 (2026-09-30)
22
+
23
+ - BrandLoader: the COSX loop as a loading indicator (Claude Design, COSX
24
+ Loader). A short stroke runs the loop, blooms into the full mark, holds,
25
+ gathers back — 3.4 s a round, the head's speed continuous; at rest it
26
+ is the logo itself. Tones ink / linen / accent / current, an optional
27
+ faint track, `speed`; the full mark, still, under reduced motion. For
28
+ whole-page and start-up waits; buttons, rows and inputs keep Spinner.
29
+
30
+ ## 1.0.0-alpha.9 (2026-09-30)
31
+
32
+ - WorkspaceRow: `badge` — what the workspace still needs, as an attention
33
+ badge beside the chevron ("Needs setup"; Metaroom Sign In, Set up your
34
+ workspace).
35
+
36
+ ## 1.0.0-alpha.8 (2026-09-30)
37
+
38
+ - ThemeSwitch: `defaultOpen` starts it opened (documentation specimens).
39
+ - WorkspaceMark: a logo that failed before React hydrated (a server-rendered
40
+ page) now falls back to the initial too — onError had already fired.
41
+ - design.cosx.co: Patterns · Sign-in, every specimen the real component.
42
+
43
+ ## 1.0.0-alpha.7 (2026-09-30)
44
+
45
+ Sign-in patterns checked against design.cosx.co Patterns · Sign-in:
46
+
47
+ - AuthPanel: the highlight band runs 40–94% with a hair of overhang each
48
+ side; Chinese sets at 1.35, untracked, band from 50% (typography-cjk's
49
+ :lang(zh) line-height is unlayered, so this one is important).
50
+ - WorkspaceRow: 14px name at 1.35, the outline an inset rule on the page
51
+ colour (no border box).
52
+
53
+ ## 1.0.0-alpha.6 (2026-09-29)
54
+
55
+ Sign-in patterns (Metaroom sign-in, design.cosx.co), moved here from the
56
+ COSX app so every product signs in with the same pages:
57
+
58
+ - AuthLayout: the step under the product lockup, header end (theme switch),
59
+ help line, footer, and the yellow panel — dropped under 900px (container
60
+ query, so a narrow window or pane works too). AuthPanel for the panel's
61
+ text, AuthStepHead and AuthIconTile for a step.
62
+ - ThemeSwitch: match system · light · dark, folded to the current choice;
63
+ hover or focus opens it, a quick click steps, a settled click picks.
64
+ Follows the ThemeProvider unless given value / onChange.
65
+ - WorkspaceRow and WorkspaceMark: a workspace in a chooser (logo or
66
+ initial, name, detail, busy).
67
+ - Every string is a prop with an English default.
68
+
69
+ ## 1.0.0-alpha.5 (2026-09-29)
70
+
71
+ - Builds under the consuming app's TypeScript settings without
72
+ DOM.Iterable (ActionBar no longer spreads a NodeList); `typecheck` checks it.
73
+
74
+ ## 1.0.0-alpha.4 (2026-09-29)
75
+
76
+ - ToastCard: one toast drawn in place (documentation specimens, previews).
77
+ - theme.css is now theme-reset.css + theme-base.css. An app moving to the
78
+ kit screen by screen imports `@cosxai/ui/theme-base.css`: the kit's
79
+ utilities are added and Tailwind's own palette and sizes keep working.
80
+ New apps keep importing theme.css (unchanged result).
81
+
82
+ ## 1.0.0-alpha.3 (2026-09-29)
83
+
84
+ - Button: busy and done draw over the idle content, kept in place and
85
+ hidden, so the width never changes — also when the button first
86
+ renders busy (it used to shrink to the spinner). No width measuring.
87
+
88
+ ## 1.0.0-alpha.2 (2026-09-29)
89
+
90
+ Metaroom product patterns (spec P0), checked light / ink × en / zh.
91
+
92
+ - Surfaces: ActionBar (pages register actions; idle / selection / mode,
93
+ Esc steps back; folds by group and past six; responsive, fold handle
94
+ with status dot, drag + remembered position), Menu, CommandPalette
95
+ (async sources, no "No results" until all return), SidePanel (one
96
+ right-hand slot), Dialog sizes 800 / 1120, ConfirmDialog (type to
97
+ confirm), PromptDialog, StepUpDialog.
98
+ - Data display: useSelection, FileCard, FileList/FileRow, ListToolbar,
99
+ VirtualList + InfiniteLoader, FolderTree (WAI-ARIA tree, lazy,
100
+ reveal, partial ticks), Breadcrumb, PageHeader, Steps, ActivityTimeline.
101
+ - Inputs: SearchField, CopyField, SegmentedControl, ChoiceCards,
102
+ DateInput, FuzzyDateInput, CodeInput, AsyncSelect, RecipientsInput,
103
+ MentionInput.
104
+ - Upload and status: Progress, StageProgress, Dropzone, WindowDrop,
105
+ UploadCheck, UploadList, SyncStatus, PulseDot, Skeleton, PageState.
106
+ - Button: disabled sinks into the well with grey text (was opacity);
107
+ busy keeps its look. Dialog returns focus to whatever opened it.
108
+ - 144 tests (behaviour + axe). Test files no longer ship in the package.
109
+
1
110
  ## 1.0.0-alpha.1 (2026-09-29)
2
111
 
3
112
  All 22 COSX Design System 3.0 primitives, checked against their
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cosxai/ui",
3
- "version": "1.0.0-alpha.1",
4
- "description": "COSX Design System 3.0 — tokens, Tailwind v4 theme and React components",
3
+ "version": "1.0.0-alpha.11",
4
+ "description": "COSX Design System 3.0 \u2014 tokens, Tailwind v4 theme and React components",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "main": "./src/index.ts",
@@ -10,11 +10,13 @@
10
10
  ".": "./src/index.ts",
11
11
  "./styles.css": "./src/styles.css",
12
12
  "./theme.css": "./src/theme.css",
13
- "./tokens/*": "./src/tokens/*"
13
+ "./tokens/*": "./src/tokens/*",
14
+ "./theme-base.css": "./src/theme-base.css"
14
15
  },
15
16
  "files": [
16
17
  "src",
17
18
  "!src/**/*.test.ts",
19
+ "!src/**/*.test.tsx",
18
20
  "README.md",
19
21
  "CHANGELOG.md",
20
22
  "NOTICE"
@@ -29,7 +31,7 @@
29
31
  "registry": "https://registry.npmjs.org/"
30
32
  },
31
33
  "scripts": {
32
- "typecheck": "tsc --noEmit",
34
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.consumer.json",
33
35
  "test": "vitest run",
34
36
  "check:css": "tailwindcss -i test/fixture.css -o test/out.css",
35
37
  "playground": "vite --config playground/vite.config.ts"
@@ -67,6 +69,7 @@
67
69
  "@fontsource-variable/noto-sans-sc": "^5.3.0",
68
70
  "@radix-ui/react-checkbox": "^1.3.11",
69
71
  "@radix-ui/react-dialog": "^1.1.23",
72
+ "@radix-ui/react-dropdown-menu": "^2.1.24",
70
73
  "@radix-ui/react-label": "^2.1.15",
71
74
  "@radix-ui/react-popover": "^1.1.23",
72
75
  "@radix-ui/react-radio-group": "^1.4.7",
@@ -75,9 +78,12 @@
75
78
  "@radix-ui/react-tabs": "^1.1.21",
76
79
  "@radix-ui/react-toast": "^1.2.23",
77
80
  "@radix-ui/react-tooltip": "^1.2.16",
81
+ "@tanstack/react-virtual": "^3.14.13",
78
82
  "class-variance-authority": "^0.7.1",
79
83
  "clsx": "^2.1.1",
84
+ "cmdk": "^1.1.1",
80
85
  "lucide-react": "^1.48.0",
86
+ "react-day-picker": "^10.0.1",
81
87
  "tailwind-merge": "^3.3.1"
82
88
  },
83
89
  "peerDependenciesMeta": {
package/src/brand.css CHANGED
@@ -1,4 +1,4 @@
1
- /* @cosxai/ui — workspace brand injection (MetaRoom spec §01).
1
+ /* @cosxai/ui — workspace brand injection (Metaroom spec §01).
2
2
  *
3
3
  * A customer's colour replaces the COSX yellow through two variables;
4
4
  * everything else stays ink, so any colour keeps text readable: