@graphcommerce/next-ui 4.11.0 → 4.11.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.
|
@@ -33,18 +33,14 @@ export function ActionCardListForm<T extends ActionCardItemBase>(
|
|
|
33
33
|
{...props}
|
|
34
34
|
control={control}
|
|
35
35
|
name={name}
|
|
36
|
-
rules={{
|
|
37
|
-
required,
|
|
38
|
-
...rules,
|
|
39
|
-
validate: (v) => (v ? true : 'Please select a shipping address'),
|
|
40
|
-
}}
|
|
36
|
+
rules={{ required, ...rules, validate: (v) => (v ? true : errorMessage) }}
|
|
41
37
|
render={({ field: { onChange, value }, fieldState, formState }) => (
|
|
42
38
|
<ActionCardList
|
|
43
39
|
required
|
|
44
40
|
value={value}
|
|
45
41
|
onChange={(_, incomming) => onChange(incomming)}
|
|
46
42
|
error={formState.isSubmitted && !!fieldState.error}
|
|
47
|
-
errorMessage={
|
|
43
|
+
errorMessage={fieldState.error?.message}
|
|
48
44
|
>
|
|
49
45
|
{items.map((item) => (
|
|
50
46
|
<RenderItem
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1529](https://github.com/graphcommerce-org/graphcommerce/pull/1529) [`11bca2d2f`](https://github.com/graphcommerce-org/graphcommerce/commit/11bca2d2f7dbb7c5e2827c04eb0db43d4099f2fd) Thanks [@paales](https://github.com/paales)! - issue where the error message of actionCardList was incomplete
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @graphcommerce/framer-scroller@2.1.19
|
|
11
|
+
|
|
3
12
|
## 4.11.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.11.
|
|
5
|
+
"version": "4.11.1",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/server": "^11.4.0",
|
|
21
21
|
"@emotion/styled": "^11.6.0",
|
|
22
22
|
"@graphcommerce/framer-next-pages": "3.2.3",
|
|
23
|
-
"@graphcommerce/framer-scroller": "2.1.
|
|
23
|
+
"@graphcommerce/framer-scroller": "2.1.19",
|
|
24
24
|
"@graphcommerce/framer-utils": "3.1.4",
|
|
25
25
|
"@graphcommerce/image": "3.1.7",
|
|
26
26
|
"react-is": "^18.1.0",
|