@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 +12 -5
- package/dist/styled.js +6 -0
- package/dist/styles.css +1241 -0
- package/dist/styles.local.css +125 -0
- package/docs/catalog.json +2 -1
- package/package.json +20 -8
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.
|
|
31
|
-
styles
|
|
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
|