@gridui/inline-editor 2.1.3 → 3.0.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.
@@ -0,0 +1,25 @@
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-editor {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: var(--gridui-space-8);
10
+ min-width: 0;
11
+ }
12
+ .gridui-inline-editor > label {
13
+ width: 100%;
14
+ }
15
+ .gridui-inline-editor-display {
16
+ flex: 1;
17
+ min-width: 0;
18
+ overflow-wrap: anywhere;
19
+ }
20
+ .gridui-inline-editor-actions {
21
+ display: flex;
22
+ flex-wrap: wrap;
23
+ gap: var(--gridui-space-8);
24
+ }
25
+ }
package/docs/catalog.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/inline-editor",
4
- "version": "2.1.3",
5
- "category": "core",
4
+ "version": "3.0.0",
5
+ "category": "controls",
6
6
  "description": "GridUI React inline editor",
7
7
  "usage": "Component reference contains focused API pages for each public component.",
8
8
  "documentation": [
@@ -85,10 +85,11 @@
85
85
  "@gridui/input/styles.css",
86
86
  "@gridui/inline-editor/styles.css"
87
87
  ],
88
+ "styledImport": "@gridui/inline-editor/styled",
88
89
  "examples": [
89
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/stories/getting-started.mdx",
90
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/stories/multiline.mdx",
91
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/stories/single-line.mdx",
92
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/stories/inline-editor.stories.tsx"
90
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/stories/getting-started.mdx",
91
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/stories/multiline.mdx",
92
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/stories/single-line.mdx",
93
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/stories/inline-editor.stories.tsx"
93
94
  ]
94
95
  }
@@ -11,14 +11,20 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
20
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
21
 
22
+ ### size
23
+
24
+ ``ActionSize | undefined`` · Optional
25
+
26
+ Component size preset.
27
+
22
28
  ### saveLabel
23
29
 
24
30
  ``ReactNode`` · Required
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
@@ -25,6 +25,12 @@ The public Props type is the source of these signatures. Defaults below are expl
25
25
 
26
26
  Content rendered inside the component.
27
27
 
28
+ ### size
29
+
30
+ ``Size | undefined`` · Optional
31
+
32
+ Component size preset.
33
+
28
34
  ### onFocus
29
35
 
30
36
  ``(event: FocusEvent<HTMLInputElement, Element>): void`` · Optional
@@ -55,9 +61,9 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
55
61
 
56
62
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
63
 
58
- ### controlSize
64
+ ### htmlSize
59
65
 
60
- ``"small" | "standard" | undefined`` · Optional
66
+ ``number | undefined`` · Optional
61
67
 
62
68
  ### label
63
69
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
@@ -31,6 +31,12 @@ Caller-owned footer content; footer handles share this row.
31
31
 
32
32
  Content rendered inside the component.
33
33
 
34
+ ### size
35
+
36
+ ``Size | undefined`` · Optional
37
+
38
+ Component size preset.
39
+
34
40
  ### onFocus
35
41
 
36
42
  ``(event: FocusEvent<HTMLTextAreaElement, Element>): void`` · Optional
@@ -61,10 +67,6 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
61
67
 
62
68
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
63
69
 
64
- ### controlSize
65
-
66
- ``"small" | "standard" | undefined`` · Optional
67
-
68
70
  ### autoSize
69
71
 
70
72
  ``boolean | undefined`` · Optional
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
@@ -33,7 +33,7 @@ Visual variant.
33
33
 
34
34
  ### size
35
35
 
36
- ``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
36
+ ``ActionSize | undefined`` · Optional
37
37
 
38
38
  Component size preset.
39
39
 
@@ -81,7 +81,7 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
81
81
 
82
82
  ### startIconSize
83
83
 
84
- ``"standard" | "large" | "extra-large" | undefined`` · Optional
84
+ ``"medium" | "large" | "extra-large" | undefined`` · Optional
85
85
 
86
86
  ### endIcon
87
87
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/inline-editor/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/inline-editor/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/inline-editor/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-editor/stories/inline-editor.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-controls/inline-editor/stories/inline-editor.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
 
@@ -43,6 +43,14 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
43
43
 
44
44
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
45
 
46
+ ### size
47
+
48
+ ``Size | undefined`` · Optional
49
+
50
+ Default: ``"medium"``
51
+
52
+ Component size preset.
53
+
46
54
  ### editing
47
55
 
48
56
  ``boolean`` · Required
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/inline-editor",
3
- "version": "2.1.3",
3
+ "version": "3.0.0",
4
4
  "description": "GridUI React inline editor",
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,11 +32,11 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/button": "^5.1.0",
31
- "@gridui/input": "^4.0.2",
35
+ "@gridui/button": "^6.0.0",
36
+ "@gridui/input": "^5.0.0",
32
37
  "@gridui/interaction": "^1.3.0",
33
- "@gridui/style-utils": "^4.0.0",
34
- "@gridui/theme": "^3.0.0"
38
+ "@gridui/style-utils": "^4.1.0",
39
+ "@gridui/theme": "^5.0.0"
35
40
  },
36
41
  "devDependencies": {
37
42
  "@gridui-internal/configuration": "0.0.0-internal",