@gridui/composer 2.1.4 → 2.2.0

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 CHANGED
@@ -3,10 +3,20 @@
3
3
  Dashboard family. Public API: `AttachmentItem`, `AttachmentList`, `Composer`, `ComposerAttachments`, `ComposerInput`, `ComposerActions`, `ComposerFilePicker`, `ComposerSubmit`, and `ComposerStop`.
4
4
 
5
5
  Import components from `@gridui/composer` and load `@gridui/composer/styles.css` after Theme.
6
- Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
6
+ Applications own routes, labels, state persistence, and branding.
7
7
 
8
8
  See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-dashboard/composer/.changeset/history).
9
9
 
10
+ ## Styles
11
+
12
+ Load Theme once. Use `@gridui/composer/styled` for automatic component CSS in
13
+ CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/composer/styles.css`.
14
+ Both entries expose the same root API. The standalone stylesheet includes component
15
+ dependency styles; Theme/reset remain separate. See the
16
+ [integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
17
+ for static HTML loading, SSR limits, and avoiding duplicate CSS.
18
+
19
+
10
20
  ## Submission and native constraints
11
21
 
12
22
  Button and keyboard submission share the textarea's native constraint validation,
package/dist/styled.js ADDED
@@ -0,0 +1,5 @@
1
+ import "@gridui/button/styled";
2
+ import "@gridui/input/styled";
3
+ import "@gridui/file-picker/styled";
4
+ import "./styles.local.css";
5
+ export * from "./index.js";