@gridui/inline-notice 1.0.8 → 1.1.1

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
@@ -1,11 +1,21 @@
1
1
  # @gridui/inline-notice
2
2
 
3
- Core family. Public API: `InlineNotice`, `InlineNoticeProps`.
3
+ Feedback family. Public API: `InlineNotice`, `InlineNoticeProps`.
4
4
 
5
5
  Import components from `@gridui/inline-notice` and load `@gridui/inline-notice/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
+
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-feedback/inline-notice/.changeset/history).
9
+
10
+ ## Styles
11
+
12
+ Load Theme once. Use `@gridui/inline-notice/styled` for automatic component CSS in
13
+ CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/inline-notice/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.
7
18
 
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
19
 
10
20
  ## Inline feedback
11
21
 
@@ -16,3 +26,10 @@ making InlineNotice depend on that component's package.
16
26
 
17
27
 
18
28
  [Component reference](docs/reference/README.md) contains focused API pages for each public component.
29
+
30
+ ## Sizing and density
31
+
32
+ InlineNotice keeps natural prose geometry and readable text. Supplied action components choose their own size; the notice does not impose size or density on application content.
33
+
34
+ See the [shared sizing contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/sizing.md)
35
+ for native attributes, scope precedence, tokens and target behavior.
package/dist/styled.js ADDED
@@ -0,0 +1,2 @@
1
+ import "./styles.local.css";
2
+ export * from "./index.js";
@@ -0,0 +1,43 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer theme, base, components, utilities;
3
+ @layer utilities;
4
+ @layer components {
5
+ .gridui-inline-notice {
6
+ display: flex;
7
+ align-items: flex-start;
8
+ flex-wrap: wrap;
9
+ gap: var(--gridui-space-12);
10
+ padding: var(--gridui-space-16);
11
+ border: 1px solid var(--gridui-border);
12
+ border-radius: var(--gridui-control-radius);
13
+ background: var(--gridui-background);
14
+ color: var(--gridui-foreground);
15
+ }
16
+ .gridui-inline-notice[data-tone="success"] {
17
+ border-inline-start: 4px solid var(--gridui-status-success-border);
18
+ }
19
+ .gridui-inline-notice[data-tone="warning"] {
20
+ border-inline-start: 4px solid var(--gridui-status-warning-border);
21
+ }
22
+ .gridui-inline-notice[data-tone="danger"] {
23
+ border-inline-start: 4px solid var(--gridui-status-danger-border);
24
+ }
25
+ .gridui-inline-notice-icon {
26
+ display: inline-flex;
27
+ flex: none;
28
+ }
29
+ .gridui-inline-notice-content {
30
+ flex: 1 1 12rem;
31
+ min-width: 0;
32
+ overflow-wrap: anywhere;
33
+ }
34
+ .gridui-inline-notice-title {
35
+ font-weight: 600;
36
+ }
37
+ .gridui-inline-notice-actions {
38
+ display: flex;
39
+ flex-wrap: wrap;
40
+ align-items: center;
41
+ gap: var(--gridui-space-8);
42
+ }
43
+ }
package/docs/catalog.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/inline-notice",
4
- "version": "1.0.8",
5
- "category": "core",
4
+ "version": "1.1.1",
5
+ "category": "feedback",
6
6
  "description": "GridUI React inline notice",
7
7
  "usage": "Component reference contains focused API pages for each public component.",
8
8
  "documentation": [
@@ -27,9 +27,10 @@
27
27
  "@gridui/theme/styles.css",
28
28
  "@gridui/inline-notice/styles.css"
29
29
  ],
30
+ "styledImport": "@gridui/inline-notice/styled",
30
31
  "examples": [
31
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/content-feedback.mdx",
32
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/getting-started.mdx",
33
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/inline-notice.stories.tsx"
32
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-feedback/inline-notice/stories/content-feedback.mdx",
33
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-feedback/inline-notice/stories/getting-started.mdx",
34
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-feedback/inline-notice/stories/inline-notice.stories.tsx"
34
35
  ]
35
36
  }
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-notice/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-feedback/inline-notice/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/inline-notice.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-feedback/inline-notice/stories/inline-notice.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/inline-notice",
3
- "version": "1.0.8",
3
+ "version": "1.1.1",
4
4
  "description": "GridUI React inline notice",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -10,14 +10,19 @@
10
10
  "README.md"
11
11
  ],
12
12
  "sideEffects": [
13
- "**/*.css"
13
+ "**/*.css",
14
+ "./dist/styled.js"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {
17
18
  "types": "./dist/index.d.ts",
18
19
  "import": "./dist/index.js"
19
20
  },
20
- "./styles.css": "./dist/styles.css"
21
+ "./styles.css": "./dist/styles.css",
22
+ "./styled": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/styled.js"
25
+ }
21
26
  },
22
27
  "publishConfig": {
23
28
  "access": "public"
@@ -27,12 +32,12 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/style-utils": "^4.0.0",
31
- "@gridui/theme": "^3.0.0"
35
+ "@gridui/style-utils": "^4.1.0",
36
+ "@gridui/theme": "^5.0.0"
32
37
  },
33
38
  "devDependencies": {
34
39
  "@gridui-internal/configuration": "0.0.0-internal",
35
- "@gridui/button": "5.1.0",
40
+ "@gridui/button": "6.0.0",
36
41
  "@jest/globals": "30.5.2",
37
42
  "@storybook/react-vite": "10.6.7",
38
43
  "@types/jest": "30.0.0",