@codesweep-ai/ui 0.3.1-dev.20260915044436.19a76fb → 0.3.1-dev.20260915084532.5566e7d

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 (41) hide show
  1. package/README.md +16 -16
  2. package/catalog.json +212 -97
  3. package/dist/BUILD.json +1 -1
  4. package/dist/components/Card.d.ts +1 -1
  5. package/dist/components/CardGroup.d.ts +1 -1
  6. package/dist/components/CheckboxGroup.d.ts +7 -3
  7. package/dist/components/CheckboxGroup.d.ts.map +1 -1
  8. package/dist/components/CheckboxGroup.js +2 -0
  9. package/dist/components/Dropdown.d.ts +5 -5
  10. package/dist/components/Dropdown.d.ts.map +1 -1
  11. package/dist/components/Dropdown.js +38 -33
  12. package/dist/components/FormGroup.d.ts.map +1 -1
  13. package/dist/components/FormGroup.js +46 -26
  14. package/dist/components/Input.d.ts +5 -1
  15. package/dist/components/Input.d.ts.map +1 -1
  16. package/dist/components/Input.js +47 -39
  17. package/dist/components/SearchInput.d.ts +1 -1
  18. package/dist/components/StatusBadge.d.ts +6 -1
  19. package/dist/components/StatusBadge.d.ts.map +1 -1
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +27 -26
  23. package/dist/lib/chartTheme.d.ts +32 -1
  24. package/dist/lib/chartTheme.d.ts.map +1 -1
  25. package/dist/lib/chartTheme.js +33 -23
  26. package/dist/lib/formGroupField.d.ts +63 -0
  27. package/dist/lib/formGroupField.d.ts.map +1 -0
  28. package/dist/lib/formGroupField.js +16 -0
  29. package/dist/lib/formWiringWarning.d.ts +32 -0
  30. package/dist/lib/formWiringWarning.d.ts.map +1 -0
  31. package/dist/lib/formWiringWarning.js +19 -0
  32. package/dist/lib/forwardRefToRoot.d.ts.map +1 -1
  33. package/dist/lib/forwardRefToRoot.js +13 -12
  34. package/dist/lib/stylesheetWarning.d.ts.map +1 -1
  35. package/dist/lib/stylesheetWarning.js +11 -10
  36. package/dist/lib/useTheme.d.ts +31 -2
  37. package/dist/lib/useTheme.d.ts.map +1 -1
  38. package/dist/lib/useTheme.js +110 -31
  39. package/dist/styles/components/app-shell.css +7 -4
  40. package/dist/styles/tokens.css +48 -14
  41. package/package.json +3 -2
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @codesweep-ai/ui
2
2
 
3
3
  [![ci](https://github.com/codesweep-ai/ui/actions/workflows/ci.yml/badge.svg)](https://github.com/codesweep-ai/ui/actions/workflows/ci.yml)
4
- [![license: Apache-2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/LICENSE)
4
+ [![license: Apache-2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/LICENSE)
5
5
  ![React](https://img.shields.io/badge/react-18%20%C2%B7%2019-informational)
6
6
  ![Themes](https://img.shields.io/badge/themes-light%20%C2%B7%20dark-lightgrey)
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/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/INSTALL.md) has the rest: the prerequisites, which stylesheets a
49
+ [INSTALL.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/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/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/CATALOG.md) indexes them by intent, so search it for what you are
83
+ [CATALOG.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/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/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/components), which holds its props, its
85
+ specification under [`components/`](https://github.com/codesweep-ai/ui/tree/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/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,11 +93,11 @@ 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/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/MANUAL.md) covers all three.
96
+ page paints. [MANUAL.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/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/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/DESIGN_SYSTEM_SPEC.md) lists them. A component
100
+ [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/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
 
@@ -105,27 +105,27 @@ enforces.
105
105
 
106
106
  The documentation lives in the [codesweep-ai/ui](https://github.com/codesweep-ai/ui)
107
107
  GitHub repository rather than in this package. Every link below is pinned
108
- to `19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb`, the commit this build came from, so it describes what you
108
+ to `5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9`, the commit this build came from, so it describes what you
109
109
  installed and not whatever `main` holds when you follow it.
110
110
 
111
111
  `catalog.json` is the exception: it ships beside the code. It is the same
112
112
  index as `CATALOG.md`, as data, and it cannot disagree with the build it
113
113
  came in.
114
114
 
115
- - [INSTALL.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/INSTALL.md) · getting the package, and the setup it needs once
116
- - [MANUAL.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/MANUAL.md) · what the package exports, the entry points, theming and the DOM contract
117
- - [CATALOG.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/CATALOG.md) · every component and pattern, indexed by intent
118
- - [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/DESIGN_SYSTEM_SPEC.md) · the tokens, the architecture and the conventions
119
- - [CHANGELOG.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/CHANGELOG.md) · what an upgrade between versions asks of you
120
- - [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/CONTRIBUTING.md) · working on the package
121
- - [AGENTS.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/AGENTS.md) · where an agent looks first
115
+ - [INSTALL.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/INSTALL.md) · getting the package, and the setup it needs once
116
+ - [MANUAL.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/MANUAL.md) · what the package exports, the entry points, theming and the DOM contract
117
+ - [CATALOG.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/CATALOG.md) · every component and pattern, indexed by intent
118
+ - [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/DESIGN_SYSTEM_SPEC.md) · the tokens, the architecture and the conventions
119
+ - [CHANGELOG.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/CHANGELOG.md) · what an upgrade between versions asks of you
120
+ - [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/CONTRIBUTING.md) · working on the package
121
+ - [AGENTS.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/AGENTS.md) · where an agent looks first
122
122
 
123
123
  ## Contributing
124
124
 
125
125
  Bug reports and pull requests are welcome.
126
- [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/CONTRIBUTING.md) says how to work on the package, and applies
126
+ [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/CONTRIBUTING.md) says how to work on the package, and applies
127
127
  to coding agents as well as to people.
128
128
 
129
129
  ## License
130
130
 
131
- [Apache-2.0](https://github.com/codesweep-ai/ui/blob/19a76fbde6add53dcf72dc2561ed2bfb2ac96ffb/LICENSE).
131
+ [Apache-2.0](https://github.com/codesweep-ai/ui/blob/5566e7d8d6f8a5332d053ce0f43fd35113f3e9b9/LICENSE).