@ultraviolet/form 2.9.0 → 2.10.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.
@@ -1,6 +1,6 @@
1
1
  import { Stack, Row, Button } from '@ultraviolet/ui';
2
2
  import { useFieldArray } from 'react-hook-form';
3
- import { TextInputField } from '../TextInputField/index.js';
3
+ import { TextInputField } from '../TextInputFieldV2/index.js';
4
4
  import { jsxs, jsx } from '@emotion/react/jsx-runtime';
5
5
 
6
6
  /**
@@ -28,10 +28,11 @@ const KeyValueField = ({
28
28
  return jsxs(Stack, {
29
29
  gap: 3,
30
30
  children: [fields.length ? jsx(Stack, {
31
- gap: 2,
31
+ gap: 3,
32
32
  children: fields.map((field, index) => jsxs(Row, {
33
33
  templateColumns: "1fr 1fr auto",
34
34
  gap: 2,
35
+ alignItems: "end",
35
36
  children: [jsx(TextInputField, {
36
37
  readOnly: readonly,
37
38
  required: inputKey.required,
package/dist/index.d.ts CHANGED
@@ -354,13 +354,13 @@ declare const RadioGroupField: {
354
354
  };
355
355
 
356
356
  type InputKeyProps = {
357
- label: ComponentProps<typeof TextInputField$1>['label'];
358
- required?: ComponentProps<typeof TextInputField$1>['required'];
359
- regex?: ComponentProps<typeof TextInputField$1>['regex'];
357
+ label: ComponentProps<typeof TextInputField>['label'];
358
+ required?: ComponentProps<typeof TextInputField>['required'];
359
+ regex?: ComponentProps<typeof TextInputField>['regex'];
360
360
  };
361
361
  type InputValueProps = {
362
- type?: ComponentProps<typeof TextInputField$1>['type'];
363
- placeholder?: ComponentProps<typeof TextInputField$1>['placeholder'];
362
+ type?: ComponentProps<typeof TextInputField>['type'];
363
+ placeholder?: ComponentProps<typeof TextInputField>['placeholder'];
364
364
  } & InputKeyProps;
365
365
  type AddButtonProps = {
366
366
  name: ComponentProps<typeof Button>['children'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/form",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "Ultraviolet Form",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@emotion/react": "11.11.4",
36
- "@emotion/styled": "11.11.0",
36
+ "@emotion/styled": "11.11.5",
37
37
  "react": "18.x",
38
38
  "react-dom": "18.x",
39
39
  "react-hook-form": "7.51.2"
@@ -41,8 +41,8 @@
41
41
  "devDependencies": {
42
42
  "@babel/core": "7.24.3",
43
43
  "@types/final-form-focus": "1.1.7",
44
- "@types/react": "18.2.64",
45
- "@types/react-dom": "18.2.21",
44
+ "@types/react": "18.2.74",
45
+ "@types/react-dom": "18.2.23",
46
46
  "react": "18.2.0",
47
47
  "react-dom": "18.2.0"
48
48
  },
@@ -50,10 +50,10 @@
50
50
  "@babel/runtime": "7.24.1",
51
51
  "@emotion/babel-plugin": "11.11.0",
52
52
  "@emotion/react": "11.11.4",
53
- "@emotion/styled": "11.11.0",
53
+ "@emotion/styled": "11.11.5",
54
54
  "react-select": "5.8.0",
55
55
  "react-hook-form": "7.51.2",
56
- "@ultraviolet/ui": "1.45.0"
56
+ "@ultraviolet/ui": "1.45.2"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "rollup -c ../../rollup.config.mjs",