@graphcommerce/next-ui 4.11.0 → 4.12.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.
|
@@ -82,7 +82,7 @@ export function ActionCard(props: ActionCardProps) {
|
|
|
82
82
|
gridTemplateAreas: `
|
|
83
83
|
"image title action"
|
|
84
84
|
"image details ${price ? 'price' : 'details'}"
|
|
85
|
-
"image
|
|
85
|
+
"image secondaryAction additionalDetails"
|
|
86
86
|
"after after after"
|
|
87
87
|
`,
|
|
88
88
|
justifyContent: 'unset',
|
|
@@ -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,34 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1534](https://github.com/graphcommerce-org/graphcommerce/pull/1534) [`c756f42e5`](https://github.com/graphcommerce-org/graphcommerce/commit/c756f42e503761a497e4a5a7a02d02141df231c3) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Added the method title to the action card title for shipping methods.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @graphcommerce/framer-scroller@2.1.21
|
|
13
|
+
|
|
14
|
+
## 4.11.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#1538](https://github.com/graphcommerce-org/graphcommerce/pull/1538) [`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f) Thanks [@paales](https://github.com/paales)! - add missing translations
|
|
19
|
+
|
|
20
|
+
- Updated dependencies []:
|
|
21
|
+
- @graphcommerce/framer-scroller@2.1.20
|
|
22
|
+
|
|
23
|
+
## 4.11.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#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
|
|
28
|
+
|
|
29
|
+
- Updated dependencies []:
|
|
30
|
+
- @graphcommerce/framer-scroller@2.1.19
|
|
31
|
+
|
|
3
32
|
## 4.11.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -46,7 +46,7 @@ export function LayoutHeaderBack(props: BackProps) {
|
|
|
46
46
|
const backIcon = <IconSvg src={iconChevronLeft} size='medium' />
|
|
47
47
|
const canClickBack = backSteps > 0 && path !== prevUp?.href
|
|
48
48
|
|
|
49
|
-
let label = i18n._(/* i18n */
|
|
49
|
+
let label = i18n._(/* i18n */ 'Back')
|
|
50
50
|
if (up?.href === path && up?.title) label = up.title
|
|
51
51
|
if (prevUp?.href === path && prevUp?.title) label = prevUp.title
|
|
52
52
|
|
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.
|
|
5
|
+
"version": "4.12.0",
|
|
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.21",
|
|
24
24
|
"@graphcommerce/framer-utils": "3.1.4",
|
|
25
25
|
"@graphcommerce/image": "3.1.7",
|
|
26
26
|
"react-is": "^18.1.0",
|