@gridui/tag-input 1.1.4 → 1.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
@@ -6,9 +6,6 @@ Import components from `@gridui/tag-input` and load these styles in order.
6
6
 
7
7
  ```css
8
8
  @import "@gridui/theme/styles.css";
9
- @import "@gridui/button/styles.css";
10
- @import "@gridui/input/styles.css";
11
- @import "@gridui/form/styles.css";
12
9
  @import "@gridui/tag-input/styles.css";
13
10
  ```
14
11
 
@@ -19,6 +16,16 @@ See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/
19
16
 
20
17
  [Component reference](docs/reference/README.md) contains focused API pages for each public component.
21
18
 
19
+ ## Styles
20
+
21
+ Load Theme once. Use `@gridui/tag-input/styled` for automatic component CSS in
22
+ CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/tag-input/styles.css`.
23
+ Both entries expose the same root API. The standalone stylesheet includes component
24
+ dependency styles; Theme/reset remain separate. See the
25
+ [integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
26
+ for static HTML loading, SSR limits, and avoiding duplicate CSS.
27
+
28
+
22
29
  ## Drafts and suggestions
23
30
 
24
31
  `draft`/`onDraftChange` control the text being edited independently of committed
@@ -27,8 +34,8 @@ defaultDraft. Reset requests the initial draft; controlled consumers can reject
27
34
  that request. Draft text is excluded from native form submission.
28
35
 
29
36
  Optional `suggestions` accepts Autocomplete options, searchLabel, emptyLabel,
30
- filterOptions, loading/error labels and portalContainer. Load Overlay and Select
31
- styles as well as the existing family styles when using suggestions. Selecting a
37
+ filterOptions, loading/error labels and portalContainer. Overlay and Select
38
+ styles are included in the family stylesheet. Selecting a
32
39
  suggestion commits its value through normal tag validation, deduplication and
33
40
  limits. Unknown text still commits with Enter/comma. Highlighting a suggestion
34
41
  with arrows makes Enter choose it; IME confirmation never commits. onReject keeps
package/dist/styled.js ADDED
@@ -0,0 +1,6 @@
1
+ import "@gridui/button/styled";
2
+ import "@gridui/form/styled";
3
+ import "@gridui/input/styled";
4
+ import "@gridui/select/styled";
5
+ import "./styles.local.css";
6
+ export * from "./index.js";