@codesweep-ai/ui 0.2.1-dev.20260901200135.3160175 → 0.2.1-dev.20260908060059.c1aae9a
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/README.md +23 -16
- package/catalog.json +1914 -0
- package/dist/BUILD.json +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +57 -53
- package/dist/components/CardGroup.d.ts.map +1 -1
- package/dist/components/CardGroup.js +22 -21
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.js +13 -13
- package/dist/components/EventLanes.d.ts +1 -1
- package/dist/components/EventLanes.d.ts.map +1 -1
- package/dist/components/EventLanes.js +176 -172
- package/dist/components/FormGroup.d.ts.map +1 -1
- package/dist/components/FormGroup.js +16 -13
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +43 -40
- package/dist/components/LightweightMarkdown.d.ts.map +1 -1
- package/dist/components/LightweightMarkdown.js +30 -5
- package/dist/components/MarkdownMinimap.d.ts +10 -1
- package/dist/components/MarkdownMinimap.d.ts.map +1 -1
- package/dist/components/MarkdownMinimap.js +33 -33
- package/dist/components/MarkdownViewer.d.ts +20 -0
- package/dist/components/MarkdownViewer.d.ts.map +1 -1
- package/dist/components/MarkdownViewer.js +170 -120
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Modal.js +39 -38
- package/dist/components/Page.d.ts +23 -0
- package/dist/components/Page.d.ts.map +1 -0
- package/dist/components/Page.js +20 -0
- package/dist/components/Panel.d.ts +14 -0
- package/dist/components/Panel.d.ts.map +1 -1
- package/dist/components/Panel.js +27 -23
- package/dist/components/SectionedTree.d.ts +26 -0
- package/dist/components/SectionedTree.d.ts.map +1 -1
- package/dist/components/SectionedTree.js +53 -43
- package/dist/components/SplitPane.d.ts.map +1 -1
- package/dist/components/SplitPane.js +4 -4
- package/dist/components/StreamingText.d.ts.map +1 -1
- package/dist/components/StreamingText.js +2 -2
- package/dist/components/Table.d.ts +12 -0
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +111 -96
- package/dist/components/ThemeToggle.d.ts.map +1 -1
- package/dist/components/ThemeToggle.js +28 -24
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/Tooltip.d.ts +33 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip.js +123 -0
- package/dist/components/Tree.d.ts +35 -0
- package/dist/components/Tree.d.ts.map +1 -1
- package/dist/components/Tree.js +257 -223
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -28
- package/dist/lib/chartTheme.d.ts +12 -0
- package/dist/lib/chartTheme.d.ts.map +1 -1
- package/dist/lib/chartTheme.js +50 -12
- package/dist/lib/clippedContentWarning.d.ts +20 -0
- package/dist/lib/clippedContentWarning.d.ts.map +1 -0
- package/dist/lib/clippedContentWarning.js +33 -0
- package/dist/lib/forwardRefToRoot.d.ts.map +1 -1
- package/dist/lib/forwardRefToRoot.js +13 -11
- package/dist/lib/markdownUrl.d.ts +13 -1
- package/dist/lib/markdownUrl.d.ts.map +1 -1
- package/dist/lib/markdownUrl.js +46 -3
- package/dist/lib/stylesheetWarning.d.ts +33 -0
- package/dist/lib/stylesheetWarning.d.ts.map +1 -0
- package/dist/lib/stylesheetWarning.js +17 -0
- package/dist/styles/components/agent-status.css +6 -0
- package/dist/styles/components/agent-trace.css +6 -0
- package/dist/styles/components/app-shell.css +23 -0
- package/dist/styles/components/button.css +6 -0
- package/dist/styles/components/card-group.css +6 -0
- package/dist/styles/components/card.css +14 -0
- package/dist/styles/components/chart-frame.css +6 -0
- package/dist/styles/components/chart-tooltip.css +6 -0
- package/dist/styles/components/checkbox-group.css +6 -0
- package/dist/styles/components/chip.css +6 -0
- package/dist/styles/components/code-block.css +6 -0
- package/dist/styles/components/dropdown.css +7 -1
- package/dist/styles/components/event-lanes.css +8 -0
- package/dist/styles/components/form-group.css +15 -0
- package/dist/styles/components/highlight-text.css +6 -0
- package/dist/styles/components/input.css +10 -2
- package/dist/styles/components/legend.css +6 -0
- package/dist/styles/components/markdown-minimap.css +6 -0
- package/dist/styles/components/markdown-viewer.css +6 -0
- package/dist/styles/components/mermaid-diagram.css +6 -0
- package/dist/styles/components/modal.css +6 -0
- package/dist/styles/components/page.css +50 -0
- package/dist/styles/components/panel.css +13 -1
- package/dist/styles/components/pulse-badge.css +6 -0
- package/dist/styles/components/radio-group.css +6 -0
- package/dist/styles/components/search-input.css +6 -0
- package/dist/styles/components/sectioned-tree.css +6 -0
- package/dist/styles/components/segmented-control.css +6 -0
- package/dist/styles/components/skeleton.css +6 -0
- package/dist/styles/components/split-pane.css +6 -0
- package/dist/styles/components/status-badge.css +6 -0
- package/dist/styles/components/streaming-text.css +6 -0
- package/dist/styles/components/table.css +18 -0
- package/dist/styles/components/theme-toggle.css +7 -0
- package/dist/styles/components/toast-container.css +6 -0
- package/dist/styles/components/toast.css +6 -0
- package/dist/styles/components/tooltip.css +56 -0
- package/dist/styles/components/tree.css +99 -0
- package/dist/styles/components.css +2 -0
- package/dist/styles/tokens.css +2 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @codesweep-ai/ui
|
|
2
2
|
|
|
3
3
|
[](https://github.com/codesweep-ai/ui/actions/workflows/ci.yml)
|
|
4
|
-
[](https://github.com/codesweep-ai/ui/blob/
|
|
4
|
+
[](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/LICENSE)
|
|
5
5
|

|
|
6
6
|

|
|
7
7
|
|
|
@@ -46,7 +46,7 @@ export function RunStatus() {
|
|
|
46
46
|
}
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
[INSTALL.md](https://github.com/codesweep-ai/ui/blob/
|
|
49
|
+
[INSTALL.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/INSTALL.md) has the rest: the prerequisites, which stylesheets a
|
|
50
50
|
project needs, and the boot script that applies a theme before React paints. To
|
|
51
51
|
look at the components before installing anything, start with the catalogue
|
|
52
52
|
app below.
|
|
@@ -80,9 +80,9 @@ filesystem.
|
|
|
80
80
|
## Finding a component
|
|
81
81
|
|
|
82
82
|
The package ships dozens of components and patterns.
|
|
83
|
-
[CATALOG.md](https://github.com/codesweep-ai/ui/blob/
|
|
83
|
+
[CATALOG.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/CATALOG.md) indexes them by intent, so search it for what you are
|
|
84
84
|
building rather than scanning a list. Each entry links to that component's
|
|
85
|
-
specification under [`components/`](https://github.com/codesweep-ai/ui/tree/
|
|
85
|
+
specification under [`components/`](https://github.com/codesweep-ai/ui/tree/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/components), which holds its props, its
|
|
86
86
|
visual spec, and the DOM hooks it guarantees.
|
|
87
87
|
|
|
88
88
|
The catalogue also gives the order to decide in. Match an entry and compose it,
|
|
@@ -93,32 +93,39 @@ fits.
|
|
|
93
93
|
|
|
94
94
|
Light and dark both ship. `ThemeToggle` renders the control, `useTheme` reads
|
|
95
95
|
and sets the value, and `themeBootScript` applies the stored choice before the
|
|
96
|
-
page paints. [MANUAL.md](https://github.com/codesweep-ai/ui/blob/
|
|
96
|
+
page paints. [MANUAL.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/MANUAL.md) covers all three.
|
|
97
97
|
|
|
98
98
|
The tokens beneath both themes cover colour, space, radius, type and elevation.
|
|
99
99
|
Every one is a CSS custom property, and section 4 of
|
|
100
|
-
[DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/
|
|
100
|
+
[DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/DESIGN_SYSTEM_SPEC.md) lists them. A component
|
|
101
101
|
stylesheet reads tokens and never literal values, which `npm run check`
|
|
102
102
|
enforces.
|
|
103
103
|
|
|
104
104
|
## Docs
|
|
105
105
|
|
|
106
106
|
The documentation lives in the [codesweep-ai/ui](https://github.com/codesweep-ai/ui)
|
|
107
|
-
GitHub repository
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
GitHub repository rather than in this package. Every link below is pinned
|
|
108
|
+
to `c1aae9a30fd763d7f2e41df69606ea6c07aec9dc`, the commit this build came from, so it describes what you
|
|
109
|
+
installed and not whatever `main` holds when you follow it.
|
|
110
|
+
|
|
111
|
+
`catalog.json` is the exception: it ships beside the code. It is the same
|
|
112
|
+
index as `CATALOG.md`, as data, and it cannot disagree with the build it
|
|
113
|
+
came in.
|
|
114
|
+
|
|
115
|
+
- [INSTALL.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/INSTALL.md) · getting the package, and the setup it needs once
|
|
116
|
+
- [MANUAL.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/MANUAL.md) · what the package exports, the entry points, theming and the DOM contract
|
|
117
|
+
- [CATALOG.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/CATALOG.md) · every component and pattern, indexed by intent
|
|
118
|
+
- [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/DESIGN_SYSTEM_SPEC.md) · the tokens, the architecture and the conventions
|
|
119
|
+
- [CHANGELOG.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/CHANGELOG.md) · what an upgrade between versions asks of you
|
|
120
|
+
- [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/CONTRIBUTING.md) · working on the package
|
|
121
|
+
- [AGENTS.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/AGENTS.md) · where an agent looks first
|
|
115
122
|
|
|
116
123
|
## Contributing
|
|
117
124
|
|
|
118
125
|
Bug reports and pull requests are welcome.
|
|
119
|
-
[CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/
|
|
126
|
+
[CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/CONTRIBUTING.md) says how to work on the package, and applies
|
|
120
127
|
to coding agents as well as to people.
|
|
121
128
|
|
|
122
129
|
## License
|
|
123
130
|
|
|
124
|
-
[Apache-2.0](https://github.com/codesweep-ai/ui/blob/
|
|
131
|
+
[Apache-2.0](https://github.com/codesweep-ai/ui/blob/c1aae9a30fd763d7f2e41df69606ea6c07aec9dc/LICENSE).
|