@gridui/inline-notice 1.0.0 → 1.0.2

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
@@ -5,7 +5,7 @@ Core family. Public API: `InlineNotice`, `InlineNoticeProps`.
5
5
  Import components from `@gridui/inline-notice` and load `@gridui/inline-notice/styles.css` after Theme.
6
6
  Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
7
7
 
8
- See [component ownership](../../docs/component-ownership.md) and [release history](.changeset/history/).
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-core/inline-notice/.changeset/history).
9
9
 
10
10
  ## Inline feedback
11
11
 
@@ -0,0 +1,26 @@
1
+ # InlineNotice
2
+
3
+ Import `InlineNotice` and `InlineNoticeProps` from `@gridui/inline-notice`. Load Theme and this family's styles. It composes an optional title, decorative icon,
4
+ content and an independent actions slot. Native div props, styles and refs are
5
+ forwarded to the outer container. Supply meaningful text as well as color/icons.
6
+
7
+ `tone` is `neutral` (default), `success`, `warning`, or `danger`. It controls only
8
+ appearance. `announcement` is independently `off` (default), `polite` (`status`),
9
+ or `assertive` (`alert`). The atomic live region contains title and content, not
10
+ the action controls; ordinary rerenders of a button do not change the announced
11
+ message. For dependable update announcements, mount an empty notice first and
12
+ then update its content. Initial live-region announcements vary by assistive
13
+ technology.
14
+
15
+ ```tsx
16
+ import { Button } from "@gridui/button";
17
+ import { InlineNotice } from "@gridui/inline-notice";
18
+
19
+ <InlineNotice title="Save failed" tone="danger" announcement="assertive"
20
+ actions={<Button onClick={retry}>Retry</Button>}>
21
+ Your changes remain available.
22
+ </InlineNotice>
23
+ ```
24
+
25
+ Applications own safe error messages, localization, retry behavior and dismissal.
26
+ The component neither translates exceptions nor manages notifications globally.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@gridui/inline-notice",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "GridUI React inline notice",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
9
+ "docs",
9
10
  "README.md"
10
11
  ],
11
12
  "sideEffects": [
@@ -26,14 +27,15 @@
26
27
  "react-dom": "^19.2.0"
27
28
  },
28
29
  "dependencies": {
29
- "@gridui/style-utils": "^2.1.2",
30
- "@gridui/theme": "^2.1.2"
30
+ "@gridui/style-utils": "^2.1.4",
31
+ "@gridui/theme": "^2.3.2"
31
32
  },
32
33
  "devDependencies": {
33
- "@gridui-internal/configuration": "0.0.0",
34
+ "@gridui-internal/configuration": "0.0.0-internal",
34
35
  "@jest/globals": "30.5.2",
36
+ "@storybook/react-vite": "10.6.5",
35
37
  "@types/jest": "30.0.0",
36
- "@types/node": "26.6.5",
38
+ "@types/node": "26.6.6",
37
39
  "@types/react": "19.3.0",
38
40
  "@types/react-dom": "19.3.0",
39
41
  "jest": "30.5.2",