@gridui/inline-notice 1.0.7 → 1.1.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
  Core 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
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-core/inline-notice/.changeset/history).
9
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.
18
+
19
+
10
20
  ## Inline feedback
11
21
 
12
22
  Import `InlineNotice` and its props from `@gridui/inline-notice`; see the
package/dist/styled.js ADDED
@@ -0,0 +1,2 @@
1
+ import "./styles.local.css";
2
+ export * from "./index.js";
package/dist/styles.css CHANGED
@@ -14,13 +14,13 @@
14
14
  color: var(--gridui-foreground);
15
15
  }
16
16
  .gridui-inline-notice[data-tone="success"] {
17
- border-inline-start: 4px solid var(--gridui-accent-background);
17
+ border-inline-start: 4px solid var(--gridui-status-success-border);
18
18
  }
19
19
  .gridui-inline-notice[data-tone="warning"] {
20
- border-inline-start: 4px solid var(--gridui-warning-foreground);
20
+ border-inline-start: 4px solid var(--gridui-status-warning-border);
21
21
  }
22
22
  .gridui-inline-notice[data-tone="danger"] {
23
- border-inline-start: 4px solid var(--gridui-danger-foreground);
23
+ border-inline-start: 4px solid var(--gridui-status-danger-border);
24
24
  }
25
25
  .gridui-inline-notice-icon {
26
26
  display: inline-flex;
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/inline-notice",
4
- "version": "1.0.7",
4
+ "version": "1.1.0",
5
5
  "category": "core",
6
6
  "description": "GridUI React inline notice",
7
7
  "usage": "Component reference contains focused API pages for each public component.",
@@ -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
32
  "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/inline-notice.stories.tsx",
33
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/notice-actions.stories.tsx"
33
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/getting-started.mdx",
34
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-notice/stories/inline-notice.stories.tsx"
34
35
  ]
35
36
  }
@@ -69,7 +69,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
69
69
 
70
70
  ### tone
71
71
 
72
- ``"neutral" | "warning" | "danger" | "success" | undefined`` · Optional
72
+ ``"neutral" | "success" | "warning" | "danger" | undefined`` · Optional
73
73
 
74
74
  Default: ``"neutral"``
75
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/inline-notice",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
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"
@@ -28,12 +33,13 @@
28
33
  },
29
34
  "dependencies": {
30
35
  "@gridui/style-utils": "^4.0.0",
31
- "@gridui/theme": "^2.5.3"
36
+ "@gridui/theme": "^4.0.0"
32
37
  },
33
38
  "devDependencies": {
34
39
  "@gridui-internal/configuration": "0.0.0-internal",
40
+ "@gridui/button": "5.2.0",
35
41
  "@jest/globals": "30.5.2",
36
- "@storybook/react-vite": "10.6.6",
42
+ "@storybook/react-vite": "10.6.7",
37
43
  "@types/jest": "30.0.0",
38
44
  "@types/node": "26.6.6",
39
45
  "@types/react": "19.3.0",
@@ -46,7 +52,6 @@
46
52
  "scripts": {
47
53
  "build": "node ../../scripts/compilation/package.ts",
48
54
  "compile": "tsc --project tsconfig.json",
49
- "test": "jest",
50
- "coverage": "jest --coverage"
55
+ "test": "jest"
51
56
  }
52
57
  }