@gridui/action-navigation 1.0.4 → 1.0.6

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,3 +6,5 @@ Import components from `@gridui/action-navigation` and load `@gridui/action-navi
6
6
  Load styles for any composed dependency used by this family. 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/action-navigation/.changeset/history).
9
+
10
+ [Component reference](docs/reference/README.md) contains focused API pages for each public component.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { cn } from "@gridui/style-utils";
3
3
  import { cva } from "class-variance-authority";
4
4
  var actionNavigationStyles = cva(cn(
5
5
  "gridui-action-navigation",
6
- "gridui-u-flex gridui-u-flex-wrap gridui-u-gap-gridui-16"
6
+ "gridui-u-action-navigation--flex gridui-u-action-navigation--flex-wrap gridui-u-action-navigation--gap-gridui-16"
7
7
  ));
8
8
 
9
9
  // src/action-navigation/action-navigation.tsx
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/action-navigation/style.ts", "../src/action-navigation/action-navigation.tsx"],
4
- "sourcesContent": ["/**\n * @author WMXPY\n * @package Action Navigation\n * @namespace ActionNavigation\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const actionNavigationStyles = cva(cn(\n \"gridui-action-navigation\",\n \"gridui-u-flex gridui-u-flex-wrap gridui-u-gap-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Action Navigation\n * @namespace ActionNavigation\n * @description Action Navigation\n */\n\nimport { actionNavigationStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ActionNavigationProps = ComponentPropsWithRef<\"nav\">;\n\nexport const ActionNavigation: FC<ActionNavigationProps> = (props: ActionNavigationProps) => {\n const { className, ...restProps } = props;\n return (<nav\n {...restProps}\n className={cn(actionNavigationStyles(), className)}\n />);\n};\n"],
4
+ "sourcesContent": ["/**\n * @author WMXPY\n * @package Action Navigation\n * @namespace ActionNavigation\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const actionNavigationStyles = cva(cn(\n \"gridui-action-navigation\",\n \"gridui-u-action-navigation--flex gridui-u-action-navigation--flex-wrap gridui-u-action-navigation--gap-gridui-16\",\n));\n", "/**\n * @author WMXPY\n * @package Action Navigation\n * @namespace ActionNavigation\n * @description Action Navigation\n */\n\nimport { actionNavigationStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ActionNavigationProps = ComponentPropsWithRef<\"nav\">;\n\nexport const ActionNavigation: FC<ActionNavigationProps> = (props: ActionNavigationProps) => {\n const { className, ...restProps } = props;\n return (<nav\n {...restProps}\n className={cn(actionNavigationStyles(), className)}\n />);\n};\n"],
5
5
  "mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,yBAAyB,IAAI;AAAA,EACtC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAA,WAAU;AAOP;AAFL,IAAM,mBAA8C,CAAC,UAAiC;AACzF,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,uBAAuB,GAAG,SAAS;AAAA;AAAA,EACrD;AACJ;",
6
6
  "names": ["cn"]
7
7
  }
package/dist/styles.css CHANGED
@@ -1,13 +1,13 @@
1
- /*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer theme, base, components, utilities;
3
3
  @layer utilities {
4
- .gridui-u-flex {
4
+ .gridui-u-action-navigation--flex {
5
5
  display: flex;
6
6
  }
7
- .gridui-u-flex-wrap {
7
+ .gridui-u-action-navigation--flex-wrap {
8
8
  flex-wrap: wrap;
9
9
  }
10
- .gridui-u-gap-gridui-16 {
10
+ .gridui-u-action-navigation--gap-gridui-16 {
11
11
  gap: var(--gridui-space-16);
12
12
  }
13
13
  }
package/docs/catalog.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/action-navigation",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "category": "core",
6
6
  "description": "GridUI React action navigation",
7
- "usage": "GridUI React action navigation",
7
+ "usage": "Component reference contains focused API pages for each public component.",
8
8
  "documentation": [
9
- "README.md"
9
+ "README.md",
10
+ "docs/reference/README.md",
11
+ "docs/reference/action-navigation.md"
10
12
  ],
11
13
  "exports": [
12
14
  {
@@ -24,5 +26,8 @@
24
26
  "@gridui/theme/styles.css",
25
27
  "@gridui/action-navigation/styles.css"
26
28
  ],
27
- "examples": []
29
+ "examples": [
30
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/action-navigation/stories/secondary-navigation.mdx",
31
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/action-navigation/stories/action-navigation.stories.tsx"
32
+ ]
28
33
  }
@@ -0,0 +1,4 @@
1
+ <!-- Generated by pnpm docs:storybook. -->
2
+ # Component reference
3
+
4
+ - [ActionNavigation](action-navigation.md)
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ActionNavigation
3
+
4
+ Groups related navigation links in a wrapping row. Use it for secondary destinations or actions that navigate to another section.
5
+
6
+ Import from ``@gridui/action-navigation`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ActionNavigation } from "@gridui/action-navigation";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/action-navigation/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/action-navigation/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/action-navigation/stories/action-navigation.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/action-navigation",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "GridUI React action navigation",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -27,13 +27,14 @@
27
27
  "react-dom": "^19.2.0"
28
28
  },
29
29
  "dependencies": {
30
- "@gridui/style-utils": "^2.2.2",
30
+ "@gridui/style-utils": "^4.0.0",
31
31
  "@gridui/theme": "^2.5.3",
32
32
  "class-variance-authority": "0.7.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@gridui-internal/configuration": "0.0.0-internal",
36
36
  "@jest/globals": "30.5.2",
37
+ "@storybook/react-vite": "10.6.6",
37
38
  "@types/jest": "30.0.0",
38
39
  "@types/node": "26.6.6",
39
40
  "@types/react": "19.3.0",